twcpt 0.0.19 → 0.0.20
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/components/j-tw-file-upload/index.d.ts +3 -0
- package/dist/components/j-tw-file-upload/types.d.ts +68 -0
- package/dist/components/j-tw-search-box/index.d.ts +3 -0
- package/dist/components/j-tw-search-box/types.d.ts +28 -0
- package/dist/components/j-tw-table/index.d.ts +997 -3
- package/dist/components/j-tw-table/types.d.ts +17 -0
- package/dist/global.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +10 -10
- package/dist/twcpt.es.js +5532 -5027
- package/package.json +1 -1
package/dist/twcpt.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),fe=require("element-plus"),rn=require("./resolver.cjs"),ce={LARGE:"large",NORMAL:"normal",SMALL:"small"},ge={BUTTON:"button",TEXT:"text"},Rt={PRIMARY:"primary",GREEN:"green",ORANGE:"orange",RED:"red",CYAN:"cyan",BROWN:"brown",YELLOW:"yellow",BLUE:"blue",PURPLE:"purple",LIME:"lime",MAGENTA:"magenta",PINK:"pink"},l1=t.defineComponent({name:"JTWBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},color:{type:String,default:"primary",validator:e=>Object.values(Rt).includes(e)},textColor:{type:String,default:void 0,validator:e=>!e||Object.values(Rt).includes(e)},outline:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0}},emits:{click:e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.computed(()=>e.tips!=null?String(e.tips):""),s=t.computed(()=>({"j-tw-btn":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline&&!e.flat,"j-tw-btn--outline":e.outline&&!e.flat,"j-tw-btn--flat":e.flat,"j-tw-btn--text":e.type===ge.TEXT&&!e.flat})),l=t.computed(()=>{const h=e.color||"primary",v={"--j-btn-color":`var(--j-color-${h})`,"--j-btn-color-1":`var(--j-color-${h}-1)`,"--j-btn-color-2":`var(--j-color-${h}-2)`,"--j-btn-color-3":`var(--j-color-${h}-3)`,"--j-btn-color-4":`var(--j-color-${h}-4)`,"--j-btn-color-5":`var(--j-color-${h}-5)`,"--j-btn-color-6":`var(--j-color-${h}-6)`};return e.textColor&&(v["--j-btn-text-color"]=`var(--j-color-${e.textColor})`),v}),a={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},c=t.computed(()=>({...a,...e.tooltipConfig})),m=h=>{n("click",h)};return r({get $el(){var h;return(h=o.value)==null?void 0:h.$el},click:()=>{var h,v;(v=(h=o.value)==null?void 0:h.$el)==null||v.click()}}),{elBtnRef:o,tooltipContent:i,computedClass:s,computedStyle:l,mergedTooltipConfig:c,handleClick:m}}}),de=(e,n)=>{const r=e.__vccOpts||e;for(const[o,i]of n)r[o]=i;return r};function s1(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"elBtnRef",class:e.computedClass,style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleClick}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[0]||(n[0]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",viewBox:"0 0 16 16",class:"j-tw-btn__loading-icon"},[t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"master_svg0_37_06013"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),t.createElementVNode("g",{"clip-path":"url(#master_svg0_37_06013)"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0",fill:"transparent",style:{"mix-blend-mode":"passthrough"}}),t.createElementVNode("path",{d:"M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z","fill-rule":"evenodd",fill:"currentColor"})])],-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"])}const Ve=de(l1,[["render",s1]]),c1=t.defineComponent({name:"JTWDropdownBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},options:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:void 0}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),m=t.computed(()=>e.tips!=null?String(e.tips):""),y=t.computed(()=>{if(e.modelValue!=null){const D=e.options.find(x=>x.value===e.modelValue);if(D)return D.label}return e.label}),h=t.computed(()=>({"j-tw-dropdown-btn":!0,"j-tw-dropdown-btn--large":e.size===ce.LARGE,"j-tw-dropdown-btn--normal":e.size===ce.NORMAL,"j-tw-dropdown-btn--small":e.size===ce.SMALL})),v=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__main":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),g=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__trigger":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),k=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-dropdown-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),u={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},w=t.computed(()=>({...u,...e.tooltipConfig})),d=()=>{if(!o.value||!l.value)return;const D=o.value.getBoundingClientRect(),x=l.value.getBoundingClientRect(),C=window.innerHeight-D.bottom,I=D.top;let p=D.bottom+4;x.height>50&&C<x.height+20&&I>x.height+20&&(p=D.top-x.height-4),c.value={top:`${p}px`,left:`${D.left}px`}},Q=()=>{a.value=!0,t.nextTick(()=>{t.nextTick(()=>{d()})})},b=()=>{a.value=!1},_=()=>{a.value?b():Q()},N=D=>{n("click",D),_()},B=D=>{D.disabled||(n("update:modelValue",D.value),n("select",D),b())},E=D=>{if(!o.value||!l.value)return;const x=D.target;!o.value.contains(x)&&!l.value.contains(x)&&b()};return t.watch(a,D=>{D?(document.addEventListener("click",E),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0)):(document.removeEventListener("click",E),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",E),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}),r({get $el(){return o.value},click:()=>{var D,x;(x=(D=i.value)==null?void 0:D.$el)==null||x.click()},openDropdown:Q,closeDropdown:b}),{dropdownRef:o,mainBtnRef:i,dropdownBtnRef:s,dropdownMenuRef:l,dropdownVisible:a,dropdownMenuStyle:c,tooltipContent:m,displayLabel:y,dropdownClass:h,mainBtnClass:v,dropdownBtnClass:g,computedStyle:k,mergedTooltipConfig:w,handleMainClick:N,toggleDropdown:_,handleOptionClick:B}}}),on="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",an="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-dropdown-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",u1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096497'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096497)'%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.409602997126058,4.475219065789133)'%3e%3cpath%20d='M1.947415595,8.767578125Q1.947415595,8.693724342,1.961823825,8.621289645Q1.976231935,8.548854945,2.004494545,8.480622945Q2.032757165,8.412390945,2.073788165,8.350983795Q2.114819105,8.289576615,2.167041595,8.237354095Q2.219264115,8.185131605,2.280671295,8.144100665Q2.342078445,8.103069665,2.410310445,8.074807045Q2.478542445,8.046544435,2.550977145,8.032136325Q2.623411842,8.017728095,2.697265625,8.017728095Q2.771119408,8.017728095,2.843554105,8.032136325Q2.915988805,8.046544435,2.984220805,8.074807045Q3.052452805,8.103069665,3.113859955,8.144100665Q3.175267135,8.185131605,3.227489655,8.237354095Q3.279712145,8.289576615,3.320743085,8.350983795Q3.361774085,8.412390945,3.390036705,8.480622945Q3.418299315,8.548854945,3.4327074250000003,8.621289645Q3.447115655,8.693724342,3.447115655,8.767578125L3.447265625,8.767578125L3.447265625,13.017578125L12.697265625,13.017578125L12.697265625,13.017727825Q12.771118625,13.017727825,12.843553625,13.032135925Q12.915987625,13.046544125,12.984220625,13.074806725Q13.052451625,13.103069325,13.113859625,13.144100224999999Q13.175266625,13.185131025,13.227489625,13.237353825Q13.279710625,13.289576525000001,13.320741625,13.350983625Q13.361772625,13.412390725,13.390035625,13.480622324999999Q13.418298625,13.548854825,13.432706625,13.621289225Q13.447114625,13.693724625,13.447115625,13.767578125Q13.447114625,13.841431625,13.432706625,13.913866025Q13.418298625,13.986300425,13.390035625,14.054533025Q13.361772625,14.122764625,13.320741625,14.184171724999999Q13.279710625,14.245578725,13.227489625,14.297801925Q13.175266625,14.350024225,13.113859625,14.391055125000001Q13.052451625,14.432086025,12.984220625,14.460349125Q12.915987625,14.488611725,12.843553625,14.503020325Q12.771118625,14.517428425,12.697265625,14.517428425L12.697265625,14.517578125L2.697265625,14.517578125Q2.623397082,14.517578125,2.550947905,14.503167125000001Q2.478498745,14.488756225,2.410253105,14.460487825000001Q2.342007455,14.432219525,2.280588005,14.391180025Q2.219168545,14.350140525,2.166935565,14.297907825Q2.114702645,14.245674625,2.073663475,14.184255125Q2.032624305,14.122835625,2.004356025,14.054590225Q1.976087745,13.986344325000001,1.9616767149999998,13.913895625Q1.947265625,13.841446925,1.947265625,13.767578125L1.947265625,8.767578125L1.947415595,8.767578125Z'%20fill-rule='evenodd'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",d1={class:"j-tw-dropdown-btn__label"},f1=["onClick"],h1={class:"j-tw-dropdown-btn__option-label"},p1={key:0,src:u1,class:"j-tw-dropdown-btn__selected-icon",alt:"Selected"};function m1(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",{ref:"dropdownRef",class:t.normalizeClass(e.dropdownClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-dropdown-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",d1,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),t.createElementVNode("img",{src:an,class:t.normalizeClass(["j-tw-dropdown-btn__arrow",{"j-tw-dropdown-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[1]||(n[1]=t.createElementVNode("img",{src:on,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-dropdown-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-dropdown-btn__menu",style:t.normalizeStyle({...e.dropdownMenuStyle,...e.computedStyle}),onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,c=>(t.openBlock(),t.createElementBlock("div",{key:c.value,class:t.normalizeClass(["j-tw-dropdown-btn__option",{"j-tw-dropdown-btn__option--selected":c.value===e.modelValue,"j-tw-dropdown-btn__option--disabled":c.disabled}]),onClick:m=>e.handleOptionClick(c)},[t.createElementVNode("span",h1,t.toDisplayString(c.label),1),c.value===e.modelValue?(t.openBlock(),t.createElementBlock("img",p1)):t.createCommentVNode("",!0)],10,f1))),128))],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const g1=de(c1,[["render",m1]]),w1=t.defineComponent({name:"JTWCheckbox",components:{ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,setup(){return{}}});function y1(e,n,r,o,i,s){const l=t.resolveComponent("el-checkbox");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elCheckboxRef",class:"j-tw-checkbox"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const bt=de(w1,[["render",y1]]),v1=t.defineComponent({name:"JTWInput",components:{ElInput:fe.ElInput},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0}},setup(e,{expose:n}){const r=t.ref(null);return n({get input(){var i;return(i=r.value)==null?void 0:i.input},get textareaStyle(){var i;return(i=r.value)==null?void 0:i.textareaStyle},focus:()=>{var i;return(i=r.value)==null?void 0:i.focus()},blur:()=>{var i;return(i=r.value)==null?void 0:i.blur()},select:()=>{var i;return(i=r.value)==null?void 0:i.select()},clear:()=>{var i;return(i=r.value)==null?void 0:i.clear()},resizeTextarea:()=>{var i;return(i=r.value)==null?void 0:i.resizeTextarea()}}),{elInputRef:r}}});function Q1(e,n,r,o,i,s){const l=t.resolveComponent("el-input");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.$attrs),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"])}const ln=de(v1,[["render",Q1]]),k1="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDQuMDAwMDAxTDgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxWiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",b1="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDY4QzgsNzAuMjA5MTM3LDkuNzkwODYxMSw3MiwxMi4wMDAwMDEwMDAwMDAwMDEsNzJMNjAsNzJDNjIuMjA5MTQxLDcyLDY0LDcwLjIwOTEzNyw2NCw2OEw2NCw0LjAwMDAwMDVDNjQsMS43OTA4NjExLDYyLjIwOTE0MSwwLDYwLDBMMTIuMDAwMDAwNDk5OTk5OTk5LDBDOS43OTA4NjExLDAsOCwxLjc5MDg2MTEsOCw0LjAwMDAwMUw4LDY4WiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",M1="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='20'%20stroke='%23E5E6EB'%20stroke-width='4'/%3e%3cpath%20d='M24%204C35.0457%204%2044%2012.9543%2044%2024'%20stroke='%23165DFF'%20stroke-width='4'%20stroke-linecap='round'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0%2024%2024'%20to='360%2024%2024'%20dur='1s'%20repeatCount='indefinite'/%3e%3c/path%3e%3c/svg%3e",C1=t.defineComponent({name:"JTWStatusImg",props:{name:{type:String,default:"default"},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(e){const n={default:k1,empty:b1,loading:M1},r=t.computed(()=>n[e.name]||n.default),o=t.computed(()=>{const i={};return e.width!==void 0&&(i.width=typeof e.width=="number"?`${e.width}px`:e.width),e.height!==void 0&&(i.height=typeof e.height=="number"?`${e.height}px`:e.height),i});return{imageSrc:r,imageStyle:o}}}),_1={class:"j-tw-status-img"},A1=["src","alt"];function D1(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",_1,[t.createElementVNode("img",{src:e.imageSrc,alt:e.name,style:t.normalizeStyle(e.imageStyle),class:"j-tw-status-img__image"},null,12,A1)])}const Ue=de(C1,[["render",D1]]),N1=t.defineComponent({name:"JTWMultiSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWCheckbox:bt,JTWInput:ln,JTWStatusImg:Ue},inheritAttrs:!1,props:{data:{type:Array,default:()=>[]},dropdownMaxHeight:{type:Number,default:360},dropdownWidth:{type:Number,default:320},fetchOptions:{type:Function,default:void 0},filterMethod:{type:Function,default:void 0},label:{type:String,default:""},loading:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]},noDataText:{type:String,default:"暂无数据"},outline:{type:Boolean,default:!0},searchDebounce:{type:Number,default:300},searchPlaceholder:{type:String,default:"请输入设备名称"},size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)}},emits:{click:e=>!0,search:e=>!0,select:e=>!0,"update:modelValue":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref({}),s=t.ref(!1),l=t.ref(!1),a=t.ref(!1),c=t.ref(null),m=t.ref(null),y=t.ref([]),h=t.ref(""),v=t.ref([]),g=t.ref(void 0),k=t.ref(0),u={closeDelay:200,effect:"dark",offset:5,openDelay:0,placement:"top",showArrow:!0,trigger:"hover"},w=t.computed(()=>({...u,...e.tooltipConfig})),d=t.computed(()=>e.tips!=null?String(e.tips):""),Q=t.computed(()=>{const S=new Map;return e.data.forEach(H=>S.set(H.value,H)),y.value.forEach(H=>S.set(H.value,H)),S}),b=t.computed(()=>{const S=h.value.trim().toLowerCase();return S?e.filterMethod?e.data.filter(H=>{var ne;return(ne=e.filterMethod)==null?void 0:ne.call(e,H,h.value)}):e.data.filter(H=>H.label.toLowerCase().includes(S)):e.data}),_=t.computed(()=>e.fetchOptions?y.value:b.value),N=t.computed(()=>{const S=v.value.length;if(S===0)return e.label;const H=v.value.map(ne=>{var ie;return(ie=Q.value.get(ne))==null?void 0:ie.label}).filter(ne=>!!ne);return H.length===1?H[0]:`已选择 ${S} 项`}),B=t.computed(()=>({"j-tw-multi-select-btn":!0,"j-tw-multi-select-btn--large":e.size===ce.LARGE,"j-tw-multi-select-btn--normal":e.size===ce.NORMAL,"j-tw-multi-select-btn--small":e.size===ce.SMALL})),E=t.computed(()=>({"j-tw-btn":!0,"j-tw-multi-select-btn__main":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),R=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-btn-text-color":"var(--j-color-grey-1)"})),D=t.computed(()=>v.value.length>0),x=S=>v.value.includes(S),$=S=>{const H=S.map(ne=>Q.value.get(ne)).filter(ne=>!!ne);n("update:modelValue",S),n("select",H)},C=()=>{v.value=[],$([])},I=(S,H)=>{if(S.disabled)return;const ne=new Set(v.value);H?ne.add(S.value):ne.delete(S.value),v.value=Array.from(ne),$(v.value)},p=(S,H)=>{I(S,!!H)},P=S=>{S.disabled||I(S,!x(S.value))},K=()=>{if(!m.value||!o.value)return;const S=m.value.getBoundingClientRect(),H=o.value.getBoundingClientRect(),ne=window.innerHeight,ie=S.top,V=ne-S.bottom;let q=S.bottom+4;H.height>50&&V<H.height+20&&ie>H.height+20&&(q=S.top-H.height-4),i.value={left:`${S.left}px`,maxHeight:`${e.dropdownMaxHeight}px`,top:`${q}px`,width:`${e.dropdownWidth}px`}},Z=async S=>{if(!e.fetchOptions)return;const H=k.value+1;k.value=H,l.value=!0;try{const ne=await e.fetchOptions(S);H===k.value&&(y.value=ne??[])}finally{H===k.value&&(l.value=!1)}},le=S=>{h.value=S,n("search",S),e.fetchOptions&&(g.value&&window.clearTimeout(g.value),g.value=window.setTimeout(()=>{Z(h.value.trim())},e.searchDebounce))},Y=async()=>{s.value=!0,h.value="",e.fetchOptions&&await Z(""),await t.nextTick(),await t.nextTick(),K()},re=()=>{s.value=!1,g.value&&(window.clearTimeout(g.value),g.value=void 0)},O=()=>{s.value?re():Y()},j=S=>{n("click",S),O()},oe=S=>{if(!m.value||!o.value)return;const H=S.target;!m.value.contains(H)&&!o.value.contains(H)&&re()};return t.watch(()=>e.modelValue,S=>{v.value=[...S??[]]},{immediate:!0}),t.watch(s,S=>{S?(document.addEventListener("click",oe),window.addEventListener("resize",K),window.addEventListener("scroll",K,!0)):(document.removeEventListener("click",oe),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("click",oe),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0),g.value&&window.clearTimeout(g.value)}),r({get $el(){return m.value},click:()=>{var S,H;(H=(S=c.value)==null?void 0:S.$el)==null||H.click()},closeDropdown:re,openDropdown:Y}),{computedStyle:R,displayLabel:N,displayOptions:_,dropdownMenuRef:o,dropdownMenuStyle:i,dropdownVisible:s,handleMainClick:j,handleOptionChange:p,handleOptionClick:P,handleSearchInput:le,isFetching:l,isHovering:a,isOptionSelected:x,mainBtnClass:E,mainBtnRef:c,mergedTooltipConfig:w,multiSelectClass:B,multiSelectRef:m,noDataText:e.noDataText,searchKeyword:h,searchPlaceholder:e.searchPlaceholder,showClearIcon:D,tooltipContent:d,dropdownMaxHeight:e.dropdownMaxHeight,handleClear:C}}}),I1={class:"j-tw-multi-select-btn__label"},S1={class:"j-tw-multi-select-btn__search"},T1={key:0,class:"j-tw-multi-select-btn__loading"},L1=["onClick"],E1={class:"j-tw-multi-select-btn__option-label"},x1={key:2,class:"j-tw-multi-select-btn__empty"},j1={class:"j-tw-multi-select-btn__empty-text"};function z1(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWInput"),m=t.resolveComponent("JTWCheckbox"),y=t.resolveComponent("JTWStatusImg");return t.openBlock(),t.createElementBlock("div",{ref:"multiSelectRef",class:t.normalizeClass(e.multiSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-multi-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=h=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=h=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",I1,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-multi-select-btn__clear",{"j-tw-multi-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...n[7]||(n[7]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-multi-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("img",{src:an,class:t.normalizeClass(["j-tw-multi-select-btn__arrow",{"j-tw-multi-select-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[6]||(n[6]=t.createElementVNode("img",{src:on,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-multi-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-multi-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[5]||(n[5]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",S1,[t.createVNode(c,{modelValue:e.searchKeyword,"onUpdate:modelValue":[n[3]||(n[3]=h=>e.searchKeyword=h),e.handleSearchInput],placeholder:e.searchPlaceholder,clearable:""},{suffix:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",class:"j-tw-multi-select-btn__search-icon","aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:"M447.98 64C236.42 64 64 236.42 64 447.98S236.42 832 447.98 832c90.08 0 172.94-31.24 238.34-83.4l197.06 197.1c12.48 12.48 32.74 12.48 45.22 0s12.48-32.74 0-45.22L731.56 703.42C783.74 638.02 815 555.16 815 465.08 815 253.52 642.58 81.1 431.02 81.1zm0 704C271.7 768 128 624.3 128 447.98S271.7 128 447.98 128 768 271.7 768 447.98 624.3 768 447.98 768z"})],-1)])]),_:1},8,["modelValue","placeholder","onUpdate:modelValue"])]),t.createElementVNode("div",{class:"j-tw-multi-select-btn__list",style:t.normalizeStyle({maxHeight:`${e.dropdownMaxHeight-62}px`})},[e.isFetching?(t.openBlock(),t.createElementBlock("div",T1,[...n[9]||(n[9]=[t.createElementVNode("span",{class:"j-tw-multi-select-btn__loading-spinner"},null,-1),t.createElementVNode("p",{class:"j-tw-multi-select-btn__loading-text"},"加载中...",-1)])])):e.displayOptions.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.displayOptions,h=>(t.openBlock(),t.createElementBlock("div",{key:h.value,class:t.normalizeClass(["j-tw-multi-select-btn__option",{"j-tw-multi-select-btn__option--active":e.isOptionSelected(h.value),"j-tw-multi-select-btn__option--disabled":h.disabled}]),onClick:v=>e.handleOptionClick(h)},[t.createVNode(m,{class:"j-tw-multi-select-btn__checkbox",disabled:h.disabled,"model-value":e.isOptionSelected(h.value),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"])),onChange:v=>e.handleOptionChange(h,v)},null,8,["disabled","model-value","onChange"]),t.createElementVNode("span",E1,t.toDisplayString(h.label),1)],10,L1))),128)):(t.openBlock(),t.createElementBlock("div",x1,[t.createVNode(y,{width:32,height:32}),t.createElementVNode("p",j1,t.toDisplayString(e.noDataText),1)]))],4)],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const B1=de(N1,[["render",z1]]),O1=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},tempSelectedValue:{type:[String,Number],default:void 0},tempSelectedValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),F1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",P1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",R1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",V1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",U1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",W1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Z1={key:0,src:F1,alt:"collapse",class:"j-tw-tree-select-btn__expand-icon"},Y1={key:1,src:P1,alt:"expand",class:"j-tw-tree-select-btn__expand-icon"},G1={key:2,class:"j-tw-tree-select-btn__expand-placeholder"},H1={class:"j-tw-tree-select-btn__radio"},J1={key:0,src:R1,alt:"indeterminate",class:"j-tw-tree-select-btn__radio-icon"},X1={key:1,src:$1,alt:"checked",class:"j-tw-tree-select-btn__radio-icon"},K1={key:2,src:V1,alt:"unchecked",class:"j-tw-tree-select-btn__radio-icon"},q1={key:0,src:U1,alt:"selected",class:"j-tw-tree-select-btn__radio-icon"},er={key:1,src:W1,alt:"unselected",class:"j-tw-tree-select-btn__radio-icon"},tr={class:"j-tw-tree-select-btn__node-label"};function nr(e,n,r,o,i,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__node",{"j-tw-tree-select-btn__node--disabled":e.node.disabled},{"j-tw-tree-select-btn__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select-btn__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"}),onClick:n[1]||(n[1]=a=>e.handleNodeClick(e.node))},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select-btn__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select-btn__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",Z1)):(t.openBlock(),t.createElementBlock("img",Y1))])):(t.openBlock(),t.createElementBlock("div",G1)),t.createElementVNode("div",H1,[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",J1)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",X1)):(t.openBlock(),t.createElementBlock("img",K1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.tempSelectedValue===e.node.value?(t.openBlock(),t.createElementBlock("img",q1)):(t.openBlock(),t.createElementBlock("img",er))],64))]),t.createElementVNode("span",tr,[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])])],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:m})=>[t.renderSlot(e.$slots,"default",{node:m},()=>[t.createTextVNode(t.toDisplayString(m.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const sn=de(O1,[["render",nr]]),rr=t.defineComponent({name:"JTWTreeSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWBtn:Ve,TreeNode:sn,JTWStatusImg:Ue},inheritAttrs:!1,props:{size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),m=t.ref(""),y=t.ref(new Set),h=t.ref(void 0),v=t.ref(new Set),g=t.ref(!1);e.defaultExpandFirst&&e.data.length>0&&y.value.add(e.data[0].value),t.watch(()=>e.data,V=>{e.defaultExpandFirst&&V.length>0&&y.value.size===0&&y.value.add(V[0].value)},{immediate:!0});const k=t.computed(()=>e.tips!=null?String(e.tips):""),u=(V,q)=>{for(const te of V){if(te.value===q)return te;if(te.children){const ue=u(te.children,q);if(ue)return ue}}return null},w=V=>{if(!V.children||V.children.length===0)return[];const q=[];for(const te of V.children)q.push(te.value),q.push(...w(te));return q},d=(V,q)=>{for(const te of V)if(te.children){if(te.children.some(pe=>pe.value===q))return te;const ue=d(te.children,q);if(ue)return ue}return null},Q=V=>{const q=d(e.data,V);return q&&q.children?q.children.map(te=>te.value).filter(te=>te!==V):e.data.map(te=>te.value).filter(te=>te!==V)},b=V=>{const q=d(e.data,V);q&&q.children&&(q.children.every(ue=>v.value.has(ue.value))?v.value.add(q.value):v.value.delete(q.value))},_=V=>e.multiple?v.value.has(V):h.value===V,N=V=>{if(!V.children||V.children.length===0)return[];const q=[];for(const te of V.children)q.push(te.value),q.push(...N(te));return q},B=V=>{if(!e.multiple||!V.children||V.children.length===0)return!1;const q=N(V),te=q.filter(ue=>v.value.has(ue)).length;return te>0&&te<q.length},E=V=>e.multiple?v.value.has(V):h.value===V,R=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue)){const V=e.modelValue.length;return V>0?`已选择 ${V} 项`:e.label}else if(!Array.isArray(e.modelValue)){const V=u(e.data,e.modelValue);if(V)return V.label}}return e.label}),D=(V,q)=>{if(!q)return V;const te=[];for(const ue of V){const pe=ue.label.toLowerCase().includes(q.toLowerCase()),f=ue.children?D(ue.children,q):[];(pe||f.length>0)&&(te.push({...ue,children:f.length>0?f:ue.children}),f.length>0&&y.value.add(ue.value))}return te},x=t.computed(()=>D(e.data,m.value)),$=t.computed(()=>({"j-tw-tree-select-btn":!0,"j-tw-tree-select-btn--large":e.size===ce.LARGE,"j-tw-tree-select-btn--normal":e.size===ce.NORMAL,"j-tw-tree-select-btn--small":e.size===ce.SMALL})),C=t.computed(()=>({"j-tw-btn":!0,"j-tw-tree-select-btn__main":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),I=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-tree-select-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),p={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},P=t.computed(()=>({...p,...e.tooltipConfig})),K=()=>{if(!o.value||!s.value)return;const V=o.value.getBoundingClientRect(),q=s.value.getBoundingClientRect(),ue=window.innerHeight-V.bottom,pe=V.top;let f=V.bottom+4;q.height>50&&ue<q.height+20&&pe>q.height+20&&(f=V.top-q.height-4),c.value={top:`${f}px`,left:`${V.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},Z=()=>{a.value=!0,e.multiple&&Array.isArray(e.modelValue)?v.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),m.value="",t.nextTick(()=>{t.nextTick(()=>{K()})})},le=()=>{a.value=!1,m.value=""},Y=()=>{a.value?le():Z()},re=V=>{n("click",V),Y()},O=V=>{y.value.has(V)?y.value.delete(V):(e.accordion&&Q(V).forEach(te=>{y.value.delete(te)}),y.value.add(V))},j=V=>{if(!V.disabled)if(e.multiple){const q=v.value.has(V.value),te=w(V);q?(v.value.delete(V.value),te.forEach(pe=>v.value.delete(pe))):(v.value.add(V.value),te.forEach(pe=>v.value.add(pe))),b(V.value);const ue=e.data.filter(pe=>v.value.has(pe.value));n("select",ue)}else h.value=V.value,n("select",V)},oe=()=>{if(e.multiple){const V=Array.from(v.value),q=V.map(te=>u(e.data,te)).filter(te=>te!==null);n("update:modelValue",V),n("confirm",q.length>0?q:null)}else if(h.value!=null){const V=u(e.data,h.value);n("update:modelValue",h.value),n("confirm",V)}else n("update:modelValue",void 0),n("confirm",null);le()},L=()=>{n("cancel"),le()},S=()=>{e.multiple?(v.value.clear(),n("update:modelValue",[]),n("confirm",null)):(h.value=void 0,n("update:modelValue",void 0),n("confirm",null))},H=t.computed(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null),ne=V=>{if(!o.value||!s.value)return;const q=V.target;!o.value.contains(q)&&!s.value.contains(q)&&le()};return t.watch(a,V=>{V?(document.addEventListener("click",ne),window.addEventListener("resize",K),window.addEventListener("scroll",K,!0)):(document.removeEventListener("click",ne),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",ne),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0)}),r({get $el(){return o.value},click:()=>{var V,q;(q=(V=i.value)==null?void 0:V.$el)==null||q.click()},openDropdown:Z,closeDropdown:le}),{treeSelectRef:o,mainBtnRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:m,expandedKeys:y,tempSelectedValue:h,tempSelectedValues:v,tooltipContent:k,displayLabel:R,filteredData:x,treeSelectClass:$,mainBtnClass:C,computedStyle:I,mergedTooltipConfig:P,handleMainClick:re,toggleDropdown:Y,toggleExpand:O,handleNodeClick:j,handleConfirm:oe,handleCancel:L,handleClear:S,showClearIcon:H,isHovering:g,isNodeChecked:_,isNodeIndeterminate:B,isNodeSelected:E}}}),or="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",ir="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-tree-select-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",ar="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",lr={class:"j-tw-tree-select-btn__label"},sr={class:"j-tw-tree-select-btn__search"},cr=["placeholder"],ur={class:"j-tw-tree-select-btn__tree",ref:"treeContainerRef"},dr={key:0,class:"j-tw-tree-select-btn__empty"},fr={class:"j-tw-tree-select-btn__footer"};function hr(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWStatusImg"),m=t.resolveComponent("TreeNode"),y=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(e.treeSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-tree-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=h=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=h=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",lr,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-tree-select-btn__clear",{"j-tw-tree-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...n[6]||(n[6]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-tree-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__arrow",{"j-tw-tree-select-btn__arrow--open":e.dropdownVisible}])},[...n[7]||(n[7]=[t.createElementVNode("img",{src:ir,alt:"Dropdown arrow"},null,-1)])],2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[5]||(n[5]=t.createElementVNode("img",{src:or,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",sr,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-btn__search-input",placeholder:e.searchPlaceholder},null,8,cr),[[t.vModelText,e.searchText]]),n[8]||(n[8]=t.createElementVNode("img",{src:ar,alt:"search",class:"j-tw-tree-select-btn__search-icon"},null,-1))]),t.createElementVNode("div",ur,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",dr,[t.createVNode(c,{width:32,height:32}),n[9]||(n[9]=t.createElementVNode("p",{class:"j-tw-tree-select-btn__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,h=>(t.openBlock(),t.createBlock(m,{key:h.value,node:h,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:v})=>[t.renderSlot(e.$slots,"default",{node:v},()=>[t.createTextVNode(t.toDisplayString(v.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),t.createElementVNode("div",fr,[t.createVNode(y,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(y,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])])],4)):t.createCommentVNode("",!0)]),_:3})]))],6)}const pr=de(rr,[["render",hr]]),mr=t.defineComponent({name:"JTWTreeSelectInput",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption,JTWBtn:Ve,TreeNode:sn,JTWStatusImg:Ue},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{type:String,default:"default"},autoFill:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},allowRadioDeselect:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!1},bgGrey:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0,change:e=>!0,clear:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),m=t.ref(""),y=t.ref(new Set),h=t.ref(void 0),v=t.ref(new Set);t.watch(()=>e.data,L=>{e.defaultExpandFirst&&L.length>0&&y.value.size===0&&y.value.add(L[0].value)},{immediate:!0});const g=(L,S)=>{for(const H of L){if(H.value===S)return H;if(H.children){const ne=g(H.children,S);if(ne)return ne}}return null},k=L=>{if(!L.children||L.children.length===0)return[];const S=[];for(const H of L.children)S.push(H.value),S.push(...k(H));return S},u=(L,S)=>{for(const H of L)if(H.children){if(H.children.some(ie=>ie.value===S))return H;const ne=u(H.children,S);if(ne)return ne}return null},w=L=>{const S=u(e.data,L);return S&&S.children?S.children.map(H=>H.value).filter(H=>H!==L):e.data.map(H=>H.value).filter(H=>H!==L)},d=L=>{const S=u(e.data,L);S&&S.children&&(S.children.every(ne=>v.value.has(ne.value))?v.value.add(S.value):v.value.delete(S.value))},Q=L=>e.multiple?v.value.has(L):h.value===L,b=L=>{if(!L.children||L.children.length===0)return[];const S=[];for(const H of L.children)S.push(H.value),S.push(...b(H));return S},_=L=>{if(!e.multiple||!L.children||L.children.length===0)return!1;const S=b(L),H=S.filter(ne=>v.value.has(ne)).length;return H>0&&H<S.length},N=L=>e.multiple?v.value.has(L):h.value===L,B=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue.map(L=>{const S=g(e.data,L);return S?{value:S.value,label:S.label}:null}).filter(L=>L!==null);if(!Array.isArray(e.modelValue)){const L=g(e.data,e.modelValue);return L?[{value:L.value,label:L.label}]:[]}}return[]}),E=t.computed(()=>{if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue;if(!Array.isArray(e.modelValue))return e.modelValue}),R=(L,S)=>{if(!S)return L;const H=[];for(const ne of L){const ie=ne.label.toLowerCase().includes(S.toLowerCase()),V=ne.children?R(ne.children,S):[];(ie||V.length>0)&&(H.push({...ne,children:V.length>0?V:ne.children}),V.length>0&&y.value.add(ne.value))}return H},D=t.computed(()=>R(e.data,m.value)),x=t.computed(()=>e.autoFill?e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null:e.clearable),$=()=>{if(!o.value||!s.value)return;const L=o.value.getBoundingClientRect(),S=s.value.getBoundingClientRect(),ne=window.innerHeight-L.bottom,ie=L.top;let V=L.bottom+4;S.height>50&&ne<S.height+20&&ie>S.height+20&&(V=L.top-S.height-4),c.value={top:`${V}px`,left:`${L.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},C=()=>{e.disabled||(a.value=!0,e.multiple&&Array.isArray(e.modelValue)?v.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),m.value="",t.nextTick(()=>{t.nextTick(()=>{$()})}))},I=()=>{a.value=!1,m.value=""},p=L=>{L.target.closest(".el-select__clear")||L.preventDefault()},P=L=>{L.stopPropagation(),a.value||C()},K=L=>{L&&t.nextTick(()=>{var S;(S=i.value)==null||S.blur()})},Z=()=>{e.multiple?v.value.clear():h.value=void 0,n("update:modelValue",e.multiple?[]:void 0),n("clear"),n("change",e.multiple?[]:void 0),I()},le=L=>{y.value.has(L)?y.value.delete(L):(e.accordion&&w(L).forEach(H=>{y.value.delete(H)}),y.value.add(L))},Y=L=>{if(!L.disabled)if(e.multiple){const S=v.value.has(L.value),H=k(L);S?(v.value.delete(L.value),H.forEach(ie=>v.value.delete(ie))):(v.value.add(L.value),H.forEach(ie=>v.value.add(ie))),d(L.value);const ne=e.data.filter(ie=>v.value.has(ie.value));if(n("select",ne),e.autoFill){const ie=Array.from(v.value);n("update:modelValue",ie),n("change",ie)}e.autoClose&&I()}else h.value=L.value,n("select",L),e.autoFill&&(h.value!=null?(n("update:modelValue",h.value),n("change",h.value)):(n("update:modelValue",void 0),n("change",void 0))),e.autoClose&&h.value!=null&&I()},re=()=>{if(e.multiple){const L=Array.from(v.value),S=L.map(H=>g(e.data,H)).filter(H=>H!==null);n("update:modelValue",L),n("confirm",S.length>0?S:null),n("change",L)}else if(h.value!=null){const L=g(e.data,h.value);n("update:modelValue",h.value),n("confirm",L),n("change",h.value)}else n("update:modelValue",void 0),n("confirm",null),n("change",void 0);I()},O=()=>{n("cancel"),I()},j=L=>{if(!o.value||!s.value)return;const S=L.target;!o.value.contains(S)&&!s.value.contains(S)&&I()};return t.watch(a,L=>{L?(setTimeout(()=>{document.addEventListener("mousedown",j)},100),window.addEventListener("resize",$),window.addEventListener("scroll",$,!0)):(document.removeEventListener("mousedown",j),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",j),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0)}),r({get $el(){return o.value},focus:()=>{var L;(L=i.value)==null||L.focus()},blur:()=>{var L;(L=i.value)==null||L.blur()},openDropdown:C,closeDropdown:I}),{treeSelectInputRef:o,selectRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:m,expandedKeys:y,tempSelectedValue:h,tempSelectedValues:v,displayOptions:B,selectDisplayValue:E,filteredData:D,computedClearable:x,handleMouseDown:p,handleSelectClick:P,handleVisibleChange:K,handleClear:Z,toggleExpand:le,handleNodeClick:Y,handleConfirm:re,handleCancel:O,isNodeChecked:Q,isNodeIndeterminate:_,isNodeSelected:N}}}),gr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",wr={class:"j-tw-tree-select-input__search"},yr=["placeholder"],vr={class:"j-tw-tree-select-input__tree",ref:"treeContainerRef"},Qr={key:0,class:"j-tw-tree-select-input__empty"},kr={key:0,class:"j-tw-tree-select-input__footer"};function br(e,n,r,o,i,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select"),c=t.resolveComponent("JTWStatusImg"),m=t.resolveComponent("TreeNode"),y=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectInputRef",class:t.normalizeClass(["j-tw-tree-select-input",{"j-tw-tree-select-input--open":e.dropdownVisible,"j-tw-tree-select-input--bg-grey":e.bgGrey}]),onMousedown:n[2]||(n[2]=(...h)=>e.handleMouseDown&&e.handleMouseDown(...h))},[t.createVNode(a,{ref:"selectRef","model-value":e.selectDisplayValue,placeholder:e.placeholder,disabled:e.disabled,clearable:e.computedClearable,size:e.size,"popper-class":"j-tw-tree-select-input__hidden-popper",onClick:t.withModifiers(e.handleSelectClick,["stop"]),onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displayOptions,h=>(t.openBlock(),t.createBlock(l,{key:h.value,label:h.label,value:h.value,style:{display:"none"}},null,8,["label","value"]))),128))]),_:1},8,["model-value","placeholder","disabled","clearable","size","onClick","onClear","onVisibleChange"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-input__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",wr,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-input__search-input",placeholder:e.searchPlaceholder},null,8,yr),[[t.vModelText,e.searchText]]),n[3]||(n[3]=t.createElementVNode("img",{src:gr,alt:"search",class:"j-tw-tree-select-input__search-icon"},null,-1))]),t.createElementVNode("div",vr,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(c,{width:32,height:32}),n[4]||(n[4]=t.createElementVNode("p",{class:"j-tw-tree-select-input__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,h=>(t.openBlock(),t.createBlock(m,{key:h.value,node:h,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:v})=>[t.renderSlot(e.$slots,"default",{node:v},()=>[t.createTextVNode(t.toDisplayString(v.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",kr,[t.createVNode(y,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(y,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])]))],4)):t.createCommentVNode("",!0)]),_:3})]))],34)}const Mr=de(mr,[["render",br]]),Cr=t.defineComponent({name:"JTWDatePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD"},valueFormat:{type:String,default:"YYYY-MM-DD"},placeholder:{type:String,default:"选择日期范围"},startPlaceholder:{type:String,default:"开始日期"},endPlaceholder:{type:String,default:"结束日期"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var Q;n("change",d),e.validateEvent&&o&&((Q=o.validate)==null||Q.call(o,"change"))},c=d=>{var Q;n("blur",d),e.validateEvent&&o&&((Q=o.validate)==null||Q.call(o,"blur"))},m=d=>{n("focus",d)},y=()=>{n("clear")},h=d=>{n("visible-change",d)},v=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),g=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"本周",value:()=>{const d=new Date,Q=d.getDay(),b=Q===0?6:Q-1,_=new Date(d);_.setDate(d.getDate()-b),_.setHours(0,0,0,0);const N=new Date(_);return N.setDate(_.getDate()+6),N.setHours(23,59,59,999),[_,N]}},{text:"本月",value:()=>{const d=new Date,Q=new Date(d.getFullYear(),d.getMonth(),1),b=new Date(d.getFullYear(),d.getMonth()+1,0,23,59,59,999);return[Q,b]}},{text:"本年度",value:()=>{const d=new Date,Q=new Date(d.getFullYear(),0,1),b=new Date(d.getFullYear(),11,31,23,59,59,999);return[Q,b]}}]});return r({get $el(){return i.value},focus:()=>{var Q;const d=(Q=i.value)==null?void 0:Q.querySelector("input");d==null||d.focus()},blur:()=>{var Q;const d=(Q=i.value)==null?void 0:Q.querySelector("input");d==null||d.blur()}}),{datePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:v,computedShortcuts:g,handleChange:a,handleBlur:c,handleFocus:m,handleClear:y,handleVisibleChange:h}}}),_r="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Ar={class:"j-tw-date-picker__separator"};function Dr(e,n,r,o,i,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"datePickerRef",class:t.normalizeClass(["j-tw-date-picker",{"j-tw-date-picker--bg-grey":e.bgGrey,"j-tw-date-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"daterange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-date-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-date-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:_r,alt:"calendar",class:"j-tw-date-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",Ar,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const Nr=de(Cr,[["render",Dr]]),Ir=t.defineComponent({name:"JTWDateTimePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},placeholder:{type:String,default:"选择时间范围"},startPlaceholder:{type:String,default:"开始时间"},endPlaceholder:{type:String,default:"结束时间"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var Q;n("change",d),e.validateEvent&&o&&((Q=o.validate)==null||Q.call(o,"change"))},c=d=>{var Q;n("blur",d),e.validateEvent&&o&&((Q=o.validate)==null||Q.call(o,"blur"))},m=d=>{n("focus",d)},y=()=>{n("clear")},h=d=>{n("visible-change",d)},v=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),g=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"最近1小时",value:()=>{const d=new Date;return[new Date(d.getTime()-3600*1e3),d]}},{text:"今日",value:()=>{const d=new Date,Q=new Date(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0),b=new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59,999);return[Q,b]}},{text:"昨日",value:()=>{const d=new Date,Q=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,0,0,0,0),b=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,23,59,59,999);return[Q,b]}}]});return r({get $el(){return i.value},focus:()=>{var Q;const d=(Q=i.value)==null?void 0:Q.querySelector("input");d==null||d.focus()},blur:()=>{var Q;const d=(Q=i.value)==null?void 0:Q.querySelector("input");d==null||d.blur()}}),{dateTimePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:v,computedShortcuts:g,handleChange:a,handleBlur:c,handleFocus:m,handleClear:y,handleVisibleChange:h}}}),Sr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Tr={class:"j-tw-datetime-picker__separator"};function Lr(e,n,r,o,i,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"dateTimePickerRef",class:t.normalizeClass(["j-tw-datetime-picker",{"j-tw-datetime-picker--bg-grey":e.bgGrey,"j-tw-datetime-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"datetimerange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-datetime-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-datetime-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:Sr,alt:"calendar",class:"j-tw-datetime-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",Tr,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const Er=de(Ir,[["render",Lr]]),xr=t.defineComponent({name:"JTWPagination",components:{ElPagination:fe.ElPagination},props:{page:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},pagerCount:{type:Number,default:5},background:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:{sizeChange:e=>!0,currentChange:e=>!0,"update:page":e=>!0,"update:pageSize":e=>!0},setup(e,{emit:n}){return{handleSizeChange:i=>{n("sizeChange",i),n("update:pageSize",i),n("update:page",1)},handleCurrentChange:i=>{n("currentChange",i),n("update:page",i)}}}}),jr={class:"j-tw-pagination"};function zr(e,n,r,o,i,s){const l=t.resolveComponent("el-pagination");return t.openBlock(),t.createElementBlock("div",jr,[t.createVNode(l,{"pager-count":e.pagerCount,"page-sizes":e.pageSizes,"current-page":e.page,"page-size":e.pageSize,total:e.total,layout:e.layout,background:e.background,disabled:e.disabled,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["pager-count","page-sizes","current-page","page-size","total","layout","background","disabled","onSizeChange","onCurrentChange"])])}const cn=de(xr,[["render",zr]]),Br=t.defineComponent({name:"JTWTable",components:{JTWCheckbox:bt,JTWPagination:cn},props:{rows:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},loading:{type:Boolean,default:!1},height:{type:[String,Number],default:void 0},pagination:{type:[Object,Boolean],default:!1},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},bordered:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}},emits:{selectionChange:e=>!0,sortChange:e=>!0,sizeChange:e=>!0,currentChange:e=>!0,"update:pagination":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref([]),s=(b,_)=>typeof e.rowKey=="function"?e.rowKey(b):b[e.rowKey]??_,l=b=>{const _={};return b.width&&(_.width=typeof b.width=="number"?`${b.width}px`:b.width),b.minWidth&&(_.minWidth=typeof b.minWidth=="number"?`${b.minWidth}px`:b.minWidth),b.width||(_.flex="1"),_},a=b=>i.value.some(_=>s(_,-1)===s(b,-1)),c=t.computed(()=>e.rows.length>0&&e.rows.every(b=>a(b))),m=t.computed(()=>{const b=e.rows.filter(_=>a(_)).length;return b>0&&b<e.rows.length}),y=b=>{i.value=b?[...e.rows]:[],n("selectionChange",i.value)},h=(b,_)=>{_?a(b)||i.value.push(b):i.value=i.value.filter(N=>s(N,-1)!==s(b,-1)),n("selectionChange",i.value)},v=b=>{n("sortChange",b)},g=()=>{const b=e.pagination;return b||null},k=b=>{n("sizeChange",b);const _=g();_&&n("update:pagination",{..._,pageSize:b,page:1})},u=b=>{n("currentChange",b);const _=g();_&&n("update:pagination",{..._,page:b})};return r({get $el(){return o.value},tableRef:o,clearSelection:()=>{i.value=[],n("selectionChange",[])},toggleRowSelection:(b,_)=>{const N=_??!a(b);h(b,N)}}),{tableRef:o,selectedRows:i,isAllSelected:c,isIndeterminate:m,isRowSelected:a,getRowKey:s,getColStyle:l,emptyText:e.emptyText,handleSelectAll:y,handleRowSelect:h,handleSortChange:v,handleSizeChange:k,handleCurrentChange:u}}}),Or="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzBfMjcwXzUzODIzIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjODBBNkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMxNjVERkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJiZ2JsdXJfbWFzdGVyX3N2ZzFfMTMxM18wOTQ3NzFfY2xpcF9wYXRoIj48cGF0aCBkPSJNMjQgNEMyMi40ODY3NCA0IDIxLjE2OTc0NiAzLjE1OTY4MzIgMjAuNDkwMTkyIDEuOTIwMjI0MUMxOS45NTkxNjkgMC45NTE2NzQxIDE5LjEwNDU3IDAgMTggMEwyLjAwMDAwMDUgMEMwLjg5NTQzMDU2IDAgMCAwLjg5NTQzMDU2IDAgMi4wMDAwMDAyTDAgMjBDMCAyMi4yMDkxMzkgMS43OTA4NjExIDI0IDQuMDAwMDAxIDI0TDY4IDI0QzcwLjIwOTEzNyAyNCA3MiAyMi4yMDkxMzkgNzIgMjBMNzIgMi4wMDAwMDA1QzcyIDAuODk1NDMwNTYgNzEuMTA0NTY4IDAgNzAgMEw1NCAwQzUyLjg5NTQzMiAwIDUyLjA0MDgyOSAwLjk1MTY3NDIyIDUxLjUwOTgwOCAxLjkyMDIyNDFDNTAuODMwMjU0IDMuMTU5NjgzMiA0OS41MTMyNiA0IDQ4IDRMMjQgNFoiLz48L2NsaXBQYXRoPjxsaW5lYXJHcmFkaWVudCB4MT0iMC41IiB5MT0iMCIgeDI9IjAuNSIgeTI9IjEiIGlkPSJtYXN0ZXJfc3ZnMl8yNzBfNTM4MTciPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNDQ0RCRkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzk5QjhGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxTDgsNjhaIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcwXzI3MF81MzgyMykiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcxXzEzMTNfMDk0NzcxX2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcyXzI3MF81MzgxNykiIGZpbGwtb3BhY2l0eT0iMSIvPjwvc3ZnPg==",Fr={class:"j-tw-table__header"},Pr={key:0,class:"j-tw-table__header-cell j-tw-table__header-cell--selection"},Rr={key:1,class:"j-tw-table__header-cell",style:{width:"60px","flex-shrink":"0"}},$r={key:2,class:"j-tw-table__header-cell j-tw-table__header-cell--action"},Vr={class:"j-tw-table__body-wrapper"},Ur={key:0,class:"j-tw-table__body"},Wr={key:0,class:"j-tw-table__cell j-tw-table__cell--selection"},Zr={key:1,class:"j-tw-table__cell",style:{width:"60px","flex-shrink":"0"}},Yr={key:1},Gr={key:2,class:"j-tw-table__cell j-tw-table__cell--action"},Hr={key:1,class:"j-tw-table__empty"},Jr={class:"j-tw-table__empty-text"},Xr={key:0,class:"j-tw-table__pagination"};function Kr(e,n,r,o,i,s){const l=t.resolveComponent("JTWCheckbox"),a=t.resolveComponent("JTWPagination"),c=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-table",{"j-tw-table--dense":e.dense,"j-tw-table--fixed":e.height}]),style:t.normalizeStyle(e.height?{height:typeof e.height=="number"?`${e.height}px`:e.height}:{})},[t.renderSlot(e.$slots,"header"),t.createElementVNode("div",Fr,[e.selection?(t.openBlock(),t.createElementBlock("div",Pr,[t.createVNode(l,{"model-value":e.isAllSelected,indeterminate:e.isIndeterminate,onChange:n[0]||(n[0]=m=>e.handleSelectAll(!!m))},null,8,["model-value","indeterminate"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",Rr," 序号 ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"j-tw-table__header-cell",style:t.normalizeStyle(e.getColStyle(m))},t.toDisplayString(m.label),5))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",$r," 操作 ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vr,[e.rows&&e.rows.length>0?(t.openBlock(),t.createElementBlock("div",Ur,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,(m,y)=>(t.openBlock(),t.createElementBlock("div",{key:e.getRowKey(m,y),class:t.normalizeClass(["j-tw-table__row",{"j-tw-table__row--selected":e.isRowSelected(m)}])},[e.selection?(t.openBlock(),t.createElementBlock("div",Wr,[t.createVNode(l,{"model-value":e.isRowSelected(m),onChange:h=>e.handleRowSelect(m,!!h)},null,8,["model-value","onChange"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",Zr,t.toDisplayString(y+1),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,h=>(t.openBlock(),t.createElementBlock("div",{key:h.prop,class:t.normalizeClass(["j-tw-table__cell",`j-tw-table__cell--align-${h.align||"left"}`]),style:t.normalizeStyle(e.getColStyle(h))},[h.type==="slot"?t.renderSlot(e.$slots,`col-${h.prop}`,{key:0,row:m,$index:y,column:h}):(t.openBlock(),t.createElementBlock("span",Yr,t.toDisplayString(m[h.prop]??"-"),1))],6))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",Gr,[t.renderSlot(e.$slots,"action",{row:m,$index:y})])):t.createCommentVNode("",!0)],2))),128))])):(t.openBlock(),t.createElementBlock("div",Hr,[t.renderSlot(e.$slots,"empty",{},()=>[n[1]||(n[1]=t.createElementVNode("img",{class:"j-tw-table__empty-img",src:Or,alt:"no data"},null,-1)),t.createElementVNode("span",Jr,t.toDisplayString(e.emptyText),1)])]))]),e.pagination!==!1&&e.pagination?(t.openBlock(),t.createElementBlock("div",Xr,[t.createVNode(a,{page:e.pagination.page,"page-size":e.pagination.pageSize,total:e.pagination.total,"page-sizes":e.pagination.pageSizes,layout:e.pagination.layout,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])):t.createCommentVNode("",!0)],6)),[[c,e.loading]])}const qr=de(Br,[["render",Kr]]),eo=t.defineComponent({name:"JTWMessageItem",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},content:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},duration:{type:Number,default:3e3},showClose:{type:Boolean,default:!1},offset:{type:Number,default:52},onClose:{type:Function,default:void 0}},emits:{destroy:e=>!0},setup(e,{emit:n}){const r=t.ref(!1);let o;const i=t.computed(()=>({"j-tw-message":!0,[`j-tw-message--${e.type}`]:!0})),s=t.computed(()=>({top:`${e.offset}px`})),l=()=>{e.duration>0&&(o=window.setTimeout(()=>{c()},e.duration))},a=()=>{o&&(clearTimeout(o),o=void 0)},c=()=>{var v;r.value=!1,(v=e.onClose)==null||v.call(e)},m=()=>{n("destroy",e.id)},y=()=>{a()},h=()=>{l()};return t.onMounted(()=>{r.value=!0,l()}),{visible:r,computedClass:i,computedStyle:s,handleClose:c,handleAfterLeave:m,handleMouseEnter:y,handleMouseLeave:h}}}),to={class:"j-tw-message__icon"},no={key:0,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ro={key:1,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oo={key:2,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},io={key:3,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ao={key:4,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo=["innerHTML"],so={key:2,class:"j-tw-message__content"};function co(e,n,r,o,i,s){return t.openBlock(),t.createBlock(t.Transition,{name:"j-tw-message-fade",onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.computedClass),style:t.normalizeStyle(e.computedStyle),onMouseenter:n[1]||(n[1]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseleave:n[2]||(n[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[t.createElementVNode("div",to,[e.type==="success"?(t.openBlock(),t.createElementBlock("svg",no,[...n[3]||(n[3]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M11.5 5.5L7 10.5L4.5 8",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.type==="warning"?(t.openBlock(),t.createElementBlock("svg",ro,[...n[4]||(n[4]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M8 4.5V8.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"11",r:"0.75",fill:"white"},null,-1)])])):e.type==="error"?(t.openBlock(),t.createElementBlock("svg",oo,[...n[5]||(n[5]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M10.5 5.5L5.5 10.5M5.5 5.5L10.5 10.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):e.type==="info"?(t.openBlock(),t.createElementBlock("svg",io,[...n[6]||(n[6]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):(t.openBlock(),t.createElementBlock("svg",ao,[...n[7]||(n[7]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))]),e.html&&typeof e.content=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-message__content",innerHTML:e.content},null,8,lo)):typeof e.content=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:1,class:"j-tw-message__content"})):(t.openBlock(),t.createElementBlock("div",so,t.toDisplayString(e.content),1)),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-message__close",onClick:n[0]||(n[0]=(...l)=>e.handleClose&&e.handleClose(...l))},[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})],-1)])])):t.createCommentVNode("",!0)],38)):t.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])}const uo=de(eo,[["render",co]]),Ie=t.ref([]),fo=t.defineComponent({name:"JTWMessages",components:{MessageItem:uo},setup(){const e=r=>{const o=Ie.value.findIndex(i=>i.id===r);o!==-1&&Ie.value.splice(o,1)};return{messages:t.computed(()=>Ie.value.filter(r=>r.visible)),handleDestroy:e}}}),ho={class:"j-tw-message-container"};function po(e,n,r,o,i,s){const l=t.resolveComponent("MessageItem");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createElementVNode("div",ho,[t.createVNode(t.TransitionGroup,{name:"j-tw-message-list"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.messages,a=>(t.openBlock(),t.createBlock(l,{key:a.id,id:a.id,type:a.type,content:a.content,duration:a.duration,"show-close":a.showClose,offset:a.offset,"on-close":a.onClose,html:a.html,onDestroy:e.handleDestroy},null,8,["id","type","content","duration","show-close","offset","on-close","html","onDestroy"]))),128))]),_:1})])])}const un=de(fo,[["render",po]]),ft={WARN:"warn",INFO:"info",SUCCESS:"success",ERROR:"error"},mo=t.defineComponent({name:"JTWConfirmDialog",components:{JTWBtn:Ve},props:{visible:{type:Boolean,default:!1},message:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},icon:{type:String,default:ft.WARN},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:n}){const r=()=>{n("confirm")},o=()=>{n("cancel")},i=()=>{n("cancel")},s={warn:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10.001" cy="10" rx="8.333" ry="8.333" fill="#FF7D00"/><path d="M9.25,6 L9.25,11 Q9.25,11.75,10,11.75 Q10.75,11.75,10.75,11 L10.75,6 Q10.75,5.25,10,5.25 Q9.25,5.25,9.25,6 Z" fill="#FFFFFF"/><circle cx="10" cy="14" r="1" fill="#FFFFFF"/></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10" cy="10" rx="8" ry="8" fill="#165DFF"/><path d="M9.25,9 L9.25,14 Q9.25,14.75,10,14.75 Q10.75,14.75,10.75,14 L10.75,9 Q10.75,8.25,10,8.25 Q9.25,8.25,9.25,9 Z" fill="#FFFFFF"/><circle cx="10" cy="6.5" r="1" fill="#FFFFFF"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#00B42A"/><path d="M6 10 L9 13 L14 7" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#F53F3F"/><path d="M7 7 L13 13 M13 7 L7 13" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round"/></svg>'};return{iconSvg:t.computed(()=>s[e.icon??ft.WARN]),handleConfirm:r,handleCancel:o,handleMaskClick:i}}}),go={class:"j-tw-confirm-dialog__header"},wo=["innerHTML"],yo=["innerHTML"],vo={key:2,class:"j-tw-confirm-dialog__message"},Qo={class:"j-tw-confirm-dialog__footer"};function ko(e,n,r,o,i,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-confirm-dialog-fade"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__mask",onClick:n[1]||(n[1]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a))},[t.createElementVNode("div",{class:"j-tw-confirm-dialog__wrapper",onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",go,[t.createElementVNode("span",{class:"j-tw-confirm-dialog__icon",innerHTML:e.iconSvg},null,8,wo),e.html&&typeof e.message=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__message",innerHTML:e.message},null,8,yo)):typeof e.message=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.message),{key:1,class:"j-tw-confirm-dialog__message"})):(t.openBlock(),t.createElementBlock("span",vo,t.toDisplayString(e.message),1))]),t.createElementVNode("div",Qo,[t.createVNode(l,{label:e.cancelText||"取消",flat:"",onClick:e.handleCancel},null,8,["label","onClick"]),t.createVNode(l,{label:e.confirmText||"确定",onClick:e.handleConfirm},null,8,["label","onClick"])])])])):t.createCommentVNode("",!0)]),_:1})])}const dn=de(mo,[["render",ko]]),fn={CENTER:"center",RIGHT:"right"},hn={SM:"sm",MD:"md",LG:"lg"},pn={BOTH:"both",CANCEL_ONLY:"cancel-only",CONFIRM_ONLY:"confirm-only"};var bo={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const Fe=new Map;let Ae={};const Re={configure(e){Ae=e},async register(e){try{console.log("[twDialog] 开始注册 dialog, props:",e);const n=e.dialogId||Math.random().toString(36).slice(2),r={...e,dialogId:n},o=t.ref(null),i=Ae.locale||bo;console.log("[twDialog] 创建 WrapperComponent...");const s={setup(){return{dialogRef:o}},render(){return t.h(fe.ElConfigProvider,{locale:i},{default:()=>t.h(mn,{...r,ref:m=>{console.log("[twDialog] ref 回调被调用, el:",m),o.value=m}})})}};console.log("[twDialog] 创建 Vue app...");const l=t.createApp(s);Ae.router&&l.use(Ae.router),Ae.store&&l.use(Ae.store),Ae.i18n&&l.use(Ae.i18n),Ae.plugins&&Ae.plugins.forEach(m=>l.use(m)),console.log("[twDialog] 挂载 app...");const a=document.createElement("div");l.mount(a),console.log("[twDialog] app 已挂载, mountEl:",a),await t.nextTick(),console.log("[twDialog] nextTick 后, dialogRef.value:",o.value);const c=o.value;if(!c)throw new Error("dialogRef.value 为 null,组件可能没有正确挂载");return Fe.set(n,{app:l,appInstance:c}),t.nextTick(()=>{c&&(console.log("[twDialog] 调用 appInstance.open()"),c.open())}),console.log("[twDialog] 注册成功, 返回 appInstance"),c}catch(n){throw console.error("[twDialog] 注册失败:",n),console.error("[twDialog] 错误堆栈:",n instanceof Error?n.stack:"无堆栈信息"),n}},destroy(e){const n=Fe.get(e);if(n){try{const r=n.app._container;n.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}Fe.delete(e)}},destroyAll(){Fe.forEach((e,n)=>{try{const r=e.app._container;e.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}}),Fe.clear()}};async function Mo(e){return Re.register(e)}const Co=t.defineComponent({name:"JTWDialog",components:{JTWBtn:Ve},props:{dialogId:{type:String},title:{type:String,default:""},position:{type:String,default:fn.CENTER},size:{type:String,default:hn.MD},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerMode:{type:String,default:pn.BOTH},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},component:{default:null},componentBind:{type:Object,default:()=>({})},componentOn:{type:Object,default:()=>({})},closeOnMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},footerExtra:{type:Object,default:null},bodyPadded:{type:Boolean,default:!0},width:{type:String,default:""},topOffset:{type:String,default:"0px"}},setup(e,{expose:n}){var C;const r=t.ref(!1),o=t.ref(null),i=t.ref(null),s=t.ref(!1),l=t.ref(e.cancelText),a=t.ref(e.confirmText),c=t.ref(((C=e.footerExtra)==null?void 0:C.bind)||{}),m=t.ref(e.width),y=t.computed(()=>e.position==="right"?"j-tw-dialog-slide-right":"j-tw-dialog-fade"),h=t.computed(()=>`j-tw-dialog__wrapper--${e.size}`),v=t.computed(()=>{const I={};return e.topOffset!=="0px"&&(I.height=`calc(100vh - ${e.topOffset})`,I.top=e.topOffset),I}),g=t.computed(()=>{const I={};return m.value&&(I.width=m.value,I.maxWidth=m.value),e.position==="right"&&e.topOffset!=="0px"&&(I.height=`calc(100vh - ${e.topOffset})`,I.maxHeight=`calc(100vh - ${e.topOffset})`),I}),k=t.computed(()=>{var I;return{...e.componentBind,dialogInstance:{...((I=e.componentBind)==null?void 0:I.dialogInstance)||{},open:w,close:d,setLoading:Q,changeCancelText:b,changeConfirmText:_,setFooterExtraBind:N,setDialogWidth:B}}}),u=t.computed(()=>{var I;return{...(I=e.footerExtra)==null?void 0:I.bind,...c.value}}),w=()=>{r.value=!0,t.nextTick(()=>{var I;(I=o.value)==null||I.focus()})},d=()=>{r.value=!1},Q=I=>{s.value=I},b=I=>{l.value=I},_=I=>{a.value=I},N=I=>{c.value={...c.value,...I}},B=I=>{m.value=I},E=()=>{e.closeOnMask&&d()},R=()=>{e.closeOnEsc&&d()},D=()=>{const I=i.value;I!=null&&I.handleClickCancel?I.handleClickCancel():d()},x=()=>{const I=i.value;I!=null&&I.handleClickConfirm&&I.handleClickConfirm()},$=()=>{e.dialogId&&Re.destroy(e.dialogId)};return t.onErrorCaptured((I,p,P)=>(console.error("[JTWDialog] Component error captured:",I,P),!1)),n({open:w,close:d,setLoading:Q,changeCancelText:b,changeConfirmText:_,setFooterExtraBind:N,setDialogWidth:B,loading:s}),{visible:r,maskRef:o,dynamicCompRef:i,loading:s,cancelText:l,confirmText:a,transitionName:y,sizeClass:h,maskStyle:v,wrapperStyle:g,computedComponentBind:k,computedFooterExtraBind:u,open:w,close:d,setLoading:Q,changeCancelText:b,changeConfirmText:_,handleMaskClick:E,handleEscKey:R,handleClickCancel:D,handleClickConfirm:x,handleAfterLeave:$}}}),_o={key:0,class:"j-tw-dialog__header"},Ao={class:"j-tw-dialog__title"},Do={class:"j-tw-dialog__error"},No={style:{"font-size":"12px",color:"#999","margin-top":"8px"}},Io={key:2,class:"j-tw-dialog__loading"},So={key:1,class:"j-tw-dialog__footer-extra"},To={key:2,class:"j-tw-dialog__footer"};function Lo(e,n,r,o,i,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:e.transitionName,onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-dialog__mask",{"j-tw-dialog__mask--right":e.position==="right"}]),style:t.normalizeStyle(e.maskStyle),onClick:n[2]||(n[2]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a)),onKeydown:n[3]||(n[3]=t.withKeys((...a)=>e.handleEscKey&&e.handleEscKey(...a),["esc"])),tabindex:"-1",ref:"maskRef"},[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__wrapper",`j-tw-dialog__wrapper--${e.position}`,e.sizeClass]),style:t.normalizeStyle(e.wrapperStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[e.showHeader?(t.openBlock(),t.createElementBlock("div",_o,[t.createElementVNode("span",Ao,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createElementVNode("button",{class:"j-tw-dialog__close",onClick:n[0]||(n[0]=(...a)=>e.close&&e.close(...a)),type:"button"},[...n[4]||(n[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__body",{"j-tw-dialog__body--no-padding":!e.bodyPadded}])},[e.component?(t.openBlock(),t.createBlock(t.Suspense,{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component),t.mergeProps(e.computedComponentBind,t.toHandlers(e.componentOn||{}),{ref:"dynamicCompRef"}),null,16))]),fallback:t.withCtx(()=>[...n[5]||(n[5]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),error:t.withCtx(({error:a})=>[t.createElementVNode("div",Do,[n[6]||(n[6]=t.createElementVNode("p",null,"组件加载失败",-1)),t.createElementVNode("p",No,t.toDisplayString((a==null?void 0:a.message)||"请刷新页面重试"),1)])]),_:1})):t.renderSlot(e.$slots,"default",{key:1}),e.loading?(t.openBlock(),t.createElementBlock("div",Io,[...n[7]||(n[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})],-1)])])):t.createCommentVNode("",!0)],2),e.footerExtra?(t.openBlock(),t.createElementBlock("div",So,[(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.footerExtra.component),t.normalizeProps(t.guardReactiveProps(e.computedFooterExtraBind)),null,16))]),fallback:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),_:1}))])):t.createCommentVNode("",!0),e.showFooter?(t.openBlock(),t.createElementBlock("div",To,[e.footerMode==="both"||e.footerMode==="cancel-only"?(t.openBlock(),t.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleClickCancel},null,8,["label","onClick"])):t.createCommentVNode("",!0),e.footerMode==="both"||e.footerMode==="confirm-only"?(t.openBlock(),t.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleClickConfirm},null,8,["label","onClick"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6)],38)):t.createCommentVNode("",!0)]),_:3},8,["name","onAfterLeave"])])}const mn=de(Co,[["render",Lo]]),Eo=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},innerValue:{type:[String,Number,Array],default:void 0},innerValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},shouldShowCheckbox:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),xo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",jo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",zo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Bo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Oo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",Fo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Po="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Ro={key:0,src:xo,alt:"collapse",class:"j-tw-tree-select__expand-icon"},$o={key:1,src:jo,alt:"expand",class:"j-tw-tree-select__expand-icon"},Vo={key:2,class:"j-tw-tree-select__expand-placeholder"},Uo={key:0,src:zo,alt:"indeterminate",class:"j-tw-tree-select__checkbox-icon"},Wo={key:1,src:Bo,alt:"checked",class:"j-tw-tree-select__checkbox-icon"},Zo={key:2,src:Oo,alt:"unchecked",class:"j-tw-tree-select__checkbox-icon"},Yo={key:0,src:Fo,alt:"selected",class:"j-tw-tree-select__checkbox-icon"},Go={key:1,src:Po,alt:"unselected",class:"j-tw-tree-select__checkbox-icon"};function Ho(e,n,r,o,i,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select__node",{"j-tw-tree-select__node--disabled":e.node.disabled},{"j-tw-tree-select__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"})},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",Ro)):(t.openBlock(),t.createElementBlock("img",$o))])):(t.openBlock(),t.createElementBlock("div",Vo)),e.shouldShowCheckbox(e.node)?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-tree-select__checkbox",onClick:n[1]||(n[1]=t.withModifiers(a=>e.handleNodeClick(e.node),["stop"]))},[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",Uo)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",Wo)):(t.openBlock(),t.createElementBlock("img",Zo))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.innerValue===e.node.value?(t.openBlock(),t.createElementBlock("img",Yo)):(t.openBlock(),t.createElementBlock("img",Go))],64))])):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"j-tw-tree-select__node-label",onClick:n[2]||(n[2]=a=>e.handleNodeClick(e.node))},[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])]),e.node.count?(t.openBlock(),t.createElementBlock("span",{key:4,class:"j-tw-tree-select__node-count",onClick:n[3]||(n[3]=a=>e.handleNodeClick(e.node))},t.toDisplayString(e.node.count),1)):t.createCommentVNode("",!0)],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:m})=>[t.renderSlot(e.$slots,"default",{node:m},()=>[t.createTextVNode(t.toDisplayString(m.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const Jo=de(Eo,[["render",Ho]]),Xo=t.defineComponent({name:"JTWTreeSelect",components:{TreeNode:Jo,JTWStatusImg:Ue},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入关键词搜索"},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkIndependently:{type:Boolean,default:!1},nodeDataMap:{type:Object,default:()=>({})},selectedDataValues:{type:Array,default:()=>[]},maxHeight:{type:Number,default:void 0},externalSearchText:{type:String,default:""},bordered:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},validateEvent:{type:Boolean,default:!0},defaultExpandFirst:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,n)=>!0,blur:e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(""),l=t.ref(new Set),a=t.ref(e.modelValue),c=t.ref(new Set),m=D=>{if(!D||D.length===0)return;const x=C=>C.find(I=>I.children&&Array.isArray(I.children)&&I.children.length>0);let $=x(D);for(;$&&($.children&&Array.isArray($.children)&&$.children.length>0);)l.value.add($.value),$=x($.children)};t.watch(()=>e.data,D=>{e.defaultExpandFirst&&D.length>0&&l.value.size===0&&m(D)},{immediate:!0,deep:!0}),t.watch(()=>e.modelValue,D=>{a.value=D,e.multiple&&Array.isArray(D)&&(c.value=new Set(D))},{immediate:!0});const y=(D,x)=>{for(const $ of D){if($.value===x)return $;if($.children){const C=y($.children,x);if(C)return C}}return null},h=D=>{if(!D.children||D.children.length===0)return[];const x=[];for(const $ of D.children)x.push($.value),x.push(...h($));return x},v=(D,x)=>{for(const $ of D)if($.children){if($.children.some(I=>I.value===x))return $;const C=v($.children,x);if(C)return C}return null},g=D=>{const x=v(e.data,D);return x&&x.children?x.children.map($=>$.value).filter($=>$!==D):e.data.map($=>$.value).filter($=>$!==D)},k=D=>{if(!e.checkStrictly)return;const x=v(e.data,D);x&&x.children&&(x.children.every(C=>c.value.has(C.value))?c.value.add(x.value):c.value.delete(x.value),k(x.value))},u=D=>e.multiple?c.value.has(D):a.value===D,w=D=>{if(!e.multiple||!D.children||D.children.length===0||!e.checkStrictly)return!1;const x=D.children.map(C=>C.value),$=x.filter(C=>c.value.has(C)).length;return $>0&&$<x.length},d=D=>e.multiple?c.value.has(D):a.value===D,Q=D=>e.checkStrictly||e.checkIndependently?!0:!D.children||D.children.length===0,b=(D,x)=>{if(!x)return D;const $=[];for(const C of D){const I=C.label.toLowerCase().includes(x.toLowerCase()),p=C.children?b(C.children,x):[];(I||p.length>0)&&($.push({...C,children:p.length>0?p:C.children}),p.length>0&&l.value.add(C.value))}return $},_=D=>{if(!e.nodeDataMap||Object.keys(e.nodeDataMap).length===0)return D;const x=new Set(e.selectedDataValues);return D.map($=>{const C=e.nodeDataMap[$.value];let I="";if(C&&Array.isArray(C)){const p=C.length;I=`(${C.filter(K=>x.has(K.value)).length}/${p})`}return{...$,count:I,children:$.children?_($.children):$.children}})},N=t.computed(()=>{const D=e.externalSearchText||s.value,x=b(e.data,D);return _(x)});t.watch(()=>e.externalSearchText,D=>{D!=null&&(s.value="")});const B=D=>{l.value.has(D)?l.value.delete(D):(e.accordion&&g(D).forEach($=>{l.value.delete($)}),l.value.add(D))},E=D=>{var x,$;if(!D.disabled){if(!e.checkStrictly&&!e.checkIndependently&&D.children&&D.children.length>0){B(D.value);return}if(e.multiple){const C=c.value.has(D.value),I=h(D);C?(c.value.delete(D.value),e.checkStrictly&&!e.checkIndependently&&I.forEach(K=>c.value.delete(K))):(c.value.add(D.value),e.checkStrictly&&!e.checkIndependently&&I.forEach(K=>c.value.add(K))),e.checkStrictly&&!e.checkIndependently&&k(D.value);const p=Array.from(c.value),P=p.map(K=>y(e.data,K)).filter(K=>K!==null);n("update:modelValue",p),n("change",p,P.length>0?P:null),e.validateEvent&&o&&((x=o.validate)==null||x.call(o,"change"))}else if(a.value!==D.value){a.value=D.value;const C=y(e.data,D.value);n("update:modelValue",D.value),n("change",D.value,C),e.validateEvent&&o&&(($=o.validate)==null||$.call(o,"change"))}}};return r({get $el(){return i.value}}),{treeSelectRef:i,searchText:s,expandedKeys:l,innerValue:a,innerValues:c,filteredData:N,toggleExpand:B,handleNodeClick:E,isNodeChecked:u,isNodeIndeterminate:w,isNodeSelected:d,shouldShowCheckbox:Q}}}),Ko="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",qo={key:0,class:"j-tw-tree-select__search"},e2=["placeholder"],t2={key:0,class:"j-tw-tree-select__empty"};function n2(e,n,r,o,i,s){const l=t.resolveComponent("JTWStatusImg"),a=t.resolveComponent("TreeNode");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(["j-tw-tree-select",{"j-tw-tree-select--borderless":!e.bordered,"j-tw-tree-select--no-search":!e.showSearch}])},[e.showSearch?(t.openBlock(),t.createElementBlock("div",qo,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=c=>e.searchText=c),type:"text",class:"j-tw-tree-select__search-input",placeholder:e.searchPlaceholder},null,8,e2),[[t.vModelText,e.searchText]]),n[1]||(n[1]=t.createElementVNode("img",{src:Ko,alt:"search",class:"j-tw-tree-select__search-icon"},null,-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-tree-select__tree",style:t.normalizeStyle({maxHeight:e.maxHeight?`${e.maxHeight}px`:"none"})},[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",t2,[t.createVNode(l,{width:32,height:32}),n[2]||(n[2]=t.createElementVNode("p",{class:"j-tw-tree-select__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,c=>(t.openBlock(),t.createBlock(a,{key:c.value,node:c,level:0,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:m})=>[t.renderSlot(e.$slots,"default",{node:m},()=>[t.createTextVNode(t.toDisplayString(m.label),1)])]),_:3},8,["node","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128))],4)],2)}const r2=de(Xo,[["render",n2]]),o2=t.defineComponent({name:"JTWFormLabel",props:{label:{type:String},labelClass:{type:[String,Object,Array]},valueClass:{type:[String,Object,Array]},vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},slots:Object,setup(e,{slots:n}){const r=t.computed(()=>{const i=!!e.label||!!n.label;return e.horizontal?!0:i});return{directionClass:t.computed(()=>e.vertical?"form-label--vertical":e.horizontal?"form-label--horizontal":"form-label--vertical"),showLabel:r,slots:n}}}),i2={class:"label-content"},a2={class:"form-content"},l2={class:"form-value__inner"},s2={class:"form-item-detail-wrapper"};function c2(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-form-label",[e.directionClass,{required:e.required}]])},[e.showLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-label",[e.labelClass,{required:e.required}]])},[t.createElementVNode("div",i2,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(e.$slots,"label-hint")])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",a2,[t.createElementVNode("div",{class:t.normalizeClass(["form-value",e.valueClass])},[t.createElementVNode("div",l2,[t.renderSlot(e.$slots,"default")])],2),t.createElementVNode("div",s2,[t.renderSlot(e.$slots,"form-item-detail")])])],2)}const u2=de(o2,[["render",c2]]),d2=t.defineComponent({name:"JTWForm",components:{ElForm:fe.ElForm},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({validate:(...i)=>r.value.validate(...i),validateField:(...i)=>r.value.validateField(...i),resetFields:(...i)=>r.value.resetFields(...i),scrollToField:(...i)=>r.value.scrollToField(...i),clearValidate:(...i)=>r.value.clearValidate(...i)}),{elFormRef:r}}});function f2(e,n,r,o,i,s){const l=t.resolveComponent("el-form");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormRef"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const h2=de(d2,[["render",f2]]),p2=t.defineComponent({name:"JTWFormItem",components:{ElFormItem:fe.ElFormItem},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({get size(){var i;return((i=r.value)==null?void 0:i.size)||""},get validateMessage(){var i;return((i=r.value)==null?void 0:i.validateMessage)||""},get validateState(){var i;return((i=r.value)==null?void 0:i.validateState)||""},validate:(...i)=>r.value.validate(...i),clearValidate:()=>r.value.clearValidate(),resetField:()=>r.value.resetField()}),{elFormItemRef:r}}});function m2(e,n,r,o,i,s){const l=t.resolveComponent("el-form-item");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormItemRef"},e.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.label?{name:"label",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"label")]),key:"0"}:void 0,e.$slots.error?{name:"error",fn:t.withCtx(({error:a})=>[t.renderSlot(e.$slots,"error",{error:a})]),key:"1"}:void 0]),1040)}const g2=de(p2,[["render",m2]]),w2=t.defineComponent({name:"JTWSelect",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})}},setup(e,{expose:n,attrs:r}){const o=t.ref(null),i=t.ref(!1),s=t.computed(()=>{var y;return((y=e.props)==null?void 0:y.label)||"label"}),l=t.computed(()=>{var y;return((y=e.props)==null?void 0:y.value)||"value"}),a=t.computed(()=>r.multiple!==void 0&&r.multiple!==!1),c=y=>{i.value=y};return n({focus:()=>{var y;return(y=o.value)==null?void 0:y.focus()},blur:()=>{var y;return(y=o.value)==null?void 0:y.blur()}}),{elSelectRef:o,dropdownVisible:i,labelKey:s,valueKey:l,isMultiple:a,handleVisibleChange:c}}});function y2(e,n,r,o,i,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elSelectRef",class:["tw-select",{"tw-select--bg-grey":e.bgGrey,"tw-select--open":e.dropdownVisible,"tw-select--multiple":e.isMultiple}],"popper-class":"tw-select-popper"},e.$attrs,{onVisibleChange:e.handleVisibleChange}),t.createSlots({default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:c[e.valueKey],label:c[e.labelKey],value:c[e.valueKey],disabled:c.disabled},null,8,["label","value","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.header?{name:"header",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"header")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"footer")]),key:"3"}:void 0]),1040,["class","onVisibleChange"])}const v2=de(w2,[["render",y2]]),Q2=t.defineComponent({name:"JTWCheckboxGroup",components:{ElCheckboxGroup:fe.ElCheckboxGroup,ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function k2(e,n,r,o,i,s){const l=t.resolveComponent("el-checkbox"),a=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elCheckboxGroupRef",class:"j-tw-checkbox-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const b2=de(Q2,[["render",k2]]),M2=t.defineComponent({name:"JTWRadio",components:{ElRadio:fe.ElRadio},inheritAttrs:!1,setup(){return{}}});function C2(e,n,r,o,i,s){const l=t.resolveComponent("el-radio");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elRadioRef",class:"j-tw-radio"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const _2=de(M2,[["render",C2]]),A2=t.defineComponent({name:"JTWRadioGroup",components:{ElRadioGroup:fe.ElRadioGroup,ElRadio:fe.ElRadio},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function D2(e,n,r,o,i,s){const l=t.resolveComponent("el-radio"),a=t.resolveComponent("el-radio-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elRadioGroupRef",class:"j-tw-radio-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const N2=de(A2,[["render",D2]]),$t={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},Vt={DARK:"dark",LIGHT:"light"},Ut={HOVER:"hover",CLICK:"click",FOCUS:"focus",CONTEXTMENU:"contextmenu"},I2=t.defineComponent({name:"JTWTooltip",components:{ElTooltip:fe.ElTooltip},props:{content:{type:[String,Number],default:""},placement:{type:String,default:$t.TOP,validator:e=>Object.values($t).includes(e)},effect:{type:String,default:Vt.DARK,validator:e=>Object.values(Vt).includes(e)},trigger:{type:String,default:Ut.HOVER,validator:e=>Object.values(Ut).includes(e)},showArrow:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},offset:{type:Number,default:5},disabled:{type:Boolean,default:!1},popperClass:{type:String,default:void 0},popperStyle:{type:[String,Object],default:void 0}},emits:{"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.computed(()=>e.content!=null?String(e.content):""),s=t.computed(()=>{const c=["j-tw-tooltip-popper"];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),l=c=>{n("visible-change",c)};return r({get $el(){var c;return(c=o.value)==null?void 0:c.$el},show:()=>{var c,m,y;(y=(m=(c=o.value)==null?void 0:c.popperRef)==null?void 0:m.show)==null||y.call(m)},hide:()=>{var c,m,y;(y=(m=(c=o.value)==null?void 0:c.popperRef)==null?void 0:m.hide)==null||y.call(m)}}),{computedPopperClass:s,elTooltipRef:o,handleVisibleChange:l,tooltipContent:i}}});function S2(e,n,r,o,i,s){const l=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(l,{ref:"elTooltipRef",content:e.tooltipContent,placement:e.placement,effect:e.effect,trigger:e.trigger,"show-arrow":e.showArrow,"show-after":e.openDelay,"hide-after":e.closeDelay,offset:e.offset,disabled:e.disabled,"popper-class":e.computedPopperClass,"popper-style":e.popperStyle,onVisibleChange:e.handleVisibleChange},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.content?{name:"content",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"content")]),key:"0"}:void 0]),1032,["content","placement","effect","trigger","show-arrow","show-after","hide-after","offset","disabled","popper-class","popper-style","onVisibleChange"])}const T2=de(I2,[["render",S2]]),L2=t.defineComponent({name:"JTWToggle",components:{ElSwitch:fe.ElSwitch},props:{modelValue:{type:[Boolean,String,Number],default:!1},trueValue:{type:[Boolean,String,Number],default:!0},falseValue:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0},leftLabel:{type:Boolean,default:!1},color:{type:String,default:void 0},keepColor:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:void 0},icon:{type:String,default:void 0},checkedIcon:{type:String,default:void 0},uncheckedIcon:{type:String,default:void 0},iconColor:{type:String,default:void 0},size:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:n}){const r=t.computed(()=>e.size&&["","default","small","large"].includes(e.size)?e.size:e.dense?"small":"default"),o=t.computed(()=>{const a={};return e.color&&(a["--el-switch-on-color"]=e.color,e.keepColor&&(a["--el-switch-off-color"]=e.color)),a}),i=t.computed(()=>{const a=[];return e.dense&&a.push("j-tw-toggle--dense"),e.readonly&&a.push("j-tw-toggle--readonly"),a});return{computedSize:r,computedStyle:o,computedClass:i,handleUpdateModelValue:a=>{e.readonly||n("update:modelValue",a)},handleChange:a=>{e.readonly||n("change",a)}}}});function E2(e,n,r,o,i,s){const l=t.resolveComponent("el-switch");return t.openBlock(),t.createBlock(l,{"model-value":e.modelValue,"active-value":e.trueValue,"inactive-value":e.falseValue,"active-text":e.leftLabel?e.label:void 0,"inactive-text":!e.leftLabel&&e.label?e.label:void 0,"active-icon":e.checkedIcon,"inactive-icon":e.uncheckedIcon,disabled:e.disable,size:e.computedSize,name:e.name,id:e.id,tabindex:e.tabindex,"validate-event":e.validateEvent,style:t.normalizeStyle(e.computedStyle),class:t.normalizeClass(e.computedClass),"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange},t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),key:"0"}:void 0]),1032,["model-value","active-value","inactive-value","active-text","inactive-text","active-icon","inactive-icon","disabled","size","name","id","tabindex","validate-event","style","class","onUpdate:modelValue","onChange"])}const x2=de(L2,[["render",E2],["__scopeId","data-v-8bf04c8a"]]);var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={exports:{}},j2=He.exports,Wt;function z2(){return Wt||(Wt=1,(function(e){(function(n,r){e.exports?e.exports=r():n.coordtransform=r()})(j2,function(){var n=52.35987755982988,r=3.141592653589793,o=6378245,i=.006693421622965943,s=function(u,w){var u=+u,w=+w,d=u-.0065,Q=w-.006,b=Math.sqrt(d*d+Q*Q)-2e-5*Math.sin(Q*n),_=Math.atan2(Q,d)-3e-6*Math.cos(d*n),N=b*Math.cos(_),B=b*Math.sin(_);return[N,B]},l=function(w,u){var u=+u,w=+w,d=Math.sqrt(w*w+u*u)+2e-5*Math.sin(u*n),Q=Math.atan2(u,w)+3e-6*Math.cos(w*n),b=d*Math.cos(Q)+.0065,_=d*Math.sin(Q)+.006;return[b,_]},a=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var d=m(w-105,u-35),Q=y(w-105,u-35),b=u/180*r,_=Math.sin(b);_=1-i*_*_;var N=Math.sqrt(_);d=d*180/(o*(1-i)/(_*N)*r),Q=Q*180/(o/N*Math.cos(b)*r);var B=u+d,E=w+Q;return[E,B]},c=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var d=m(w-105,u-35),Q=y(w-105,u-35),b=u/180*r,_=Math.sin(b);_=1-i*_*_;var N=Math.sqrt(_);d=d*180/(o*(1-i)/(_*N)*r),Q=Q*180/(o/N*Math.cos(b)*r);var B=u+d,E=w+Q;return[w*2-E,u*2-B]},m=function(w,u){var u=+u,w=+w,d=-100+2*w+3*u+.2*u*u+.1*w*u+.2*Math.sqrt(Math.abs(w));return d+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,d+=(20*Math.sin(u*r)+40*Math.sin(u/3*r))*2/3,d+=(160*Math.sin(u/12*r)+320*Math.sin(u*r/30))*2/3,d},y=function(w,u){var u=+u,w=+w,d=300+w+2*u+.1*w*w+.1*w*u+.1*Math.sqrt(Math.abs(w));return d+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,d+=(20*Math.sin(w*r)+40*Math.sin(w/3*r))*2/3,d+=(150*Math.sin(w/12*r)+300*Math.sin(w/30*r))*2/3,d},h=function(w,u){var u=+u,w=+w;return!(w>73.66&&w<135.05&&u>3.86&&u<53.55)};return{bd09togcj02:s,gcj02tobd09:l,wgs84togcj02:a,gcj02towgs84:c}})})(He)),He.exports}var B2=z2();const gn=Mt(B2);function $e(e){if(!e||!Array.isArray(e)||e.length<2)return!1;const[n,r]=e;return!isNaN(n)&&!isNaN(r)&&n!==null&&r!==null}function Le(e){return!e||!Array.isArray(e)||e.length===0?[]:e.filter(n=>$e(n)).map(n=>{if(n.length>=2)try{const[r,o]=gn.wgs84togcj02(n[0],n[1]);return[r,o]}catch(r){return console.warn("Coordinate transformation failed:",n,r),n}return n})}function ht(e){return Array.isArray(e)&&e.length>0&&Array.isArray(e[0])&&e[0].length>0&&Array.isArray(e[0][0])}function Ct(e,n){if(!Number.isFinite(e)||!Number.isFinite(n))return null;try{const[r,o]=gn.wgs84togcj02(e,n);return[r,o]}catch{return null}}var Je={exports:{}},O2=Je.exports,Zt;function F2(){return Zt||(Zt=1,(function(e,n){(function(r,o){e.exports=o()})(O2,function(){function r(h){var v=[];return h.AMapUI&&v.push(o(h.AMapUI)),h.Loca&&v.push(i(h.Loca)),Promise.all(v)}function o(h){return new Promise(function(v,g){var k=[];if(h.plugins)for(var u=0;u<h.plugins.length;u+=1)l.AMapUI.plugins.indexOf(h.plugins[u])==-1&&k.push(h.plugins[u]);if(a.AMapUI===s.failed)g("前次请求 AMapUI 失败");else if(a.AMapUI===s.notload){a.AMapUI=s.loading,l.AMapUI.version=h.version||l.AMapUI.version,u=l.AMapUI.version;var w=document.body||document.head,d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/ui/"+u+"/main.js",d.onerror=function(Q){a.AMapUI=s.failed,g("请求 AMapUI 失败")},d.onload=function(){if(a.AMapUI=s.loaded,k.length)window.AMapUI.loadUI(k,function(){for(var Q=0,b=k.length;Q<b;Q++){var _=k[Q].split("/").slice(-1)[0];window.AMapUI[_]=arguments[Q]}for(v();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()});else for(v();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},w.appendChild(d)}else a.AMapUI===s.loaded?h.version&&h.version!==l.AMapUI.version?g("不允许多个版本 AMapUI 混用"):k.length?window.AMapUI.loadUI(k,function(){for(var Q=0,b=k.length;Q<b;Q++){var _=k[Q].split("/").slice(-1)[0];window.AMapUI[_]=arguments[Q]}v()}):v():h.version&&h.version!==l.AMapUI.version?g("不允许多个版本 AMapUI 混用"):c.AMapUI.push(function(Q){Q?g(Q):k.length?window.AMapUI.loadUI(k,function(){for(var b=0,_=k.length;b<_;b++){var N=k[b].split("/").slice(-1)[0];window.AMapUI[N]=arguments[b]}v()}):v()})})}function i(h){return new Promise(function(v,g){if(a.Loca===s.failed)g("前次请求 Loca 失败");else if(a.Loca===s.notload){a.Loca=s.loading,l.Loca.version=h.version||l.Loca.version;var k=l.Loca.version,u=l.AMap.version.startsWith("2"),w=k.startsWith("2");if(u&&!w||!u&&w)g("JSAPI 与 Loca 版本不对应!!");else{u=l.key,w=document.body||document.head;var d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/loca?v="+k+"&key="+u,d.onerror=function(Q){a.Loca=s.failed,g("请求 AMapUI 失败")},d.onload=function(){for(a.Loca=s.loaded,v();c.Loca.length;)c.Loca.splice(0,1)[0]()},w.appendChild(d)}}else a.Loca===s.loaded?h.version&&h.version!==l.Loca.version?g("不允许多个版本 Loca 混用"):v():h.version&&h.version!==l.Loca.version?g("不允许多个版本 Loca 混用"):c.Loca.push(function(Q){Q?g(Q):g()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var s;(function(h){h.notload="notload",h.loading="loading",h.loaded="loaded",h.failed="failed"})(s||(s={}));var l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMapUI:[],Loca:[]},m=[],y=function(h){typeof h=="function"&&(a.AMap===s.loaded?h(window.AMap):m.push(h))};return{load:function(h){return new Promise(function(v,g){if(a.AMap==s.failed)g("");else if(a.AMap==s.notload){var k=h.key,u=h.version,w=h.plugins;k?(window.AMap&&location.host!=="lbs.amap.com"&&g("禁止多种API加载方式混用"),l.key=k,l.AMap.version=u||l.AMap.version,l.AMap.plugins=w||l.AMap.plugins,a.AMap=s.loading,u=document.body||document.head,window.___onAPILoaded=function(Q){if(delete window.___onAPILoaded,Q)a.AMap=s.failed,g(Q);else for(a.AMap=s.loaded,r(h).then(function(){v(window.AMap)}).catch(g);m.length;)m.splice(0,1)[0]()},w=document.createElement("script"),w.type="text/javascript",w.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+l.AMap.version+"&key="+k+"&plugin="+l.AMap.plugins.join(","),w.onerror=function(Q){a.AMap=s.failed,g(Q)},u.appendChild(w)):g("请填写key")}else if(a.AMap==s.loaded)if(h.key&&h.key!==l.key)g("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)g("不允许多个版本 JSAPI 混用");else{if(k=[],h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&k.push(h.plugins[u]);k.length?window.AMap.plugin(k,function(){r(h).then(function(){v(window.AMap)}).catch(g)}):r(h).then(function(){v(window.AMap)}).catch(g)}else if(h.key&&h.key!==l.key)g("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)g("不允许多个版本 JSAPI 混用");else{var d=[];if(h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&d.push(h.plugins[u]);y(function(){d.length?window.AMap.plugin(d,function(){r(h).then(function(){v(window.AMap)}).catch(g)}):r(h).then(function(){v(window.AMap)}).catch(g)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMap:[],AMapUI:[],Loca:[]}}}})})(Je)),Je.exports}var P2=F2();const R2=Mt(P2);let qe="",pt="";const $2="2.0";function V2(e){qe=e.key,pt=e.securityCode}function U2(){typeof window<"u"&&pt&&(window._AMapSecurityConfig={securityJsCode:pt})}function W2(){typeof window<"u"&&(window.forceWebGL=!0)}let Pe=null,st=null;const ct=new Set;function Z2(e){return e!=null&&e.length?Array.from(new Set(e.filter(Boolean))):[]}async function Y2(){if(!(typeof window.Loca<"u")){if(!st){const e=`https://webapi.amap.com/loca?v=2.0.0&key=${qe}`;st=new Promise((n,r)=>{const o=document.createElement("script");o.type="text/javascript",o.src=e,o.onload=()=>n(),o.onerror=i=>r(i),document.head.appendChild(o)})}await st}}async function G2(e={}){const{plugins:n=[],withLoca:r=!1}=e,o=Z2(n),i=typeof window<"u"?window:null;if(i!=null&&i.AMap&&!Pe&&(console.warn("[AMap Loader] 检测到已存在的 AMap 实例,将复用现有实例"),Pe=Promise.resolve(i.AMap)),!Pe){if(!qe)throw new Error("AMap key 未配置,请在 twcptInit 中设置 amap.key");U2(),W2(),o.forEach(a=>ct.add(a)),Pe=R2.load({key:qe,version:$2,plugins:o})}const s=await Pe;if(typeof window<"u"){const a=window;a.AMap||(a.AMap=s)}const l=o.filter(a=>!ct.has(a));return l.length&&typeof(s==null?void 0:s.plugin)=="function"&&(await new Promise(a=>{s.plugin(l,()=>a())}),l.forEach(a=>ct.add(a))),r&&await Y2(),s}const H2=[116.407428,39.91923];function J2(e){const{center:n,zoom:r,viewMode:o,mapType:i,isDark:s}=e;let l=null,a=null,c=null;async function m(w){if(!w)return null;try{await G2({plugins:["AMap.DistrictSearch"]})}catch(E){return console.error("AMap 加载失败:",E),null}const d=window.AMap;if(!d)return null;const Q=n.value;let b=H2;const _=Ct(Q[0],Q[1]);_&&$e(_)&&(b=_);const N=o.value,B=N==="3D";return l=new d.Map(w,{zoom:r.value,center:b,mapStyle:s.value?"amap://styles/dark":"amap://styles/whitesmoke",viewMode:N,...B&&{pitch:50,rotateEnable:!0,pitchEnable:!0}}),i.value==="satellite"&&(a=new d.TileLayer.Satellite,l.add(a)),c=new d.InfoWindow({isCustom:!0,offset:new d.Pixel(0,-40),closeWhenClickMap:!0}),l}function y(){l&&(c&&(c.close(),c=null),a&&(l.remove(a),a=null),l.destroy(),l=null)}function h(){return l}function v(){return c}function g(w){l&&l.setMapStyle(w?"amap://styles/dark":"amap://styles/whitesmoke")}function k(w){l&&typeof l.setViewMode=="function"&&l.setViewMode(w)}function u(w){if(!l)return;const d=window.AMap;w==="satellite"?(a||(a=new d.TileLayer.Satellite),l.add(a)):(a&&(l.remove(a),a=null),l.setMapStyle(s.value?"amap://styles/dark":"amap://styles/whitesmoke"))}return{initMap:m,destroyMap:y,getMap:h,getInfoWindow:v,setMapStyle:g,setViewMode:k,setMapType:u}}const X2=[116.398,39.92],Te={completed:"#00B42A",notCollected:"#E6A23C",defaultHighlight:"#165dff",single:"#00B42A"},K2="#FF8C00",ve={polyline:40,polylineHighlight:45,polylineBorder:44,track:50,startMarker:60,pointLabel:10};function q2(e){const{getMap:n,lineArr:r,mapLineArr:o,trackLineArr:i,highlightLineIndex:s,highlightStrokeColor:l,routeCompletedList:a,startPointIcon:c}=e;let m=null;const y=[];let h=null;function v(){const k=n();k&&(m&&(k.remove(m),m=null),y.forEach(u=>k.remove(u)),y.length=0,h&&(k.remove(h),h=null))}function g(){const k=n();if(!k)return;v();const u=r.value||[],w=o.value||[],d=i.value||[],Q=s.value,b=l.value||Te.defaultHighlight,_=w.length>0||d.length>0;if(!_&&(!u||u.length===0))return;const N=window.AMap;if(_){const E=ve.polyline;if([w,d].forEach((R,D)=>{if(!R||R.length===0)return;const x=D===0;R.forEach($=>{const C=Le($);if(C.length===0)return;const I=new N.Polyline({path:C,strokeColor:x?Te.completed:Te.notCollected,strokeWeight:2,strokeOpacity:.85,strokeStyle:x?"solid":"dashed",lineJoin:"round",lineCap:"round",zIndex:E});y.push(I),k.add(I)})}),Q>=0&&Array.isArray(u[Q])&&u[Q].length>0){const R=Le(u[Q]);if(R.length>0){const D=new N.Polyline({path:R,strokeColor:b,strokeWeight:3,strokeOpacity:.95,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});y.push(D),k.add(D)}}if(u[0]&&u[0].length>0){const R=Le(u[0]);R.length>0&&(h=new N.Marker({position:R[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),k.add(h))}y.length>0&&k.setFitView(y)}else if(u&&u.length>0&&ht(u)){const B=a.value||[],E=B.length>0,R=E?Te.notCollected:Te.completed,D=E?3:2,x=3,$=10,C=[];if(u.forEach((I,p)=>{const P=Le(I);if(P.length===0)return;const K=p===Q,Z=E&&(B[p]===!0||B[p]===2),le=E&&Z?Te.completed:R;if(E&&K){const Y=new N.Polyline({path:P,strokeColor:b,strokeWeight:$,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineBorder}),re=new N.Polyline({path:P,strokeColor:le,strokeWeight:D,strokeOpacity:1,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});y.push(Y,re),C.push({polyline:Y,isHighlight:!0}),C.push({polyline:re,isHighlight:!0})}else{const Y=new N.Polyline({path:P,strokeColor:le,strokeWeight:K?x:D,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:K?ve.polylineHighlight:ve.polyline});y.push(Y),C.push({polyline:Y,isHighlight:K})}}),C.filter(I=>!I.isHighlight).forEach(I=>k.add(I.polyline)),C.filter(I=>I.isHighlight).forEach(I=>k.add(I.polyline)),u[0]&&u[0].length>0){const I=Le(u[0]);I.length>0&&(h=new N.Marker({position:I[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),k.add(h))}y.length>0&&k.setFitView(y)}else{const B=Le(u);B.length>0&&(m=new N.Polyline({path:B,strokeColor:Te.single,strokeWeight:3,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polyline}),k.add(m),h=new N.Marker({position:B[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),k.add(h),k.setFitView(m)),m&&k.setFitView([m])}}return{drawPolyline:g,clear:v}}const wn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='48'%20height='96'%20viewBox='0%200%2048%2096'%3e%3cdefs%3e%3cfilter%20id='master_svg0_421_65730'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.25'%20y='-0.1875'%20width='1.5'%20height='1.5'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='master_svg1_421_65786'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.2222222222222222'%20y='-0.12830338404351957'%20width='1.4444444444444444'%20height='1.3421423574493856'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3cg%3e%3cg%3e%3cg%20filter='url(%23master_svg0_421_65730)'%3e%3cellipse%20cx='24'%20cy='70'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,70Q42,70.441875,41.978317,70.883217Q41.956638,71.324562,41.91333,71.764309Q41.870018,72.20405600000001,41.805176,72.641148Q41.740341,73.078239,41.654137,73.511623Q41.567928,73.945007,41.460564,74.373642Q41.353195,74.802277,41.22493,75.225124Q41.096657,75.647972,40.947792,76.064016Q40.798927,76.480061,40.629829,76.8883Q40.460732,77.296539,40.271805,77.695992Q40.082878,78.09544199999999,39.874582000000004,78.485142Q39.666283,78.87484,39.439114000000004,79.253849Q39.211945,79.632858,38.966452000000004,80.000263Q38.720959,80.367668,38.457733000000005,80.722586Q38.19451,81.07750300000001,37.914187999999996,81.419079Q37.633865,81.760653,37.337118000000004,82.08806Q37.040373,82.415466,36.727920999999995,82.727921Q36.415465999999995,83.040373,36.08806,83.337118Q35.760653000000005,83.633865,35.419078999999996,83.914188Q35.077503,84.19451000000001,34.722586,84.457733Q34.367667999999995,84.720959,34.000263000000004,84.966452Q33.632858,85.211945,33.253849,85.439114Q32.87484,85.66628299999999,32.485141999999996,85.874582Q32.095442,86.082878,31.69599,86.271805Q31.296539,86.46073200000001,30.8883,86.629829Q30.480061,86.79892699999999,30.064016,86.94779199999999Q29.647972,87.096657,29.225124,87.22492600000001Q28.802277,87.353195,28.373642,87.460564Q27.945007,87.567928,27.511623,87.65413699999999Q27.078239,87.740341,26.641148,87.80518000000001Q26.204056,87.870018,25.764309,87.91333Q25.324562,87.956638,24.883219,87.978321Q24.441875,88,24,88Q23.558125,88,23.116781,87.978317Q22.675439,87.956638,22.235692,87.91333Q21.795944,87.870018,21.358851,87.805176Q20.921759,87.740341,20.488374999999998,87.65413699999999Q20.05499,87.567928,19.626357,87.460564Q19.197724,87.353195,18.774877,87.22493Q18.352028,87.096657,17.9359827,86.94779199999999Q17.519937499999997,86.79892699999999,17.1116982,86.629829Q16.7034588,86.46073200000001,16.3040075,86.271805Q15.9045577,86.082878,15.5148587,85.874582Q15.1251593,85.66628299999999,14.74615,85.439114Q14.3671408,85.211945,13.9997349,84.966452Q13.632329,84.720959,13.2774119,84.457733Q12.9224939,84.19451000000001,12.580920200000001,83.914188Q12.239346000000001,83.633865,11.9119382,83.337118Q11.5845304,83.040373,11.2720778,82.727921Q10.9596248,82.415466,10.6628797,82.08806Q10.3661346,81.760653,10.0858119,81.419079Q9.805489099999999,81.07750300000001,9.5422643,80.722586Q9.2790396,80.367668,9.0335469,80.000263Q8.78805423,79.632858,8.56088501,79.253849Q8.33371574,78.87484,8.12541722,78.485142Q7.917118691,78.09544199999999,7.72819272,77.69599Q7.53926674,77.296539,7.3701684499999995,76.8883Q7.20107013,76.480061,7.05220687,76.064016Q6.9033437,75.647972,6.775074,75.225124Q6.6468045,74.802277,6.5394375,74.373642Q6.4320707,73.945007,6.3458651,73.511623Q6.2596595,73.078239,6.1948229999999995,72.641148Q6.1299863000000006,72.20405600000001,6.0866749,71.764309Q6.0433636,71.324562,6.0216818,70.883219Q6,70.441875,6,70Q6,69.558125,6.0216818,69.116781Q6.0433636,68.675439,6.0866748,68.235692Q6.1299863000000006,67.795944,6.1948229,67.358851Q6.2596595,66.921759,6.3458651,66.488375Q6.4320707,66.05499,6.5394375,65.626357Q6.6468045,65.197724,6.775074,64.774877Q6.9033437,64.352028,7.05220693,63.9359827Q7.20107019,63.5199375,7.37016851,63.1116982Q7.53926679,62.7034588,7.72819275,62.3040075Q7.917118743,61.9045577,8.12541726,61.5148587Q8.33371574,61.1251593,8.56088495,60.74615Q8.78805423,60.3671408,9.0335469,59.9997349Q9.2790396,59.632329,9.5422645,59.2774119Q9.805489099999999,58.9224939,10.0858119,58.5809202Q10.3661346,58.239346,10.6628797,57.9119382Q10.9596248,57.5845304,11.2720778,57.2720778Q11.5845304,56.9596248,11.9119382,56.6628797Q12.239346000000001,56.3661346,12.580920200000001,56.0858119Q12.9224939,55.8054891,13.2774115,55.5422643Q13.632329,55.2790396,13.9997349,55.0335469Q14.3671408,54.78805423,14.74615,54.56088501Q15.125158800000001,54.33371574,15.5148578,54.12541722Q15.9045568,53.917118691,16.3040066,53.72819272Q16.7034569,53.53926674,17.111697200000002,53.37016845Q17.5199366,53.20107013,17.9359818,53.05220687Q18.352027,52.9033437,18.774876,52.775074000000004Q19.197723,52.6468045,19.626356,52.5394375Q20.054989,52.4320707,20.488374,52.3458651Q20.921759,52.2596595,21.35885,52.194823Q21.795944,52.1299863,22.235692,52.0866749Q22.675439,52.0433636,23.116781,52.0216818Q23.558125,52,24,52Q24.441875,52,24.883217,52.0216818Q25.324562,52.0433636,25.764309,52.0866748Q26.204056,52.1299863,26.641148,52.1948229Q27.078239,52.2596595,27.511623,52.3458651Q27.945007,52.4320707,28.373642,52.5394375Q28.802277,52.6468045,29.225124,52.775074000000004Q29.647972,52.9033437,30.064016,53.05220693Q30.480061,53.20107019,30.8883,53.37016851Q31.296539,53.53926679,31.695992,53.72819275Q32.095442,53.917118743,32.485141999999996,54.12541726Q32.87484,54.33371574,33.253849,54.56088495Q33.632858,54.78805423,34.000263000000004,55.0335469Q34.367667999999995,55.2790396,34.722586,55.5422645Q35.077503,55.8054891,35.419078999999996,56.0858119Q35.760653000000005,56.3661346,36.08806,56.6628797Q36.415465999999995,56.9596248,36.727920999999995,57.2720778Q37.040373,57.5845304,37.337118000000004,57.9119382Q37.633865,58.239346,37.914187999999996,58.5809202Q38.19451,58.9224939,38.457733000000005,59.2774115Q38.720959,59.632329,38.966452000000004,59.9997349Q39.211945,60.3671408,39.439114000000004,60.74615Q39.666283,61.1251588,39.874582000000004,61.5148578Q40.082878,61.9045568,40.271805,62.3040066Q40.460732,62.7034569,40.629829,63.1116972Q40.798927,63.5199366,40.947792,63.9359818Q41.096657,64.35202699999999,41.224926,64.774876Q41.353195,65.197723,41.460564,65.626356Q41.567928,66.054989,41.654137,66.488374Q41.740341,66.921759,41.80518,67.35885Q41.870018,67.795944,41.91333,68.235692Q41.956638,68.675439,41.978321,69.116781Q42,69.558125,42,70ZM40,70Q40,69.60722200000001,39.980726000000004,69.214917Q39.961454,68.822613,39.922956,68.431726Q39.884457,68.04083800000001,39.826824,67.652311Q39.769189999999995,67.263784,39.692561999999995,66.878554Q39.615933999999996,66.493323,39.520496,66.11231599999999Q39.42506,65.73131000000001,39.311043,65.355445Q39.197025,64.979579,39.064701,64.609761Q38.932377,64.239943,38.782067999999995,63.8770638Q38.63176,63.514184,38.463825,63.1591167Q38.295891,62.8040504,38.110737,62.4576511Q37.925583,62.1112518,37.723653999999996,61.7743554Q37.521725,61.4374585,37.303509,61.1108756Q37.085293,60.7842927,36.851316,60.468811Q36.61734,60.1533289,36.368164,59.8497076Q36.118988,59.5460863,35.855215,59.2550569Q35.591442,58.9640274,35.313705,58.6862912Q35.035969,58.408555,34.744942,58.1447821Q34.453911000000005,57.8810084,34.150290999999996,57.6318328Q33.846668,57.3826571,33.531185,57.1486793Q33.215702,56.9147017,32.889117999999996,56.696486Q32.562534,56.4782701,32.225639,56.2763419Q31.888744,56.0744138,31.542347,55.8892597Q31.195946,55.7041054,30.840878,55.5361711Q30.485809,55.3682369,30.122932,55.2179273Q29.760052,55.0676178,29.390236,54.93529487Q29.020416,54.80297196,28.644554,54.68895459Q28.268688,54.57493716,27.88768,54.47949991Q27.506674,54.38406265,27.121443,54.30743548Q26.736212,54.2308083,26.347687,54.17317583Q25.95916,54.11554334,25.568275,54.077044368Q25.177387,54.038545396,24.785082,54.019272698Q24.392776,54,24,54Q23.607222,54,23.214917,54.019272698Q22.822613,54.038545396,22.431725999999998,54.077044368Q22.040838,54.11554334,21.652310999999997,54.17317581Q21.263784,54.2308083,20.878554,54.30743548Q20.493323,54.38406265,20.112316,54.47949988Q19.73131,54.57493716,19.355445,54.68895459Q18.979579,54.80297196,18.609761,54.93529487Q18.239943,55.0676178,17.877063800000002,55.2179273Q17.514184,55.3682369,17.1591167,55.5361711Q16.8040504,55.7041053,16.4576511,55.8892596Q16.111251799999998,56.0744138,15.774355400000001,56.2763419Q15.4374585,56.4782701,15.1108756,56.696486Q14.7842927,56.9147017,14.468810999999999,57.1486793Q14.1533289,57.3826568,13.8497076,57.6318326Q13.546086299999999,57.8810081,13.2550569,58.1447816Q12.964027399999999,58.408555,12.6862912,58.6862912Q12.408555,58.9640274,12.1447821,59.2550569Q11.881008399999999,59.5460863,11.6318328,59.8497076Q11.3826571,60.1533289,11.1486793,60.468811Q10.9147017,60.7842932,10.696486,61.1108761Q10.4782701,61.437459,10.2763419,61.7743554Q10.0744138,62.1112518,9.8892597,62.4576511Q9.7041054,62.8040504,9.5361711,63.1591167Q9.3682369,63.514184,9.2179273,63.8770638Q9.0676178,64.239943,8.93529487,64.60976Q8.80297196,64.979579,8.68895459,65.355445Q8.57493716,65.73131000000001,8.47949991,66.11231599999999Q8.38406265,66.493323,8.30743548,66.878554Q8.2308083,67.263784,8.17317583,67.652311Q8.11554334,68.04083800000001,8.077044368,68.431726Q8.038545396,68.822613,8.019272698,69.214918Q8,69.60722200000001,8,70Q8,70.392776,8.019272698,70.785082Q8.038545396,71.177387,8.077044368,71.568274Q8.11554334,71.95916,8.17317581,72.347685Q8.2308083,72.736212,8.30743548,73.121443Q8.38406265,73.506674,8.47949988,73.88768Q8.57493716,74.268688,8.68895459,74.644554Q8.80297196,75.020416,8.93529487,75.39023399999999Q9.0676178,75.760052,9.2179273,76.12293199999999Q9.3682369,76.485809,9.5361711,76.840878Q9.7041053,77.19594599999999,9.889259599999999,77.542345Q10.0744138,77.888744,10.2763419,78.225639Q10.4782701,78.562534,10.696486,78.889118Q10.9147017,79.215702,11.1486793,79.531185Q11.3826568,79.846668,11.6318326,80.150291Q11.881008099999999,80.453911,12.1447816,80.74494Q12.408555,81.035969,12.6862912,81.313705Q12.964027399999999,81.591442,13.2550569,81.855215Q13.546086299999999,82.118988,13.8497076,82.36816400000001Q14.1533289,82.61734,14.468810999999999,82.851316Q14.7842932,83.08529300000001,15.110876099999999,83.30350899999999Q15.437459,83.521725,15.774355400000001,83.723654Q16.111251799999998,83.925583,16.4576511,84.110739Q16.8040504,84.295891,17.1591167,84.463827Q17.514184,84.63176,17.877063800000002,84.78207Q18.239943,84.93238099999999,18.60976,85.06470300000001Q18.979579,85.197025,19.355445,85.31104500000001Q19.73131,85.42506,20.112316,85.520498Q20.493323,85.615936,20.878554,85.692562Q21.263784,85.76919,21.652310999999997,85.82682199999999Q22.040838,85.884457,22.431725999999998,85.922956Q22.822613,85.961454,23.214918,85.980728Q23.607222,86,24,86Q24.392776,86,24.785082,85.980726Q25.177387,85.961454,25.568274,85.922956Q25.95916,85.884457,26.347685,85.826824Q26.736212,85.76919,27.121443,85.692562Q27.506674,85.615934,27.88768,85.52049600000001Q28.268688,85.42506,28.644554,85.311043Q29.020416,85.197025,29.390234,85.064701Q29.760052,84.932377,30.122932,84.782068Q30.485809,84.63176,30.840878,84.463825Q31.195946,84.295891,31.542345,84.110737Q31.888744,83.925583,32.225639,83.723654Q32.562534,83.521725,32.889117999999996,83.30350899999999Q33.215702,83.08529300000001,33.531185,82.851316Q33.846668,82.61734,34.150290999999996,82.36816400000001Q34.453911000000005,82.118988,34.74494,81.855215Q35.035969,81.591442,35.313705,81.313705Q35.591442,81.035969,35.855215,80.74494200000001Q36.118988,80.453911,36.368164,80.150291Q36.61734,79.846668,36.851316,79.531185Q37.085293,79.215702,37.303509,78.889118Q37.521725,78.562534,37.723653999999996,78.225639Q37.925583,77.888744,38.110738999999995,77.542347Q38.295891,77.19594599999999,38.463826999999995,76.840878Q38.63176,76.485809,38.782070000000004,76.12293199999999Q38.932381,75.760052,39.064703,75.390236Q39.197025,75.020416,39.311045,74.644554Q39.42506,74.268688,39.520498,73.88768Q39.615936000000005,73.506674,39.692561999999995,73.121443Q39.769189999999995,72.736212,39.826822,72.34768700000001Q39.884457,71.95916,39.922956,71.568275Q39.961454,71.177387,39.980728,70.785082Q40,70.392776,40,70Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='16'%20y='62'%20width='16'%20height='16'%20rx='1'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M16,63.0000001L16,64L32,64L32,63.0000001C32,62.44771528,31.552284999999998,62,31,62L17.0000001,62C16.44771528,62,16,62.44771528,16,63.0000001Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='26'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='16'%20y='64'%20width='16'%20height='1'%20rx='0'%20fill='%2300D4FF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M19,64L20.25,65L27.75,65L29,64L19,64Z'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='23.75'%20y='62'%20width='0.5'%20height='16'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%20filter='url(%23master_svg1_421_65786)'%3e%3cpath%20d='M32.232849,38.006882Q32.781176,37.724861,33.308915999999996,37.405979Q33.836655,37.087097,34.341335,36.732849Q34.846019999999996,36.378601,35.325277,35.990648Q35.804535,35.602694,36.256119,35.182852Q36.707706,34.763014,37.129503,34.313255Q37.5513,33.863499000000004,37.94133,33.385929000000004Q38.331364,32.908363,38.687801,32.405226Q39.044235,31.902086,39.365406,31.375734Q39.686577,30.849384,39.970978,30.302292Q40.255379,29.755196,40.501671,29.18992Q40.747971,28.624649,40.955002,28.043846Q41.162037,27.463043,41.328838,26.869432Q41.495644,26.275826,41.621441,25.672194Q41.747231,25.068562,41.831421,24.457733Q41.915615,23.846909,41.957809,23.231754Q42,22.6166,42,22Q42,21.558125,41.978317,21.116783Q41.956635,20.675438,41.913326,20.235691Q41.870014,19.795943,41.805176,19.358851Q41.740341,18.921759,41.654133,18.488374Q41.567924,18.054989,41.46056,17.626356Q41.353195,17.197723,41.224926,16.774877Q41.096657,16.352028,40.947792,15.935983Q40.798927,15.519938,40.629829,15.111698Q40.460728,14.703459,40.271801,14.304008Q40.082878,13.9045582,39.87458,13.5148592Q39.666283,13.1251593,39.43911,12.74615Q39.211945,12.3671408,38.96645,11.9997349Q38.720955,11.632329,38.457729,11.2774119Q38.194508,10.9224944,37.914185,10.580920200000001Q37.633862,10.2393465,37.337116,9.9119387Q37.040371,9.5845308,36.727920999999995,9.2720776Q36.415465999999995,8.9596248,36.08806,8.662879499999999Q35.760653000000005,8.366134599999999,35.419078999999996,8.0858121Q35.077503,7.8054891,34.722586,7.5422642Q34.367667999999995,7.2790394,34.000263000000004,7.0335464000000005Q33.632858,6.788054,33.253849,6.5608847Q32.87484,6.3337154,32.48514,6.1254170000000006Q32.095439999999996,5.9171184,31.69599,5.7281923Q31.296539,5.5392665,30.888298,5.3701682Q30.480059,5.2010698,30.064014,5.0522066Q29.647972,4.90334344,29.225124,4.77507389Q28.802277,4.64680433,28.373642,4.53943741Q27.945007,4.43207049,27.511623,4.34586489Q27.078239,4.25965932,26.641148,4.19482279Q26.204056,4.12998626,25.764309,4.086674914Q25.324562,4.043363571,24.883219,4.021681786Q24.441875,4,24,4Q23.558125,4,23.116783,4.021681786Q22.675438,4.043363571,22.235691,4.086674914Q21.795943,4.12998626,21.358851,4.19482279Q20.921759,4.25965932,20.488374,4.34586489Q20.054989,4.43207049,19.626356,4.53943741Q19.197723,4.64680433,18.774877,4.77507389Q18.352028,4.90334344,17.935983,5.0522068Q17.519938,5.2010698,17.111698,5.3701682Q16.703459000000002,5.5392665,16.304008,5.7281924Q15.9045582,5.9171185,15.5148592,6.125417199999999Q15.1251593,6.3337157,14.74615,6.560885Q14.3671408,6.788054,13.9997349,7.0335467000000005Q13.632329,7.2790394,13.2774119,7.542263999999999Q12.9224944,7.8054888,12.580920200000001,8.0858116Q12.2393465,8.366134200000001,11.9119387,8.662879499999999Q11.5845308,8.9596248,11.2720776,9.2720776Q10.9596248,9.5845308,10.662879499999999,9.9119387Q10.366134599999999,10.2393465,10.0858121,10.580920200000001Q9.805489099999999,10.9224944,9.5422642,11.2774115Q9.2790394,11.632329,9.0335464,11.9997349Q8.788053999999999,12.3671398,8.560884699999999,12.7461491Q8.333715399999999,13.1251583,8.125417,13.5148582Q7.9171184,13.9045563,7.7281923,14.304007Q7.5392665,14.703457,7.3701682,15.111697Q7.2010698,15.519937,7.0522066,15.935982Q6.90334344,16.352028,6.77507389,16.774877Q6.64680433,17.197723,6.53943741,17.626356Q6.43207049,18.054989,6.34586489,18.488374Q6.25965932,18.921759,6.19482279,19.358851Q6.12998626,19.795944,6.086674914,20.235693Q6.043363571,20.67544,6.021681786,21.116783Q6,21.558125,6,22Q6,22.61661,6.042195804,23.231773Q6.084391609,23.846939,6.16858539,24.457773Q6.25277919,25.068609,6.37857616,25.672251Q6.50437319,26.27589,6.67118365,26.869509Q6.8379940999999995,27.463127,7.045036,28.043938Q7.2520778,28.624748,7.4983803,29.190029Q7.7446828,29.75531,8.0290914,30.302412Q8.3134997,30.849514,8.6346805,31.37587Q8.9558616,31.902225,9.312308999999999,32.405369Q9.6687565,32.908512,10.0587993,33.386082Q10.4488425,33.863655,10.8706522,34.313414Q11.2924619,34.763174,11.7440605,35.183014Q12.195659599999999,35.602856,12.6749306,35.990807000000004Q13.154201,36.378761,13.6588964,36.733006Q14.1635923,37.08725,14.6913471,37.406132Q15.219101,37.72501,15.7674398,38.007027L21.316826,49.105801Q22.146006,50.76416,24.000107,50.76416Q25.85421,50.76416,26.68339,49.105801L32.232849,38.006882Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%20transform='matrix(-1,0,0,-1,64,100)'%3e%3cpath%20d='M40.894427300000004,51.7888544L47.276393,64.552786C47.608844,65.217687,47.125348,66,46.381966,66L33.6180344,66C32.87465209,66,32.39115629,65.217687,32.72360682,64.552786L39.105572699999996,51.7888546C39.4740968,51.0518059,40.5259027,51.0518059,40.894427300000004,51.7888544'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M30.9347535,63.658358Q30.1867377,65.154384,31.06608164,66.577192Q31.945424803,68,33.6180344,68L46.381967,68Q48.054579000000004,68,48.93392,66.57719Q49.813261,65.154384,49.065247,63.65836L42.683282,50.89442706Q41.8541021,49.23606777,40,49.23606795Q38.1458969,49.23606819,37.3167186,50.89442742L30.9347535,63.658358ZM47.276393,64.552786L40.894427300000004,51.7888544C40.5259027,51.0518059,39.4740968,51.0518059,39.105572699999996,51.7888546L32.72360682,64.552786C32.39115629,65.217687,32.87465209,66,33.6180344,66L46.381966,66C47.125348,66,47.608844,65.217687,47.276393,64.552786Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cellipse%20cx='24'%20cy='22'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,22Q42,22.441875,41.978317,22.883217Q41.956638,23.324562,41.91333,23.764309Q41.870018,24.204056,41.805176,24.641148Q41.740341,25.078239,41.654137,25.511623Q41.567928,25.945007,41.460564,26.373642Q41.353195,26.802277,41.22493,27.225124Q41.096657,27.647972,40.947792,28.064016Q40.798927,28.480061,40.629829,28.8883Q40.460732,29.296539,40.271805,29.695992Q40.082878,30.095442,39.874582000000004,30.485142Q39.666283,30.87484,39.439114000000004,31.253849Q39.211945,31.632858,38.966452000000004,32.000263000000004Q38.720959,32.367667999999995,38.457733000000005,32.722586Q38.19451,33.077503,37.914187999999996,33.419078999999996Q37.633865,33.760653000000005,37.337118000000004,34.08806Q37.040373,34.415465999999995,36.727920999999995,34.727920999999995Q36.415465999999995,35.040373,36.08806,35.337118000000004Q35.760653000000005,35.633865,35.419078999999996,35.914187999999996Q35.077503,36.19451,34.722586,36.457733000000005Q34.367667999999995,36.720959,34.000263000000004,36.966452000000004Q33.632858,37.211945,33.253849,37.439114000000004Q32.87484,37.666283,32.485141999999996,37.874582000000004Q32.095442,38.082878,31.69599,38.271805Q31.296539,38.460732,30.8883,38.629829Q30.480061,38.798927,30.064016,38.947792Q29.647972,39.096657,29.225124,39.224926Q28.802277,39.353195,28.373642,39.460564Q27.945007,39.567928,27.511623,39.654137Q27.078239,39.740341,26.641148,39.80518Q26.204056,39.870018,25.764309,39.91333Q25.324562,39.956638,24.883219,39.978321Q24.441875,40,24,40Q23.558125,40,23.116781,39.978317Q22.675439,39.956638,22.235692,39.91333Q21.795944,39.870018,21.358851,39.805176Q20.921759,39.740341,20.488374999999998,39.654137Q20.05499,39.567928,19.626357,39.460564Q19.197724,39.353195,18.774877,39.22493Q18.352028,39.096657,17.9359827,38.947792Q17.519937499999997,38.798927,17.1116982,38.629829Q16.7034588,38.460732,16.3040075,38.271805Q15.9045577,38.082878,15.5148587,37.874582000000004Q15.1251593,37.666283,14.74615,37.439114000000004Q14.3671408,37.211945,13.9997349,36.966452000000004Q13.632329,36.720959,13.2774119,36.457733000000005Q12.9224939,36.19451,12.580920200000001,35.914187999999996Q12.239346000000001,35.633865,11.9119382,35.337118000000004Q11.5845304,35.040373,11.2720778,34.727920999999995Q10.9596248,34.415465999999995,10.6628797,34.08806Q10.3661346,33.760653000000005,10.0858119,33.419078999999996Q9.805489099999999,33.077503,9.5422643,32.722586Q9.2790396,32.367667999999995,9.0335469,32.000263000000004Q8.78805423,31.632858,8.56088501,31.253849Q8.33371574,30.87484,8.12541722,30.485142Q7.917118691,30.095442,7.72819272,29.69599Q7.53926674,29.296539,7.3701684499999995,28.8883Q7.20107013,28.480061,7.05220687,28.064016Q6.9033437,27.647972,6.775074,27.225124Q6.6468045,26.802277,6.5394375,26.373642Q6.4320707,25.945007,6.3458651,25.511623Q6.2596595,25.078239,6.1948229999999995,24.641148Q6.1299863000000006,24.204056,6.0866749,23.764309Q6.0433636,23.324562,6.0216818,22.883219Q6,22.441875,6,22Q6,21.558125,6.0216818,21.116781Q6.0433636,20.675439,6.0866748,20.235692Q6.1299863000000006,19.795944,6.1948229,19.358851Q6.2596595,18.921759,6.3458651,18.488374999999998Q6.4320707,18.05499,6.5394375,17.626357Q6.6468045,17.197724,6.775074,16.774877Q6.9033437,16.352028,7.05220693,15.9359827Q7.20107019,15.5199375,7.37016851,15.1116982Q7.53926679,14.7034588,7.72819275,14.3040075Q7.917118743,13.9045577,8.12541726,13.5148587Q8.33371574,13.1251593,8.56088495,12.74615Q8.78805423,12.3671408,9.0335469,11.9997349Q9.2790396,11.632329,9.5422645,11.2774119Q9.805489099999999,10.9224939,10.0858119,10.580920200000001Q10.3661346,10.239346000000001,10.6628797,9.9119382Q10.9596248,9.5845304,11.2720778,9.2720778Q11.5845304,8.9596248,11.9119382,8.6628797Q12.239346000000001,8.3661346,12.580920200000001,8.0858119Q12.9224939,7.8054891,13.2774115,7.5422643Q13.632329,7.2790396,13.9997349,7.0335469Q14.3671408,6.78805423,14.74615,6.56088501Q15.125158800000001,6.33371574,15.5148578,6.12541722Q15.9045568,5.917118691,16.3040066,5.72819272Q16.7034569,5.53926674,17.111697200000002,5.3701684499999995Q17.5199366,5.20107013,17.9359818,5.05220687Q18.352027,4.9033437,18.774876,4.775074Q19.197723,4.6468045,19.626356,4.5394375Q20.054989,4.4320707,20.488374,4.3458651Q20.921759,4.2596595,21.35885,4.1948229999999995Q21.795944,4.1299863000000006,22.235692,4.0866749Q22.675439,4.0433636,23.116781,4.0216818Q23.558125,4,24,4Q24.441875,4,24.883217,4.0216818Q25.324562,4.0433636,25.764309,4.0866748Q26.204056,4.1299863000000006,26.641148,4.1948229Q27.078239,4.2596595,27.511623,4.3458651Q27.945007,4.4320707,28.373642,4.5394375Q28.802277,4.6468045,29.225124,4.775074Q29.647972,4.9033437,30.064016,5.05220693Q30.480061,5.20107019,30.8883,5.37016851Q31.296539,5.53926679,31.695992,5.72819275Q32.095442,5.917118743,32.485141999999996,6.12541726Q32.87484,6.33371574,33.253849,6.56088495Q33.632858,6.78805423,34.000263000000004,7.0335469Q34.367667999999995,7.2790396,34.722586,7.5422645Q35.077503,7.8054891,35.419078999999996,8.0858119Q35.760653000000005,8.3661346,36.08806,8.6628797Q36.415465999999995,8.9596248,36.727920999999995,9.2720778Q37.040373,9.5845304,37.337118000000004,9.9119382Q37.633865,10.239346000000001,37.914187999999996,10.580920200000001Q38.19451,10.9224939,38.457733000000005,11.2774115Q38.720959,11.632329,38.966452000000004,11.9997349Q39.211945,12.3671408,39.439114000000004,12.74615Q39.666283,13.125158800000001,39.874582000000004,13.5148578Q40.082878,13.9045568,40.271805,14.3040066Q40.460732,14.7034569,40.629829,15.1116972Q40.798927,15.5199366,40.947792,15.9359818Q41.096657,16.352027,41.224926,16.774876Q41.353195,17.197723,41.460564,17.626356Q41.567928,18.054989,41.654137,18.488374Q41.740341,18.921759,41.80518,19.35885Q41.870018,19.795944,41.91333,20.235692Q41.956638,20.675439,41.978321,21.116781Q42,21.558125,42,22ZM40,22Q40,21.607222,39.980726000000004,21.214917Q39.961454,20.822613,39.922956,20.431725999999998Q39.884457,20.040838,39.826824,19.652310999999997Q39.769189999999995,19.263784,39.692561999999995,18.878554Q39.615933999999996,18.493323,39.520496,18.112316Q39.42506,17.73131,39.311043,17.355445Q39.197025,16.979579,39.064701,16.609761Q38.932377,16.239943,38.782067999999995,15.8770638Q38.63176,15.514184,38.463825,15.1591167Q38.295891,14.8040504,38.110737,14.4576511Q37.925583,14.1112518,37.723653999999996,13.774355400000001Q37.521725,13.4374585,37.303509,13.1108756Q37.085293,12.7842927,36.851316,12.468810999999999Q36.61734,12.1533289,36.368164,11.8497076Q36.118988,11.546086299999999,35.855215,11.2550569Q35.591442,10.964027399999999,35.313705,10.6862912Q35.035969,10.408555,34.744942,10.1447821Q34.453911000000005,9.881008399999999,34.150290999999996,9.6318328Q33.846668,9.3826571,33.531185,9.1486793Q33.215702,8.9147017,32.889117999999996,8.696486Q32.562534,8.4782701,32.225639,8.2763419Q31.888744,8.0744138,31.542347,7.8892597Q31.195946,7.7041053999999995,30.840878,7.5361711Q30.485809,7.3682369,30.122932,7.2179272999999995Q29.760052,7.0676178,29.390236,6.93529487Q29.020416,6.80297196,28.644554,6.68895459Q28.268688,6.57493716,27.88768,6.47949991Q27.506674,6.38406265,27.121443,6.30743548Q26.736212,6.2308083,26.347687,6.17317583Q25.95916,6.11554334,25.568275,6.077044368Q25.177387,6.038545396,24.785082,6.019272698Q24.392776,6,24,6Q23.607222,6,23.214917,6.019272698Q22.822613,6.038545396,22.431725999999998,6.077044368Q22.040838,6.11554334,21.652310999999997,6.17317581Q21.263784,6.2308083,20.878554,6.30743548Q20.493323,6.38406265,20.112316,6.47949988Q19.73131,6.57493716,19.355445,6.68895459Q18.979579,6.80297196,18.609761,6.93529487Q18.239943,7.0676178,17.877063800000002,7.2179272999999995Q17.514184,7.3682369,17.1591167,7.5361711Q16.8040504,7.7041053,16.4576511,7.8892596Q16.111251799999998,8.0744138,15.774355400000001,8.2763419Q15.4374585,8.4782701,15.1108756,8.696486Q14.7842927,8.9147017,14.468810999999999,9.1486793Q14.1533289,9.3826568,13.8497076,9.6318326Q13.546086299999999,9.881008099999999,13.2550569,10.1447816Q12.964027399999999,10.408555,12.6862912,10.6862912Q12.408555,10.964027399999999,12.1447821,11.2550569Q11.881008399999999,11.546086299999999,11.6318328,11.8497076Q11.3826571,12.1533289,11.1486793,12.468810999999999Q10.9147017,12.7842932,10.696486,13.110876099999999Q10.4782701,13.437459,10.2763419,13.774355400000001Q10.0744138,14.1112518,9.8892597,14.4576511Q9.7041054,14.8040504,9.5361711,15.1591167Q9.3682369,15.514184,9.2179273,15.8770638Q9.0676178,16.239943,8.93529487,16.60976Q8.80297196,16.979579,8.68895459,17.355445Q8.57493716,17.73131,8.47949991,18.112316Q8.38406265,18.493323,8.30743548,18.878554Q8.2308083,19.263784,8.17317583,19.652310999999997Q8.11554334,20.040838,8.077044368,20.431725999999998Q8.038545396,20.822613,8.019272698,21.214918Q8,21.607222,8,22Q8,22.392776,8.019272698,22.785082Q8.038545396,23.177387,8.077044368,23.568274Q8.11554334,23.95916,8.17317581,24.347685Q8.2308083,24.736212,8.30743548,25.121443Q8.38406265,25.506674,8.47949988,25.88768Q8.57493716,26.268688,8.68895459,26.644554Q8.80297196,27.020416,8.93529487,27.390234Q9.0676178,27.760052,9.2179273,28.122932Q9.3682369,28.485809,9.5361711,28.840878Q9.7041053,29.195946,9.889259599999999,29.542345Q10.0744138,29.888744,10.2763419,30.225639Q10.4782701,30.562534,10.696486,30.889118Q10.9147017,31.215702,11.1486793,31.531185Q11.3826568,31.846668,11.6318326,32.150290999999996Q11.881008099999999,32.453911000000005,12.1447816,32.74494Q12.408555,33.035969,12.6862912,33.313705Q12.964027399999999,33.591442,13.2550569,33.855215Q13.546086299999999,34.118988,13.8497076,34.368164Q14.1533289,34.61734,14.468810999999999,34.851316Q14.7842932,35.085293,15.110876099999999,35.303509Q15.437459,35.521725,15.774355400000001,35.723653999999996Q16.111251799999998,35.925583,16.4576511,36.110738999999995Q16.8040504,36.295891,17.1591167,36.463826999999995Q17.514184,36.63176,17.877063800000002,36.782070000000004Q18.239943,36.932381,18.60976,37.064703Q18.979579,37.197025,19.355445,37.311045Q19.73131,37.42506,20.112316,37.520498Q20.493323,37.615936000000005,20.878554,37.692561999999995Q21.263784,37.769189999999995,21.652310999999997,37.826822Q22.040838,37.884457,22.431725999999998,37.922956Q22.822613,37.961454,23.214918,37.980728Q23.607222,38,24,38Q24.392776,38,24.785082,37.980726000000004Q25.177387,37.961454,25.568274,37.922956Q25.95916,37.884457,26.347685,37.826824Q26.736212,37.769189999999995,27.121443,37.692561999999995Q27.506674,37.615933999999996,27.88768,37.520496Q28.268688,37.42506,28.644554,37.311043Q29.020416,37.197025,29.390234,37.064701Q29.760052,36.932377,30.122932,36.782067999999995Q30.485809,36.63176,30.840878,36.463825Q31.195946,36.295891,31.542345,36.110737Q31.888744,35.925583,32.225639,35.723653999999996Q32.562534,35.521725,32.889117999999996,35.303509Q33.215702,35.085293,33.531185,34.851316Q33.846668,34.61734,34.150290999999996,34.368164Q34.453911000000005,34.118988,34.74494,33.855215Q35.035969,33.591442,35.313705,33.313705Q35.591442,33.035969,35.855215,32.744942Q36.118988,32.453911000000005,36.368164,32.150290999999996Q36.61734,31.846668,36.851316,31.531185Q37.085293,31.215702,37.303509,30.889118Q37.521725,30.562534,37.723653999999996,30.225639Q37.925583,29.888744,38.110738999999995,29.542347Q38.295891,29.195946,38.463826999999995,28.840878Q38.63176,28.485809,38.782070000000004,28.122932Q38.932381,27.760052,39.064703,27.390236Q39.197025,27.020416,39.311045,26.644554Q39.42506,26.268688,39.520498,25.88768Q39.615936000000005,25.506674,39.692561999999995,25.121443Q39.769189999999995,24.736212,39.826822,24.347687Q39.884457,23.95916,39.922956,23.568275Q39.961454,23.177387,39.980728,22.785082Q40,22.392776,40,22Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='14'%20y='12.00048828125'%20width='20'%20height='20'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M26.916738098831175,16.955627096116636Q26.917956098831176,16.97814789611664,26.917956098831176,17.000701796116637Q26.91795509883118,17.082941896116637,26.901911098831178,17.163601796116637Q26.885865098831175,17.244261896116637,26.85439409883118,17.32024179611664Q26.822921098831177,17.39622249611664,26.777231098831177,17.464602796116637Q26.731541098831176,17.53298319611664,26.673389098831176,17.59113589611664Q26.615235098831178,17.64928849611664,26.546855098831177,17.69497809611664Q26.478475098831176,17.74066869611664,26.402495098831174,17.77214039611664Q26.326514098831176,17.803612596116636,26.24585509883118,17.819657196116637Q26.165195098831177,17.83570139611664,26.082956098831175,17.835701796116638Q26.000714098831175,17.83570139611664,25.920055098831178,17.819657196116637Q25.83939409883118,17.80361309611664,25.763414098831177,17.77214089611664Q25.68743309883118,17.74066869611664,25.619053098831177,17.69497809611664Q25.550674098831177,17.64928849611664,25.49252009883118,17.59113589611664Q25.434367098831174,17.53298319611664,25.38867809883118,17.464602796116637Q25.342987098831177,17.39622249611664,25.311515098831176,17.32024179611664Q25.280044098831176,17.244261896116637,25.263999098831178,17.163601796116637Q25.247955098831177,17.082941896116637,25.247955098831177,17.000701796116637Q25.247955098831177,16.97110709611664,25.25005109883118,16.94158689611664Q25.266079098831177,15.838474896116638,25.881616098831177,14.917299896116639Q26.513639098831177,13.971449856116639,27.564559098831175,13.536153736116638Q28.61553309883118,13.100826326116637,29.731208098831175,13.322761953116638Q30.84693909883118,13.544684176116638,31.651273098831176,14.349075396116639Q32.45564209883118,15.153410196116639,32.677570098831175,16.26912839611664Q32.89950109883118,17.384794596116638,32.46419409883117,18.43576039611664Q32.02881209883118,19.486707596116638,31.08303909883118,20.11870179611664Q30.161805098831177,20.73424469611664,29.058736098831176,20.750273096116636Q29.029216098831178,20.75236829611664,28.999622098831175,20.75236829611664Q28.917380098831178,20.75236829611664,28.836721098831177,20.73632369611664Q28.756060098831178,20.720279096116638,28.680080098831176,20.68880689611664Q28.604100098831175,20.65733469611664,28.535720098831177,20.611644596116637Q28.467340098831176,20.56595459611664,28.409187098831175,20.50780189611664Q28.351033098831177,20.44964919611664,28.305343098831177,20.381268896116637Q28.259653098831176,20.31288849611664,28.228182098831176,20.23690829611664Q28.196710098831176,20.16092809611664,28.180666098831175,20.08026829611664Q28.164622098831178,19.99960839611664,28.164622098831178,19.91736829611664Q28.164622098831178,19.835127196116638,28.180665098831177,19.75446689611664Q28.196710098831176,19.673806596116638,28.22818109883118,19.597826396116638Q28.259652098831175,19.521846196116638,28.305343098831177,19.453466796116636Q28.351033098831177,19.385086396116638,28.409187098831175,19.32693369611664Q28.467339098831175,19.268781096116637,28.535719098831176,19.22309049611664Q28.604099098831178,19.177399996116637,28.680080098831176,19.145928296116637Q28.756060098831178,19.114456496116638,28.836721098831177,19.098412396116636Q28.917380098831178,19.082368296116638,28.999622098831175,19.082368296116638Q29.022178098831176,19.082368296116638,29.044702098831177,19.08358609611664Q29.650397098831178,19.07147629611664,30.157039098831177,18.73295249611664Q30.68251609883118,18.38181199611664,30.924386098831178,17.79797589611664Q31.166225098831177,17.214102396116637,31.04292709883118,16.594275796116637Q30.91963509883118,15.974441696116639,30.472720098831175,15.527544896116638Q30.025900098831176,15.080692696116639,29.406037098831177,14.957399996116639Q28.786235098831177,14.834105896116638,28.20235409883118,15.075957796116638Q27.618518098831174,15.317785096116637,27.267379098831178,15.843278796116639Q26.928846098831176,16.349906096116637,26.916738098831175,16.955627096116636ZM22.751288698831175,17.000701796116637Q22.751288698831175,16.97110829611664,22.749193398831178,16.94158899611664Q22.733165498831177,15.838476096116638,22.117629798831178,14.917300596116638Q21.485606398831177,13.971450746116638,20.434686398831175,13.536153916116639Q19.383711098831178,13.100826506116638,18.268037598831178,13.322761953116638Q17.152344798831177,13.544676006116639,16.347971398831177,14.349057596116639Q15.543596328831176,15.153424296116638,15.321678459831176,16.269134396116637Q15.099746468831176,17.384791696116636,15.535076438831176,18.435770896116637Q15.970370588831177,19.48668469611664,16.916220098831175,20.118708996116638Q17.837403998831178,20.73424519611664,18.94050909883118,20.750273096116636Q18.970028398831175,20.75236829611664,18.999622098831175,20.75236829611664Q19.08186219883118,20.75236829611664,19.162522298831178,20.73632369611664Q19.243182398831177,20.720279096116638,19.319162598831177,20.68880689611664Q19.395142798831177,20.65733469611664,19.463522698831177,20.611644596116637Q19.53190299883118,20.56595459611664,19.590055698831176,20.50780189611664Q19.648208398831176,20.44964919611664,19.693898398831177,20.381268896116637Q19.739588998831177,20.31288849611664,19.771061198831177,20.23690829611664Q19.802533398831176,20.16092809611664,19.818577498831175,20.08026829611664Q19.834621698831178,19.99960839611664,19.834622098831176,19.91736829611664Q19.834621698831178,19.835127196116638,19.818577498831175,19.75446689611664Q19.802533398831176,19.673806596116638,19.771061198831177,19.597826396116638Q19.739588998831177,19.521846196116638,19.693898898831176,19.453466796116636Q19.648208398831176,19.385086396116638,19.590055698831176,19.32693369611664Q19.53190299883118,19.268781096116637,19.463522698831177,19.22309049611664Q19.395142298831175,19.177399996116637,19.31916209883118,19.145928296116637Q19.243182198831178,19.114456496116638,19.162522298831178,19.098412396116636Q19.08186219883118,19.082368296116638,18.999622098831175,19.082368296116638Q18.977065798831177,19.082368296116638,18.954542598831175,19.08358609611664Q18.348829298831177,19.071475896116638,17.842198098831176,18.73294489611664Q17.316706198831177,18.381806696116637,17.074875598831177,17.797965396116638Q16.833026098831176,17.21408929611664,16.956323598831176,16.59426989611664Q17.079610098831175,15.974436896116638,17.526488498831178,15.527562996116638Q17.973357198831177,15.080689896116638,18.593208098831177,14.957399996116639Q19.213009398831176,14.834106096116638,19.796891498831176,15.075957696116639Q20.380727098831176,15.317785596116638,20.731865198831176,15.843278296116639Q21.070396698831175,16.34990419611664,21.08250639883118,16.955622296116637Q21.081288598831176,16.97814549611664,21.081288598831176,17.000701796116637Q21.081288598831176,17.082941896116637,21.097332198831175,17.163601796116637Q21.113376898831177,17.244261896116637,21.144848598831178,17.32024179611664Q21.17632029883118,17.39622249611664,21.222010898831176,17.464602796116637Q21.26770139883118,17.53298319611664,21.325854098831176,17.59113589611664Q21.384006698831175,17.64928849611664,21.452387098831178,17.69497809611664Q21.520767498831177,17.74066869611664,21.596747598831175,17.77214039611664Q21.672727798831176,17.803612596116636,21.753387698831176,17.819657196116637Q21.834047998831178,17.83570139611664,21.916288598831176,17.835701796116638Q21.998528698831176,17.83570139611664,22.079188598831177,17.819657196116637Q22.159848498831177,17.80361309611664,22.235828598831176,17.77214089611664Q22.311808798831176,17.74066869611664,22.380189198831175,17.69497809611664Q22.448569498831176,17.64928849611664,22.506722698831176,17.59113589611664Q22.564874898831178,17.53298319611664,22.61056489883118,17.464602796116637Q22.656254998831177,17.39622249611664,22.687727198831176,17.32024179611664Q22.719199398831176,17.244261896116637,22.735243998831177,17.163601796116637Q22.751288698831175,17.082941896116637,22.751288698831175,17.000701796116637ZM18.44797869883118,17.62708129611664Q18.313028298831178,17.50819289611664,18.238987898831176,17.344290596116636Q18.164947698831178,17.18038859611664,18.164947698831178,17.000539196116637Q18.164947498831175,16.91829859611664,18.180991898831177,16.837638296116637Q18.197035798831177,16.756978396116637,18.228507798831178,16.68099819611664Q18.259979998831177,16.605017996116636,18.305670298831178,16.53663769611664Q18.351360598831178,16.46825729611664,18.409513498831178,16.41010489611664Q18.46766589883118,16.35195199611664,18.536046298831177,16.306261896116638Q18.604426598831175,16.26057139611664,18.68040679883118,16.229099396116638Q18.756386998831175,16.197627396116637,18.837047098831178,16.18158329611664Q18.917707198831177,16.16553909611664,18.999947798831176,16.16553909611664Q19.179797198831178,16.16553909611664,19.343699198831175,16.239579296116638Q19.50760149883118,16.31361969611664,19.626489898831178,16.44857009611664L22.261629298831178,19.083709596116638L25.738267098831177,19.083709596116638L28.373404098831177,16.44857249611664Q28.49229209883118,16.313621396116638,28.656196098831177,16.23958029611664Q28.820098098831174,16.16553909611664,28.999948098831176,16.16553909611664Q29.082187098831177,16.16553909611664,29.16284709883118,16.18158329611664Q29.243507098831177,16.197627396116637,29.319487098831175,16.229099396116638Q29.395467098831176,16.26057139611664,29.463847098831177,16.306261896116638Q29.532228098831176,16.35195199611664,29.590381098831177,16.41010489611664Q29.648532098831176,16.46825729611664,29.694223098831177,16.53663769611664Q29.739913098831178,16.605017996116636,29.771385098831175,16.68099819611664Q29.802858098831177,16.756978396116637,29.818902098831177,16.83763849611664Q29.83494709883118,16.91829859611664,29.834948098831177,17.000539196116637Q29.834949098831174,17.18038979611664,29.760907098831176,17.344292496116637Q29.686866098831175,17.50819529611664,29.551914098831176,17.627083196116637L26.916940098831176,20.26205809611664L26.916940098831176,23.73901949611664L29.551911098831177,26.37399249611664Q29.686864098831176,26.49288049611664,29.760906098831178,26.656784496116636Q29.834948098831177,26.82068749611664,29.834948098831177,27.000539496116637Q29.83494709883118,27.08277849611664,29.818902098831177,27.16343849611664Q29.802858098831177,27.24409849611664,29.771385098831175,27.320078496116636Q29.739913098831178,27.396058496116638,29.694223098831177,27.46443849611664Q29.648532098831176,27.532819496116637,29.590381098831177,27.59097249611664Q29.532228098831176,27.649123496116637,29.463847098831177,27.69481449611664Q29.395467098831176,27.74050449611664,29.319486098831177,27.771976496116636Q29.243507098831177,27.803449496116638,29.16284709883118,27.81949349611664Q29.082187098831177,27.83553849611664,28.999948098831176,27.83553949611664Q28.82009609883118,27.83553949611664,28.656192098831177,27.76149649611664Q28.49228909883118,27.687455496116637,28.373401098831177,27.552502496116638L25.737940098831174,24.91704349611664L22.26195499883118,24.91704349611664L19.626491798831175,27.552505496116638Q19.507603898831178,27.687457496116636,19.343701098831175,27.761498496116637Q19.179798398831178,27.83553949611664,18.999947798831176,27.83553949611664Q18.917707198831177,27.83553849611664,18.837046898831176,27.81949349611664Q18.756386998831175,27.803449496116638,18.68040679883118,27.771976496116636Q18.604426598831175,27.74050449611664,18.536046298831177,27.69481449611664Q18.46766589883118,27.649123496116637,18.409513498831178,27.59097249611664Q18.351360598831178,27.532819496116637,18.305670298831178,27.46443849611664Q18.259979998831177,27.396058496116638,18.228507998831176,27.32007749611664Q18.197035998831176,27.24409849611664,18.180991898831177,27.16343849611664Q18.164947498831175,27.08277849611664,18.164947698831178,27.000539496116637Q18.164947698831178,26.820689496116636,18.238988898831177,26.656786496116638Q18.313029998831176,26.49288349611664,18.44798109883118,26.37399549611664L21.083606498831177,23.738370496116637L21.083606498831177,20.262708996116636L18.44797869883118,17.62708129611664ZM22.750273498831177,23.250376496116637L22.750273498831177,20.750376596116638L25.250273098831176,20.750376596116638L25.250273098831176,23.250376496116637L22.750273498831177,23.250376496116637ZM19.834622098831176,24.084035496116638Q19.834621698831178,24.16627449611664,19.818577498831175,24.246934496116637Q19.802533398831176,24.327595496116636,19.771061198831177,24.403575496116638Q19.739588998831177,24.479554496116638,19.693898898831176,24.54793449611664Q19.648208398831176,24.616315496116638,19.590055698831176,24.67446849611664Q19.53190299883118,24.73262049611664,19.463522698831177,24.778311496116636Q19.395142298831175,24.82400049611664,19.31916209883118,24.85547249611664Q19.243182198831178,24.88694549611664,19.162522298831178,24.90298949611664Q19.08186219883118,24.919034496116637,18.999622098831175,24.91903549611664Q18.977067498831175,24.91903549611664,18.954545698831176,24.91781749611664Q18.348830198831177,24.92992749611664,17.84219769883118,25.268459496116638Q17.316705498831176,25.61959649611664,17.074875598831177,26.20343749611664Q16.833026098831176,26.787314496116636,16.956323598831176,27.40713449611664Q17.079612698831177,28.02697849611664,17.526498598831175,28.473832496116636Q17.973361298831176,28.920714496116638,18.593206398831178,29.04400849611664Q19.213020998831176,29.16730449611664,19.796844698831176,28.92548649611664Q20.380732298831177,28.68359649611664,20.731852798831177,28.15814549611664Q21.070397098831176,27.65147549611664,21.082505898831176,27.045773496116638Q21.081288598831176,27.02325449611664,21.081288598831176,27.00070149611664Q21.081288598831176,26.918460496116637,21.097332198831175,26.837799496116638Q21.113376898831177,26.75713849611664,21.144848598831178,26.68115949611664Q21.17632029883118,26.60517949611664,21.222010898831176,26.536799496116636Q21.26770139883118,26.46841949611664,21.325854098831176,26.41026749611664Q21.384006698831175,26.352114496116638,21.452387098831178,26.306424496116637Q21.520767498831177,26.260733496116636,21.596747598831175,26.22926149611664Q21.672727798831176,26.197789496116638,21.753387698831176,26.181746496116638Q21.834047998831178,26.165702496116637,21.916288598831176,26.165702496116637Q21.998528698831176,26.165702496116637,22.079188598831177,26.181746496116638Q22.159848498831177,26.197789496116638,22.235828598831176,26.229260496116638Q22.311808798831176,26.26073249611664,22.380189198831175,26.30642249611664Q22.448569498831176,26.352113496116637,22.506722698831176,26.410266496116638Q22.564874898831178,26.468417496116636,22.61056489883118,26.536797496116638Q22.656254998831177,26.605178496116636,22.687727198831176,26.68115949611664Q22.719199398831176,26.75713849611664,22.735243998831177,26.837799496116638Q22.751288698831175,26.918460496116637,22.751288698831175,27.00070149611664Q22.751288698831175,27.030295496116636,22.749193398831178,27.059814496116637Q22.733164998831178,28.162885496116637,22.11763929883118,29.084090496116637Q21.485628798831176,30.029891496116637,20.434732198831178,30.46525149611664Q19.38371299883118,30.900582496116638,18.268037798831177,30.67864749611664Q17.152329898831177,30.45672149611664,16.347961798831175,29.65231849611664Q15.543604488831177,28.84801949611664,15.321678638831177,27.732269496116636Q15.099746468831176,26.616612496116637,15.535076318831177,25.56563249611664Q15.970370228831177,24.514718496116636,16.916220498831176,23.88269449611664Q17.837403498831176,23.267158496116636,18.940508098831177,23.251130496116637Q18.970027898831177,23.24903549611664,18.999622098831175,23.24903549611664Q19.08186219883118,23.24903549611664,19.162522298831178,23.265078496116637Q19.243182398831177,23.28112349611664,19.319162598831177,23.31259449611664Q19.395142798831177,23.34406649611664,19.463522698831177,23.389757496116637Q19.53190299883118,23.435447496116637,19.590055698831176,23.49360049611664Q19.648208398831176,23.55175349611664,19.693898398831177,23.62013249611664Q19.739588998831177,23.688513496116638,19.771061198831177,23.764493496116636Q19.802533398831176,23.840473496116637,19.818577498831175,23.92113349611664Q19.834621698831178,24.001794496116638,19.834622098831176,24.084035496116638ZM29.044698098831176,24.91781749611664Q29.022176098831174,24.91903549611664,28.999622098831175,24.91903549611664Q28.917380098831178,24.919034496116637,28.836721098831177,24.90298949611664Q28.756060098831178,24.88694549611664,28.680080098831176,24.85547249611664Q28.604100098831175,24.82400049611664,28.535720098831177,24.77831049611664Q28.467340098831176,24.73262049611664,28.409187098831175,24.67446849611664Q28.351033098831177,24.616315496116638,28.305343098831177,24.54793449611664Q28.259653098831176,24.479554496116638,28.228182098831176,24.403575496116638Q28.196710098831176,24.327595496116636,28.180666098831175,24.246934496116637Q28.164622098831178,24.16627449611664,28.164622098831178,24.084035496116638Q28.164622098831178,24.001794496116638,28.180665098831177,23.921134496116636Q28.196710098831176,23.840473496116637,28.22818109883118,23.764493496116636Q28.259652098831175,23.688513496116638,28.305343098831177,23.62013249611664Q28.351033098831177,23.55175349611664,28.409187098831175,23.49360049611664Q28.467339098831175,23.435447496116637,28.535719098831176,23.389757496116637Q28.604099098831178,23.34406649611664,28.680080098831176,23.31259449611664Q28.756060098831178,23.28112349611664,28.836721098831177,23.265079496116638Q28.917380098831178,23.24903549611664,28.999622098831175,23.24903549611664Q29.029216098831178,23.24903549611664,29.058737098831177,23.251130496116637Q30.16180609883118,23.26715949611664,31.083038098831175,23.882702496116636Q32.02881209883118,24.51469649611664,32.46419409883117,25.56564349611664Q32.89950109883118,26.616612496116637,32.677570098831175,27.73227649611664Q32.455632098831174,28.84803349611664,31.651282098831178,29.652299496116637Q30.846954098831176,30.456712496116637,29.731206098831176,30.67864749611664Q28.615532098831174,30.900582496116638,27.564513098831178,30.46525149611664Q26.513617098831176,30.029891496116637,25.881604098831176,29.084090496116637Q25.266079098831177,28.162885496116637,25.25005109883118,27.059817496116636Q25.247955098831177,27.030296496116637,25.247955098831177,27.00070149611664Q25.247955098831177,26.918460496116637,25.263999098831178,26.837799496116638Q25.280044098831176,26.75713849611664,25.311515098831176,26.68115949611664Q25.342987098831177,26.60517949611664,25.38867809883118,26.536799496116636Q25.434367098831174,26.46841949611664,25.49252009883118,26.41026749611664Q25.550674098831177,26.352114496116638,25.619054098831178,26.306424496116637Q25.68743309883118,26.260733496116636,25.763414098831177,26.22926149611664Q25.83939409883118,26.197789496116638,25.920055098831178,26.181746496116638Q26.000714098831175,26.165702496116637,26.082956098831175,26.165702496116637Q26.165195098831177,26.165702496116637,26.24585509883118,26.181746496116638Q26.326514098831176,26.197789496116638,26.402495098831174,26.229260496116638Q26.478475098831176,26.26073249611664,26.546855098831177,26.30642249611664Q26.615235098831178,26.352113496116637,26.673389098831176,26.410266496116638Q26.731541098831176,26.468417496116636,26.777230098831176,26.536797496116638Q26.822921098831177,26.605178496116636,26.854393098831174,26.68115949611664Q26.885865098831175,26.75713849611664,26.901911098831178,26.837799496116638Q26.91795509883118,26.918460496116637,26.917956098831176,27.00070149611664Q26.917956098831176,27.02325549611664,26.916738098831175,27.04577549611664Q26.928847098831177,27.651476496116636,27.26739009883118,28.15814549611664Q27.618512098831175,28.68359649611664,28.202399098831176,28.925485496116636Q28.78622309883118,29.16730449611664,29.406037098831177,29.04400849611664Q30.025895098831178,28.920712496116636,30.472711098831176,28.47384949611664Q30.919633098831177,28.026975496116638,31.042926098831177,27.407127496116637Q31.166225098831177,26.787302496116638,30.924386098831178,26.203426496116638Q30.68251609883118,25.61959249611664,30.157039098831177,25.268452496116637Q29.650396098831177,24.92992749611664,29.044698098831176,24.91781749611664Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function Yt(e,n){return`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),fe=require("element-plus"),o1=require("./resolver.cjs"),ce={LARGE:"large",NORMAL:"normal",SMALL:"small"},ge={BUTTON:"button",TEXT:"text"},$t={PRIMARY:"primary",GREEN:"green",ORANGE:"orange",RED:"red",CYAN:"cyan",BROWN:"brown",YELLOW:"yellow",BLUE:"blue",PURPLE:"purple",LIME:"lime",MAGENTA:"magenta",PINK:"pink"},cn=t.defineComponent({name:"JTWBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},color:{type:String,default:"primary",validator:e=>Object.values($t).includes(e)},textColor:{type:String,default:void 0,validator:e=>!e||Object.values($t).includes(e)},outline:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0}},emits:{click:e=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.computed(()=>e.tips!=null?String(e.tips):""),s=t.computed(()=>({"j-tw-btn":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline&&!e.flat,"j-tw-btn--outline":e.outline&&!e.flat,"j-tw-btn--flat":e.flat,"j-tw-btn--text":e.type===ge.TEXT&&!e.flat})),l=t.computed(()=>{const h=e.color||"primary",y={"--j-btn-color":`var(--j-color-${h})`,"--j-btn-color-1":`var(--j-color-${h}-1)`,"--j-btn-color-2":`var(--j-color-${h}-2)`,"--j-btn-color-3":`var(--j-color-${h}-3)`,"--j-btn-color-4":`var(--j-color-${h}-4)`,"--j-btn-color-5":`var(--j-color-${h}-5)`,"--j-btn-color-6":`var(--j-color-${h}-6)`};return e.textColor&&(y["--j-btn-text-color"]=`var(--j-color-${e.textColor})`),y}),a={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},c=t.computed(()=>({...a,...e.tooltipConfig})),g=h=>{n("click",h)};return r({get $el(){var h;return(h=i.value)==null?void 0:h.$el},click:()=>{var h,y;(y=(h=i.value)==null?void 0:h.$el)==null||y.click()}}),{elBtnRef:i,tooltipContent:o,computedClass:s,computedStyle:l,mergedTooltipConfig:c,handleClick:g}}}),de=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r};function un(e,n,r,i,o,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"elBtnRef",class:e.computedClass,style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleClick}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[0]||(n[0]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",viewBox:"0 0 16 16",class:"j-tw-btn__loading-icon"},[t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"master_svg0_37_06013"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),t.createElementVNode("g",{"clip-path":"url(#master_svg0_37_06013)"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0",fill:"transparent",style:{"mix-blend-mode":"passthrough"}}),t.createElementVNode("path",{d:"M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z","fill-rule":"evenodd",fill:"currentColor"})])],-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"])}const ze=de(cn,[["render",un]]),dn=t.defineComponent({name:"JTWDropdownBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},options:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:void 0}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),g=t.computed(()=>e.tips!=null?String(e.tips):""),v=t.computed(()=>{if(e.modelValue!=null){const _=e.options.find(x=>x.value===e.modelValue);if(_)return _.label}return e.label}),h=t.computed(()=>({"j-tw-dropdown-btn":!0,"j-tw-dropdown-btn--large":e.size===ce.LARGE,"j-tw-dropdown-btn--normal":e.size===ce.NORMAL,"j-tw-dropdown-btn--small":e.size===ce.SMALL})),y=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__main":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),m=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__trigger":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),Q=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-dropdown-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),u={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},w=t.computed(()=>({...u,...e.tooltipConfig})),d=()=>{if(!i.value||!l.value)return;const _=i.value.getBoundingClientRect(),x=l.value.getBoundingClientRect(),b=window.innerHeight-_.bottom,N=_.top;let p=_.bottom+4;x.height>50&&b<x.height+20&&N>x.height+20&&(p=_.top-x.height-4),c.value={top:`${p}px`,left:`${_.left}px`}},k=()=>{a.value=!0,t.nextTick(()=>{t.nextTick(()=>{d()})})},D=()=>{a.value=!1},S=()=>{a.value?D():k()},C=_=>{n("click",_),S()},I=_=>{_.disabled||(n("update:modelValue",_.value),n("select",_),D())},L=_=>{if(!i.value||!l.value)return;const x=_.target;!i.value.contains(x)&&!l.value.contains(x)&&D()};return t.watch(a,_=>{_?(document.addEventListener("click",L),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0)):(document.removeEventListener("click",L),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",L),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}),r({get $el(){return i.value},click:()=>{var _,x;(x=(_=o.value)==null?void 0:_.$el)==null||x.click()},openDropdown:k,closeDropdown:D}),{dropdownRef:i,mainBtnRef:o,dropdownBtnRef:s,dropdownMenuRef:l,dropdownVisible:a,dropdownMenuStyle:c,tooltipContent:g,displayLabel:v,dropdownClass:h,mainBtnClass:y,dropdownBtnClass:m,computedStyle:Q,mergedTooltipConfig:w,handleMainClick:C,toggleDropdown:S,handleOptionClick:I}}}),i1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",l1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-dropdown-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",fn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096497'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096497)'%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.409602997126058,4.475219065789133)'%3e%3cpath%20d='M1.947415595,8.767578125Q1.947415595,8.693724342,1.961823825,8.621289645Q1.976231935,8.548854945,2.004494545,8.480622945Q2.032757165,8.412390945,2.073788165,8.350983795Q2.114819105,8.289576615,2.167041595,8.237354095Q2.219264115,8.185131605,2.280671295,8.144100665Q2.342078445,8.103069665,2.410310445,8.074807045Q2.478542445,8.046544435,2.550977145,8.032136325Q2.623411842,8.017728095,2.697265625,8.017728095Q2.771119408,8.017728095,2.843554105,8.032136325Q2.915988805,8.046544435,2.984220805,8.074807045Q3.052452805,8.103069665,3.113859955,8.144100665Q3.175267135,8.185131605,3.227489655,8.237354095Q3.279712145,8.289576615,3.320743085,8.350983795Q3.361774085,8.412390945,3.390036705,8.480622945Q3.418299315,8.548854945,3.4327074250000003,8.621289645Q3.447115655,8.693724342,3.447115655,8.767578125L3.447265625,8.767578125L3.447265625,13.017578125L12.697265625,13.017578125L12.697265625,13.017727825Q12.771118625,13.017727825,12.843553625,13.032135925Q12.915987625,13.046544125,12.984220625,13.074806725Q13.052451625,13.103069325,13.113859625,13.144100224999999Q13.175266625,13.185131025,13.227489625,13.237353825Q13.279710625,13.289576525000001,13.320741625,13.350983625Q13.361772625,13.412390725,13.390035625,13.480622324999999Q13.418298625,13.548854825,13.432706625,13.621289225Q13.447114625,13.693724625,13.447115625,13.767578125Q13.447114625,13.841431625,13.432706625,13.913866025Q13.418298625,13.986300425,13.390035625,14.054533025Q13.361772625,14.122764625,13.320741625,14.184171724999999Q13.279710625,14.245578725,13.227489625,14.297801925Q13.175266625,14.350024225,13.113859625,14.391055125000001Q13.052451625,14.432086025,12.984220625,14.460349125Q12.915987625,14.488611725,12.843553625,14.503020325Q12.771118625,14.517428425,12.697265625,14.517428425L12.697265625,14.517578125L2.697265625,14.517578125Q2.623397082,14.517578125,2.550947905,14.503167125000001Q2.478498745,14.488756225,2.410253105,14.460487825000001Q2.342007455,14.432219525,2.280588005,14.391180025Q2.219168545,14.350140525,2.166935565,14.297907825Q2.114702645,14.245674625,2.073663475,14.184255125Q2.032624305,14.122835625,2.004356025,14.054590225Q1.976087745,13.986344325000001,1.9616767149999998,13.913895625Q1.947265625,13.841446925,1.947265625,13.767578125L1.947265625,8.767578125L1.947415595,8.767578125Z'%20fill-rule='evenodd'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hn={class:"j-tw-dropdown-btn__label"},pn=["onClick"],mn={class:"j-tw-dropdown-btn__option-label"},gn={key:0,src:fn,class:"j-tw-dropdown-btn__selected-icon",alt:"Selected"};function wn(e,n,r,i,o,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",{ref:"dropdownRef",class:t.normalizeClass(e.dropdownClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-dropdown-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",hn,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),t.createElementVNode("img",{src:l1,class:t.normalizeClass(["j-tw-dropdown-btn__arrow",{"j-tw-dropdown-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[1]||(n[1]=t.createElementVNode("img",{src:i1,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-dropdown-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-dropdown-btn__menu",style:t.normalizeStyle({...e.dropdownMenuStyle,...e.computedStyle}),onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,c=>(t.openBlock(),t.createElementBlock("div",{key:c.value,class:t.normalizeClass(["j-tw-dropdown-btn__option",{"j-tw-dropdown-btn__option--selected":c.value===e.modelValue,"j-tw-dropdown-btn__option--disabled":c.disabled}]),onClick:g=>e.handleOptionClick(c)},[t.createElementVNode("span",mn,t.toDisplayString(c.label),1),c.value===e.modelValue?(t.openBlock(),t.createElementBlock("img",gn)):t.createCommentVNode("",!0)],10,pn))),128))],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const yn=de(dn,[["render",wn]]),vn=t.defineComponent({name:"JTWCheckbox",components:{ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,setup(){return{}}});function Qn(e,n,r,i,o,s){const l=t.resolveComponent("el-checkbox");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elCheckboxRef",class:"j-tw-checkbox"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const Mt=de(vn,[["render",Qn]]),kn=t.defineComponent({name:"JTWInput",components:{ElInput:fe.ElInput},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0}},setup(e,{expose:n}){const r=t.ref(null);return n({get input(){var o;return(o=r.value)==null?void 0:o.input},get textareaStyle(){var o;return(o=r.value)==null?void 0:o.textareaStyle},focus:()=>{var o;return(o=r.value)==null?void 0:o.focus()},blur:()=>{var o;return(o=r.value)==null?void 0:o.blur()},select:()=>{var o;return(o=r.value)==null?void 0:o.select()},clear:()=>{var o;return(o=r.value)==null?void 0:o.clear()},resizeTextarea:()=>{var o;return(o=r.value)==null?void 0:o.resizeTextarea()}}),{elInputRef:r}}});function bn(e,n,r,i,o,s){const l=t.resolveComponent("el-input");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.$attrs),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"])}const a1=de(kn,[["render",bn]]),Mn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDQuMDAwMDAxTDgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxWiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",Cn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDY4QzgsNzAuMjA5MTM3LDkuNzkwODYxMSw3MiwxMi4wMDAwMDEwMDAwMDAwMDEsNzJMNjAsNzJDNjIuMjA5MTQxLDcyLDY0LDcwLjIwOTEzNyw2NCw2OEw2NCw0LjAwMDAwMDVDNjQsMS43OTA4NjExLDYyLjIwOTE0MSwwLDYwLDBMMTIuMDAwMDAwNDk5OTk5OTk5LDBDOS43OTA4NjExLDAsOCwxLjc5MDg2MTEsOCw0LjAwMDAwMUw4LDY4WiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",_n="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='20'%20stroke='%23E5E6EB'%20stroke-width='4'/%3e%3cpath%20d='M24%204C35.0457%204%2044%2012.9543%2044%2024'%20stroke='%23165DFF'%20stroke-width='4'%20stroke-linecap='round'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0%2024%2024'%20to='360%2024%2024'%20dur='1s'%20repeatCount='indefinite'/%3e%3c/path%3e%3c/svg%3e",Dn=t.defineComponent({name:"JTWStatusImg",props:{name:{type:String,default:"default"},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(e){const n={default:Mn,empty:Cn,loading:_n},r=t.computed(()=>n[e.name]||n.default),i=t.computed(()=>{const o={};return e.width!==void 0&&(o.width=typeof e.width=="number"?`${e.width}px`:e.width),e.height!==void 0&&(o.height=typeof e.height=="number"?`${e.height}px`:e.height),o});return{imageSrc:r,imageStyle:i}}}),An={class:"j-tw-status-img"},Nn=["src","alt"];function Sn(e,n,r,i,o,s){return t.openBlock(),t.createElementBlock("div",An,[t.createElementVNode("img",{src:e.imageSrc,alt:e.name,style:t.normalizeStyle(e.imageStyle),class:"j-tw-status-img__image"},null,12,Nn)])}const We=de(Dn,[["render",Sn]]),In=t.defineComponent({name:"JTWMultiSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWCheckbox:Mt,JTWInput:a1,JTWStatusImg:We},inheritAttrs:!1,props:{data:{type:Array,default:()=>[]},dropdownMaxHeight:{type:Number,default:360},dropdownWidth:{type:Number,default:320},fetchOptions:{type:Function,default:void 0},filterMethod:{type:Function,default:void 0},label:{type:String,default:""},loading:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]},noDataText:{type:String,default:"暂无数据"},outline:{type:Boolean,default:!0},searchDebounce:{type:Number,default:300},searchPlaceholder:{type:String,default:"请输入设备名称"},size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)}},emits:{click:e=>!0,search:e=>!0,select:e=>!0,"update:modelValue":e=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.ref({}),s=t.ref(!1),l=t.ref(!1),a=t.ref(!1),c=t.ref(null),g=t.ref(null),v=t.ref([]),h=t.ref(""),y=t.ref([]),m=t.ref(void 0),Q=t.ref(0),u={closeDelay:200,effect:"dark",offset:5,openDelay:0,placement:"top",showArrow:!0,trigger:"hover"},w=t.computed(()=>({...u,...e.tooltipConfig})),d=t.computed(()=>e.tips!=null?String(e.tips):""),k=t.computed(()=>{const T=new Map;return e.data.forEach(H=>T.set(H.value,H)),v.value.forEach(H=>T.set(H.value,H)),T}),D=t.computed(()=>{const T=h.value.trim().toLowerCase();return T?e.filterMethod?e.data.filter(H=>{var ne;return(ne=e.filterMethod)==null?void 0:ne.call(e,H,h.value)}):e.data.filter(H=>H.label.toLowerCase().includes(T)):e.data}),S=t.computed(()=>e.fetchOptions?v.value:D.value),C=t.computed(()=>{const T=y.value.length;if(T===0)return e.label;const H=y.value.map(ne=>{var ie;return(ie=k.value.get(ne))==null?void 0:ie.label}).filter(ne=>!!ne);return H.length===1?H[0]:`已选择 ${T} 项`}),I=t.computed(()=>({"j-tw-multi-select-btn":!0,"j-tw-multi-select-btn--large":e.size===ce.LARGE,"j-tw-multi-select-btn--normal":e.size===ce.NORMAL,"j-tw-multi-select-btn--small":e.size===ce.SMALL})),L=t.computed(()=>({"j-tw-btn":!0,"j-tw-multi-select-btn__main":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),F=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-btn-text-color":"var(--j-color-grey-1)"})),_=t.computed(()=>y.value.length>0),x=T=>y.value.includes(T),$=T=>{const H=T.map(ne=>k.value.get(ne)).filter(ne=>!!ne);n("update:modelValue",T),n("select",H)},b=()=>{y.value=[],$([])},N=(T,H)=>{if(T.disabled)return;const ne=new Set(y.value);H?ne.add(T.value):ne.delete(T.value),y.value=Array.from(ne),$(y.value)},p=(T,H)=>{N(T,!!H)},R=T=>{T.disabled||N(T,!x(T.value))},K=()=>{if(!g.value||!i.value)return;const T=g.value.getBoundingClientRect(),H=i.value.getBoundingClientRect(),ne=window.innerHeight,ie=T.top,V=ne-T.bottom;let q=T.bottom+4;H.height>50&&V<H.height+20&&ie>H.height+20&&(q=T.top-H.height-4),o.value={left:`${T.left}px`,maxHeight:`${e.dropdownMaxHeight}px`,top:`${q}px`,width:`${e.dropdownWidth}px`}},Z=async T=>{if(!e.fetchOptions)return;const H=Q.value+1;Q.value=H,l.value=!0;try{const ne=await e.fetchOptions(T);H===Q.value&&(v.value=ne??[])}finally{H===Q.value&&(l.value=!1)}},ae=T=>{h.value=T,n("search",T),e.fetchOptions&&(m.value&&window.clearTimeout(m.value),m.value=window.setTimeout(()=>{Z(h.value.trim())},e.searchDebounce))},Y=async()=>{s.value=!0,h.value="",e.fetchOptions&&await Z(""),await t.nextTick(),await t.nextTick(),K()},re=()=>{s.value=!1,m.value&&(window.clearTimeout(m.value),m.value=void 0)},O=()=>{s.value?re():Y()},z=T=>{n("click",T),O()},oe=T=>{if(!g.value||!i.value)return;const H=T.target;!g.value.contains(H)&&!i.value.contains(H)&&re()};return t.watch(()=>e.modelValue,T=>{y.value=[...T??[]]},{immediate:!0}),t.watch(s,T=>{T?(document.addEventListener("click",oe),window.addEventListener("resize",K),window.addEventListener("scroll",K,!0)):(document.removeEventListener("click",oe),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("click",oe),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0),m.value&&window.clearTimeout(m.value)}),r({get $el(){return g.value},click:()=>{var T,H;(H=(T=c.value)==null?void 0:T.$el)==null||H.click()},closeDropdown:re,openDropdown:Y}),{computedStyle:F,displayLabel:C,displayOptions:S,dropdownMenuRef:i,dropdownMenuStyle:o,dropdownVisible:s,handleMainClick:z,handleOptionChange:p,handleOptionClick:R,handleSearchInput:ae,isFetching:l,isHovering:a,isOptionSelected:x,mainBtnClass:L,mainBtnRef:c,mergedTooltipConfig:w,multiSelectClass:I,multiSelectRef:g,noDataText:e.noDataText,searchKeyword:h,searchPlaceholder:e.searchPlaceholder,showClearIcon:_,tooltipContent:d,dropdownMaxHeight:e.dropdownMaxHeight,handleClear:b}}}),Tn={class:"j-tw-multi-select-btn__label"},Ln={class:"j-tw-multi-select-btn__search"},En={key:0,class:"j-tw-multi-select-btn__loading"},xn=["onClick"],jn={class:"j-tw-multi-select-btn__option-label"},zn={key:2,class:"j-tw-multi-select-btn__empty"},Bn={class:"j-tw-multi-select-btn__empty-text"};function On(e,n,r,i,o,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWInput"),g=t.resolveComponent("JTWCheckbox"),v=t.resolveComponent("JTWStatusImg");return t.openBlock(),t.createElementBlock("div",{ref:"multiSelectRef",class:t.normalizeClass(e.multiSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-multi-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=h=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=h=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",Tn,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-multi-select-btn__clear",{"j-tw-multi-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...n[7]||(n[7]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-multi-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("img",{src:l1,class:t.normalizeClass(["j-tw-multi-select-btn__arrow",{"j-tw-multi-select-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[6]||(n[6]=t.createElementVNode("img",{src:i1,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-multi-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-multi-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[5]||(n[5]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Ln,[t.createVNode(c,{modelValue:e.searchKeyword,"onUpdate:modelValue":[n[3]||(n[3]=h=>e.searchKeyword=h),e.handleSearchInput],placeholder:e.searchPlaceholder,clearable:""},{suffix:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",class:"j-tw-multi-select-btn__search-icon","aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:"M447.98 64C236.42 64 64 236.42 64 447.98S236.42 832 447.98 832c90.08 0 172.94-31.24 238.34-83.4l197.06 197.1c12.48 12.48 32.74 12.48 45.22 0s12.48-32.74 0-45.22L731.56 703.42C783.74 638.02 815 555.16 815 465.08 815 253.52 642.58 81.1 431.02 81.1zm0 704C271.7 768 128 624.3 128 447.98S271.7 128 447.98 128 768 271.7 768 447.98 624.3 768 447.98 768z"})],-1)])]),_:1},8,["modelValue","placeholder","onUpdate:modelValue"])]),t.createElementVNode("div",{class:"j-tw-multi-select-btn__list",style:t.normalizeStyle({maxHeight:`${e.dropdownMaxHeight-62}px`})},[e.isFetching?(t.openBlock(),t.createElementBlock("div",En,[...n[9]||(n[9]=[t.createElementVNode("span",{class:"j-tw-multi-select-btn__loading-spinner"},null,-1),t.createElementVNode("p",{class:"j-tw-multi-select-btn__loading-text"},"加载中...",-1)])])):e.displayOptions.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.displayOptions,h=>(t.openBlock(),t.createElementBlock("div",{key:h.value,class:t.normalizeClass(["j-tw-multi-select-btn__option",{"j-tw-multi-select-btn__option--active":e.isOptionSelected(h.value),"j-tw-multi-select-btn__option--disabled":h.disabled}]),onClick:y=>e.handleOptionClick(h)},[t.createVNode(g,{class:"j-tw-multi-select-btn__checkbox",disabled:h.disabled,"model-value":e.isOptionSelected(h.value),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"])),onChange:y=>e.handleOptionChange(h,y)},null,8,["disabled","model-value","onChange"]),t.createElementVNode("span",jn,t.toDisplayString(h.label),1)],10,xn))),128)):(t.openBlock(),t.createElementBlock("div",zn,[t.createVNode(v,{width:32,height:32}),t.createElementVNode("p",Bn,t.toDisplayString(e.noDataText),1)]))],4)],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const Fn=de(In,[["render",On]]),Pn=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},tempSelectedValue:{type:[String,Number],default:void 0},tempSelectedValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),Rn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",$n="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Vn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Un="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Wn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",Zn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Yn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Gn={key:0,src:Rn,alt:"collapse",class:"j-tw-tree-select-btn__expand-icon"},Hn={key:1,src:$n,alt:"expand",class:"j-tw-tree-select-btn__expand-icon"},Jn={key:2,class:"j-tw-tree-select-btn__expand-placeholder"},Xn={class:"j-tw-tree-select-btn__radio"},Kn={key:0,src:Vn,alt:"indeterminate",class:"j-tw-tree-select-btn__radio-icon"},qn={key:1,src:Un,alt:"checked",class:"j-tw-tree-select-btn__radio-icon"},e0={key:2,src:Wn,alt:"unchecked",class:"j-tw-tree-select-btn__radio-icon"},t0={key:0,src:Zn,alt:"selected",class:"j-tw-tree-select-btn__radio-icon"},n0={key:1,src:Yn,alt:"unselected",class:"j-tw-tree-select-btn__radio-icon"},r0={class:"j-tw-tree-select-btn__node-label"};function o0(e,n,r,i,o,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__node",{"j-tw-tree-select-btn__node--disabled":e.node.disabled},{"j-tw-tree-select-btn__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select-btn__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"}),onClick:n[1]||(n[1]=a=>e.handleNodeClick(e.node))},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select-btn__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select-btn__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",Gn)):(t.openBlock(),t.createElementBlock("img",Hn))])):(t.openBlock(),t.createElementBlock("div",Jn)),t.createElementVNode("div",Xn,[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",Kn)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",qn)):(t.openBlock(),t.createElementBlock("img",e0))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.tempSelectedValue===e.node.value?(t.openBlock(),t.createElementBlock("img",t0)):(t.openBlock(),t.createElementBlock("img",n0))],64))]),t.createElementVNode("span",r0,[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])])],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:g})=>[t.renderSlot(e.$slots,"default",{node:g},()=>[t.createTextVNode(t.toDisplayString(g.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const s1=de(Pn,[["render",o0]]),i0=t.defineComponent({name:"JTWTreeSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWBtn:ze,TreeNode:s1,JTWStatusImg:We},inheritAttrs:!1,props:{size:{type:String,default:ce.NORMAL,validator:e=>Object.values(ce).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),g=t.ref(""),v=t.ref(new Set),h=t.ref(void 0),y=t.ref(new Set),m=t.ref(!1);e.defaultExpandFirst&&e.data.length>0&&v.value.add(e.data[0].value),t.watch(()=>e.data,V=>{e.defaultExpandFirst&&V.length>0&&v.value.size===0&&v.value.add(V[0].value)},{immediate:!0});const Q=t.computed(()=>e.tips!=null?String(e.tips):""),u=(V,q)=>{for(const te of V){if(te.value===q)return te;if(te.children){const ue=u(te.children,q);if(ue)return ue}}return null},w=V=>{if(!V.children||V.children.length===0)return[];const q=[];for(const te of V.children)q.push(te.value),q.push(...w(te));return q},d=(V,q)=>{for(const te of V)if(te.children){if(te.children.some(pe=>pe.value===q))return te;const ue=d(te.children,q);if(ue)return ue}return null},k=V=>{const q=d(e.data,V);return q&&q.children?q.children.map(te=>te.value).filter(te=>te!==V):e.data.map(te=>te.value).filter(te=>te!==V)},D=V=>{const q=d(e.data,V);q&&q.children&&(q.children.every(ue=>y.value.has(ue.value))?y.value.add(q.value):y.value.delete(q.value))},S=V=>e.multiple?y.value.has(V):h.value===V,C=V=>{if(!V.children||V.children.length===0)return[];const q=[];for(const te of V.children)q.push(te.value),q.push(...C(te));return q},I=V=>{if(!e.multiple||!V.children||V.children.length===0)return!1;const q=C(V),te=q.filter(ue=>y.value.has(ue)).length;return te>0&&te<q.length},L=V=>e.multiple?y.value.has(V):h.value===V,F=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue)){const V=e.modelValue.length;return V>0?`已选择 ${V} 项`:e.label}else if(!Array.isArray(e.modelValue)){const V=u(e.data,e.modelValue);if(V)return V.label}}return e.label}),_=(V,q)=>{if(!q)return V;const te=[];for(const ue of V){const pe=ue.label.toLowerCase().includes(q.toLowerCase()),f=ue.children?_(ue.children,q):[];(pe||f.length>0)&&(te.push({...ue,children:f.length>0?f:ue.children}),f.length>0&&v.value.add(ue.value))}return te},x=t.computed(()=>_(e.data,g.value)),$=t.computed(()=>({"j-tw-tree-select-btn":!0,"j-tw-tree-select-btn--large":e.size===ce.LARGE,"j-tw-tree-select-btn--normal":e.size===ce.NORMAL,"j-tw-tree-select-btn--small":e.size===ce.SMALL})),b=t.computed(()=>({"j-tw-btn":!0,"j-tw-tree-select-btn__main":!0,"j-tw-btn--large":e.size===ce.LARGE,"j-tw-btn--normal":e.size===ce.NORMAL,"j-tw-btn--small":e.size===ce.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),N=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-tree-select-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),p={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},R=t.computed(()=>({...p,...e.tooltipConfig})),K=()=>{if(!i.value||!s.value)return;const V=i.value.getBoundingClientRect(),q=s.value.getBoundingClientRect(),ue=window.innerHeight-V.bottom,pe=V.top;let f=V.bottom+4;q.height>50&&ue<q.height+20&&pe>q.height+20&&(f=V.top-q.height-4),c.value={top:`${f}px`,left:`${V.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},Z=()=>{a.value=!0,e.multiple&&Array.isArray(e.modelValue)?y.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),g.value="",t.nextTick(()=>{t.nextTick(()=>{K()})})},ae=()=>{a.value=!1,g.value=""},Y=()=>{a.value?ae():Z()},re=V=>{n("click",V),Y()},O=V=>{v.value.has(V)?v.value.delete(V):(e.accordion&&k(V).forEach(te=>{v.value.delete(te)}),v.value.add(V))},z=V=>{if(!V.disabled)if(e.multiple){const q=y.value.has(V.value),te=w(V);q?(y.value.delete(V.value),te.forEach(pe=>y.value.delete(pe))):(y.value.add(V.value),te.forEach(pe=>y.value.add(pe))),D(V.value);const ue=e.data.filter(pe=>y.value.has(pe.value));n("select",ue)}else h.value=V.value,n("select",V)},oe=()=>{if(e.multiple){const V=Array.from(y.value),q=V.map(te=>u(e.data,te)).filter(te=>te!==null);n("update:modelValue",V),n("confirm",q.length>0?q:null)}else if(h.value!=null){const V=u(e.data,h.value);n("update:modelValue",h.value),n("confirm",V)}else n("update:modelValue",void 0),n("confirm",null);ae()},j=()=>{n("cancel"),ae()},T=()=>{e.multiple?(y.value.clear(),n("update:modelValue",[]),n("confirm",null)):(h.value=void 0,n("update:modelValue",void 0),n("confirm",null))},H=t.computed(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null),ne=V=>{if(!i.value||!s.value)return;const q=V.target;!i.value.contains(q)&&!s.value.contains(q)&&ae()};return t.watch(a,V=>{V?(document.addEventListener("click",ne),window.addEventListener("resize",K),window.addEventListener("scroll",K,!0)):(document.removeEventListener("click",ne),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",ne),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0)}),r({get $el(){return i.value},click:()=>{var V,q;(q=(V=o.value)==null?void 0:V.$el)==null||q.click()},openDropdown:Z,closeDropdown:ae}),{treeSelectRef:i,mainBtnRef:o,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:g,expandedKeys:v,tempSelectedValue:h,tempSelectedValues:y,tooltipContent:Q,displayLabel:F,filteredData:x,treeSelectClass:$,mainBtnClass:b,computedStyle:N,mergedTooltipConfig:R,handleMainClick:re,toggleDropdown:Y,toggleExpand:O,handleNodeClick:z,handleConfirm:oe,handleCancel:j,handleClear:T,showClearIcon:H,isHovering:m,isNodeChecked:S,isNodeIndeterminate:I,isNodeSelected:L}}}),l0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",a0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-tree-select-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",s0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",c0={class:"j-tw-tree-select-btn__label"},u0={class:"j-tw-tree-select-btn__search"},d0=["placeholder"],f0={class:"j-tw-tree-select-btn__tree",ref:"treeContainerRef"},h0={key:0,class:"j-tw-tree-select-btn__empty"},p0={class:"j-tw-tree-select-btn__footer"};function m0(e,n,r,i,o,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWStatusImg"),g=t.resolveComponent("TreeNode"),v=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(e.treeSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-tree-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=h=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=h=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",c0,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-tree-select-btn__clear",{"j-tw-tree-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...n[6]||(n[6]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-tree-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__arrow",{"j-tw-tree-select-btn__arrow--open":e.dropdownVisible}])},[...n[7]||(n[7]=[t.createElementVNode("img",{src:a0,alt:"Dropdown arrow"},null,-1)])],2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[5]||(n[5]=t.createElementVNode("img",{src:l0,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",u0,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-btn__search-input",placeholder:e.searchPlaceholder},null,8,d0),[[t.vModelText,e.searchText]]),n[8]||(n[8]=t.createElementVNode("img",{src:s0,alt:"search",class:"j-tw-tree-select-btn__search-icon"},null,-1))]),t.createElementVNode("div",f0,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",h0,[t.createVNode(c,{width:32,height:32}),n[9]||(n[9]=t.createElementVNode("p",{class:"j-tw-tree-select-btn__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,h=>(t.openBlock(),t.createBlock(g,{key:h.value,node:h,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:y})=>[t.renderSlot(e.$slots,"default",{node:y},()=>[t.createTextVNode(t.toDisplayString(y.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),t.createElementVNode("div",p0,[t.createVNode(v,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(v,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])])],4)):t.createCommentVNode("",!0)]),_:3})]))],6)}const g0=de(i0,[["render",m0]]),w0=t.defineComponent({name:"JTWTreeSelectInput",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption,JTWBtn:ze,TreeNode:s1,JTWStatusImg:We},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{type:String,default:"default"},autoFill:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},allowRadioDeselect:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!1},bgGrey:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0,change:e=>!0,clear:()=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),g=t.ref(""),v=t.ref(new Set),h=t.ref(void 0),y=t.ref(new Set);t.watch(()=>e.data,j=>{e.defaultExpandFirst&&j.length>0&&v.value.size===0&&v.value.add(j[0].value)},{immediate:!0});const m=(j,T)=>{for(const H of j){if(H.value===T)return H;if(H.children){const ne=m(H.children,T);if(ne)return ne}}return null},Q=j=>{if(!j.children||j.children.length===0)return[];const T=[];for(const H of j.children)T.push(H.value),T.push(...Q(H));return T},u=(j,T)=>{for(const H of j)if(H.children){if(H.children.some(ie=>ie.value===T))return H;const ne=u(H.children,T);if(ne)return ne}return null},w=j=>{const T=u(e.data,j);return T&&T.children?T.children.map(H=>H.value).filter(H=>H!==j):e.data.map(H=>H.value).filter(H=>H!==j)},d=j=>{const T=u(e.data,j);T&&T.children&&(T.children.every(ne=>y.value.has(ne.value))?y.value.add(T.value):y.value.delete(T.value))},k=j=>e.multiple?y.value.has(j):h.value===j,D=j=>{if(!j.children||j.children.length===0)return[];const T=[];for(const H of j.children)T.push(H.value),T.push(...D(H));return T},S=j=>{if(!e.multiple||!j.children||j.children.length===0)return!1;const T=D(j),H=T.filter(ne=>y.value.has(ne)).length;return H>0&&H<T.length},C=j=>e.multiple?y.value.has(j):h.value===j,I=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue.map(j=>{const T=m(e.data,j);return T?{value:T.value,label:T.label}:null}).filter(j=>j!==null);if(!Array.isArray(e.modelValue)){const j=m(e.data,e.modelValue);return j?[{value:j.value,label:j.label}]:[]}}return[]}),L=t.computed(()=>{if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue;if(!Array.isArray(e.modelValue))return e.modelValue}),F=(j,T)=>{if(!T)return j;const H=[];for(const ne of j){const ie=ne.label.toLowerCase().includes(T.toLowerCase()),V=ne.children?F(ne.children,T):[];(ie||V.length>0)&&(H.push({...ne,children:V.length>0?V:ne.children}),V.length>0&&v.value.add(ne.value))}return H},_=t.computed(()=>F(e.data,g.value)),x=t.computed(()=>e.autoFill?e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null:e.clearable),$=()=>{if(!i.value||!s.value)return;const j=i.value.getBoundingClientRect(),T=s.value.getBoundingClientRect(),ne=window.innerHeight-j.bottom,ie=j.top;let V=j.bottom+4;T.height>50&&ne<T.height+20&&ie>T.height+20&&(V=j.top-T.height-4),c.value={top:`${V}px`,left:`${j.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},b=()=>{e.disabled||(a.value=!0,e.multiple&&Array.isArray(e.modelValue)?y.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),g.value="",t.nextTick(()=>{t.nextTick(()=>{$()})}))},N=()=>{a.value=!1,g.value=""},p=j=>{j.target.closest(".el-select__clear")||j.preventDefault()},R=j=>{j.stopPropagation(),a.value||b()},K=j=>{j&&t.nextTick(()=>{var T;(T=o.value)==null||T.blur()})},Z=()=>{e.multiple?y.value.clear():h.value=void 0,n("update:modelValue",e.multiple?[]:void 0),n("clear"),n("change",e.multiple?[]:void 0),N()},ae=j=>{v.value.has(j)?v.value.delete(j):(e.accordion&&w(j).forEach(H=>{v.value.delete(H)}),v.value.add(j))},Y=j=>{if(!j.disabled)if(e.multiple){const T=y.value.has(j.value),H=Q(j);T?(y.value.delete(j.value),H.forEach(ie=>y.value.delete(ie))):(y.value.add(j.value),H.forEach(ie=>y.value.add(ie))),d(j.value);const ne=e.data.filter(ie=>y.value.has(ie.value));if(n("select",ne),e.autoFill){const ie=Array.from(y.value);n("update:modelValue",ie),n("change",ie)}e.autoClose&&N()}else h.value=j.value,n("select",j),e.autoFill&&(h.value!=null?(n("update:modelValue",h.value),n("change",h.value)):(n("update:modelValue",void 0),n("change",void 0))),e.autoClose&&h.value!=null&&N()},re=()=>{if(e.multiple){const j=Array.from(y.value),T=j.map(H=>m(e.data,H)).filter(H=>H!==null);n("update:modelValue",j),n("confirm",T.length>0?T:null),n("change",j)}else if(h.value!=null){const j=m(e.data,h.value);n("update:modelValue",h.value),n("confirm",j),n("change",h.value)}else n("update:modelValue",void 0),n("confirm",null),n("change",void 0);N()},O=()=>{n("cancel"),N()},z=j=>{if(!i.value||!s.value)return;const T=j.target;!i.value.contains(T)&&!s.value.contains(T)&&N()};return t.watch(a,j=>{j?(setTimeout(()=>{document.addEventListener("mousedown",z)},100),window.addEventListener("resize",$),window.addEventListener("scroll",$,!0)):(document.removeEventListener("mousedown",z),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",z),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0)}),r({get $el(){return i.value},focus:()=>{var j;(j=o.value)==null||j.focus()},blur:()=>{var j;(j=o.value)==null||j.blur()},openDropdown:b,closeDropdown:N}),{treeSelectInputRef:i,selectRef:o,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:g,expandedKeys:v,tempSelectedValue:h,tempSelectedValues:y,displayOptions:I,selectDisplayValue:L,filteredData:_,computedClearable:x,handleMouseDown:p,handleSelectClick:R,handleVisibleChange:K,handleClear:Z,toggleExpand:ae,handleNodeClick:Y,handleConfirm:re,handleCancel:O,isNodeChecked:k,isNodeIndeterminate:S,isNodeSelected:C}}}),y0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",v0={class:"j-tw-tree-select-input__search"},Q0=["placeholder"],k0={class:"j-tw-tree-select-input__tree",ref:"treeContainerRef"},b0={key:0,class:"j-tw-tree-select-input__empty"},M0={key:0,class:"j-tw-tree-select-input__footer"};function C0(e,n,r,i,o,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select"),c=t.resolveComponent("JTWStatusImg"),g=t.resolveComponent("TreeNode"),v=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectInputRef",class:t.normalizeClass(["j-tw-tree-select-input",{"j-tw-tree-select-input--open":e.dropdownVisible,"j-tw-tree-select-input--bg-grey":e.bgGrey}]),onMousedown:n[2]||(n[2]=(...h)=>e.handleMouseDown&&e.handleMouseDown(...h))},[t.createVNode(a,{ref:"selectRef","model-value":e.selectDisplayValue,placeholder:e.placeholder,disabled:e.disabled,clearable:e.computedClearable,size:e.size,"popper-class":"j-tw-tree-select-input__hidden-popper",onClick:t.withModifiers(e.handleSelectClick,["stop"]),onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displayOptions,h=>(t.openBlock(),t.createBlock(l,{key:h.value,label:h.label,value:h.value,style:{display:"none"}},null,8,["label","value"]))),128))]),_:1},8,["model-value","placeholder","disabled","clearable","size","onClick","onClear","onVisibleChange"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-input__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",v0,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-input__search-input",placeholder:e.searchPlaceholder},null,8,Q0),[[t.vModelText,e.searchText]]),n[3]||(n[3]=t.createElementVNode("img",{src:y0,alt:"search",class:"j-tw-tree-select-input__search-icon"},null,-1))]),t.createElementVNode("div",k0,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",b0,[t.createVNode(c,{width:32,height:32}),n[4]||(n[4]=t.createElementVNode("p",{class:"j-tw-tree-select-input__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,h=>(t.openBlock(),t.createBlock(g,{key:h.value,node:h,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:y})=>[t.renderSlot(e.$slots,"default",{node:y},()=>[t.createTextVNode(t.toDisplayString(y.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",M0,[t.createVNode(v,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(v,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])]))],4)):t.createCommentVNode("",!0)]),_:3})]))],34)}const _0=de(w0,[["render",C0]]),D0=t.defineComponent({name:"JTWDatePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD"},valueFormat:{type:String,default:"YYYY-MM-DD"},placeholder:{type:String,default:"选择日期范围"},startPlaceholder:{type:String,default:"开始日期"},endPlaceholder:{type:String,default:"结束日期"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const i=t.inject("elFormItem",null),o=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var k;n("change",d),e.validateEvent&&i&&((k=i.validate)==null||k.call(i,"change"))},c=d=>{var k;n("blur",d),e.validateEvent&&i&&((k=i.validate)==null||k.call(i,"blur"))},g=d=>{n("focus",d)},v=()=>{n("clear")},h=d=>{n("visible-change",d)},y=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),m=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"本周",value:()=>{const d=new Date,k=d.getDay(),D=k===0?6:k-1,S=new Date(d);S.setDate(d.getDate()-D),S.setHours(0,0,0,0);const C=new Date(S);return C.setDate(S.getDate()+6),C.setHours(23,59,59,999),[S,C]}},{text:"本月",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),1),D=new Date(d.getFullYear(),d.getMonth()+1,0,23,59,59,999);return[k,D]}},{text:"本年度",value:()=>{const d=new Date,k=new Date(d.getFullYear(),0,1),D=new Date(d.getFullYear(),11,31,23,59,59,999);return[k,D]}}]});return r({get $el(){return o.value},focus:()=>{var k;const d=(k=o.value)==null?void 0:k.querySelector("input");d==null||d.focus()},blur:()=>{var k;const d=(k=o.value)==null?void 0:k.querySelector("input");d==null||d.blur()}}),{datePickerRef:o,elDatePickerRef:s,internalValue:l,computedPopperOptions:y,computedShortcuts:m,handleChange:a,handleBlur:c,handleFocus:g,handleClear:v,handleVisibleChange:h}}}),A0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",N0={class:"j-tw-date-picker__separator"};function S0(e,n,r,i,o,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"datePickerRef",class:t.normalizeClass(["j-tw-date-picker",{"j-tw-date-picker--bg-grey":e.bgGrey,"j-tw-date-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"daterange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-date-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-date-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:A0,alt:"calendar",class:"j-tw-date-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",N0,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const I0=de(D0,[["render",S0]]),T0=t.defineComponent({name:"JTWDateTimePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},placeholder:{type:String,default:"选择时间范围"},startPlaceholder:{type:String,default:"开始时间"},endPlaceholder:{type:String,default:"结束时间"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const i=t.inject("elFormItem",null),o=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var k;n("change",d),e.validateEvent&&i&&((k=i.validate)==null||k.call(i,"change"))},c=d=>{var k;n("blur",d),e.validateEvent&&i&&((k=i.validate)==null||k.call(i,"blur"))},g=d=>{n("focus",d)},v=()=>{n("clear")},h=d=>{n("visible-change",d)},y=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),m=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"最近1小时",value:()=>{const d=new Date;return[new Date(d.getTime()-3600*1e3),d]}},{text:"今日",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0),D=new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59,999);return[k,D]}},{text:"昨日",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,0,0,0,0),D=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,23,59,59,999);return[k,D]}}]});return r({get $el(){return o.value},focus:()=>{var k;const d=(k=o.value)==null?void 0:k.querySelector("input");d==null||d.focus()},blur:()=>{var k;const d=(k=o.value)==null?void 0:k.querySelector("input");d==null||d.blur()}}),{dateTimePickerRef:o,elDatePickerRef:s,internalValue:l,computedPopperOptions:y,computedShortcuts:m,handleChange:a,handleBlur:c,handleFocus:g,handleClear:v,handleVisibleChange:h}}}),L0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",E0={class:"j-tw-datetime-picker__separator"};function x0(e,n,r,i,o,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"dateTimePickerRef",class:t.normalizeClass(["j-tw-datetime-picker",{"j-tw-datetime-picker--bg-grey":e.bgGrey,"j-tw-datetime-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"datetimerange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-datetime-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-datetime-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:L0,alt:"calendar",class:"j-tw-datetime-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",E0,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const j0=de(T0,[["render",x0]]),z0=t.defineComponent({name:"JTWRadio",components:{ElRadio:fe.ElRadio},inheritAttrs:!1,setup(){return{}}});function B0(e,n,r,i,o,s){const l=t.resolveComponent("el-radio");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elRadioRef",class:"j-tw-radio"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const c1=de(z0,[["render",B0]]),O0=t.defineComponent({name:"JTWPagination",components:{ElPagination:fe.ElPagination},props:{page:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},pagerCount:{type:Number,default:5},background:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:{sizeChange:e=>!0,currentChange:e=>!0,"update:page":e=>!0,"update:pageSize":e=>!0},setup(e,{emit:n}){return{handleSizeChange:o=>{n("sizeChange",o),n("update:pageSize",o),n("update:page",1)},handleCurrentChange:o=>{n("currentChange",o),n("update:page",o)}}}}),F0={class:"j-tw-pagination"};function P0(e,n,r,i,o,s){const l=t.resolveComponent("el-pagination");return t.openBlock(),t.createElementBlock("div",F0,[t.createVNode(l,{"pager-count":e.pagerCount,"page-sizes":e.pageSizes,"current-page":e.page,"page-size":e.pageSize,total:e.total,layout:e.layout,background:e.background,disabled:e.disabled,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["pager-count","page-sizes","current-page","page-size","total","layout","background","disabled","onSizeChange","onCurrentChange"])])}const u1=de(O0,[["render",P0]]),R0=t.defineComponent({name:"JTWTable",components:{ElPopover:fe.ElPopover,JTWCheckbox:Mt,JTWRadio:c1,JTWPagination:u1,JTWBtn:ze},props:{rows:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},loading:{type:Boolean,default:!1},height:{type:[String,Number],default:void 0},pagination:{type:[Object,Boolean],default:!1},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},bordered:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}},emits:{selectionChange:e=>!0,sortChange:e=>!0,filterChange:e=>!0,sizeChange:e=>!0,currentChange:e=>!0,"update:pagination":e=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.ref([]),s=t.ref({}),l=t.ref({}),a=(b,N)=>typeof e.rowKey=="function"?e.rowKey(b):b[e.rowKey]??N,c=b=>{const N={};return b.width&&(N.width=typeof b.width=="number"?`${b.width}px`:b.width),b.minWidth&&(N.minWidth=typeof b.minWidth=="number"?`${b.minWidth}px`:b.minWidth),b.width||(N.flex="1"),N},g=b=>o.value.some(N=>a(N,-1)===a(b,-1)),v=t.computed(()=>e.rows.length>0&&e.rows.every(b=>g(b))),h=t.computed(()=>{const b=e.rows.filter(N=>g(N)).length;return b>0&&b<e.rows.length}),y=b=>{o.value=b?[...e.rows]:[],n("selectionChange",o.value)},m=(b,N)=>{N?g(b)||o.value.push(b):o.value=o.value.filter(p=>a(p,-1)!==a(b,-1)),n("selectionChange",o.value)},Q=b=>{n("sortChange",b)},u=b=>!!b.filteredValue&&b.filteredValue.length>0,w=(b,N)=>{const p=s.value[b.prop];return p!==void 0?p.includes(N):!!b.filteredValue&&b.filteredValue.includes(N)},d=(b,N,p)=>{s.value[b.prop]||(s.value[b.prop]=b.filteredValue?[...b.filteredValue]:[]);const R=s.value[b.prop];if(p)R.includes(N)||R.push(N);else{const K=R.indexOf(N);K>-1&&R.splice(K,1)}},k=b=>{const N=s.value[b.prop];return N!==void 0&&N.length>0?N[0]:b.filteredValue&&b.filteredValue.length>0?b.filteredValue[0]:void 0},D=(b,N)=>{s.value[b.prop]=[N]},S=b=>{const N=s.value[b.prop]||[],p={};p[b.prop]=N,n("filterChange",p),l.value[b.prop]=!1},C=b=>{s.value[b.prop]=[];const N={};N[b.prop]=[],n("filterChange",N),l.value[b.prop]=!1},I=()=>{const b=e.pagination;return b||null},L=b=>{n("sizeChange",b);const N=I();N&&n("update:pagination",{...N,pageSize:b,page:1})},F=b=>{n("currentChange",b);const N=I();N&&n("update:pagination",{...N,page:b})};return r({get $el(){return i.value},tableRef:i,clearSelection:()=>{o.value=[],n("selectionChange",[])},toggleRowSelection:(b,N)=>{const p=N??!g(b);m(b,p)}}),{tableRef:i,selectedRows:o,filterPopoverVisible:l,isAllSelected:v,isIndeterminate:h,isRowSelected:g,getRowKey:a,getColStyle:c,emptyText:e.emptyText,handleSelectAll:y,handleRowSelect:m,handleSortChange:Q,isFilterActive:u,isFilterSelected:w,handleFilterSelect:d,getSingleFilterValue:k,handleSingleFilterSelect:D,handleFilterConfirm:S,handleFilterReset:C,handleSizeChange:L,handleCurrentChange:F}}}),$0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzBfMjcwXzUzODIzIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjODBBNkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMxNjVERkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJiZ2JsdXJfbWFzdGVyX3N2ZzFfMTMxM18wOTQ3NzFfY2xpcF9wYXRoIj48cGF0aCBkPSJNMjQgNEMyMi40ODY3NCA0IDIxLjE2OTc0NiAzLjE1OTY4MzIgMjAuNDkwMTkyIDEuOTIwMjI0MUMxOS45NTkxNjkgMC45NTE2NzQxIDE5LjEwNDU3IDAgMTggMEwyLjAwMDAwMDUgMEMwLjg5NTQzMDU2IDAgMCAwLjg5NTQzMDU2IDAgMi4wMDAwMDAyTDAgMjBDMCAyMi4yMDkxMzkgMS43OTA4NjExIDI0IDQuMDAwMDAxIDI0TDY4IDI0QzcwLjIwOTEzNyAyNCA3MiAyMi4yMDkxMzkgNzIgMjBMNzIgMi4wMDAwMDA1QzcyIDAuODk1NDMwNTYgNzEuMTA0NTY4IDAgNzAgMEw1NCAwQzUyLjg5NTQzMiAwIDUyLjA0MDgyOSAwLjk1MTY3NDIyIDUxLjUwOTgwOCAxLjkyMDIyNDFDNTAuODMwMjU0IDMuMTU5NjgzMiA0OS41MTMyNiA0IDQ4IDRMMjQgNFoiLz48L2NsaXBQYXRoPjxsaW5lYXJHcmFkaWVudCB4MT0iMC41IiB5MT0iMCIgeDI9IjAuNSIgeTI9IjEiIGlkPSJtYXN0ZXJfc3ZnMl8yNzBfNTM4MTciPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNDQ0RCRkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzk5QjhGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxTDgsNjhaIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcwXzI3MF81MzgyMykiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcxXzEzMTNfMDk0NzcxX2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcyXzI3MF81MzgxNykiIGZpbGwtb3BhY2l0eT0iMSIvPjwvc3ZnPg==",V0={class:"j-tw-table__header"},U0={key:0,class:"j-tw-table__header-cell j-tw-table__header-cell--selection"},W0={key:1,class:"j-tw-table__header-cell",style:{width:"60px","flex-shrink":"0"}},Z0={class:"j-tw-table__header-label"},Y0={key:0,class:"j-tw-table__filter-dot"},G0={class:"j-tw-table__filter-content"},H0={class:"j-tw-table__filter-list"},J0={class:"j-tw-table__filter-actions"},X0={key:2,class:"j-tw-table__header-cell j-tw-table__header-cell--action"},K0={class:"j-tw-table__body-wrapper"},q0={key:0,class:"j-tw-table__body"},e2={key:0,class:"j-tw-table__cell j-tw-table__cell--selection"},t2={key:1,class:"j-tw-table__cell",style:{width:"60px","flex-shrink":"0"}},n2={key:1},r2={key:2,class:"j-tw-table__cell j-tw-table__cell--action"},o2={key:1,class:"j-tw-table__empty"},i2={class:"j-tw-table__empty-text"},l2={key:0,class:"j-tw-table__pagination"};function a2(e,n,r,i,o,s){const l=t.resolveComponent("JTWCheckbox"),a=t.resolveComponent("JTWRadio"),c=t.resolveComponent("JTWBtn"),g=t.resolveComponent("el-popover"),v=t.resolveComponent("JTWPagination"),h=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-table",{"j-tw-table--dense":e.dense,"j-tw-table--fixed":e.height}]),style:t.normalizeStyle(e.height?{height:typeof e.height=="number"?`${e.height}px`:e.height}:{})},[t.renderSlot(e.$slots,"header"),t.createElementVNode("div",V0,[e.selection?(t.openBlock(),t.createElementBlock("div",U0,[t.createVNode(l,{"model-value":e.isAllSelected,indeterminate:e.isIndeterminate,onChange:n[0]||(n[0]=y=>e.handleSelectAll(!!y))},null,8,["model-value","indeterminate"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",W0," 序号 ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,y=>(t.openBlock(),t.createElementBlock("div",{key:y.prop,class:"j-tw-table__header-cell",style:t.normalizeStyle(e.getColStyle(y))},[t.createElementVNode("span",Z0,t.toDisplayString(y.label),1),y.filters&&y.filters.length>0?(t.openBlock(),t.createBlock(g,{key:0,visible:e.filterPopoverVisible[y.prop],"onUpdate:visible":m=>e.filterPopoverVisible[y.prop]=m,placement:y.filterPlacement||"bottom-end",width:200,trigger:"click","popper-class":"j-tw-table__filter-popover"},{reference:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["j-tw-table__filter-icon",{"is-active":e.isFilterActive(y)}])},[n[1]||(n[1]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[t.createElementVNode("path",{d:"M2 2H12L8 7V11L6 12V7L2 2Z",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),e.isFilterActive(y)?(t.openBlock(),t.createElementBlock("span",Y0)):t.createCommentVNode("",!0)],2)]),default:t.withCtx(()=>[t.createElementVNode("div",G0,[t.createElementVNode("div",H0,[y.filterMultiple!==!1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(y.filters,m=>(t.openBlock(),t.createBlock(l,{key:m.value,"model-value":e.isFilterSelected(y,m.value),onChange:Q=>e.handleFilterSelect(y,m.value,!!Q),class:"j-tw-table__filter-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.label),1)]),_:2},1032,["model-value","onChange"]))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(y.filters,m=>(t.openBlock(),t.createBlock(a,{key:m.value,"model-value":e.getSingleFilterValue(y),label:m.value,onChange:Q=>e.handleSingleFilterSelect(y,m.value),class:"j-tw-table__filter-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.label),1)]),_:2},1032,["model-value","label","onChange"]))),128))]),t.createElementVNode("div",J0,[t.createVNode(c,{size:"small",onClick:m=>e.handleFilterConfirm(y)},{default:t.withCtx(()=>[...n[2]||(n[2]=[t.createTextVNode(" 筛选 ",-1)])]),_:1},8,["onClick"]),t.createVNode(c,{size:"small",flat:"",onClick:m=>e.handleFilterReset(y)},{default:t.withCtx(()=>[...n[3]||(n[3]=[t.createTextVNode(" 重置 ",-1)])]),_:1},8,["onClick"])])])]),_:2},1032,["visible","onUpdate:visible","placement"])):t.createCommentVNode("",!0)],4))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",X0," 操作 ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",K0,[e.rows&&e.rows.length>0?(t.openBlock(),t.createElementBlock("div",q0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,(y,m)=>(t.openBlock(),t.createElementBlock("div",{key:e.getRowKey(y,m),class:t.normalizeClass(["j-tw-table__row",{"j-tw-table__row--selected":e.isRowSelected(y)}])},[e.selection?(t.openBlock(),t.createElementBlock("div",e2,[t.createVNode(l,{"model-value":e.isRowSelected(y),onChange:Q=>e.handleRowSelect(y,!!Q)},null,8,["model-value","onChange"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",t2,t.toDisplayString(m+1),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,Q=>(t.openBlock(),t.createElementBlock("div",{key:Q.prop,class:t.normalizeClass(["j-tw-table__cell",`j-tw-table__cell--align-${Q.align||"left"}`]),style:t.normalizeStyle(e.getColStyle(Q))},[Q.type==="slot"?t.renderSlot(e.$slots,`col-${Q.prop}`,{key:0,row:y,$index:m,column:Q}):(t.openBlock(),t.createElementBlock("span",n2,t.toDisplayString(y[Q.prop]??"-"),1))],6))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",r2,[t.renderSlot(e.$slots,"action",{row:y,$index:m})])):t.createCommentVNode("",!0)],2))),128))])):(t.openBlock(),t.createElementBlock("div",o2,[t.renderSlot(e.$slots,"empty",{},()=>[n[4]||(n[4]=t.createElementVNode("img",{class:"j-tw-table__empty-img",src:$0,alt:"no data"},null,-1)),t.createElementVNode("span",i2,t.toDisplayString(e.emptyText),1)])]))]),e.pagination!==!1&&e.pagination?(t.openBlock(),t.createElementBlock("div",l2,[t.createVNode(v,{page:e.pagination.page,"page-size":e.pagination.pageSize,total:e.pagination.total,"page-sizes":e.pagination.pageSizes,layout:e.pagination.layout,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])):t.createCommentVNode("",!0)],6)),[[h,e.loading]])}const s2=de(R0,[["render",a2]]),c2=t.defineComponent({name:"JTWMessageItem",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},content:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},duration:{type:Number,default:3e3},showClose:{type:Boolean,default:!1},offset:{type:Number,default:52},onClose:{type:Function,default:void 0}},emits:{destroy:e=>!0},setup(e,{emit:n}){const r=t.ref(!1);let i;const o=t.computed(()=>({"j-tw-message":!0,[`j-tw-message--${e.type}`]:!0})),s=t.computed(()=>({top:`${e.offset}px`})),l=()=>{e.duration>0&&(i=window.setTimeout(()=>{c()},e.duration))},a=()=>{i&&(clearTimeout(i),i=void 0)},c=()=>{var y;r.value=!1,(y=e.onClose)==null||y.call(e)},g=()=>{n("destroy",e.id)},v=()=>{a()},h=()=>{l()};return t.onMounted(()=>{r.value=!0,l()}),{visible:r,computedClass:o,computedStyle:s,handleClose:c,handleAfterLeave:g,handleMouseEnter:v,handleMouseLeave:h}}}),u2={class:"j-tw-message__icon"},d2={key:0,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f2={key:1,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h2={key:2,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p2={key:3,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m2={key:4,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g2=["innerHTML"],w2={key:2,class:"j-tw-message__content"};function y2(e,n,r,i,o,s){return t.openBlock(),t.createBlock(t.Transition,{name:"j-tw-message-fade",onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.computedClass),style:t.normalizeStyle(e.computedStyle),onMouseenter:n[1]||(n[1]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseleave:n[2]||(n[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[t.createElementVNode("div",u2,[e.type==="success"?(t.openBlock(),t.createElementBlock("svg",d2,[...n[3]||(n[3]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M11.5 5.5L7 10.5L4.5 8",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.type==="warning"?(t.openBlock(),t.createElementBlock("svg",f2,[...n[4]||(n[4]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M8 4.5V8.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"11",r:"0.75",fill:"white"},null,-1)])])):e.type==="error"?(t.openBlock(),t.createElementBlock("svg",h2,[...n[5]||(n[5]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M10.5 5.5L5.5 10.5M5.5 5.5L10.5 10.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):e.type==="info"?(t.openBlock(),t.createElementBlock("svg",p2,[...n[6]||(n[6]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):(t.openBlock(),t.createElementBlock("svg",m2,[...n[7]||(n[7]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))]),e.html&&typeof e.content=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-message__content",innerHTML:e.content},null,8,g2)):typeof e.content=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:1,class:"j-tw-message__content"})):(t.openBlock(),t.createElementBlock("div",w2,t.toDisplayString(e.content),1)),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-message__close",onClick:n[0]||(n[0]=(...l)=>e.handleClose&&e.handleClose(...l))},[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})],-1)])])):t.createCommentVNode("",!0)],38)):t.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])}const v2=de(c2,[["render",y2]]),Se=t.ref([]),Q2=t.defineComponent({name:"JTWMessages",components:{MessageItem:v2},setup(){const e=r=>{const i=Se.value.findIndex(o=>o.id===r);i!==-1&&Se.value.splice(i,1)};return{messages:t.computed(()=>Se.value.filter(r=>r.visible)),handleDestroy:e}}}),k2={class:"j-tw-message-container"};function b2(e,n,r,i,o,s){const l=t.resolveComponent("MessageItem");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createElementVNode("div",k2,[t.createVNode(t.TransitionGroup,{name:"j-tw-message-list"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.messages,a=>(t.openBlock(),t.createBlock(l,{key:a.id,id:a.id,type:a.type,content:a.content,duration:a.duration,"show-close":a.showClose,offset:a.offset,"on-close":a.onClose,html:a.html,onDestroy:e.handleDestroy},null,8,["id","type","content","duration","show-close","offset","on-close","html","onDestroy"]))),128))]),_:1})])])}const d1=de(Q2,[["render",b2]]),ht={WARN:"warn",INFO:"info",SUCCESS:"success",ERROR:"error"},M2=t.defineComponent({name:"JTWConfirmDialog",components:{JTWBtn:ze},props:{visible:{type:Boolean,default:!1},message:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},icon:{type:String,default:ht.WARN},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:n}){const r=()=>{n("confirm")},i=()=>{n("cancel")},o=()=>{n("cancel")},s={warn:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10.001" cy="10" rx="8.333" ry="8.333" fill="#FF7D00"/><path d="M9.25,6 L9.25,11 Q9.25,11.75,10,11.75 Q10.75,11.75,10.75,11 L10.75,6 Q10.75,5.25,10,5.25 Q9.25,5.25,9.25,6 Z" fill="#FFFFFF"/><circle cx="10" cy="14" r="1" fill="#FFFFFF"/></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10" cy="10" rx="8" ry="8" fill="#165DFF"/><path d="M9.25,9 L9.25,14 Q9.25,14.75,10,14.75 Q10.75,14.75,10.75,14 L10.75,9 Q10.75,8.25,10,8.25 Q9.25,8.25,9.25,9 Z" fill="#FFFFFF"/><circle cx="10" cy="6.5" r="1" fill="#FFFFFF"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#00B42A"/><path d="M6 10 L9 13 L14 7" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#F53F3F"/><path d="M7 7 L13 13 M13 7 L7 13" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round"/></svg>'};return{iconSvg:t.computed(()=>s[e.icon??ht.WARN]),handleConfirm:r,handleCancel:i,handleMaskClick:o}}}),C2={class:"j-tw-confirm-dialog__header"},_2=["innerHTML"],D2=["innerHTML"],A2={key:2,class:"j-tw-confirm-dialog__message"},N2={class:"j-tw-confirm-dialog__footer"};function S2(e,n,r,i,o,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-confirm-dialog-fade"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__mask",onClick:n[1]||(n[1]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a))},[t.createElementVNode("div",{class:"j-tw-confirm-dialog__wrapper",onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",C2,[t.createElementVNode("span",{class:"j-tw-confirm-dialog__icon",innerHTML:e.iconSvg},null,8,_2),e.html&&typeof e.message=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__message",innerHTML:e.message},null,8,D2)):typeof e.message=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.message),{key:1,class:"j-tw-confirm-dialog__message"})):(t.openBlock(),t.createElementBlock("span",A2,t.toDisplayString(e.message),1))]),t.createElementVNode("div",N2,[t.createVNode(l,{label:e.cancelText||"取消",flat:"",onClick:e.handleCancel},null,8,["label","onClick"]),t.createVNode(l,{label:e.confirmText||"确定",onClick:e.handleConfirm},null,8,["label","onClick"])])])])):t.createCommentVNode("",!0)]),_:1})])}const f1=de(M2,[["render",S2]]),h1={CENTER:"center",RIGHT:"right"},p1={SM:"sm",MD:"md",LG:"lg"},m1={BOTH:"both",CANCEL_ONLY:"cancel-only",CONFIRM_ONLY:"confirm-only"};var I2={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const Re=new Map;let De={};const Ve={configure(e){De=e},async register(e){try{console.log("[twDialog] 开始注册 dialog, props:",e);const n=e.dialogId||Math.random().toString(36).slice(2),r={...e,dialogId:n},i=t.ref(null),o=De.locale||I2;console.log("[twDialog] 创建 WrapperComponent...");const s={setup(){return{dialogRef:i}},render(){return t.h(fe.ElConfigProvider,{locale:o},{default:()=>t.h(g1,{...r,ref:g=>{console.log("[twDialog] ref 回调被调用, el:",g),i.value=g}})})}};console.log("[twDialog] 创建 Vue app...");const l=t.createApp(s);De.router&&l.use(De.router),De.store&&l.use(De.store),De.i18n&&l.use(De.i18n),De.plugins&&De.plugins.forEach(g=>l.use(g)),console.log("[twDialog] 挂载 app...");const a=document.createElement("div");l.mount(a),console.log("[twDialog] app 已挂载, mountEl:",a),await t.nextTick(),console.log("[twDialog] nextTick 后, dialogRef.value:",i.value);const c=i.value;if(!c)throw new Error("dialogRef.value 为 null,组件可能没有正确挂载");return Re.set(n,{app:l,appInstance:c}),t.nextTick(()=>{c&&(console.log("[twDialog] 调用 appInstance.open()"),c.open())}),console.log("[twDialog] 注册成功, 返回 appInstance"),c}catch(n){throw console.error("[twDialog] 注册失败:",n),console.error("[twDialog] 错误堆栈:",n instanceof Error?n.stack:"无堆栈信息"),n}},destroy(e){const n=Re.get(e);if(n){try{const r=n.app._container;n.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}Re.delete(e)}},destroyAll(){Re.forEach((e,n)=>{try{const r=e.app._container;e.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}}),Re.clear()}};async function T2(e){return Ve.register(e)}const L2=t.defineComponent({name:"JTWDialog",components:{JTWBtn:ze},props:{dialogId:{type:String},title:{type:String,default:""},position:{type:String,default:h1.CENTER},size:{type:String,default:p1.MD},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerMode:{type:String,default:m1.BOTH},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},component:{default:null},componentBind:{type:Object,default:()=>({})},componentOn:{type:Object,default:()=>({})},closeOnMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},footerExtra:{type:Object,default:null},bodyPadded:{type:Boolean,default:!0},width:{type:String,default:""},topOffset:{type:String,default:"0px"}},setup(e,{expose:n}){var b;const r=t.ref(!1),i=t.ref(null),o=t.ref(null),s=t.ref(!1),l=t.ref(e.cancelText),a=t.ref(e.confirmText),c=t.ref(((b=e.footerExtra)==null?void 0:b.bind)||{}),g=t.ref(e.width),v=t.computed(()=>e.position==="right"?"j-tw-dialog-slide-right":"j-tw-dialog-fade"),h=t.computed(()=>`j-tw-dialog__wrapper--${e.size}`),y=t.computed(()=>{const N={};return e.topOffset!=="0px"&&(N.height=`calc(100vh - ${e.topOffset})`,N.top=e.topOffset),N}),m=t.computed(()=>{const N={};return g.value&&(N.width=g.value,N.maxWidth=g.value),e.position==="right"&&e.topOffset!=="0px"&&(N.height=`calc(100vh - ${e.topOffset})`,N.maxHeight=`calc(100vh - ${e.topOffset})`),N}),Q=t.computed(()=>{var N;return{...e.componentBind,dialogInstance:{...((N=e.componentBind)==null?void 0:N.dialogInstance)||{},open:w,close:d,setLoading:k,changeCancelText:D,changeConfirmText:S,setFooterExtraBind:C,setDialogWidth:I}}}),u=t.computed(()=>{var N;return{...(N=e.footerExtra)==null?void 0:N.bind,...c.value}}),w=()=>{r.value=!0,t.nextTick(()=>{var N;(N=i.value)==null||N.focus()})},d=()=>{r.value=!1},k=N=>{s.value=N},D=N=>{l.value=N},S=N=>{a.value=N},C=N=>{c.value={...c.value,...N}},I=N=>{g.value=N},L=()=>{e.closeOnMask&&d()},F=()=>{e.closeOnEsc&&d()},_=()=>{const N=o.value;N!=null&&N.handleClickCancel?N.handleClickCancel():d()},x=()=>{const N=o.value;N!=null&&N.handleClickConfirm&&N.handleClickConfirm()},$=()=>{e.dialogId&&Ve.destroy(e.dialogId)};return t.onErrorCaptured((N,p,R)=>(console.error("[JTWDialog] Component error captured:",N,R),!1)),n({open:w,close:d,setLoading:k,changeCancelText:D,changeConfirmText:S,setFooterExtraBind:C,setDialogWidth:I,loading:s}),{visible:r,maskRef:i,dynamicCompRef:o,loading:s,cancelText:l,confirmText:a,transitionName:v,sizeClass:h,maskStyle:y,wrapperStyle:m,computedComponentBind:Q,computedFooterExtraBind:u,open:w,close:d,setLoading:k,changeCancelText:D,changeConfirmText:S,handleMaskClick:L,handleEscKey:F,handleClickCancel:_,handleClickConfirm:x,handleAfterLeave:$}}}),E2={key:0,class:"j-tw-dialog__header"},x2={class:"j-tw-dialog__title"},j2={class:"j-tw-dialog__error"},z2={style:{"font-size":"12px",color:"#999","margin-top":"8px"}},B2={key:2,class:"j-tw-dialog__loading"},O2={key:1,class:"j-tw-dialog__footer-extra"},F2={key:2,class:"j-tw-dialog__footer"};function P2(e,n,r,i,o,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:e.transitionName,onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-dialog__mask",{"j-tw-dialog__mask--right":e.position==="right"}]),style:t.normalizeStyle(e.maskStyle),onClick:n[2]||(n[2]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a)),onKeydown:n[3]||(n[3]=t.withKeys((...a)=>e.handleEscKey&&e.handleEscKey(...a),["esc"])),tabindex:"-1",ref:"maskRef"},[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__wrapper",`j-tw-dialog__wrapper--${e.position}`,e.sizeClass]),style:t.normalizeStyle(e.wrapperStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[e.showHeader?(t.openBlock(),t.createElementBlock("div",E2,[t.createElementVNode("span",x2,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createElementVNode("button",{class:"j-tw-dialog__close",onClick:n[0]||(n[0]=(...a)=>e.close&&e.close(...a)),type:"button"},[...n[4]||(n[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__body",{"j-tw-dialog__body--no-padding":!e.bodyPadded}])},[e.component?(t.openBlock(),t.createBlock(t.Suspense,{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component),t.mergeProps(e.computedComponentBind,t.toHandlers(e.componentOn||{}),{ref:"dynamicCompRef"}),null,16))]),fallback:t.withCtx(()=>[...n[5]||(n[5]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),error:t.withCtx(({error:a})=>[t.createElementVNode("div",j2,[n[6]||(n[6]=t.createElementVNode("p",null,"组件加载失败",-1)),t.createElementVNode("p",z2,t.toDisplayString((a==null?void 0:a.message)||"请刷新页面重试"),1)])]),_:1})):t.renderSlot(e.$slots,"default",{key:1}),e.loading?(t.openBlock(),t.createElementBlock("div",B2,[...n[7]||(n[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})],-1)])])):t.createCommentVNode("",!0)],2),e.footerExtra?(t.openBlock(),t.createElementBlock("div",O2,[(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.footerExtra.component),t.normalizeProps(t.guardReactiveProps(e.computedFooterExtraBind)),null,16))]),fallback:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),_:1}))])):t.createCommentVNode("",!0),e.showFooter?(t.openBlock(),t.createElementBlock("div",F2,[e.footerMode==="both"||e.footerMode==="cancel-only"?(t.openBlock(),t.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleClickCancel},null,8,["label","onClick"])):t.createCommentVNode("",!0),e.footerMode==="both"||e.footerMode==="confirm-only"?(t.openBlock(),t.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleClickConfirm},null,8,["label","onClick"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6)],38)):t.createCommentVNode("",!0)]),_:3},8,["name","onAfterLeave"])])}const g1=de(L2,[["render",P2]]),R2=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},innerValue:{type:[String,Number,Array],default:void 0},innerValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},shouldShowCheckbox:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),$2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",V2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",W2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Z2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",Y2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",G2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",H2={key:0,src:$2,alt:"collapse",class:"j-tw-tree-select__expand-icon"},J2={key:1,src:V2,alt:"expand",class:"j-tw-tree-select__expand-icon"},X2={key:2,class:"j-tw-tree-select__expand-placeholder"},K2={key:0,src:U2,alt:"indeterminate",class:"j-tw-tree-select__checkbox-icon"},q2={key:1,src:W2,alt:"checked",class:"j-tw-tree-select__checkbox-icon"},er={key:2,src:Z2,alt:"unchecked",class:"j-tw-tree-select__checkbox-icon"},tr={key:0,src:Y2,alt:"selected",class:"j-tw-tree-select__checkbox-icon"},nr={key:1,src:G2,alt:"unselected",class:"j-tw-tree-select__checkbox-icon"};function rr(e,n,r,i,o,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select__node",{"j-tw-tree-select__node--disabled":e.node.disabled},{"j-tw-tree-select__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"})},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",H2)):(t.openBlock(),t.createElementBlock("img",J2))])):(t.openBlock(),t.createElementBlock("div",X2)),e.shouldShowCheckbox(e.node)?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-tree-select__checkbox",onClick:n[1]||(n[1]=t.withModifiers(a=>e.handleNodeClick(e.node),["stop"]))},[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",K2)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",q2)):(t.openBlock(),t.createElementBlock("img",er))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.innerValue===e.node.value?(t.openBlock(),t.createElementBlock("img",tr)):(t.openBlock(),t.createElementBlock("img",nr))],64))])):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"j-tw-tree-select__node-label",onClick:n[2]||(n[2]=a=>e.handleNodeClick(e.node))},[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])]),e.node.count?(t.openBlock(),t.createElementBlock("span",{key:4,class:"j-tw-tree-select__node-count",onClick:n[3]||(n[3]=a=>e.handleNodeClick(e.node))},t.toDisplayString(e.node.count),1)):t.createCommentVNode("",!0)],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:g})=>[t.renderSlot(e.$slots,"default",{node:g},()=>[t.createTextVNode(t.toDisplayString(g.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const or=de(R2,[["render",rr]]),ir=t.defineComponent({name:"JTWTreeSelect",components:{TreeNode:or,JTWStatusImg:We},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入关键词搜索"},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkIndependently:{type:Boolean,default:!1},nodeDataMap:{type:Object,default:()=>({})},selectedDataValues:{type:Array,default:()=>[]},maxHeight:{type:Number,default:void 0},externalSearchText:{type:String,default:""},bordered:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},validateEvent:{type:Boolean,default:!0},defaultExpandFirst:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,n)=>!0,blur:e=>!0},setup(e,{emit:n,expose:r}){const i=t.inject("elFormItem",null),o=t.ref(null),s=t.ref(""),l=t.ref(new Set),a=t.ref(e.modelValue),c=t.ref(new Set),g=_=>{if(!_||_.length===0)return;const x=b=>b.find(N=>N.children&&Array.isArray(N.children)&&N.children.length>0);let $=x(_);for(;$&&($.children&&Array.isArray($.children)&&$.children.length>0);)l.value.add($.value),$=x($.children)};t.watch(()=>e.data,_=>{e.defaultExpandFirst&&_.length>0&&l.value.size===0&&g(_)},{immediate:!0,deep:!0}),t.watch(()=>e.modelValue,_=>{a.value=_,e.multiple&&Array.isArray(_)&&(c.value=new Set(_))},{immediate:!0});const v=(_,x)=>{for(const $ of _){if($.value===x)return $;if($.children){const b=v($.children,x);if(b)return b}}return null},h=_=>{if(!_.children||_.children.length===0)return[];const x=[];for(const $ of _.children)x.push($.value),x.push(...h($));return x},y=(_,x)=>{for(const $ of _)if($.children){if($.children.some(N=>N.value===x))return $;const b=y($.children,x);if(b)return b}return null},m=_=>{const x=y(e.data,_);return x&&x.children?x.children.map($=>$.value).filter($=>$!==_):e.data.map($=>$.value).filter($=>$!==_)},Q=_=>{if(!e.checkStrictly)return;const x=y(e.data,_);x&&x.children&&(x.children.every(b=>c.value.has(b.value))?c.value.add(x.value):c.value.delete(x.value),Q(x.value))},u=_=>e.multiple?c.value.has(_):a.value===_,w=_=>{if(!e.multiple||!_.children||_.children.length===0||!e.checkStrictly)return!1;const x=_.children.map(b=>b.value),$=x.filter(b=>c.value.has(b)).length;return $>0&&$<x.length},d=_=>e.multiple?c.value.has(_):a.value===_,k=_=>e.checkStrictly||e.checkIndependently?!0:!_.children||_.children.length===0,D=(_,x)=>{if(!x)return _;const $=[];for(const b of _){const N=b.label.toLowerCase().includes(x.toLowerCase()),p=b.children?D(b.children,x):[];(N||p.length>0)&&($.push({...b,children:p.length>0?p:b.children}),p.length>0&&l.value.add(b.value))}return $},S=_=>{if(!e.nodeDataMap||Object.keys(e.nodeDataMap).length===0)return _;const x=new Set(e.selectedDataValues);return _.map($=>{const b=e.nodeDataMap[$.value];let N="";if(b&&Array.isArray(b)){const p=b.length;N=`(${b.filter(K=>x.has(K.value)).length}/${p})`}return{...$,count:N,children:$.children?S($.children):$.children}})},C=t.computed(()=>{const _=e.externalSearchText||s.value,x=D(e.data,_);return S(x)});t.watch(()=>e.externalSearchText,_=>{_!=null&&(s.value="")});const I=_=>{l.value.has(_)?l.value.delete(_):(e.accordion&&m(_).forEach($=>{l.value.delete($)}),l.value.add(_))},L=_=>{var x,$;if(!_.disabled){if(!e.checkStrictly&&!e.checkIndependently&&_.children&&_.children.length>0){I(_.value);return}if(e.multiple){const b=c.value.has(_.value),N=h(_);b?(c.value.delete(_.value),e.checkStrictly&&!e.checkIndependently&&N.forEach(K=>c.value.delete(K))):(c.value.add(_.value),e.checkStrictly&&!e.checkIndependently&&N.forEach(K=>c.value.add(K))),e.checkStrictly&&!e.checkIndependently&&Q(_.value);const p=Array.from(c.value),R=p.map(K=>v(e.data,K)).filter(K=>K!==null);n("update:modelValue",p),n("change",p,R.length>0?R:null),e.validateEvent&&i&&((x=i.validate)==null||x.call(i,"change"))}else if(a.value!==_.value){a.value=_.value;const b=v(e.data,_.value);n("update:modelValue",_.value),n("change",_.value,b),e.validateEvent&&i&&(($=i.validate)==null||$.call(i,"change"))}}};return r({get $el(){return o.value}}),{treeSelectRef:o,searchText:s,expandedKeys:l,innerValue:a,innerValues:c,filteredData:C,toggleExpand:I,handleNodeClick:L,isNodeChecked:u,isNodeIndeterminate:w,isNodeSelected:d,shouldShowCheckbox:k}}}),lr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",ar={key:0,class:"j-tw-tree-select__search"},sr=["placeholder"],cr={key:0,class:"j-tw-tree-select__empty"};function ur(e,n,r,i,o,s){const l=t.resolveComponent("JTWStatusImg"),a=t.resolveComponent("TreeNode");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(["j-tw-tree-select",{"j-tw-tree-select--borderless":!e.bordered,"j-tw-tree-select--no-search":!e.showSearch}])},[e.showSearch?(t.openBlock(),t.createElementBlock("div",ar,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=c=>e.searchText=c),type:"text",class:"j-tw-tree-select__search-input",placeholder:e.searchPlaceholder},null,8,sr),[[t.vModelText,e.searchText]]),n[1]||(n[1]=t.createElementVNode("img",{src:lr,alt:"search",class:"j-tw-tree-select__search-icon"},null,-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-tree-select__tree",style:t.normalizeStyle({maxHeight:e.maxHeight?`${e.maxHeight}px`:"none"})},[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",cr,[t.createVNode(l,{width:32,height:32}),n[2]||(n[2]=t.createElementVNode("p",{class:"j-tw-tree-select__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,c=>(t.openBlock(),t.createBlock(a,{key:c.value,node:c,level:0,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:g})=>[t.renderSlot(e.$slots,"default",{node:g},()=>[t.createTextVNode(t.toDisplayString(g.label),1)])]),_:3},8,["node","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128))],4)],2)}const dr=de(ir,[["render",ur]]),fr=t.defineComponent({name:"JTWFormLabel",props:{label:{type:String},labelClass:{type:[String,Object,Array]},valueClass:{type:[String,Object,Array]},vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},slots:Object,setup(e,{slots:n}){const r=t.computed(()=>{const o=!!e.label||!!n.label;return e.horizontal?!0:o});return{directionClass:t.computed(()=>e.vertical?"form-label--vertical":e.horizontal?"form-label--horizontal":"form-label--vertical"),showLabel:r,slots:n}}}),hr={class:"label-content"},pr={class:"form-content"},mr={class:"form-value__inner"},gr={class:"form-item-detail-wrapper"};function wr(e,n,r,i,o,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-form-label",[e.directionClass,{required:e.required}]])},[e.showLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-label",[e.labelClass,{required:e.required}]])},[t.createElementVNode("div",hr,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(e.$slots,"label-hint")])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",pr,[t.createElementVNode("div",{class:t.normalizeClass(["form-value",e.valueClass])},[t.createElementVNode("div",mr,[t.renderSlot(e.$slots,"default")])],2),t.createElementVNode("div",gr,[t.renderSlot(e.$slots,"form-item-detail")])])],2)}const yr=de(fr,[["render",wr]]),vr=t.defineComponent({name:"JTWForm",components:{ElForm:fe.ElForm},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({validate:(...o)=>r.value.validate(...o),validateField:(...o)=>r.value.validateField(...o),resetFields:(...o)=>r.value.resetFields(...o),scrollToField:(...o)=>r.value.scrollToField(...o),clearValidate:(...o)=>r.value.clearValidate(...o)}),{elFormRef:r}}});function Qr(e,n,r,i,o,s){const l=t.resolveComponent("el-form");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormRef"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const kr=de(vr,[["render",Qr]]),br=t.defineComponent({name:"JTWFormItem",components:{ElFormItem:fe.ElFormItem},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({get size(){var o;return((o=r.value)==null?void 0:o.size)||""},get validateMessage(){var o;return((o=r.value)==null?void 0:o.validateMessage)||""},get validateState(){var o;return((o=r.value)==null?void 0:o.validateState)||""},validate:(...o)=>r.value.validate(...o),clearValidate:()=>r.value.clearValidate(),resetField:()=>r.value.resetField()}),{elFormItemRef:r}}});function Mr(e,n,r,i,o,s){const l=t.resolveComponent("el-form-item");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormItemRef"},e.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.label?{name:"label",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"label")]),key:"0"}:void 0,e.$slots.error?{name:"error",fn:t.withCtx(({error:a})=>[t.renderSlot(e.$slots,"error",{error:a})]),key:"1"}:void 0]),1040)}const Cr=de(br,[["render",Mr]]),_r=t.defineComponent({name:"JTWSelect",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})}},setup(e,{expose:n,attrs:r}){const i=t.ref(null),o=t.ref(!1),s=t.computed(()=>{var v;return((v=e.props)==null?void 0:v.label)||"label"}),l=t.computed(()=>{var v;return((v=e.props)==null?void 0:v.value)||"value"}),a=t.computed(()=>r.multiple!==void 0&&r.multiple!==!1),c=v=>{o.value=v};return n({focus:()=>{var v;return(v=i.value)==null?void 0:v.focus()},blur:()=>{var v;return(v=i.value)==null?void 0:v.blur()}}),{elSelectRef:i,dropdownVisible:o,labelKey:s,valueKey:l,isMultiple:a,handleVisibleChange:c}}});function Dr(e,n,r,i,o,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elSelectRef",class:["tw-select",{"tw-select--bg-grey":e.bgGrey,"tw-select--open":e.dropdownVisible,"tw-select--multiple":e.isMultiple}],"popper-class":"tw-select-popper"},e.$attrs,{onVisibleChange:e.handleVisibleChange}),t.createSlots({default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:c[e.valueKey],label:c[e.labelKey],value:c[e.valueKey],disabled:c.disabled},null,8,["label","value","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.header?{name:"header",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"header")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"footer")]),key:"3"}:void 0]),1040,["class","onVisibleChange"])}const Ar=de(_r,[["render",Dr]]),Nr=t.defineComponent({name:"JTWCheckboxGroup",components:{ElCheckboxGroup:fe.ElCheckboxGroup,ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function Sr(e,n,r,i,o,s){const l=t.resolveComponent("el-checkbox"),a=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elCheckboxGroupRef",class:"j-tw-checkbox-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const Ir=de(Nr,[["render",Sr]]),Tr=t.defineComponent({name:"JTWRadioGroup",components:{ElRadioGroup:fe.ElRadioGroup,ElRadio:fe.ElRadio},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function Lr(e,n,r,i,o,s){const l=t.resolveComponent("el-radio"),a=t.resolveComponent("el-radio-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elRadioGroupRef",class:"j-tw-radio-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const Er=de(Tr,[["render",Lr]]),Vt={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},Ut={DARK:"dark",LIGHT:"light"},Wt={HOVER:"hover",CLICK:"click",FOCUS:"focus",CONTEXTMENU:"contextmenu"},xr=t.defineComponent({name:"JTWTooltip",components:{ElTooltip:fe.ElTooltip},props:{content:{type:[String,Number],default:""},placement:{type:String,default:Vt.TOP,validator:e=>Object.values(Vt).includes(e)},effect:{type:String,default:Ut.DARK,validator:e=>Object.values(Ut).includes(e)},trigger:{type:String,default:Wt.HOVER,validator:e=>Object.values(Wt).includes(e)},showArrow:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},offset:{type:Number,default:5},disabled:{type:Boolean,default:!1},popperClass:{type:String,default:void 0},popperStyle:{type:[String,Object],default:void 0}},emits:{"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.computed(()=>e.content!=null?String(e.content):""),s=t.computed(()=>{const c=["j-tw-tooltip-popper"];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),l=c=>{n("visible-change",c)};return r({get $el(){var c;return(c=i.value)==null?void 0:c.$el},show:()=>{var c,g,v;(v=(g=(c=i.value)==null?void 0:c.popperRef)==null?void 0:g.show)==null||v.call(g)},hide:()=>{var c,g,v;(v=(g=(c=i.value)==null?void 0:c.popperRef)==null?void 0:g.hide)==null||v.call(g)}}),{computedPopperClass:s,elTooltipRef:i,handleVisibleChange:l,tooltipContent:o}}});function jr(e,n,r,i,o,s){const l=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(l,{ref:"elTooltipRef",content:e.tooltipContent,placement:e.placement,effect:e.effect,trigger:e.trigger,"show-arrow":e.showArrow,"show-after":e.openDelay,"hide-after":e.closeDelay,offset:e.offset,disabled:e.disabled,"popper-class":e.computedPopperClass,"popper-style":e.popperStyle,onVisibleChange:e.handleVisibleChange},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.content?{name:"content",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"content")]),key:"0"}:void 0]),1032,["content","placement","effect","trigger","show-arrow","show-after","hide-after","offset","disabled","popper-class","popper-style","onVisibleChange"])}const w1=de(xr,[["render",jr]]),zr=t.defineComponent({name:"JTWToggle",components:{ElSwitch:fe.ElSwitch},props:{modelValue:{type:[Boolean,String,Number],default:!1},trueValue:{type:[Boolean,String,Number],default:!0},falseValue:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0},leftLabel:{type:Boolean,default:!1},color:{type:String,default:void 0},keepColor:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:void 0},icon:{type:String,default:void 0},checkedIcon:{type:String,default:void 0},uncheckedIcon:{type:String,default:void 0},iconColor:{type:String,default:void 0},size:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:n}){const r=t.computed(()=>e.size&&["","default","small","large"].includes(e.size)?e.size:e.dense?"small":"default"),i=t.computed(()=>{const a={};return e.color&&(a["--el-switch-on-color"]=e.color,e.keepColor&&(a["--el-switch-off-color"]=e.color)),a}),o=t.computed(()=>{const a=[];return e.dense&&a.push("j-tw-toggle--dense"),e.readonly&&a.push("j-tw-toggle--readonly"),a});return{computedSize:r,computedStyle:i,computedClass:o,handleUpdateModelValue:a=>{e.readonly||n("update:modelValue",a)},handleChange:a=>{e.readonly||n("change",a)}}}});function Br(e,n,r,i,o,s){const l=t.resolveComponent("el-switch");return t.openBlock(),t.createBlock(l,{"model-value":e.modelValue,"active-value":e.trueValue,"inactive-value":e.falseValue,"active-text":e.leftLabel?e.label:void 0,"inactive-text":!e.leftLabel&&e.label?e.label:void 0,"active-icon":e.checkedIcon,"inactive-icon":e.uncheckedIcon,disabled:e.disable,size:e.computedSize,name:e.name,id:e.id,tabindex:e.tabindex,"validate-event":e.validateEvent,style:t.normalizeStyle(e.computedStyle),class:t.normalizeClass(e.computedClass),"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange},t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),key:"0"}:void 0]),1032,["model-value","active-value","inactive-value","active-text","inactive-text","active-icon","inactive-icon","disabled","size","name","id","tabindex","validate-event","style","class","onUpdate:modelValue","onChange"])}const Or=de(zr,[["render",Br],["__scopeId","data-v-8bf04c8a"]]);let Zt=!1,Fr=0;function Pr(){return`j-tw-message-${Date.now()}-${++Fr}`}function Rr(){if(Zt)return;Zt=!0;const e=document.createElement("div");document.body.appendChild(e),t.createApp(d1).mount(e)}function $r(e){Rr();const n=Pr(),r=56,i=e.offset??52,o=Se.value.filter(a=>a.visible).length,s=i+o*r,l={id:n,type:e.type??"info",content:e.content,duration:e.duration??3e3,showClose:e.showClose??!1,offset:s,onClose:e.onClose,visible:!0,html:e.html??!1};return Se.value.push(l),{id:n,close:()=>{const a=Se.value.findIndex(c=>c.id===n);a!==-1&&(Se.value[a].visible=!1)}}}const xe={show(e){return $r(e)},closeAll(){Se.value.forEach(e=>{e.visible=!1})}},Vr=t.defineComponent({name:"JTWFileUpload",components:{JTWTooltip:w1},props:{modelValue:{type:Array,default:()=>[]},accept:{type:String,default:".png,.jpg,.jpeg"},maxSize:{type:Number,default:5*1024*1024},maxFiles:{type:Number,default:1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,exceed:e=>!0,error:e=>!0},setup(e,{emit:n}){const r=t.ref(),i=t.ref(!1),o=t.ref([...e.modelValue]),s=t.ref(),l=t.inject(fe.formItemContextKey,{}),a=t.computed(()=>e.multiple?o.value.length>=e.maxFiles:o.value.length>=1),c=t.computed(()=>`${e.maxSize/1048576}MB`),g=t.computed(()=>e.accept.split(",").map(C=>C.trim().replace(/^\./,"")).join("/")),v=t.computed(()=>e.multiple&&e.maxFiles>1?`,最多支持${e.maxFiles}张`:"");t.watch(()=>e.modelValue,C=>{o.value=[...C],t.nextTick(()=>{var I,L;C.length>0?(I=l==null?void 0:l.clearValidate)==null||I.call(l):(L=l==null?void 0:l.validate)==null||L.call(l,"change")})},{deep:!0});const h=C=>{if(e.accept&&!e.accept.split(",").some(I=>C.name.toLowerCase().endsWith(I.trim().toLowerCase()))){const I=`文件格式不支持,请上传 ${g.value} 格式的文件`;return xe.show({type:"error",content:I}),{valid:!1,error:I}}if(C.size>e.maxSize){const I=`文件大小超出限制,请上传小于 ${c.value} 的文件`;return xe.show({type:"error",content:I}),{valid:!1,error:I}}return{valid:!0}},y=C=>{const I=Array.from(C),L=[];for(const _ of I){const x=h(_);if(!x.valid){n("error",{type:"validation",message:x.error,file:_});continue}L.push(_)}if(L.length===0)return;let F=[...o.value];if(e.multiple){const _=e.maxFiles-F.length;if(_<=0){xe.show({type:"error",content:`最多只能上传 ${e.maxFiles} 个文件`}),n("exceed",L);return}const x=L.slice(0,_);x.length<L.length&&(xe.show({type:"warning",content:`已达到文件数量上限,只能再上传 ${_} 个文件`}),n("exceed",L.slice(_))),F.push(...x)}else F=[L[0]];o.value=F,n("update:modelValue",F),t.nextTick(()=>{var _,x;F.length>0?(_=l==null?void 0:l.clearValidate)==null||_.call(l):(x=l==null?void 0:l.validate)==null||x.call(l,"change")})};return{fileInputRef:r,fileListRef:s,isDragging:i,fileList:o,isMaxFiles:a,maxSizeText:c,acceptText:g,maxFilesText:v,handleClick:()=>{var C;e.disabled||a.value||(C=r.value)==null||C.click()},handleFileChange:C=>{var L;const I=C.target;(L=I.files)!=null&&L.length&&y(I.files),I.value=""},handleDragEnter:C=>{e.disabled||a.value||(C.preventDefault(),i.value=!0)},handleDragOver:C=>{e.disabled||a.value||(C.preventDefault(),i.value=!0)},handleDragLeave:C=>{if(e.disabled||a.value)return;C.preventDefault();const I=C.currentTarget,L=C.relatedTarget;I!=null&&I.contains(L)||(i.value=!1)},handleDrop:C=>{var L;if(e.disabled||a.value)return;C.preventDefault(),i.value=!1;const I=(L=C.dataTransfer)==null?void 0:L.files;I!=null&&I.length&&y(I)},handleRemove:C=>{const I=[...o.value];I.splice(C,1),o.value=I,n("update:modelValue",I),t.nextTick(()=>{var L,F;I.length>0?(L=l==null?void 0:l.clearValidate)==null||L.call(l):(F=l==null?void 0:l.validate)==null||F.call(l,"change")})},isFileNameTruncated:C=>{if(!s.value)return!1;const I=document.createElement("span");I.style.visibility="hidden",I.style.position="absolute",I.style.fontSize="14px",I.style.fontFamily=getComputedStyle(document.body).fontFamily,I.textContent=C,document.body.appendChild(I);const L=I.offsetWidth;document.body.removeChild(I);const x=s.value.clientWidth-72;return L>x}}}}),Ur="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1487_075623'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1487_075623)'%3e%3cpath%20d='M2.3333332538604736,2.666663273069763C2.3333332538604736,1.9302852130697632,2.9302847938604737,1.3333333730697632,3.6666625538604736,1.3333333730697632C3.6666625538604736,1.3333333730697632,10.942774053860473,1.3333333730697632,10.942774053860473,1.3333333730697632C10.942774053860473,1.3333333730697632,13.666633253860473,4.057182873069763,13.666633253860473,4.057182873069763C13.666633253860473,4.057182873069763,13.666633253860473,13.333302373069763,13.666633253860473,13.333302373069763C13.666633253860473,14.069667373069763,13.069667253860473,14.666633373069763,12.333302753860474,14.666633373069763C12.333302753860474,14.666633373069763,3.6666625538604736,14.666633373069763,3.6666625538604736,14.666633373069763C2.9302847938604737,14.666633373069763,2.3333332538604736,14.069667373069763,2.3333332538604736,13.333302373069763C2.3333332538604736,13.333302373069763,2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763C2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763ZM10.390508853860474,2.666663273069763C10.390508853860474,2.666663273069763,3.6666625538604736,2.666663273069763,3.6666625538604736,2.666663273069763C3.6666625538604736,2.666663273069763,3.6666625538604736,13.333302373069763,3.6666625538604736,13.333302373069763C3.6666625538604736,13.333302373069763,12.333302753860474,13.333302373069763,12.333302753860474,13.333302373069763C12.333302753860474,13.333302373069763,12.333302753860474,4.609468373069763,12.333302753860474,4.609468373069763C12.333302753860474,4.609468373069763,10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763C10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763ZM10.666641453860473,7.666650673069763C10.666641453860473,7.666650673069763,5.333324153860474,7.666650673069763,5.333324153860474,7.666650673069763C5.333324153860474,7.666650673069763,5.333324153860474,6.333320473069763,5.333324153860474,6.333320473069763C5.333324153860474,6.333320473069763,10.666641453860473,6.333320473069763,10.666641453860473,6.333320473069763C10.666641453860473,6.333320473069763,10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763C10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763ZM8.666647653860473,10.333310473069764C8.666647653860473,10.333310473069764,5.333324153860474,10.333310473069764,5.333324153860474,10.333310473069764C5.333324153860474,10.333310473069764,5.333324153860474,8.999980373069764,5.333324153860474,8.999980373069764C5.333324153860474,8.999980373069764,8.666647653860473,8.999980373069764,8.666647653860473,8.999980373069764C8.666647653860473,8.999980373069764,8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764C8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Wr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1487_075606'%3e%3crect%20x='-0.6666666865348816'%20y='-0.6666666865348816'%20width='17.333333373069763'%20height='17.333333373069763'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1487_075606)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cg%3e%3cpath%20d='M1.3339843725,4.0001628875L2.3333332125,4.0001628875L2.3333332125,14.6668301875Q2.3333331125,14.7324901875,2.3461429125,14.7968881875Q2.3589526125,14.8612881875,2.3840800125,14.9219511875Q2.4092073125,14.9826131875,2.4456866125000003,15.0372081875Q2.4821658125,15.0918031875,2.5285952125,15.1382331875Q2.5750245124999998,15.1846621875,2.6296196125,15.2211421875Q2.6842146125,15.2576211875,2.7448773125,15.2827491875Q2.8055401125,15.3078761875,2.8699396125,15.3206861875Q2.9343390125,15.3334971875,3.0000000125,15.3334981875L13.0000003125,15.3334981875Q13.0656603125,15.3334971875,13.1300593125,15.3206861875Q13.1944583125,15.3078761875,13.2551213125,15.2827481875Q13.3157843125,15.2576211875,13.3703793125,15.2211421875Q13.4249743125,15.1846631875,13.4714053125,15.1382341875Q13.5178333125,15.0918041875,13.5543113125,15.0372081875Q13.5907913125,14.9826141875,13.6159183125,14.9219511875Q13.6410453125,14.8612881875,13.6538553125,14.7968881875Q13.6666663125,14.7324901875,13.6666673125,14.6668301875L13.6666673125,4.0001628875L14.6673183125,4.0001628875L14.6673183125,3.9983629875Q14.7328013125,3.9983629875,14.7970273125,3.9855875875Q14.8612523125,3.9728123875,14.9217513125,3.9477529875Q14.9822503125,3.9226932875,15.0366973125,3.8863124875Q15.0911453125,3.8499316875,15.1374503125,3.8036276875Q15.1837543125,3.7573237875,15.2201343125,3.7028760875Q15.2565153125,3.6484284875,15.2815753125,3.5879292875Q15.3066353125,3.5274302875,15.3194103125,3.4632050875Q15.3321853125,3.3989796875,15.3321853125,3.3334960875Q15.3321853125,3.2680124875,15.3194103125,3.2037868875Q15.3066353125,3.1395613875,15.2815753125,3.0790621875Q15.2565153125,3.0185632875,15.2201343125,2.9641155875Q15.1837543125,2.9096679875,15.1374513125,2.8633639875Q15.0911463125,2.8170599875,15.0366973125,2.7806791875Q14.9822503125,2.7442984875,14.9217513125,2.7192389875Q14.8612523125,2.6941794875,14.7970273125,2.6814043875Q14.7328013125,2.6686291875,14.6673183125,2.6686291875L14.6673183125,2.6668293875L11.0659743125,2.6668293875L10.1803198125,1.0180267674999999Q10.1375561125,0.9384148675,10.0751419125,0.8730604475Q10.0127277125,0.8077060175,9.9351673125,0.7613259405Q9.8576050125,0.7149458675,9.7704964125,0.6908876395Q9.6833877125,0.66682940722,9.5930176125,0.66682940722L6.4303179125,0.66682946682Q6.3406696125,0.66682946682,6.2542057125,0.6905115455Q6.1677427125,0.7141936235,6.0906067125,0.7598752605Q6.0134706125,0.8055568975,5.9511423125,0.8699925875Q5.8888140125,0.9344282775,5.8457217125,1.0130400975L4.9391699125,2.6668293875L1.3339843725,2.6668293875L1.3339843725,2.6686291875Q1.2685006825,2.6686291875,1.2042752525,2.6814043875Q1.1400497525,2.6941794875,1.0795507125000001,2.7192389875Q1.0190516725,2.7442984875,0.9646039925000001,2.7806791875Q0.9101563225,2.8170599875,0.8638523625,2.8633639875Q0.8175483925,2.9096679875,0.7811676125,2.9641155875Q0.7447868285,3.0185632875,0.7197273115,3.0790621875Q0.6946677935,3.1395613875,0.6818925625,3.2037868875Q0.6691173315,3.2680124875,0.6691173315,3.3334960875Q0.6691173315,3.3989796875,0.6818925625,3.4632048875Q0.6946677935,3.5274302875,0.7197273115,3.5879292875Q0.7447868285,3.6484284875,0.7811676225,3.7028760875Q0.8175483925,3.7573237875,0.8638523625,3.8036276875Q0.9101563225,3.8499316875,0.9646039925000001,3.8863124875Q1.0190516725,3.9226932875,1.0795507125000001,3.9477529875Q1.1400497525,3.9728123875,1.2042752525,3.9855875875Q1.2685006825,3.9983629875,1.3339843725,3.9983629875L1.3339843725,4.0001628875ZM6.4596882125,2.6668293875L9.5524616125,2.6668293875L9.1943617125,2.0001628875L6.8251324125,2.0001628875L6.4596882125,2.6668293875ZM12.3333333125,4.0001628875L3.6666667125,4.0001628875L3.6666667125,14.0001631875L12.3333333125,14.0001631875L12.3333333125,4.0001628875ZM6.0021253125,6.6665038875Q6.0021248125,6.6010198875,6.0148997125,6.5367941875Q6.0276747125,6.4725684875,6.0527344125,6.4120697875Q6.0777941125,6.3515710875,6.1141753125,6.2971233875Q6.1505561125,6.2426757875,6.1968603125,6.1963715875Q6.2431641125,6.1500672875,6.2976117125,6.1136870875Q6.3520594125,6.0773057875,6.4125585125,6.0522465875Q6.4730573125,6.0271873875,6.5372825125,6.0144118875Q6.6015081125,6.0016369875,6.6669922125,6.0016369875Q6.7324753125,6.0016369875,6.7967005125,6.0144118875Q6.8609257125,6.0271873875,6.9214249125,6.0522465875Q6.9819240125,6.0773057875,7.0363722125,6.1136870875Q7.0908198125,6.1500672875,7.1371240125,6.1963715875Q7.1834278125,6.2426757875,7.2198086125,6.2971229875Q7.2561889125,6.3515710875,7.2812486125,6.4120697875Q7.3063078125,6.4725684875,7.3190832125,6.5367941875Q7.3318586125,6.6010198875,7.3318591125,6.6665038875L7.3336587125,6.6665038875L7.3336587125,10.9998381875L7.3318591125,10.9998381875Q7.3318586125,11.0653211875,7.3190832125,11.1295461875Q7.3063078125,11.1937711875,7.2812481125,11.2542701875Q7.2561884125,11.3147701875,7.2198081125,11.3692171875Q7.1834278125,11.4236641875,7.1371240125,11.4699691875Q7.0908198125,11.5162721875,7.0363717125,11.5526531875Q6.9819240125,11.5890341875,6.9214249125,11.6140941875Q6.8609257125,11.6391521875,6.7967005125,11.6519291875Q6.7324753125,11.6647031875,6.6669922125,11.6647041875Q6.6015081125,11.6647031875,6.5372825125,11.6519291875Q6.4730568125,11.6391521875,6.4125576125,11.6140941875Q6.3520584125,11.5890341875,6.2976112125,11.5526531875Q6.2431641125,11.5162721875,6.1968603125,11.4699691875Q6.1505561125,11.4236641875,6.1141748125,11.3692171875Q6.0777941125,11.3147701875,6.0527348125,11.2542701875Q6.0276751125,11.1937711875,6.0149002125,11.1295461875Q6.0021248125,11.0653211875,6.0021253125,10.9998381875L6.0003257125,10.9998381875L6.0003257125,6.6665038875L6.0021253125,6.6665038875ZM8.6691170125,6.6665038875Q8.6691170125,6.6010198875,8.6818924125,6.5367941875Q8.6946678125,6.4725684875,8.7197265125,6.4120697875Q8.7447863125,6.3515710875,8.7811670125,6.2971233875Q8.8175478125,6.2426757875,8.8638515125,6.1963715875Q8.9101553125,6.1500672875,8.9646025125,6.1136870875Q9.0190506125,6.0773057875,9.0795498125,6.0522465875Q9.1400490125,6.0271873875,9.2042751125,6.0144118875Q9.2685003125,6.0016369875,9.3339844125,6.0016369875Q9.3994675125,6.0016369875,9.4636936125,6.0144118875Q9.5279178125,6.0271873875,9.5884170125,6.0522465875Q9.6489162125,6.0773057875,9.7033634125,6.1136870875Q9.7578125125,6.1500672875,9.8041162125,6.1963715875Q9.8504200125,6.2426757875,9.8868008125,6.2971229875Q9.9231815125,6.3515710875,9.9482412125,6.4120697875Q9.9733009125,6.4725684875,9.9860763125,6.5367941875Q9.9988518125,6.6010198875,9.9988518125,6.6665038875L10.0006513125,6.6665038875L10.0006513125,10.9998381875L9.9988518125,10.9998381875Q9.9988518125,11.0653211875,9.9860763125,11.1295461875Q9.9733009125,11.1937711875,9.9482412125,11.2542701875Q9.9231815125,11.3147701875,9.8868008125,11.3692171875Q9.8504200125,11.4236641875,9.8041153125,11.4699691875Q9.7578115125,11.5162721875,9.7033644125,11.5526531875Q9.6489162125,11.5890341875,9.5884170125,11.6140941875Q9.5279178125,11.6391521875,9.4636936125,11.6519291875Q9.3994675125,11.6647031875,9.3339844125,11.6647041875Q9.2685003125,11.6647031875,9.2042742125,11.6519291875Q9.1400490125,11.6391521875,9.0795498125,11.6140941875Q9.0190506125,11.5890341875,8.9646034125,11.5526531875Q8.9101553125,11.5162721875,8.8638515125,11.4699691875Q8.8175478125,11.4236641875,8.7811670125,11.3692171875Q8.7447863125,11.3147701875,8.7197265125,11.2542701875Q8.6946678125,11.1937711875,8.6818924125,11.1295461875Q8.6691170125,11.0653211875,8.6691170125,10.9998381875L8.6673179125,10.9998381875L8.6673179125,6.6665038875L8.6691170125,6.6665038875Z'%20fill-rule='evenodd'%20fill='%23F53F3F'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Zr={class:"j-tw-file-upload"},Yr={class:"upload-content"},Gr={class:"upload-text"},Hr={class:"upload-desc"},Jr={key:0,ref:"fileListRef",class:"file-list"},Xr={class:"file-name-wrapper"},Kr={class:"file-name"},qr=["onClick"],eo=["accept","multiple"];function to(e,n,r,i,o,s){const l=t.resolveComponent("JTWTooltip");return t.openBlock(),t.createElementBlock("div",Zr,[t.createElementVNode("div",{class:t.normalizeClass(["upload-area",{"upload-area--dragging":e.isDragging,"upload-area--disabled":e.disabled||e.isMaxFiles}]),onDragenter:n[0]||(n[0]=t.withModifiers((...a)=>e.handleDragEnter&&e.handleDragEnter(...a),["prevent"])),onDragover:n[1]||(n[1]=t.withModifiers((...a)=>e.handleDragOver&&e.handleDragOver(...a),["prevent"])),onDragleave:n[2]||(n[2]=t.withModifiers((...a)=>e.handleDragLeave&&e.handleDragLeave(...a),["prevent"])),onDrop:n[3]||(n[3]=t.withModifiers((...a)=>e.handleDrop&&e.handleDrop(...a),["prevent"])),onClick:n[4]||(n[4]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.createElementVNode("div",Yr,[t.createElementVNode("div",Gr,[t.renderSlot(e.$slots,"upload-text",{},()=>[n[6]||(n[6]=t.createElementVNode("p",{class:"upload-title"},[t.createTextVNode("将文件拖到此处,或 "),t.createElementVNode("span",{class:"click"},"点击上传")],-1))])])])],34),t.createElementVNode("div",Hr,[t.renderSlot(e.$slots,"upload-desc",{},()=>[t.createElementVNode("p",null," 请上传大小不超过"+t.toDisplayString(e.maxSizeText)+",格式为"+t.toDisplayString(e.acceptText)+t.toDisplayString(e.maxFilesText)+"。 ",1)])]),e.fileList.length?(t.openBlock(),t.createElementBlock("div",Jr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(a,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"file-item"},[n[7]||(n[7]=t.createElementVNode("img",{src:Ur,alt:"file",class:"file-icon"},null,-1)),t.createElementVNode("div",Xr,[t.createVNode(l,{content:a.name,disabled:!e.isFileNameTruncated(a.name),placement:"top","popper-style":{maxWidth:"400px"}},{default:t.withCtx(()=>[t.createElementVNode("span",Kr,t.toDisplayString(a.name),1)]),_:2},1032,["content","disabled"])]),t.createElementVNode("img",{src:Wr,alt:"delete",class:"delete-icon",onClick:g=>e.handleRemove(c)},null,8,qr)]))),128))],512)):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"fileInputRef",type:"file",accept:e.accept,multiple:e.multiple,style:{display:"none"},onChange:n[5]||(n[5]=(...a)=>e.handleFileChange&&e.handleFileChange(...a))},null,40,eo)])}const no=de(Vr,[["render",to]]);var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Je={exports:{}},ro=Je.exports,Yt;function oo(){return Yt||(Yt=1,(function(e){(function(n,r){e.exports?e.exports=r():n.coordtransform=r()})(ro,function(){var n=52.35987755982988,r=3.141592653589793,i=6378245,o=.006693421622965943,s=function(u,w){var u=+u,w=+w,d=u-.0065,k=w-.006,D=Math.sqrt(d*d+k*k)-2e-5*Math.sin(k*n),S=Math.atan2(k,d)-3e-6*Math.cos(d*n),C=D*Math.cos(S),I=D*Math.sin(S);return[C,I]},l=function(w,u){var u=+u,w=+w,d=Math.sqrt(w*w+u*u)+2e-5*Math.sin(u*n),k=Math.atan2(u,w)+3e-6*Math.cos(w*n),D=d*Math.cos(k)+.0065,S=d*Math.sin(k)+.006;return[D,S]},a=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var d=g(w-105,u-35),k=v(w-105,u-35),D=u/180*r,S=Math.sin(D);S=1-o*S*S;var C=Math.sqrt(S);d=d*180/(i*(1-o)/(S*C)*r),k=k*180/(i/C*Math.cos(D)*r);var I=u+d,L=w+k;return[L,I]},c=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var d=g(w-105,u-35),k=v(w-105,u-35),D=u/180*r,S=Math.sin(D);S=1-o*S*S;var C=Math.sqrt(S);d=d*180/(i*(1-o)/(S*C)*r),k=k*180/(i/C*Math.cos(D)*r);var I=u+d,L=w+k;return[w*2-L,u*2-I]},g=function(w,u){var u=+u,w=+w,d=-100+2*w+3*u+.2*u*u+.1*w*u+.2*Math.sqrt(Math.abs(w));return d+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,d+=(20*Math.sin(u*r)+40*Math.sin(u/3*r))*2/3,d+=(160*Math.sin(u/12*r)+320*Math.sin(u*r/30))*2/3,d},v=function(w,u){var u=+u,w=+w,d=300+w+2*u+.1*w*w+.1*w*u+.1*Math.sqrt(Math.abs(w));return d+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,d+=(20*Math.sin(w*r)+40*Math.sin(w/3*r))*2/3,d+=(150*Math.sin(w/12*r)+300*Math.sin(w/30*r))*2/3,d},h=function(w,u){var u=+u,w=+w;return!(w>73.66&&w<135.05&&u>3.86&&u<53.55)};return{bd09togcj02:s,gcj02tobd09:l,wgs84togcj02:a,gcj02towgs84:c}})})(Je)),Je.exports}var io=oo();const y1=Ct(io);function Ue(e){if(!e||!Array.isArray(e)||e.length<2)return!1;const[n,r]=e;return!isNaN(n)&&!isNaN(r)&&n!==null&&r!==null}function Le(e){return!e||!Array.isArray(e)||e.length===0?[]:e.filter(n=>Ue(n)).map(n=>{if(n.length>=2)try{const[r,i]=y1.wgs84togcj02(n[0],n[1]);return[r,i]}catch(r){return console.warn("Coordinate transformation failed:",n,r),n}return n})}function pt(e){return Array.isArray(e)&&e.length>0&&Array.isArray(e[0])&&e[0].length>0&&Array.isArray(e[0][0])}function _t(e,n){if(!Number.isFinite(e)||!Number.isFinite(n))return null;try{const[r,i]=y1.wgs84togcj02(e,n);return[r,i]}catch{return null}}var Xe={exports:{}},lo=Xe.exports,Gt;function ao(){return Gt||(Gt=1,(function(e,n){(function(r,i){e.exports=i()})(lo,function(){function r(h){var y=[];return h.AMapUI&&y.push(i(h.AMapUI)),h.Loca&&y.push(o(h.Loca)),Promise.all(y)}function i(h){return new Promise(function(y,m){var Q=[];if(h.plugins)for(var u=0;u<h.plugins.length;u+=1)l.AMapUI.plugins.indexOf(h.plugins[u])==-1&&Q.push(h.plugins[u]);if(a.AMapUI===s.failed)m("前次请求 AMapUI 失败");else if(a.AMapUI===s.notload){a.AMapUI=s.loading,l.AMapUI.version=h.version||l.AMapUI.version,u=l.AMapUI.version;var w=document.body||document.head,d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/ui/"+u+"/main.js",d.onerror=function(k){a.AMapUI=s.failed,m("请求 AMapUI 失败")},d.onload=function(){if(a.AMapUI=s.loaded,Q.length)window.AMapUI.loadUI(Q,function(){for(var k=0,D=Q.length;k<D;k++){var S=Q[k].split("/").slice(-1)[0];window.AMapUI[S]=arguments[k]}for(y();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()});else for(y();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},w.appendChild(d)}else a.AMapUI===s.loaded?h.version&&h.version!==l.AMapUI.version?m("不允许多个版本 AMapUI 混用"):Q.length?window.AMapUI.loadUI(Q,function(){for(var k=0,D=Q.length;k<D;k++){var S=Q[k].split("/").slice(-1)[0];window.AMapUI[S]=arguments[k]}y()}):y():h.version&&h.version!==l.AMapUI.version?m("不允许多个版本 AMapUI 混用"):c.AMapUI.push(function(k){k?m(k):Q.length?window.AMapUI.loadUI(Q,function(){for(var D=0,S=Q.length;D<S;D++){var C=Q[D].split("/").slice(-1)[0];window.AMapUI[C]=arguments[D]}y()}):y()})})}function o(h){return new Promise(function(y,m){if(a.Loca===s.failed)m("前次请求 Loca 失败");else if(a.Loca===s.notload){a.Loca=s.loading,l.Loca.version=h.version||l.Loca.version;var Q=l.Loca.version,u=l.AMap.version.startsWith("2"),w=Q.startsWith("2");if(u&&!w||!u&&w)m("JSAPI 与 Loca 版本不对应!!");else{u=l.key,w=document.body||document.head;var d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/loca?v="+Q+"&key="+u,d.onerror=function(k){a.Loca=s.failed,m("请求 AMapUI 失败")},d.onload=function(){for(a.Loca=s.loaded,y();c.Loca.length;)c.Loca.splice(0,1)[0]()},w.appendChild(d)}}else a.Loca===s.loaded?h.version&&h.version!==l.Loca.version?m("不允许多个版本 Loca 混用"):y():h.version&&h.version!==l.Loca.version?m("不允许多个版本 Loca 混用"):c.Loca.push(function(k){k?m(k):m()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var s;(function(h){h.notload="notload",h.loading="loading",h.loaded="loaded",h.failed="failed"})(s||(s={}));var l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMapUI:[],Loca:[]},g=[],v=function(h){typeof h=="function"&&(a.AMap===s.loaded?h(window.AMap):g.push(h))};return{load:function(h){return new Promise(function(y,m){if(a.AMap==s.failed)m("");else if(a.AMap==s.notload){var Q=h.key,u=h.version,w=h.plugins;Q?(window.AMap&&location.host!=="lbs.amap.com"&&m("禁止多种API加载方式混用"),l.key=Q,l.AMap.version=u||l.AMap.version,l.AMap.plugins=w||l.AMap.plugins,a.AMap=s.loading,u=document.body||document.head,window.___onAPILoaded=function(k){if(delete window.___onAPILoaded,k)a.AMap=s.failed,m(k);else for(a.AMap=s.loaded,r(h).then(function(){y(window.AMap)}).catch(m);g.length;)g.splice(0,1)[0]()},w=document.createElement("script"),w.type="text/javascript",w.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+l.AMap.version+"&key="+Q+"&plugin="+l.AMap.plugins.join(","),w.onerror=function(k){a.AMap=s.failed,m(k)},u.appendChild(w)):m("请填写key")}else if(a.AMap==s.loaded)if(h.key&&h.key!==l.key)m("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)m("不允许多个版本 JSAPI 混用");else{if(Q=[],h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&Q.push(h.plugins[u]);Q.length?window.AMap.plugin(Q,function(){r(h).then(function(){y(window.AMap)}).catch(m)}):r(h).then(function(){y(window.AMap)}).catch(m)}else if(h.key&&h.key!==l.key)m("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)m("不允许多个版本 JSAPI 混用");else{var d=[];if(h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&d.push(h.plugins[u]);v(function(){d.length?window.AMap.plugin(d,function(){r(h).then(function(){y(window.AMap)}).catch(m)}):r(h).then(function(){y(window.AMap)}).catch(m)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMap:[],AMapUI:[],Loca:[]}}}})})(Xe)),Xe.exports}var so=ao();const co=Ct(so);let et="",mt="";const uo="2.0";function fo(e){et=e.key,mt=e.securityCode}function ho(){typeof window<"u"&&mt&&(window._AMapSecurityConfig={securityJsCode:mt})}function po(){typeof window<"u"&&(window.forceWebGL=!0)}let $e=null,ct=null;const ut=new Set;function mo(e){return e!=null&&e.length?Array.from(new Set(e.filter(Boolean))):[]}async function go(){if(!(typeof window.Loca<"u")){if(!ct){const e=`https://webapi.amap.com/loca?v=2.0.0&key=${et}`;ct=new Promise((n,r)=>{const i=document.createElement("script");i.type="text/javascript",i.src=e,i.onload=()=>n(),i.onerror=o=>r(o),document.head.appendChild(i)})}await ct}}async function wo(e={}){const{plugins:n=[],withLoca:r=!1}=e,i=mo(n),o=typeof window<"u"?window:null;if(o!=null&&o.AMap&&!$e&&(console.warn("[AMap Loader] 检测到已存在的 AMap 实例,将复用现有实例"),$e=Promise.resolve(o.AMap)),!$e){if(!et)throw new Error("AMap key 未配置,请在 twcptInit 中设置 amap.key");ho(),po(),i.forEach(a=>ut.add(a)),$e=co.load({key:et,version:uo,plugins:i})}const s=await $e;if(typeof window<"u"){const a=window;a.AMap||(a.AMap=s)}const l=i.filter(a=>!ut.has(a));return l.length&&typeof(s==null?void 0:s.plugin)=="function"&&(await new Promise(a=>{s.plugin(l,()=>a())}),l.forEach(a=>ut.add(a))),r&&await go(),s}const yo=[116.407428,39.91923];function vo(e){const{center:n,zoom:r,viewMode:i,mapType:o,isDark:s}=e;let l=null,a=null,c=null;async function g(w){if(!w)return null;try{await wo({plugins:["AMap.DistrictSearch"]})}catch(L){return console.error("AMap 加载失败:",L),null}const d=window.AMap;if(!d)return null;const k=n.value;let D=yo;const S=_t(k[0],k[1]);S&&Ue(S)&&(D=S);const C=i.value,I=C==="3D";return l=new d.Map(w,{zoom:r.value,center:D,mapStyle:s.value?"amap://styles/dark":"amap://styles/whitesmoke",viewMode:C,...I&&{pitch:50,rotateEnable:!0,pitchEnable:!0}}),o.value==="satellite"&&(a=new d.TileLayer.Satellite,l.add(a)),c=new d.InfoWindow({isCustom:!0,offset:new d.Pixel(0,-40),closeWhenClickMap:!0}),l}function v(){l&&(c&&(c.close(),c=null),a&&(l.remove(a),a=null),l.destroy(),l=null)}function h(){return l}function y(){return c}function m(w){l&&l.setMapStyle(w?"amap://styles/dark":"amap://styles/whitesmoke")}function Q(w){l&&typeof l.setViewMode=="function"&&l.setViewMode(w)}function u(w){if(!l)return;const d=window.AMap;w==="satellite"?(a||(a=new d.TileLayer.Satellite),l.add(a)):(a&&(l.remove(a),a=null),l.setMapStyle(s.value?"amap://styles/dark":"amap://styles/whitesmoke"))}return{initMap:g,destroyMap:v,getMap:h,getInfoWindow:y,setMapStyle:m,setViewMode:Q,setMapType:u}}const Qo=[116.398,39.92],Te={completed:"#00B42A",notCollected:"#E6A23C",defaultHighlight:"#165dff",single:"#00B42A"},ko="#FF8C00",ve={polyline:40,polylineHighlight:45,polylineBorder:44,track:50,startMarker:60,pointLabel:10};function bo(e){const{getMap:n,lineArr:r,mapLineArr:i,trackLineArr:o,highlightLineIndex:s,highlightStrokeColor:l,routeCompletedList:a,startPointIcon:c}=e;let g=null;const v=[];let h=null;function y(){const Q=n();Q&&(g&&(Q.remove(g),g=null),v.forEach(u=>Q.remove(u)),v.length=0,h&&(Q.remove(h),h=null))}function m(){const Q=n();if(!Q)return;y();const u=r.value||[],w=i.value||[],d=o.value||[],k=s.value,D=l.value||Te.defaultHighlight,S=w.length>0||d.length>0;if(!S&&(!u||u.length===0))return;const C=window.AMap;if(S){const L=ve.polyline;if([w,d].forEach((F,_)=>{if(!F||F.length===0)return;const x=_===0;F.forEach($=>{const b=Le($);if(b.length===0)return;const N=new C.Polyline({path:b,strokeColor:x?Te.completed:Te.notCollected,strokeWeight:2,strokeOpacity:.85,strokeStyle:x?"solid":"dashed",lineJoin:"round",lineCap:"round",zIndex:L});v.push(N),Q.add(N)})}),k>=0&&Array.isArray(u[k])&&u[k].length>0){const F=Le(u[k]);if(F.length>0){const _=new C.Polyline({path:F,strokeColor:D,strokeWeight:3,strokeOpacity:.95,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});v.push(_),Q.add(_)}}if(u[0]&&u[0].length>0){const F=Le(u[0]);F.length>0&&(h=new C.Marker({position:F[0],icon:new C.Icon({image:c,size:new C.Size(70,70),imageSize:new C.Size(70,70)}),offset:new C.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),Q.add(h))}v.length>0&&Q.setFitView(v)}else if(u&&u.length>0&&pt(u)){const I=a.value||[],L=I.length>0,F=L?Te.notCollected:Te.completed,_=L?3:2,x=3,$=10,b=[];if(u.forEach((N,p)=>{const R=Le(N);if(R.length===0)return;const K=p===k,Z=L&&(I[p]===!0||I[p]===2),ae=L&&Z?Te.completed:F;if(L&&K){const Y=new C.Polyline({path:R,strokeColor:D,strokeWeight:$,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineBorder}),re=new C.Polyline({path:R,strokeColor:ae,strokeWeight:_,strokeOpacity:1,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});v.push(Y,re),b.push({polyline:Y,isHighlight:!0}),b.push({polyline:re,isHighlight:!0})}else{const Y=new C.Polyline({path:R,strokeColor:ae,strokeWeight:K?x:_,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:K?ve.polylineHighlight:ve.polyline});v.push(Y),b.push({polyline:Y,isHighlight:K})}}),b.filter(N=>!N.isHighlight).forEach(N=>Q.add(N.polyline)),b.filter(N=>N.isHighlight).forEach(N=>Q.add(N.polyline)),u[0]&&u[0].length>0){const N=Le(u[0]);N.length>0&&(h=new C.Marker({position:N[0],icon:new C.Icon({image:c,size:new C.Size(70,70),imageSize:new C.Size(70,70)}),offset:new C.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),Q.add(h))}v.length>0&&Q.setFitView(v)}else{const I=Le(u);I.length>0&&(g=new C.Polyline({path:I,strokeColor:Te.single,strokeWeight:3,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polyline}),Q.add(g),h=new C.Marker({position:I[0],icon:new C.Icon({image:c,size:new C.Size(70,70),imageSize:new C.Size(70,70)}),offset:new C.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),Q.add(h),Q.setFitView(g)),g&&Q.setFitView([g])}}return{drawPolyline:m,clear:y}}const v1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='48'%20height='96'%20viewBox='0%200%2048%2096'%3e%3cdefs%3e%3cfilter%20id='master_svg0_421_65730'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.25'%20y='-0.1875'%20width='1.5'%20height='1.5'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='master_svg1_421_65786'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.2222222222222222'%20y='-0.12830338404351957'%20width='1.4444444444444444'%20height='1.3421423574493856'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3cg%3e%3cg%3e%3cg%20filter='url(%23master_svg0_421_65730)'%3e%3cellipse%20cx='24'%20cy='70'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,70Q42,70.441875,41.978317,70.883217Q41.956638,71.324562,41.91333,71.764309Q41.870018,72.20405600000001,41.805176,72.641148Q41.740341,73.078239,41.654137,73.511623Q41.567928,73.945007,41.460564,74.373642Q41.353195,74.802277,41.22493,75.225124Q41.096657,75.647972,40.947792,76.064016Q40.798927,76.480061,40.629829,76.8883Q40.460732,77.296539,40.271805,77.695992Q40.082878,78.09544199999999,39.874582000000004,78.485142Q39.666283,78.87484,39.439114000000004,79.253849Q39.211945,79.632858,38.966452000000004,80.000263Q38.720959,80.367668,38.457733000000005,80.722586Q38.19451,81.07750300000001,37.914187999999996,81.419079Q37.633865,81.760653,37.337118000000004,82.08806Q37.040373,82.415466,36.727920999999995,82.727921Q36.415465999999995,83.040373,36.08806,83.337118Q35.760653000000005,83.633865,35.419078999999996,83.914188Q35.077503,84.19451000000001,34.722586,84.457733Q34.367667999999995,84.720959,34.000263000000004,84.966452Q33.632858,85.211945,33.253849,85.439114Q32.87484,85.66628299999999,32.485141999999996,85.874582Q32.095442,86.082878,31.69599,86.271805Q31.296539,86.46073200000001,30.8883,86.629829Q30.480061,86.79892699999999,30.064016,86.94779199999999Q29.647972,87.096657,29.225124,87.22492600000001Q28.802277,87.353195,28.373642,87.460564Q27.945007,87.567928,27.511623,87.65413699999999Q27.078239,87.740341,26.641148,87.80518000000001Q26.204056,87.870018,25.764309,87.91333Q25.324562,87.956638,24.883219,87.978321Q24.441875,88,24,88Q23.558125,88,23.116781,87.978317Q22.675439,87.956638,22.235692,87.91333Q21.795944,87.870018,21.358851,87.805176Q20.921759,87.740341,20.488374999999998,87.65413699999999Q20.05499,87.567928,19.626357,87.460564Q19.197724,87.353195,18.774877,87.22493Q18.352028,87.096657,17.9359827,86.94779199999999Q17.519937499999997,86.79892699999999,17.1116982,86.629829Q16.7034588,86.46073200000001,16.3040075,86.271805Q15.9045577,86.082878,15.5148587,85.874582Q15.1251593,85.66628299999999,14.74615,85.439114Q14.3671408,85.211945,13.9997349,84.966452Q13.632329,84.720959,13.2774119,84.457733Q12.9224939,84.19451000000001,12.580920200000001,83.914188Q12.239346000000001,83.633865,11.9119382,83.337118Q11.5845304,83.040373,11.2720778,82.727921Q10.9596248,82.415466,10.6628797,82.08806Q10.3661346,81.760653,10.0858119,81.419079Q9.805489099999999,81.07750300000001,9.5422643,80.722586Q9.2790396,80.367668,9.0335469,80.000263Q8.78805423,79.632858,8.56088501,79.253849Q8.33371574,78.87484,8.12541722,78.485142Q7.917118691,78.09544199999999,7.72819272,77.69599Q7.53926674,77.296539,7.3701684499999995,76.8883Q7.20107013,76.480061,7.05220687,76.064016Q6.9033437,75.647972,6.775074,75.225124Q6.6468045,74.802277,6.5394375,74.373642Q6.4320707,73.945007,6.3458651,73.511623Q6.2596595,73.078239,6.1948229999999995,72.641148Q6.1299863000000006,72.20405600000001,6.0866749,71.764309Q6.0433636,71.324562,6.0216818,70.883219Q6,70.441875,6,70Q6,69.558125,6.0216818,69.116781Q6.0433636,68.675439,6.0866748,68.235692Q6.1299863000000006,67.795944,6.1948229,67.358851Q6.2596595,66.921759,6.3458651,66.488375Q6.4320707,66.05499,6.5394375,65.626357Q6.6468045,65.197724,6.775074,64.774877Q6.9033437,64.352028,7.05220693,63.9359827Q7.20107019,63.5199375,7.37016851,63.1116982Q7.53926679,62.7034588,7.72819275,62.3040075Q7.917118743,61.9045577,8.12541726,61.5148587Q8.33371574,61.1251593,8.56088495,60.74615Q8.78805423,60.3671408,9.0335469,59.9997349Q9.2790396,59.632329,9.5422645,59.2774119Q9.805489099999999,58.9224939,10.0858119,58.5809202Q10.3661346,58.239346,10.6628797,57.9119382Q10.9596248,57.5845304,11.2720778,57.2720778Q11.5845304,56.9596248,11.9119382,56.6628797Q12.239346000000001,56.3661346,12.580920200000001,56.0858119Q12.9224939,55.8054891,13.2774115,55.5422643Q13.632329,55.2790396,13.9997349,55.0335469Q14.3671408,54.78805423,14.74615,54.56088501Q15.125158800000001,54.33371574,15.5148578,54.12541722Q15.9045568,53.917118691,16.3040066,53.72819272Q16.7034569,53.53926674,17.111697200000002,53.37016845Q17.5199366,53.20107013,17.9359818,53.05220687Q18.352027,52.9033437,18.774876,52.775074000000004Q19.197723,52.6468045,19.626356,52.5394375Q20.054989,52.4320707,20.488374,52.3458651Q20.921759,52.2596595,21.35885,52.194823Q21.795944,52.1299863,22.235692,52.0866749Q22.675439,52.0433636,23.116781,52.0216818Q23.558125,52,24,52Q24.441875,52,24.883217,52.0216818Q25.324562,52.0433636,25.764309,52.0866748Q26.204056,52.1299863,26.641148,52.1948229Q27.078239,52.2596595,27.511623,52.3458651Q27.945007,52.4320707,28.373642,52.5394375Q28.802277,52.6468045,29.225124,52.775074000000004Q29.647972,52.9033437,30.064016,53.05220693Q30.480061,53.20107019,30.8883,53.37016851Q31.296539,53.53926679,31.695992,53.72819275Q32.095442,53.917118743,32.485141999999996,54.12541726Q32.87484,54.33371574,33.253849,54.56088495Q33.632858,54.78805423,34.000263000000004,55.0335469Q34.367667999999995,55.2790396,34.722586,55.5422645Q35.077503,55.8054891,35.419078999999996,56.0858119Q35.760653000000005,56.3661346,36.08806,56.6628797Q36.415465999999995,56.9596248,36.727920999999995,57.2720778Q37.040373,57.5845304,37.337118000000004,57.9119382Q37.633865,58.239346,37.914187999999996,58.5809202Q38.19451,58.9224939,38.457733000000005,59.2774115Q38.720959,59.632329,38.966452000000004,59.9997349Q39.211945,60.3671408,39.439114000000004,60.74615Q39.666283,61.1251588,39.874582000000004,61.5148578Q40.082878,61.9045568,40.271805,62.3040066Q40.460732,62.7034569,40.629829,63.1116972Q40.798927,63.5199366,40.947792,63.9359818Q41.096657,64.35202699999999,41.224926,64.774876Q41.353195,65.197723,41.460564,65.626356Q41.567928,66.054989,41.654137,66.488374Q41.740341,66.921759,41.80518,67.35885Q41.870018,67.795944,41.91333,68.235692Q41.956638,68.675439,41.978321,69.116781Q42,69.558125,42,70ZM40,70Q40,69.60722200000001,39.980726000000004,69.214917Q39.961454,68.822613,39.922956,68.431726Q39.884457,68.04083800000001,39.826824,67.652311Q39.769189999999995,67.263784,39.692561999999995,66.878554Q39.615933999999996,66.493323,39.520496,66.11231599999999Q39.42506,65.73131000000001,39.311043,65.355445Q39.197025,64.979579,39.064701,64.609761Q38.932377,64.239943,38.782067999999995,63.8770638Q38.63176,63.514184,38.463825,63.1591167Q38.295891,62.8040504,38.110737,62.4576511Q37.925583,62.1112518,37.723653999999996,61.7743554Q37.521725,61.4374585,37.303509,61.1108756Q37.085293,60.7842927,36.851316,60.468811Q36.61734,60.1533289,36.368164,59.8497076Q36.118988,59.5460863,35.855215,59.2550569Q35.591442,58.9640274,35.313705,58.6862912Q35.035969,58.408555,34.744942,58.1447821Q34.453911000000005,57.8810084,34.150290999999996,57.6318328Q33.846668,57.3826571,33.531185,57.1486793Q33.215702,56.9147017,32.889117999999996,56.696486Q32.562534,56.4782701,32.225639,56.2763419Q31.888744,56.0744138,31.542347,55.8892597Q31.195946,55.7041054,30.840878,55.5361711Q30.485809,55.3682369,30.122932,55.2179273Q29.760052,55.0676178,29.390236,54.93529487Q29.020416,54.80297196,28.644554,54.68895459Q28.268688,54.57493716,27.88768,54.47949991Q27.506674,54.38406265,27.121443,54.30743548Q26.736212,54.2308083,26.347687,54.17317583Q25.95916,54.11554334,25.568275,54.077044368Q25.177387,54.038545396,24.785082,54.019272698Q24.392776,54,24,54Q23.607222,54,23.214917,54.019272698Q22.822613,54.038545396,22.431725999999998,54.077044368Q22.040838,54.11554334,21.652310999999997,54.17317581Q21.263784,54.2308083,20.878554,54.30743548Q20.493323,54.38406265,20.112316,54.47949988Q19.73131,54.57493716,19.355445,54.68895459Q18.979579,54.80297196,18.609761,54.93529487Q18.239943,55.0676178,17.877063800000002,55.2179273Q17.514184,55.3682369,17.1591167,55.5361711Q16.8040504,55.7041053,16.4576511,55.8892596Q16.111251799999998,56.0744138,15.774355400000001,56.2763419Q15.4374585,56.4782701,15.1108756,56.696486Q14.7842927,56.9147017,14.468810999999999,57.1486793Q14.1533289,57.3826568,13.8497076,57.6318326Q13.546086299999999,57.8810081,13.2550569,58.1447816Q12.964027399999999,58.408555,12.6862912,58.6862912Q12.408555,58.9640274,12.1447821,59.2550569Q11.881008399999999,59.5460863,11.6318328,59.8497076Q11.3826571,60.1533289,11.1486793,60.468811Q10.9147017,60.7842932,10.696486,61.1108761Q10.4782701,61.437459,10.2763419,61.7743554Q10.0744138,62.1112518,9.8892597,62.4576511Q9.7041054,62.8040504,9.5361711,63.1591167Q9.3682369,63.514184,9.2179273,63.8770638Q9.0676178,64.239943,8.93529487,64.60976Q8.80297196,64.979579,8.68895459,65.355445Q8.57493716,65.73131000000001,8.47949991,66.11231599999999Q8.38406265,66.493323,8.30743548,66.878554Q8.2308083,67.263784,8.17317583,67.652311Q8.11554334,68.04083800000001,8.077044368,68.431726Q8.038545396,68.822613,8.019272698,69.214918Q8,69.60722200000001,8,70Q8,70.392776,8.019272698,70.785082Q8.038545396,71.177387,8.077044368,71.568274Q8.11554334,71.95916,8.17317581,72.347685Q8.2308083,72.736212,8.30743548,73.121443Q8.38406265,73.506674,8.47949988,73.88768Q8.57493716,74.268688,8.68895459,74.644554Q8.80297196,75.020416,8.93529487,75.39023399999999Q9.0676178,75.760052,9.2179273,76.12293199999999Q9.3682369,76.485809,9.5361711,76.840878Q9.7041053,77.19594599999999,9.889259599999999,77.542345Q10.0744138,77.888744,10.2763419,78.225639Q10.4782701,78.562534,10.696486,78.889118Q10.9147017,79.215702,11.1486793,79.531185Q11.3826568,79.846668,11.6318326,80.150291Q11.881008099999999,80.453911,12.1447816,80.74494Q12.408555,81.035969,12.6862912,81.313705Q12.964027399999999,81.591442,13.2550569,81.855215Q13.546086299999999,82.118988,13.8497076,82.36816400000001Q14.1533289,82.61734,14.468810999999999,82.851316Q14.7842932,83.08529300000001,15.110876099999999,83.30350899999999Q15.437459,83.521725,15.774355400000001,83.723654Q16.111251799999998,83.925583,16.4576511,84.110739Q16.8040504,84.295891,17.1591167,84.463827Q17.514184,84.63176,17.877063800000002,84.78207Q18.239943,84.93238099999999,18.60976,85.06470300000001Q18.979579,85.197025,19.355445,85.31104500000001Q19.73131,85.42506,20.112316,85.520498Q20.493323,85.615936,20.878554,85.692562Q21.263784,85.76919,21.652310999999997,85.82682199999999Q22.040838,85.884457,22.431725999999998,85.922956Q22.822613,85.961454,23.214918,85.980728Q23.607222,86,24,86Q24.392776,86,24.785082,85.980726Q25.177387,85.961454,25.568274,85.922956Q25.95916,85.884457,26.347685,85.826824Q26.736212,85.76919,27.121443,85.692562Q27.506674,85.615934,27.88768,85.52049600000001Q28.268688,85.42506,28.644554,85.311043Q29.020416,85.197025,29.390234,85.064701Q29.760052,84.932377,30.122932,84.782068Q30.485809,84.63176,30.840878,84.463825Q31.195946,84.295891,31.542345,84.110737Q31.888744,83.925583,32.225639,83.723654Q32.562534,83.521725,32.889117999999996,83.30350899999999Q33.215702,83.08529300000001,33.531185,82.851316Q33.846668,82.61734,34.150290999999996,82.36816400000001Q34.453911000000005,82.118988,34.74494,81.855215Q35.035969,81.591442,35.313705,81.313705Q35.591442,81.035969,35.855215,80.74494200000001Q36.118988,80.453911,36.368164,80.150291Q36.61734,79.846668,36.851316,79.531185Q37.085293,79.215702,37.303509,78.889118Q37.521725,78.562534,37.723653999999996,78.225639Q37.925583,77.888744,38.110738999999995,77.542347Q38.295891,77.19594599999999,38.463826999999995,76.840878Q38.63176,76.485809,38.782070000000004,76.12293199999999Q38.932381,75.760052,39.064703,75.390236Q39.197025,75.020416,39.311045,74.644554Q39.42506,74.268688,39.520498,73.88768Q39.615936000000005,73.506674,39.692561999999995,73.121443Q39.769189999999995,72.736212,39.826822,72.34768700000001Q39.884457,71.95916,39.922956,71.568275Q39.961454,71.177387,39.980728,70.785082Q40,70.392776,40,70Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='16'%20y='62'%20width='16'%20height='16'%20rx='1'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M16,63.0000001L16,64L32,64L32,63.0000001C32,62.44771528,31.552284999999998,62,31,62L17.0000001,62C16.44771528,62,16,62.44771528,16,63.0000001Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='26'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='16'%20y='64'%20width='16'%20height='1'%20rx='0'%20fill='%2300D4FF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M19,64L20.25,65L27.75,65L29,64L19,64Z'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='23.75'%20y='62'%20width='0.5'%20height='16'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%20filter='url(%23master_svg1_421_65786)'%3e%3cpath%20d='M32.232849,38.006882Q32.781176,37.724861,33.308915999999996,37.405979Q33.836655,37.087097,34.341335,36.732849Q34.846019999999996,36.378601,35.325277,35.990648Q35.804535,35.602694,36.256119,35.182852Q36.707706,34.763014,37.129503,34.313255Q37.5513,33.863499000000004,37.94133,33.385929000000004Q38.331364,32.908363,38.687801,32.405226Q39.044235,31.902086,39.365406,31.375734Q39.686577,30.849384,39.970978,30.302292Q40.255379,29.755196,40.501671,29.18992Q40.747971,28.624649,40.955002,28.043846Q41.162037,27.463043,41.328838,26.869432Q41.495644,26.275826,41.621441,25.672194Q41.747231,25.068562,41.831421,24.457733Q41.915615,23.846909,41.957809,23.231754Q42,22.6166,42,22Q42,21.558125,41.978317,21.116783Q41.956635,20.675438,41.913326,20.235691Q41.870014,19.795943,41.805176,19.358851Q41.740341,18.921759,41.654133,18.488374Q41.567924,18.054989,41.46056,17.626356Q41.353195,17.197723,41.224926,16.774877Q41.096657,16.352028,40.947792,15.935983Q40.798927,15.519938,40.629829,15.111698Q40.460728,14.703459,40.271801,14.304008Q40.082878,13.9045582,39.87458,13.5148592Q39.666283,13.1251593,39.43911,12.74615Q39.211945,12.3671408,38.96645,11.9997349Q38.720955,11.632329,38.457729,11.2774119Q38.194508,10.9224944,37.914185,10.580920200000001Q37.633862,10.2393465,37.337116,9.9119387Q37.040371,9.5845308,36.727920999999995,9.2720776Q36.415465999999995,8.9596248,36.08806,8.662879499999999Q35.760653000000005,8.366134599999999,35.419078999999996,8.0858121Q35.077503,7.8054891,34.722586,7.5422642Q34.367667999999995,7.2790394,34.000263000000004,7.0335464000000005Q33.632858,6.788054,33.253849,6.5608847Q32.87484,6.3337154,32.48514,6.1254170000000006Q32.095439999999996,5.9171184,31.69599,5.7281923Q31.296539,5.5392665,30.888298,5.3701682Q30.480059,5.2010698,30.064014,5.0522066Q29.647972,4.90334344,29.225124,4.77507389Q28.802277,4.64680433,28.373642,4.53943741Q27.945007,4.43207049,27.511623,4.34586489Q27.078239,4.25965932,26.641148,4.19482279Q26.204056,4.12998626,25.764309,4.086674914Q25.324562,4.043363571,24.883219,4.021681786Q24.441875,4,24,4Q23.558125,4,23.116783,4.021681786Q22.675438,4.043363571,22.235691,4.086674914Q21.795943,4.12998626,21.358851,4.19482279Q20.921759,4.25965932,20.488374,4.34586489Q20.054989,4.43207049,19.626356,4.53943741Q19.197723,4.64680433,18.774877,4.77507389Q18.352028,4.90334344,17.935983,5.0522068Q17.519938,5.2010698,17.111698,5.3701682Q16.703459000000002,5.5392665,16.304008,5.7281924Q15.9045582,5.9171185,15.5148592,6.125417199999999Q15.1251593,6.3337157,14.74615,6.560885Q14.3671408,6.788054,13.9997349,7.0335467000000005Q13.632329,7.2790394,13.2774119,7.542263999999999Q12.9224944,7.8054888,12.580920200000001,8.0858116Q12.2393465,8.366134200000001,11.9119387,8.662879499999999Q11.5845308,8.9596248,11.2720776,9.2720776Q10.9596248,9.5845308,10.662879499999999,9.9119387Q10.366134599999999,10.2393465,10.0858121,10.580920200000001Q9.805489099999999,10.9224944,9.5422642,11.2774115Q9.2790394,11.632329,9.0335464,11.9997349Q8.788053999999999,12.3671398,8.560884699999999,12.7461491Q8.333715399999999,13.1251583,8.125417,13.5148582Q7.9171184,13.9045563,7.7281923,14.304007Q7.5392665,14.703457,7.3701682,15.111697Q7.2010698,15.519937,7.0522066,15.935982Q6.90334344,16.352028,6.77507389,16.774877Q6.64680433,17.197723,6.53943741,17.626356Q6.43207049,18.054989,6.34586489,18.488374Q6.25965932,18.921759,6.19482279,19.358851Q6.12998626,19.795944,6.086674914,20.235693Q6.043363571,20.67544,6.021681786,21.116783Q6,21.558125,6,22Q6,22.61661,6.042195804,23.231773Q6.084391609,23.846939,6.16858539,24.457773Q6.25277919,25.068609,6.37857616,25.672251Q6.50437319,26.27589,6.67118365,26.869509Q6.8379940999999995,27.463127,7.045036,28.043938Q7.2520778,28.624748,7.4983803,29.190029Q7.7446828,29.75531,8.0290914,30.302412Q8.3134997,30.849514,8.6346805,31.37587Q8.9558616,31.902225,9.312308999999999,32.405369Q9.6687565,32.908512,10.0587993,33.386082Q10.4488425,33.863655,10.8706522,34.313414Q11.2924619,34.763174,11.7440605,35.183014Q12.195659599999999,35.602856,12.6749306,35.990807000000004Q13.154201,36.378761,13.6588964,36.733006Q14.1635923,37.08725,14.6913471,37.406132Q15.219101,37.72501,15.7674398,38.007027L21.316826,49.105801Q22.146006,50.76416,24.000107,50.76416Q25.85421,50.76416,26.68339,49.105801L32.232849,38.006882Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%20transform='matrix(-1,0,0,-1,64,100)'%3e%3cpath%20d='M40.894427300000004,51.7888544L47.276393,64.552786C47.608844,65.217687,47.125348,66,46.381966,66L33.6180344,66C32.87465209,66,32.39115629,65.217687,32.72360682,64.552786L39.105572699999996,51.7888546C39.4740968,51.0518059,40.5259027,51.0518059,40.894427300000004,51.7888544'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M30.9347535,63.658358Q30.1867377,65.154384,31.06608164,66.577192Q31.945424803,68,33.6180344,68L46.381967,68Q48.054579000000004,68,48.93392,66.57719Q49.813261,65.154384,49.065247,63.65836L42.683282,50.89442706Q41.8541021,49.23606777,40,49.23606795Q38.1458969,49.23606819,37.3167186,50.89442742L30.9347535,63.658358ZM47.276393,64.552786L40.894427300000004,51.7888544C40.5259027,51.0518059,39.4740968,51.0518059,39.105572699999996,51.7888546L32.72360682,64.552786C32.39115629,65.217687,32.87465209,66,33.6180344,66L46.381966,66C47.125348,66,47.608844,65.217687,47.276393,64.552786Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cellipse%20cx='24'%20cy='22'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,22Q42,22.441875,41.978317,22.883217Q41.956638,23.324562,41.91333,23.764309Q41.870018,24.204056,41.805176,24.641148Q41.740341,25.078239,41.654137,25.511623Q41.567928,25.945007,41.460564,26.373642Q41.353195,26.802277,41.22493,27.225124Q41.096657,27.647972,40.947792,28.064016Q40.798927,28.480061,40.629829,28.8883Q40.460732,29.296539,40.271805,29.695992Q40.082878,30.095442,39.874582000000004,30.485142Q39.666283,30.87484,39.439114000000004,31.253849Q39.211945,31.632858,38.966452000000004,32.000263000000004Q38.720959,32.367667999999995,38.457733000000005,32.722586Q38.19451,33.077503,37.914187999999996,33.419078999999996Q37.633865,33.760653000000005,37.337118000000004,34.08806Q37.040373,34.415465999999995,36.727920999999995,34.727920999999995Q36.415465999999995,35.040373,36.08806,35.337118000000004Q35.760653000000005,35.633865,35.419078999999996,35.914187999999996Q35.077503,36.19451,34.722586,36.457733000000005Q34.367667999999995,36.720959,34.000263000000004,36.966452000000004Q33.632858,37.211945,33.253849,37.439114000000004Q32.87484,37.666283,32.485141999999996,37.874582000000004Q32.095442,38.082878,31.69599,38.271805Q31.296539,38.460732,30.8883,38.629829Q30.480061,38.798927,30.064016,38.947792Q29.647972,39.096657,29.225124,39.224926Q28.802277,39.353195,28.373642,39.460564Q27.945007,39.567928,27.511623,39.654137Q27.078239,39.740341,26.641148,39.80518Q26.204056,39.870018,25.764309,39.91333Q25.324562,39.956638,24.883219,39.978321Q24.441875,40,24,40Q23.558125,40,23.116781,39.978317Q22.675439,39.956638,22.235692,39.91333Q21.795944,39.870018,21.358851,39.805176Q20.921759,39.740341,20.488374999999998,39.654137Q20.05499,39.567928,19.626357,39.460564Q19.197724,39.353195,18.774877,39.22493Q18.352028,39.096657,17.9359827,38.947792Q17.519937499999997,38.798927,17.1116982,38.629829Q16.7034588,38.460732,16.3040075,38.271805Q15.9045577,38.082878,15.5148587,37.874582000000004Q15.1251593,37.666283,14.74615,37.439114000000004Q14.3671408,37.211945,13.9997349,36.966452000000004Q13.632329,36.720959,13.2774119,36.457733000000005Q12.9224939,36.19451,12.580920200000001,35.914187999999996Q12.239346000000001,35.633865,11.9119382,35.337118000000004Q11.5845304,35.040373,11.2720778,34.727920999999995Q10.9596248,34.415465999999995,10.6628797,34.08806Q10.3661346,33.760653000000005,10.0858119,33.419078999999996Q9.805489099999999,33.077503,9.5422643,32.722586Q9.2790396,32.367667999999995,9.0335469,32.000263000000004Q8.78805423,31.632858,8.56088501,31.253849Q8.33371574,30.87484,8.12541722,30.485142Q7.917118691,30.095442,7.72819272,29.69599Q7.53926674,29.296539,7.3701684499999995,28.8883Q7.20107013,28.480061,7.05220687,28.064016Q6.9033437,27.647972,6.775074,27.225124Q6.6468045,26.802277,6.5394375,26.373642Q6.4320707,25.945007,6.3458651,25.511623Q6.2596595,25.078239,6.1948229999999995,24.641148Q6.1299863000000006,24.204056,6.0866749,23.764309Q6.0433636,23.324562,6.0216818,22.883219Q6,22.441875,6,22Q6,21.558125,6.0216818,21.116781Q6.0433636,20.675439,6.0866748,20.235692Q6.1299863000000006,19.795944,6.1948229,19.358851Q6.2596595,18.921759,6.3458651,18.488374999999998Q6.4320707,18.05499,6.5394375,17.626357Q6.6468045,17.197724,6.775074,16.774877Q6.9033437,16.352028,7.05220693,15.9359827Q7.20107019,15.5199375,7.37016851,15.1116982Q7.53926679,14.7034588,7.72819275,14.3040075Q7.917118743,13.9045577,8.12541726,13.5148587Q8.33371574,13.1251593,8.56088495,12.74615Q8.78805423,12.3671408,9.0335469,11.9997349Q9.2790396,11.632329,9.5422645,11.2774119Q9.805489099999999,10.9224939,10.0858119,10.580920200000001Q10.3661346,10.239346000000001,10.6628797,9.9119382Q10.9596248,9.5845304,11.2720778,9.2720778Q11.5845304,8.9596248,11.9119382,8.6628797Q12.239346000000001,8.3661346,12.580920200000001,8.0858119Q12.9224939,7.8054891,13.2774115,7.5422643Q13.632329,7.2790396,13.9997349,7.0335469Q14.3671408,6.78805423,14.74615,6.56088501Q15.125158800000001,6.33371574,15.5148578,6.12541722Q15.9045568,5.917118691,16.3040066,5.72819272Q16.7034569,5.53926674,17.111697200000002,5.3701684499999995Q17.5199366,5.20107013,17.9359818,5.05220687Q18.352027,4.9033437,18.774876,4.775074Q19.197723,4.6468045,19.626356,4.5394375Q20.054989,4.4320707,20.488374,4.3458651Q20.921759,4.2596595,21.35885,4.1948229999999995Q21.795944,4.1299863000000006,22.235692,4.0866749Q22.675439,4.0433636,23.116781,4.0216818Q23.558125,4,24,4Q24.441875,4,24.883217,4.0216818Q25.324562,4.0433636,25.764309,4.0866748Q26.204056,4.1299863000000006,26.641148,4.1948229Q27.078239,4.2596595,27.511623,4.3458651Q27.945007,4.4320707,28.373642,4.5394375Q28.802277,4.6468045,29.225124,4.775074Q29.647972,4.9033437,30.064016,5.05220693Q30.480061,5.20107019,30.8883,5.37016851Q31.296539,5.53926679,31.695992,5.72819275Q32.095442,5.917118743,32.485141999999996,6.12541726Q32.87484,6.33371574,33.253849,6.56088495Q33.632858,6.78805423,34.000263000000004,7.0335469Q34.367667999999995,7.2790396,34.722586,7.5422645Q35.077503,7.8054891,35.419078999999996,8.0858119Q35.760653000000005,8.3661346,36.08806,8.6628797Q36.415465999999995,8.9596248,36.727920999999995,9.2720778Q37.040373,9.5845304,37.337118000000004,9.9119382Q37.633865,10.239346000000001,37.914187999999996,10.580920200000001Q38.19451,10.9224939,38.457733000000005,11.2774115Q38.720959,11.632329,38.966452000000004,11.9997349Q39.211945,12.3671408,39.439114000000004,12.74615Q39.666283,13.125158800000001,39.874582000000004,13.5148578Q40.082878,13.9045568,40.271805,14.3040066Q40.460732,14.7034569,40.629829,15.1116972Q40.798927,15.5199366,40.947792,15.9359818Q41.096657,16.352027,41.224926,16.774876Q41.353195,17.197723,41.460564,17.626356Q41.567928,18.054989,41.654137,18.488374Q41.740341,18.921759,41.80518,19.35885Q41.870018,19.795944,41.91333,20.235692Q41.956638,20.675439,41.978321,21.116781Q42,21.558125,42,22ZM40,22Q40,21.607222,39.980726000000004,21.214917Q39.961454,20.822613,39.922956,20.431725999999998Q39.884457,20.040838,39.826824,19.652310999999997Q39.769189999999995,19.263784,39.692561999999995,18.878554Q39.615933999999996,18.493323,39.520496,18.112316Q39.42506,17.73131,39.311043,17.355445Q39.197025,16.979579,39.064701,16.609761Q38.932377,16.239943,38.782067999999995,15.8770638Q38.63176,15.514184,38.463825,15.1591167Q38.295891,14.8040504,38.110737,14.4576511Q37.925583,14.1112518,37.723653999999996,13.774355400000001Q37.521725,13.4374585,37.303509,13.1108756Q37.085293,12.7842927,36.851316,12.468810999999999Q36.61734,12.1533289,36.368164,11.8497076Q36.118988,11.546086299999999,35.855215,11.2550569Q35.591442,10.964027399999999,35.313705,10.6862912Q35.035969,10.408555,34.744942,10.1447821Q34.453911000000005,9.881008399999999,34.150290999999996,9.6318328Q33.846668,9.3826571,33.531185,9.1486793Q33.215702,8.9147017,32.889117999999996,8.696486Q32.562534,8.4782701,32.225639,8.2763419Q31.888744,8.0744138,31.542347,7.8892597Q31.195946,7.7041053999999995,30.840878,7.5361711Q30.485809,7.3682369,30.122932,7.2179272999999995Q29.760052,7.0676178,29.390236,6.93529487Q29.020416,6.80297196,28.644554,6.68895459Q28.268688,6.57493716,27.88768,6.47949991Q27.506674,6.38406265,27.121443,6.30743548Q26.736212,6.2308083,26.347687,6.17317583Q25.95916,6.11554334,25.568275,6.077044368Q25.177387,6.038545396,24.785082,6.019272698Q24.392776,6,24,6Q23.607222,6,23.214917,6.019272698Q22.822613,6.038545396,22.431725999999998,6.077044368Q22.040838,6.11554334,21.652310999999997,6.17317581Q21.263784,6.2308083,20.878554,6.30743548Q20.493323,6.38406265,20.112316,6.47949988Q19.73131,6.57493716,19.355445,6.68895459Q18.979579,6.80297196,18.609761,6.93529487Q18.239943,7.0676178,17.877063800000002,7.2179272999999995Q17.514184,7.3682369,17.1591167,7.5361711Q16.8040504,7.7041053,16.4576511,7.8892596Q16.111251799999998,8.0744138,15.774355400000001,8.2763419Q15.4374585,8.4782701,15.1108756,8.696486Q14.7842927,8.9147017,14.468810999999999,9.1486793Q14.1533289,9.3826568,13.8497076,9.6318326Q13.546086299999999,9.881008099999999,13.2550569,10.1447816Q12.964027399999999,10.408555,12.6862912,10.6862912Q12.408555,10.964027399999999,12.1447821,11.2550569Q11.881008399999999,11.546086299999999,11.6318328,11.8497076Q11.3826571,12.1533289,11.1486793,12.468810999999999Q10.9147017,12.7842932,10.696486,13.110876099999999Q10.4782701,13.437459,10.2763419,13.774355400000001Q10.0744138,14.1112518,9.8892597,14.4576511Q9.7041054,14.8040504,9.5361711,15.1591167Q9.3682369,15.514184,9.2179273,15.8770638Q9.0676178,16.239943,8.93529487,16.60976Q8.80297196,16.979579,8.68895459,17.355445Q8.57493716,17.73131,8.47949991,18.112316Q8.38406265,18.493323,8.30743548,18.878554Q8.2308083,19.263784,8.17317583,19.652310999999997Q8.11554334,20.040838,8.077044368,20.431725999999998Q8.038545396,20.822613,8.019272698,21.214918Q8,21.607222,8,22Q8,22.392776,8.019272698,22.785082Q8.038545396,23.177387,8.077044368,23.568274Q8.11554334,23.95916,8.17317581,24.347685Q8.2308083,24.736212,8.30743548,25.121443Q8.38406265,25.506674,8.47949988,25.88768Q8.57493716,26.268688,8.68895459,26.644554Q8.80297196,27.020416,8.93529487,27.390234Q9.0676178,27.760052,9.2179273,28.122932Q9.3682369,28.485809,9.5361711,28.840878Q9.7041053,29.195946,9.889259599999999,29.542345Q10.0744138,29.888744,10.2763419,30.225639Q10.4782701,30.562534,10.696486,30.889118Q10.9147017,31.215702,11.1486793,31.531185Q11.3826568,31.846668,11.6318326,32.150290999999996Q11.881008099999999,32.453911000000005,12.1447816,32.74494Q12.408555,33.035969,12.6862912,33.313705Q12.964027399999999,33.591442,13.2550569,33.855215Q13.546086299999999,34.118988,13.8497076,34.368164Q14.1533289,34.61734,14.468810999999999,34.851316Q14.7842932,35.085293,15.110876099999999,35.303509Q15.437459,35.521725,15.774355400000001,35.723653999999996Q16.111251799999998,35.925583,16.4576511,36.110738999999995Q16.8040504,36.295891,17.1591167,36.463826999999995Q17.514184,36.63176,17.877063800000002,36.782070000000004Q18.239943,36.932381,18.60976,37.064703Q18.979579,37.197025,19.355445,37.311045Q19.73131,37.42506,20.112316,37.520498Q20.493323,37.615936000000005,20.878554,37.692561999999995Q21.263784,37.769189999999995,21.652310999999997,37.826822Q22.040838,37.884457,22.431725999999998,37.922956Q22.822613,37.961454,23.214918,37.980728Q23.607222,38,24,38Q24.392776,38,24.785082,37.980726000000004Q25.177387,37.961454,25.568274,37.922956Q25.95916,37.884457,26.347685,37.826824Q26.736212,37.769189999999995,27.121443,37.692561999999995Q27.506674,37.615933999999996,27.88768,37.520496Q28.268688,37.42506,28.644554,37.311043Q29.020416,37.197025,29.390234,37.064701Q29.760052,36.932377,30.122932,36.782067999999995Q30.485809,36.63176,30.840878,36.463825Q31.195946,36.295891,31.542345,36.110737Q31.888744,35.925583,32.225639,35.723653999999996Q32.562534,35.521725,32.889117999999996,35.303509Q33.215702,35.085293,33.531185,34.851316Q33.846668,34.61734,34.150290999999996,34.368164Q34.453911000000005,34.118988,34.74494,33.855215Q35.035969,33.591442,35.313705,33.313705Q35.591442,33.035969,35.855215,32.744942Q36.118988,32.453911000000005,36.368164,32.150290999999996Q36.61734,31.846668,36.851316,31.531185Q37.085293,31.215702,37.303509,30.889118Q37.521725,30.562534,37.723653999999996,30.225639Q37.925583,29.888744,38.110738999999995,29.542347Q38.295891,29.195946,38.463826999999995,28.840878Q38.63176,28.485809,38.782070000000004,28.122932Q38.932381,27.760052,39.064703,27.390236Q39.197025,27.020416,39.311045,26.644554Q39.42506,26.268688,39.520498,25.88768Q39.615936000000005,25.506674,39.692561999999995,25.121443Q39.769189999999995,24.736212,39.826822,24.347687Q39.884457,23.95916,39.922956,23.568275Q39.961454,23.177387,39.980728,22.785082Q40,22.392776,40,22Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='14'%20y='12.00048828125'%20width='20'%20height='20'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M26.916738098831175,16.955627096116636Q26.917956098831176,16.97814789611664,26.917956098831176,17.000701796116637Q26.91795509883118,17.082941896116637,26.901911098831178,17.163601796116637Q26.885865098831175,17.244261896116637,26.85439409883118,17.32024179611664Q26.822921098831177,17.39622249611664,26.777231098831177,17.464602796116637Q26.731541098831176,17.53298319611664,26.673389098831176,17.59113589611664Q26.615235098831178,17.64928849611664,26.546855098831177,17.69497809611664Q26.478475098831176,17.74066869611664,26.402495098831174,17.77214039611664Q26.326514098831176,17.803612596116636,26.24585509883118,17.819657196116637Q26.165195098831177,17.83570139611664,26.082956098831175,17.835701796116638Q26.000714098831175,17.83570139611664,25.920055098831178,17.819657196116637Q25.83939409883118,17.80361309611664,25.763414098831177,17.77214089611664Q25.68743309883118,17.74066869611664,25.619053098831177,17.69497809611664Q25.550674098831177,17.64928849611664,25.49252009883118,17.59113589611664Q25.434367098831174,17.53298319611664,25.38867809883118,17.464602796116637Q25.342987098831177,17.39622249611664,25.311515098831176,17.32024179611664Q25.280044098831176,17.244261896116637,25.263999098831178,17.163601796116637Q25.247955098831177,17.082941896116637,25.247955098831177,17.000701796116637Q25.247955098831177,16.97110709611664,25.25005109883118,16.94158689611664Q25.266079098831177,15.838474896116638,25.881616098831177,14.917299896116639Q26.513639098831177,13.971449856116639,27.564559098831175,13.536153736116638Q28.61553309883118,13.100826326116637,29.731208098831175,13.322761953116638Q30.84693909883118,13.544684176116638,31.651273098831176,14.349075396116639Q32.45564209883118,15.153410196116639,32.677570098831175,16.26912839611664Q32.89950109883118,17.384794596116638,32.46419409883117,18.43576039611664Q32.02881209883118,19.486707596116638,31.08303909883118,20.11870179611664Q30.161805098831177,20.73424469611664,29.058736098831176,20.750273096116636Q29.029216098831178,20.75236829611664,28.999622098831175,20.75236829611664Q28.917380098831178,20.75236829611664,28.836721098831177,20.73632369611664Q28.756060098831178,20.720279096116638,28.680080098831176,20.68880689611664Q28.604100098831175,20.65733469611664,28.535720098831177,20.611644596116637Q28.467340098831176,20.56595459611664,28.409187098831175,20.50780189611664Q28.351033098831177,20.44964919611664,28.305343098831177,20.381268896116637Q28.259653098831176,20.31288849611664,28.228182098831176,20.23690829611664Q28.196710098831176,20.16092809611664,28.180666098831175,20.08026829611664Q28.164622098831178,19.99960839611664,28.164622098831178,19.91736829611664Q28.164622098831178,19.835127196116638,28.180665098831177,19.75446689611664Q28.196710098831176,19.673806596116638,28.22818109883118,19.597826396116638Q28.259652098831175,19.521846196116638,28.305343098831177,19.453466796116636Q28.351033098831177,19.385086396116638,28.409187098831175,19.32693369611664Q28.467339098831175,19.268781096116637,28.535719098831176,19.22309049611664Q28.604099098831178,19.177399996116637,28.680080098831176,19.145928296116637Q28.756060098831178,19.114456496116638,28.836721098831177,19.098412396116636Q28.917380098831178,19.082368296116638,28.999622098831175,19.082368296116638Q29.022178098831176,19.082368296116638,29.044702098831177,19.08358609611664Q29.650397098831178,19.07147629611664,30.157039098831177,18.73295249611664Q30.68251609883118,18.38181199611664,30.924386098831178,17.79797589611664Q31.166225098831177,17.214102396116637,31.04292709883118,16.594275796116637Q30.91963509883118,15.974441696116639,30.472720098831175,15.527544896116638Q30.025900098831176,15.080692696116639,29.406037098831177,14.957399996116639Q28.786235098831177,14.834105896116638,28.20235409883118,15.075957796116638Q27.618518098831174,15.317785096116637,27.267379098831178,15.843278796116639Q26.928846098831176,16.349906096116637,26.916738098831175,16.955627096116636ZM22.751288698831175,17.000701796116637Q22.751288698831175,16.97110829611664,22.749193398831178,16.94158899611664Q22.733165498831177,15.838476096116638,22.117629798831178,14.917300596116638Q21.485606398831177,13.971450746116638,20.434686398831175,13.536153916116639Q19.383711098831178,13.100826506116638,18.268037598831178,13.322761953116638Q17.152344798831177,13.544676006116639,16.347971398831177,14.349057596116639Q15.543596328831176,15.153424296116638,15.321678459831176,16.269134396116637Q15.099746468831176,17.384791696116636,15.535076438831176,18.435770896116637Q15.970370588831177,19.48668469611664,16.916220098831175,20.118708996116638Q17.837403998831178,20.73424519611664,18.94050909883118,20.750273096116636Q18.970028398831175,20.75236829611664,18.999622098831175,20.75236829611664Q19.08186219883118,20.75236829611664,19.162522298831178,20.73632369611664Q19.243182398831177,20.720279096116638,19.319162598831177,20.68880689611664Q19.395142798831177,20.65733469611664,19.463522698831177,20.611644596116637Q19.53190299883118,20.56595459611664,19.590055698831176,20.50780189611664Q19.648208398831176,20.44964919611664,19.693898398831177,20.381268896116637Q19.739588998831177,20.31288849611664,19.771061198831177,20.23690829611664Q19.802533398831176,20.16092809611664,19.818577498831175,20.08026829611664Q19.834621698831178,19.99960839611664,19.834622098831176,19.91736829611664Q19.834621698831178,19.835127196116638,19.818577498831175,19.75446689611664Q19.802533398831176,19.673806596116638,19.771061198831177,19.597826396116638Q19.739588998831177,19.521846196116638,19.693898898831176,19.453466796116636Q19.648208398831176,19.385086396116638,19.590055698831176,19.32693369611664Q19.53190299883118,19.268781096116637,19.463522698831177,19.22309049611664Q19.395142298831175,19.177399996116637,19.31916209883118,19.145928296116637Q19.243182198831178,19.114456496116638,19.162522298831178,19.098412396116636Q19.08186219883118,19.082368296116638,18.999622098831175,19.082368296116638Q18.977065798831177,19.082368296116638,18.954542598831175,19.08358609611664Q18.348829298831177,19.071475896116638,17.842198098831176,18.73294489611664Q17.316706198831177,18.381806696116637,17.074875598831177,17.797965396116638Q16.833026098831176,17.21408929611664,16.956323598831176,16.59426989611664Q17.079610098831175,15.974436896116638,17.526488498831178,15.527562996116638Q17.973357198831177,15.080689896116638,18.593208098831177,14.957399996116639Q19.213009398831176,14.834106096116638,19.796891498831176,15.075957696116639Q20.380727098831176,15.317785596116638,20.731865198831176,15.843278296116639Q21.070396698831175,16.34990419611664,21.08250639883118,16.955622296116637Q21.081288598831176,16.97814549611664,21.081288598831176,17.000701796116637Q21.081288598831176,17.082941896116637,21.097332198831175,17.163601796116637Q21.113376898831177,17.244261896116637,21.144848598831178,17.32024179611664Q21.17632029883118,17.39622249611664,21.222010898831176,17.464602796116637Q21.26770139883118,17.53298319611664,21.325854098831176,17.59113589611664Q21.384006698831175,17.64928849611664,21.452387098831178,17.69497809611664Q21.520767498831177,17.74066869611664,21.596747598831175,17.77214039611664Q21.672727798831176,17.803612596116636,21.753387698831176,17.819657196116637Q21.834047998831178,17.83570139611664,21.916288598831176,17.835701796116638Q21.998528698831176,17.83570139611664,22.079188598831177,17.819657196116637Q22.159848498831177,17.80361309611664,22.235828598831176,17.77214089611664Q22.311808798831176,17.74066869611664,22.380189198831175,17.69497809611664Q22.448569498831176,17.64928849611664,22.506722698831176,17.59113589611664Q22.564874898831178,17.53298319611664,22.61056489883118,17.464602796116637Q22.656254998831177,17.39622249611664,22.687727198831176,17.32024179611664Q22.719199398831176,17.244261896116637,22.735243998831177,17.163601796116637Q22.751288698831175,17.082941896116637,22.751288698831175,17.000701796116637ZM18.44797869883118,17.62708129611664Q18.313028298831178,17.50819289611664,18.238987898831176,17.344290596116636Q18.164947698831178,17.18038859611664,18.164947698831178,17.000539196116637Q18.164947498831175,16.91829859611664,18.180991898831177,16.837638296116637Q18.197035798831177,16.756978396116637,18.228507798831178,16.68099819611664Q18.259979998831177,16.605017996116636,18.305670298831178,16.53663769611664Q18.351360598831178,16.46825729611664,18.409513498831178,16.41010489611664Q18.46766589883118,16.35195199611664,18.536046298831177,16.306261896116638Q18.604426598831175,16.26057139611664,18.68040679883118,16.229099396116638Q18.756386998831175,16.197627396116637,18.837047098831178,16.18158329611664Q18.917707198831177,16.16553909611664,18.999947798831176,16.16553909611664Q19.179797198831178,16.16553909611664,19.343699198831175,16.239579296116638Q19.50760149883118,16.31361969611664,19.626489898831178,16.44857009611664L22.261629298831178,19.083709596116638L25.738267098831177,19.083709596116638L28.373404098831177,16.44857249611664Q28.49229209883118,16.313621396116638,28.656196098831177,16.23958029611664Q28.820098098831174,16.16553909611664,28.999948098831176,16.16553909611664Q29.082187098831177,16.16553909611664,29.16284709883118,16.18158329611664Q29.243507098831177,16.197627396116637,29.319487098831175,16.229099396116638Q29.395467098831176,16.26057139611664,29.463847098831177,16.306261896116638Q29.532228098831176,16.35195199611664,29.590381098831177,16.41010489611664Q29.648532098831176,16.46825729611664,29.694223098831177,16.53663769611664Q29.739913098831178,16.605017996116636,29.771385098831175,16.68099819611664Q29.802858098831177,16.756978396116637,29.818902098831177,16.83763849611664Q29.83494709883118,16.91829859611664,29.834948098831177,17.000539196116637Q29.834949098831174,17.18038979611664,29.760907098831176,17.344292496116637Q29.686866098831175,17.50819529611664,29.551914098831176,17.627083196116637L26.916940098831176,20.26205809611664L26.916940098831176,23.73901949611664L29.551911098831177,26.37399249611664Q29.686864098831176,26.49288049611664,29.760906098831178,26.656784496116636Q29.834948098831177,26.82068749611664,29.834948098831177,27.000539496116637Q29.83494709883118,27.08277849611664,29.818902098831177,27.16343849611664Q29.802858098831177,27.24409849611664,29.771385098831175,27.320078496116636Q29.739913098831178,27.396058496116638,29.694223098831177,27.46443849611664Q29.648532098831176,27.532819496116637,29.590381098831177,27.59097249611664Q29.532228098831176,27.649123496116637,29.463847098831177,27.69481449611664Q29.395467098831176,27.74050449611664,29.319486098831177,27.771976496116636Q29.243507098831177,27.803449496116638,29.16284709883118,27.81949349611664Q29.082187098831177,27.83553849611664,28.999948098831176,27.83553949611664Q28.82009609883118,27.83553949611664,28.656192098831177,27.76149649611664Q28.49228909883118,27.687455496116637,28.373401098831177,27.552502496116638L25.737940098831174,24.91704349611664L22.26195499883118,24.91704349611664L19.626491798831175,27.552505496116638Q19.507603898831178,27.687457496116636,19.343701098831175,27.761498496116637Q19.179798398831178,27.83553949611664,18.999947798831176,27.83553949611664Q18.917707198831177,27.83553849611664,18.837046898831176,27.81949349611664Q18.756386998831175,27.803449496116638,18.68040679883118,27.771976496116636Q18.604426598831175,27.74050449611664,18.536046298831177,27.69481449611664Q18.46766589883118,27.649123496116637,18.409513498831178,27.59097249611664Q18.351360598831178,27.532819496116637,18.305670298831178,27.46443849611664Q18.259979998831177,27.396058496116638,18.228507998831176,27.32007749611664Q18.197035998831176,27.24409849611664,18.180991898831177,27.16343849611664Q18.164947498831175,27.08277849611664,18.164947698831178,27.000539496116637Q18.164947698831178,26.820689496116636,18.238988898831177,26.656786496116638Q18.313029998831176,26.49288349611664,18.44798109883118,26.37399549611664L21.083606498831177,23.738370496116637L21.083606498831177,20.262708996116636L18.44797869883118,17.62708129611664ZM22.750273498831177,23.250376496116637L22.750273498831177,20.750376596116638L25.250273098831176,20.750376596116638L25.250273098831176,23.250376496116637L22.750273498831177,23.250376496116637ZM19.834622098831176,24.084035496116638Q19.834621698831178,24.16627449611664,19.818577498831175,24.246934496116637Q19.802533398831176,24.327595496116636,19.771061198831177,24.403575496116638Q19.739588998831177,24.479554496116638,19.693898898831176,24.54793449611664Q19.648208398831176,24.616315496116638,19.590055698831176,24.67446849611664Q19.53190299883118,24.73262049611664,19.463522698831177,24.778311496116636Q19.395142298831175,24.82400049611664,19.31916209883118,24.85547249611664Q19.243182198831178,24.88694549611664,19.162522298831178,24.90298949611664Q19.08186219883118,24.919034496116637,18.999622098831175,24.91903549611664Q18.977067498831175,24.91903549611664,18.954545698831176,24.91781749611664Q18.348830198831177,24.92992749611664,17.84219769883118,25.268459496116638Q17.316705498831176,25.61959649611664,17.074875598831177,26.20343749611664Q16.833026098831176,26.787314496116636,16.956323598831176,27.40713449611664Q17.079612698831177,28.02697849611664,17.526498598831175,28.473832496116636Q17.973361298831176,28.920714496116638,18.593206398831178,29.04400849611664Q19.213020998831176,29.16730449611664,19.796844698831176,28.92548649611664Q20.380732298831177,28.68359649611664,20.731852798831177,28.15814549611664Q21.070397098831176,27.65147549611664,21.082505898831176,27.045773496116638Q21.081288598831176,27.02325449611664,21.081288598831176,27.00070149611664Q21.081288598831176,26.918460496116637,21.097332198831175,26.837799496116638Q21.113376898831177,26.75713849611664,21.144848598831178,26.68115949611664Q21.17632029883118,26.60517949611664,21.222010898831176,26.536799496116636Q21.26770139883118,26.46841949611664,21.325854098831176,26.41026749611664Q21.384006698831175,26.352114496116638,21.452387098831178,26.306424496116637Q21.520767498831177,26.260733496116636,21.596747598831175,26.22926149611664Q21.672727798831176,26.197789496116638,21.753387698831176,26.181746496116638Q21.834047998831178,26.165702496116637,21.916288598831176,26.165702496116637Q21.998528698831176,26.165702496116637,22.079188598831177,26.181746496116638Q22.159848498831177,26.197789496116638,22.235828598831176,26.229260496116638Q22.311808798831176,26.26073249611664,22.380189198831175,26.30642249611664Q22.448569498831176,26.352113496116637,22.506722698831176,26.410266496116638Q22.564874898831178,26.468417496116636,22.61056489883118,26.536797496116638Q22.656254998831177,26.605178496116636,22.687727198831176,26.68115949611664Q22.719199398831176,26.75713849611664,22.735243998831177,26.837799496116638Q22.751288698831175,26.918460496116637,22.751288698831175,27.00070149611664Q22.751288698831175,27.030295496116636,22.749193398831178,27.059814496116637Q22.733164998831178,28.162885496116637,22.11763929883118,29.084090496116637Q21.485628798831176,30.029891496116637,20.434732198831178,30.46525149611664Q19.38371299883118,30.900582496116638,18.268037798831177,30.67864749611664Q17.152329898831177,30.45672149611664,16.347961798831175,29.65231849611664Q15.543604488831177,28.84801949611664,15.321678638831177,27.732269496116636Q15.099746468831176,26.616612496116637,15.535076318831177,25.56563249611664Q15.970370228831177,24.514718496116636,16.916220498831176,23.88269449611664Q17.837403498831176,23.267158496116636,18.940508098831177,23.251130496116637Q18.970027898831177,23.24903549611664,18.999622098831175,23.24903549611664Q19.08186219883118,23.24903549611664,19.162522298831178,23.265078496116637Q19.243182398831177,23.28112349611664,19.319162598831177,23.31259449611664Q19.395142798831177,23.34406649611664,19.463522698831177,23.389757496116637Q19.53190299883118,23.435447496116637,19.590055698831176,23.49360049611664Q19.648208398831176,23.55175349611664,19.693898398831177,23.62013249611664Q19.739588998831177,23.688513496116638,19.771061198831177,23.764493496116636Q19.802533398831176,23.840473496116637,19.818577498831175,23.92113349611664Q19.834621698831178,24.001794496116638,19.834622098831176,24.084035496116638ZM29.044698098831176,24.91781749611664Q29.022176098831174,24.91903549611664,28.999622098831175,24.91903549611664Q28.917380098831178,24.919034496116637,28.836721098831177,24.90298949611664Q28.756060098831178,24.88694549611664,28.680080098831176,24.85547249611664Q28.604100098831175,24.82400049611664,28.535720098831177,24.77831049611664Q28.467340098831176,24.73262049611664,28.409187098831175,24.67446849611664Q28.351033098831177,24.616315496116638,28.305343098831177,24.54793449611664Q28.259653098831176,24.479554496116638,28.228182098831176,24.403575496116638Q28.196710098831176,24.327595496116636,28.180666098831175,24.246934496116637Q28.164622098831178,24.16627449611664,28.164622098831178,24.084035496116638Q28.164622098831178,24.001794496116638,28.180665098831177,23.921134496116636Q28.196710098831176,23.840473496116637,28.22818109883118,23.764493496116636Q28.259652098831175,23.688513496116638,28.305343098831177,23.62013249611664Q28.351033098831177,23.55175349611664,28.409187098831175,23.49360049611664Q28.467339098831175,23.435447496116637,28.535719098831176,23.389757496116637Q28.604099098831178,23.34406649611664,28.680080098831176,23.31259449611664Q28.756060098831178,23.28112349611664,28.836721098831177,23.265079496116638Q28.917380098831178,23.24903549611664,28.999622098831175,23.24903549611664Q29.029216098831178,23.24903549611664,29.058737098831177,23.251130496116637Q30.16180609883118,23.26715949611664,31.083038098831175,23.882702496116636Q32.02881209883118,24.51469649611664,32.46419409883117,25.56564349611664Q32.89950109883118,26.616612496116637,32.677570098831175,27.73227649611664Q32.455632098831174,28.84803349611664,31.651282098831178,29.652299496116637Q30.846954098831176,30.456712496116637,29.731206098831176,30.67864749611664Q28.615532098831174,30.900582496116638,27.564513098831178,30.46525149611664Q26.513617098831176,30.029891496116637,25.881604098831176,29.084090496116637Q25.266079098831177,28.162885496116637,25.25005109883118,27.059817496116636Q25.247955098831177,27.030296496116637,25.247955098831177,27.00070149611664Q25.247955098831177,26.918460496116637,25.263999098831178,26.837799496116638Q25.280044098831176,26.75713849611664,25.311515098831176,26.68115949611664Q25.342987098831177,26.60517949611664,25.38867809883118,26.536799496116636Q25.434367098831174,26.46841949611664,25.49252009883118,26.41026749611664Q25.550674098831177,26.352114496116638,25.619054098831178,26.306424496116637Q25.68743309883118,26.260733496116636,25.763414098831177,26.22926149611664Q25.83939409883118,26.197789496116638,25.920055098831178,26.181746496116638Q26.000714098831175,26.165702496116637,26.082956098831175,26.165702496116637Q26.165195098831177,26.165702496116637,26.24585509883118,26.181746496116638Q26.326514098831176,26.197789496116638,26.402495098831174,26.229260496116638Q26.478475098831176,26.26073249611664,26.546855098831177,26.30642249611664Q26.615235098831178,26.352113496116637,26.673389098831176,26.410266496116638Q26.731541098831176,26.468417496116636,26.777230098831176,26.536797496116638Q26.822921098831177,26.605178496116636,26.854393098831174,26.68115949611664Q26.885865098831175,26.75713849611664,26.901911098831178,26.837799496116638Q26.91795509883118,26.918460496116637,26.917956098831176,27.00070149611664Q26.917956098831176,27.02325549611664,26.916738098831175,27.04577549611664Q26.928847098831177,27.651476496116636,27.26739009883118,28.15814549611664Q27.618512098831175,28.68359649611664,28.202399098831176,28.925485496116636Q28.78622309883118,29.16730449611664,29.406037098831177,29.04400849611664Q30.025895098831178,28.920712496116636,30.472711098831176,28.47384949611664Q30.919633098831177,28.026975496116638,31.042926098831177,27.407127496116637Q31.166225098831177,26.787302496116638,30.924386098831178,26.203426496116638Q30.68251609883118,25.61959249611664,30.157039098831177,25.268452496116637Q29.650396098831177,24.92992749611664,29.044698098831176,24.91781749611664Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function Ht(e,n){return`
|
|
2
2
|
<div style="
|
|
3
3
|
font-size: 13px;
|
|
4
4
|
font-weight: 500;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
">
|
|
19
19
|
${e}
|
|
20
20
|
</div>
|
|
21
|
-
`}function
|
|
22
|
-
<div id="${
|
|
21
|
+
`}function Mo(e){const{getMap:n,getInfoWindow:r,points:i,pointType:o,circleRadius:s,isDark:l,pointIcon:a}=e,c=t.ref([]),g=t.ref([]),v=t.ref([]);function h(){const Q=n();Q&&(c.value.forEach(u=>Q.remove(u)),v.value.forEach(u=>Q.remove(u)),g.value.forEach(u=>Q.remove(u)),c.value=[],v.value=[],g.value=[])}function y(Q,u,w){const d=r(),k=n();if(!d||!k)return;const D=`map-action-button-${Date.now()}`,S=`
|
|
22
|
+
<div id="${D}" class="map-action-button" style="
|
|
23
23
|
min-width: 120px;
|
|
24
24
|
height: 36px;
|
|
25
25
|
display: flex;
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
<path d="M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z" fill="white"/>
|
|
46
46
|
</svg>
|
|
47
47
|
</div>
|
|
48
|
-
`;d.setContent(_),d.setOffset(new window.AMap.Pixel(0,80)),d.open(Q,k),setTimeout(()=>{const N=document.getElementById(b);N&&(N.onclick=B=>{B.stopPropagation(),u&&window.open(u,"_blank")})},100)}function g(){const k=n();if(!k)return;h();const u=window.AMap,w=o.value||[],d=i.value==="base",Q=s.value*1e3,b=l.value;w.forEach(_=>{let N=null;if(_&&$e(_))N=_;else if(_.longitude!=null&&_.latitude!=null)N=[_.longitude,_.latitude];else return;if(!$e(N)){console.warn("Invalid position for marker:",N);return}const B=Ct(N[0],N[1]);if(!B){console.warn("Coordinate transformation failed for marker:",N);return}N=B;const E=_.name||_.nickName||_.label||"";if(d){const R=new u.Marker({position:N,title:E,icon:new u.Icon({image:wn,size:new u.Size(60,60),imageSize:new u.Size(60,60)}),offset:new u.Pixel(-11,-25)});if(R.on("error",D=>{console.error("Marker icon loading error:",D)}),R.on("click",()=>{r()&&r().close(),(_.link||_.url)&&v(N,_.link||_.url)}),c.value.push(R),k.add(R),E){const D=new u.Marker({position:N,content:Yt(E,b),offset:new u.Pixel(0,-40),zIndex:ve.pointLabel});y.value.push(D),k.add(D)}}else{const R=new u.Marker({position:N,title:E,...a?{icon:new u.Icon({image:a,size:new u.Size(46,65),imageSize:new u.Size(46,65)})}:{},offset:new u.Pixel(-23,-48)});R.on("error",$=>{console.error("Marker icon loading error:",$)});const D=new u.Circle({center:N,radius:Q,fillOpacity:.1,fillColor:"#165DFF",strokeColor:"#165DFF",strokeOpacity:.5,strokeWeight:2,cursor:"pointer"}),x=()=>{r()&&r().close(),(_.link||_.url)&&v(N,_.link||_.url),_.onClick&&_.onClick(_)};if(R.on("click",x),D.on("click",x),m.value.push(D),c.value.push(R),k.add(R),k.add(D),E){const $=new u.Marker({position:N,content:Yt(E,b),offset:new u.Pixel(0,-75),zIndex:ve.pointLabel});y.value.push($),k.add($)}}}),c.value.length>0&&k.setFitView(c.value)}return{drawPoints:g,showActionButton:v,clear:h,mapPoints:c,circles:m,textLabels:y}}function t0(e){const{getMap:n,trackPoints:r}=e,o=t.ref([]);function i(){const l=n();!l||o.value.length===0||(o.value.forEach(a=>{a.pulseAnimation&&clearInterval(a.pulseAnimation),l.remove(a)}),o.value=[])}function s(){const l=n();if(!l)return;i();const a=r.value;if(!a||a.length===0){l.setFitView();return}const c=Le(a);if(c.length<2){l.setFitView();return}const m=window.AMap,y=new m.Polyline({path:c,strokeColor:K2,strokeWeight:4,strokeOpacity:.9,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.track});o.value.push(y),l.add(y),l.setFitView()}return{drawTrackPoints:s,clear:i,trackMarkers:o}}const n0=wn,r0=t.defineComponent({name:"JTwAmap",props:{lineArr:{type:Array,default:()=>[]},points:{type:Array,default:()=>[]},pointType:{type:String,default:"drone"},label:{type:Array,default:()=>[]},center:{type:Array,default:()=>X2},zoom:{type:Number,default:12},circleRadius:{type:Number,default:5},trackPoints:{type:Array,default:()=>[]},mapType:{type:String,default:"normal",validator:e=>["normal","satellite"].includes(e)},highlightLineIndex:{type:Number,default:-1},highlightStrokeColor:{type:String,default:"#165dff"},mapLineArr:{type:Array,default:()=>[]},trackLineArr:{type:Array,default:()=>[]},routeCompletedList:{type:Array,default:()=>[]},viewMode:{type:String,default:"2D",validator:e=>["2D","3D"].includes(e)},isDark:{type:Boolean,default:!1},pointIcon:{type:String,default:n0},containerStyle:{type:Object,default:()=>({})}},setup(e,{expose:n}){const r=t.ref(null),o=t.toRef(e,"isDark"),i=J2({center:t.toRef(e,"center"),zoom:t.toRef(e,"zoom"),viewMode:t.toRef(e,"viewMode"),mapType:t.toRef(e,"mapType"),isDark:o}),s=q2({getMap:i.getMap,lineArr:t.toRef(e,"lineArr"),mapLineArr:t.toRef(e,"mapLineArr"),trackLineArr:t.toRef(e,"trackLineArr"),highlightLineIndex:t.toRef(e,"highlightLineIndex"),highlightStrokeColor:t.toRef(e,"highlightStrokeColor"),routeCompletedList:t.toRef(e,"routeCompletedList"),startPointIcon:e.pointIcon}),l=e0({getMap:i.getMap,getInfoWindow:i.getInfoWindow,points:t.toRef(e,"points"),pointType:t.toRef(e,"pointType"),circleRadius:t.toRef(e,"circleRadius"),isDark:o,pointIcon:e.pointIcon}),a=t0({getMap:i.getMap,trackPoints:t.toRef(e,"trackPoints")});async function c(){await i.initMap(r.value)&&setTimeout(()=>{i.getMap()&&(l.drawPoints(),s.drawPolyline(),a.drawTrackPoints())},100)}t.watch(()=>e.lineArr,()=>{i.getMap()&&s.drawPolyline()},{deep:!0,immediate:!0}),t.watch(()=>[e.highlightLineIndex,e.highlightStrokeColor],()=>{var h,v;if(!i.getMap())return;((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((v=e.trackLineArr)==null?void 0:v.length)||0)>0||ht(e.lineArr))&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.routeCompletedList,()=>{var h,v;if(!i.getMap())return;!((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((v=e.trackLineArr)==null?void 0:v.length)||0)>0)&&ht(e.lineArr)&&s.drawPolyline()},{deep:!0}),t.watch(()=>[e.mapLineArr,e.trackLineArr],()=>{var y,h;i.getMap()&&((((y=e.mapLineArr)==null?void 0:y.length)||0)>0||(((h=e.trackLineArr)==null?void 0:h.length)||0)>0)&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.trackPoints,()=>{i.getMap()&&a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.center,y=>{const h=i.getMap();if(!h||!y||!$e(y))return;const v=Array.isArray(y)&&y.length>=2?Ct(y[0],y[1]):null;v&&h.setCenter(v),l.drawPoints(),s.drawPolyline(),a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.isDark,y=>{i.getMap()&&(e.mapType==="satellite"||i.setMapStyle(y),l.drawPoints())},{immediate:!1}),t.watch(()=>e.viewMode,y=>{i.setViewMode(y)},{immediate:!1}),t.watch(()=>e.mapType,y=>{i.getMap()&&i.setMapType(y)},{immediate:!1}),t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{l.clear(),s.clear(),a.clear(),i.destroyMap()});function m(){l.clear(),s.clear(),a.clear(),i.destroyMap()}return n({getMap:i.getMap,destroyMap:m}),{mapContainer:r}}}),o0={ref:"mapContainer",class:"j-tw-amap-wrapper"};function i0(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:"j-tw-amap-container",style:t.normalizeStyle(e.containerStyle)},[t.createElementVNode("div",o0,null,512)],4)}const a0=de(r0,[["render",i0],["__scopeId","data-v-401e2b79"]]);let Gt=!1,l0=0;function s0(){return`j-tw-message-${Date.now()}-${++l0}`}function c0(){if(Gt)return;Gt=!0;const e=document.createElement("div");document.body.appendChild(e),t.createApp(un).mount(e)}function u0(e){c0();const n=s0(),r=56,o=e.offset??52,i=Ie.value.filter(a=>a.visible).length,s=o+i*r,l={id:n,type:e.type??"info",content:e.content,duration:e.duration??3e3,showClose:e.showClose??!1,offset:s,onClose:e.onClose,visible:!0,html:e.html??!1};return Ie.value.push(l),{id:n,close:()=>{const a=Ie.value.findIndex(c=>c.id===n);a!==-1&&(Ie.value[a].visible=!1)}}}const yn={show(e){return u0(e)},closeAll(){Ie.value.forEach(e=>{e.visible=!1})}};function vn(e){return new Promise(n=>{const r=t.ref(!1),o=document.createElement("div");document.body.appendChild(o);const i=()=>{m.unmount(),document.body.contains(o)&&document.body.removeChild(o)},s=y=>{r.value=!1,setTimeout(i,250),n(y)},l=()=>s(!0),a=()=>s(!1),c=t.defineComponent({setup(){return()=>t.h(dn,{visible:r.value,message:e.message,html:e.html,icon:e.icon,confirmText:e.confirmText,cancelText:e.cancelText,onConfirm:l,onCancel:a})}}),m=t.createApp(c);m.mount(o),t.nextTick(()=>{r.value=!0})})}const d0="#165DFF",f0="#000000",h0="#FFFFFF",p0="#00B42A",m0="#FF7D00",g0="#F53F3F",w0="#14C9C9",y0="#D97706",v0="#F7BA1E",Q0="#3491FA",k0="#722ED1",b0="#9FDB1D",M0="#F5319D",C0="#F77EBE",Ht={primary:d0,"primary-1":"#0E42D2","primary-2":"#165DFF","primary-3":"#4080FF","primary-4":"#6AA1FF","primary-5":"#94BFFF","primary-6":"#BEDAFF","grey-1":"#1D2129","grey-2":"#4E5969","grey-3":"#86909C","grey-3-50":"#A8ABB2","grey-4":"#C9CDD4","grey-5":"#E5E6EB","grey-6":"#F2F3F5",black:f0,white:h0,green:p0,"green-1":"#00875A","green-2":"#00B42A","green-3":"#23C343","green-4":"#4CD263","green-5":"#7BE188","green-6":"#AFF0B5",orange:m0,"orange-1":"#D25F00","orange-2":"#FF7D00","orange-3":"#FF9A2E","orange-4":"#FFB65D","orange-5":"#FFCF8B","orange-6":"#FFE4BA",red:g0,"red-1":"#CB2634","red-2":"#F53F3F","red-3":"#F76560","red-4":"#F98981","red-5":"#FDACA7","red-6":"#FFCCC7",cyan:w0,"cyan-1":"#0DA5AA","cyan-2":"#14C9C9","cyan-3":"#37D4CF","cyan-4":"#5ADFD7","cyan-5":"#87E8DD","cyan-6":"#B2F1E8",brown:y0,"brown-1":"#B35C00","brown-2":"#D97706","brown-3":"#E89A3C","brown-4":"#F3B765","brown-5":"#F9D28F","brown-6":"#FDEAB8",yellow:v0,"yellow-1":"#D48806","yellow-2":"#F7BA1E","yellow-3":"#FADC19","yellow-4":"#FCEE21","yellow-5":"#FEF65B","yellow-6":"#FFFB8F",blue:Q0,"blue-1":"#146AFF","blue-2":"#3491FA","blue-3":"#57A3F7","blue-4":"#79BBF8","blue-5":"#A8D3FB","blue-6":"#C7E2FD",purple:k0,"purple-1":"#551DB1","purple-2":"#722ED1","purple-3":"#8E51DA","purple-4":"#A871E3","purple-5":"#C396ED","purple-6":"#DDBEF6",lime:b0,"lime-1":"#7BC616","lime-2":"#9FDB1D","lime-3":"#B4E04B","lime-4":"#C8E672","lime-5":"#DCEC9A","lime-6":"#EFF4C6",magenta:M0,"magenta-1":"#CB247A","magenta-2":"#F5319D","magenta-3":"#F754B0","magenta-4":"#F975C2","magenta-5":"#FB9DD1","magenta-6":"#FDC5E3",pink:C0,"pink-1":"#D6549D","pink-2":"#F77EBE","pink-3":"#F99AC8","pink-4":"#FAB4D4","pink-5":"#FCCEE0","pink-6":"#FEE7EF"},_0=async e=>(await{"zh-CN":()=>Promise.resolve().then(()=>require("./index-C5mRo5Yi.cjs")),"en-US":()=>Promise.resolve().then(()=>require("./index-BrYPwI7i.cjs"))}[e]()).default,ut={},A0=async e=>(ut[e]||(ut[e]=await _0(e)),ut[e]),_t=t.ref("zh-CN"),mt=t.ref(null);function D0(e,n){const r=n.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return n;return typeof o=="string"?o:n}function N0(e,n){return n?e.replace(/\{(\w+)\}/g,(r,o)=>n[o]!==void 0?String(n[o]):r):e}function Qn(e,n){if(!mt.value)return console.warn("[twcpt] i18n messages not loaded yet, please call setLocale first"),e;const r=D0(mt.value,e);return N0(r,n)}async function et(e){_t.value=e;try{mt.value=await A0(e)}catch(n){console.error(`[twcpt] Failed to load locale messages for ${e}:`,n)}}function kn(){return _t.value}function I0(){return{t:Qn,locale:_t,setLocale:et,getLocale:kn}}const bn=Symbol("pagePermissionIds"),Mn=Symbol("pageActionPermissionIds");let ot={};function S0(e){const{app:n,router:r,pagePermissionIds:o,pageActionPermissionIds:i,projectPermissionId:s,defaultLanguage:l,colors:a,disableBFCache:c,amap:m}=e;ot={colors:a,projectPermissionId:s},Re.configure({router:r}),r&&(r.beforeEach(()=>{Re.destroyAll()}),console.log("[twcpt] Router listener set successfully.")),m&&(V2(m),console.log("[twcpt] AMap configuration set successfully.")),c&&window.addEventListener("pageshow",v=>{v.persisted&&window.location.reload()}),l?et(l).catch(v=>{console.error("[twcpt] Failed to set default language:",v)}):et("zh-CN").catch(v=>{console.error("[twcpt] Failed to load default locale:",v)});const y=o?t.isRef(o)?o:t.ref(o):void 0,h=i?t.isRef(i)?i:t.ref(i):void 0;y&&(console.log("[twcpt] Permission IDs provided:",y.value),n.provide(bn,y)),h&&(console.log("[twcpt] Action Permission IDs provided:",h.value),n.provide(Mn,h)),a&&T0(a),s&&console.log("[twcpt] Project Permission ID:",s),console.log("[twcpt] Initialization completed successfully.")}function T0(e){const n=e&&Object.keys(e).length>0,r=n?{...Ht,...e}:Ht;let o=document.getElementById("twcpt-color-vars");o||(o=document.createElement("style"),o.id="twcpt-color-vars",document.head.appendChild(o));const i=Object.entries(r).map(([s,l])=>` --j-color-${s}: ${l};`).join(`
|
|
49
|
-
`);
|
|
50
|
-
${
|
|
48
|
+
`;d.setContent(S),d.setOffset(new window.AMap.Pixel(0,80)),d.open(k,Q),setTimeout(()=>{const C=document.getElementById(D);C&&(C.onclick=I=>{I.stopPropagation(),u&&window.open(u,"_blank")})},100)}function m(){const Q=n();if(!Q)return;h();const u=window.AMap,w=i.value||[],d=o.value==="base",k=s.value*1e3,D=l.value;w.forEach(S=>{let C=null;if(S&&Ue(S))C=S;else if(S.longitude!=null&&S.latitude!=null)C=[S.longitude,S.latitude];else return;if(!Ue(C)){console.warn("Invalid position for marker:",C);return}const I=_t(C[0],C[1]);if(!I){console.warn("Coordinate transformation failed for marker:",C);return}C=I;const L=S.name||S.nickName||S.label||"";if(d){const F=new u.Marker({position:C,title:L,icon:new u.Icon({image:v1,size:new u.Size(60,60),imageSize:new u.Size(60,60)}),offset:new u.Pixel(-11,-25)});if(F.on("error",_=>{console.error("Marker icon loading error:",_)}),F.on("click",()=>{r()&&r().close(),(S.link||S.url)&&y(C,S.link||S.url)}),c.value.push(F),Q.add(F),L){const _=new u.Marker({position:C,content:Ht(L,D),offset:new u.Pixel(0,-40),zIndex:ve.pointLabel});v.value.push(_),Q.add(_)}}else{const F=new u.Marker({position:C,title:L,...a?{icon:new u.Icon({image:a,size:new u.Size(46,65),imageSize:new u.Size(46,65)})}:{},offset:new u.Pixel(-23,-48)});F.on("error",$=>{console.error("Marker icon loading error:",$)});const _=new u.Circle({center:C,radius:k,fillOpacity:.1,fillColor:"#165DFF",strokeColor:"#165DFF",strokeOpacity:.5,strokeWeight:2,cursor:"pointer"}),x=()=>{r()&&r().close(),(S.link||S.url)&&y(C,S.link||S.url),S.onClick&&S.onClick(S)};if(F.on("click",x),_.on("click",x),g.value.push(_),c.value.push(F),Q.add(F),Q.add(_),L){const $=new u.Marker({position:C,content:Ht(L,D),offset:new u.Pixel(0,-75),zIndex:ve.pointLabel});v.value.push($),Q.add($)}}}),c.value.length>0&&Q.setFitView(c.value)}return{drawPoints:m,showActionButton:y,clear:h,mapPoints:c,circles:g,textLabels:v}}function Co(e){const{getMap:n,trackPoints:r}=e,i=t.ref([]);function o(){const l=n();!l||i.value.length===0||(i.value.forEach(a=>{a.pulseAnimation&&clearInterval(a.pulseAnimation),l.remove(a)}),i.value=[])}function s(){const l=n();if(!l)return;o();const a=r.value;if(!a||a.length===0){l.setFitView();return}const c=Le(a);if(c.length<2){l.setFitView();return}const g=window.AMap,v=new g.Polyline({path:c,strokeColor:ko,strokeWeight:4,strokeOpacity:.9,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.track});i.value.push(v),l.add(v),l.setFitView()}return{drawTrackPoints:s,clear:o,trackMarkers:i}}const _o=v1,Do=t.defineComponent({name:"JTwAmap",props:{lineArr:{type:Array,default:()=>[]},points:{type:Array,default:()=>[]},pointType:{type:String,default:"drone"},label:{type:Array,default:()=>[]},center:{type:Array,default:()=>Qo},zoom:{type:Number,default:12},circleRadius:{type:Number,default:5},trackPoints:{type:Array,default:()=>[]},mapType:{type:String,default:"normal",validator:e=>["normal","satellite"].includes(e)},highlightLineIndex:{type:Number,default:-1},highlightStrokeColor:{type:String,default:"#165dff"},mapLineArr:{type:Array,default:()=>[]},trackLineArr:{type:Array,default:()=>[]},routeCompletedList:{type:Array,default:()=>[]},viewMode:{type:String,default:"2D",validator:e=>["2D","3D"].includes(e)},isDark:{type:Boolean,default:!1},pointIcon:{type:String,default:_o},containerStyle:{type:Object,default:()=>({})}},setup(e,{expose:n}){const r=t.ref(null),i=t.toRef(e,"isDark"),o=vo({center:t.toRef(e,"center"),zoom:t.toRef(e,"zoom"),viewMode:t.toRef(e,"viewMode"),mapType:t.toRef(e,"mapType"),isDark:i}),s=bo({getMap:o.getMap,lineArr:t.toRef(e,"lineArr"),mapLineArr:t.toRef(e,"mapLineArr"),trackLineArr:t.toRef(e,"trackLineArr"),highlightLineIndex:t.toRef(e,"highlightLineIndex"),highlightStrokeColor:t.toRef(e,"highlightStrokeColor"),routeCompletedList:t.toRef(e,"routeCompletedList"),startPointIcon:e.pointIcon}),l=Mo({getMap:o.getMap,getInfoWindow:o.getInfoWindow,points:t.toRef(e,"points"),pointType:t.toRef(e,"pointType"),circleRadius:t.toRef(e,"circleRadius"),isDark:i,pointIcon:e.pointIcon}),a=Co({getMap:o.getMap,trackPoints:t.toRef(e,"trackPoints")});async function c(){await o.initMap(r.value)&&setTimeout(()=>{o.getMap()&&(l.drawPoints(),s.drawPolyline(),a.drawTrackPoints())},100)}t.watch(()=>e.lineArr,()=>{o.getMap()&&s.drawPolyline()},{deep:!0,immediate:!0}),t.watch(()=>[e.highlightLineIndex,e.highlightStrokeColor],()=>{var h,y;if(!o.getMap())return;((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((y=e.trackLineArr)==null?void 0:y.length)||0)>0||pt(e.lineArr))&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.routeCompletedList,()=>{var h,y;if(!o.getMap())return;!((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((y=e.trackLineArr)==null?void 0:y.length)||0)>0)&&pt(e.lineArr)&&s.drawPolyline()},{deep:!0}),t.watch(()=>[e.mapLineArr,e.trackLineArr],()=>{var v,h;o.getMap()&&((((v=e.mapLineArr)==null?void 0:v.length)||0)>0||(((h=e.trackLineArr)==null?void 0:h.length)||0)>0)&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.trackPoints,()=>{o.getMap()&&a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.center,v=>{const h=o.getMap();if(!h||!v||!Ue(v))return;const y=Array.isArray(v)&&v.length>=2?_t(v[0],v[1]):null;y&&h.setCenter(y),l.drawPoints(),s.drawPolyline(),a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.isDark,v=>{o.getMap()&&(e.mapType==="satellite"||o.setMapStyle(v),l.drawPoints())},{immediate:!1}),t.watch(()=>e.viewMode,v=>{o.setViewMode(v)},{immediate:!1}),t.watch(()=>e.mapType,v=>{o.getMap()&&o.setMapType(v)},{immediate:!1}),t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{l.clear(),s.clear(),a.clear(),o.destroyMap()});function g(){l.clear(),s.clear(),a.clear(),o.destroyMap()}return n({getMap:o.getMap,destroyMap:g}),{mapContainer:r}}}),Ao={ref:"mapContainer",class:"j-tw-amap-wrapper"};function No(e,n,r,i,o,s){return t.openBlock(),t.createElementBlock("div",{class:"j-tw-amap-container",style:t.normalizeStyle(e.containerStyle)},[t.createElementVNode("div",Ao,null,512)],4)}const So=de(Do,[["render",No],["__scopeId","data-v-401e2b79"]]),Io="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1606_087849'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1606_087849)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.462736892279053Q0.5830078725,4.342139992279053,0.5830078125,7.000000492279053Q0.5830078125,9.657861192279054,2.4624112125,11.537264492279053Q4.3418138125,13.416666492279052,6.9996748125,13.416666492279052Q9.6575346125,13.416666492279052,11.5369388125,11.537264492279053Q13.4163408125,9.657862192279053,13.4163408125,7.000003292279053Q13.4163408125,4.342140692279052,11.5369388125,2.4627369922790527Q9.6575355125,0.5833334322790528,6.9996776125,0.5833334922790527Q4.3418143125,0.5833334922790527,2.4624112125,2.462736892279053ZM3.5230715125,10.476603992279053Q2.0830078125,9.036539992279053,2.0830078125,7.000000492279053Q2.0830077525,4.963460892279053,3.5230715125,3.523397192279053Q4.9631350125,2.0833334922790527,6.9996776125,2.0833334922790527Q9.0362158125,2.0833337322790526,10.4762783125,3.5233969922790527Q11.9163418125,4.963460892279053,11.9163418125,7.000003292279053Q11.9163418125,9.036541492279053,10.4762783125,10.476603992279053Q9.0362143125,11.916667492279053,6.9996748125,11.916667492279053Q4.9631345125,11.916667492279053,3.5230715125,10.476603992279053Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60415858505371Q10.4375500675,11.49869048505371,10.3804711075,11.36088973505371Q10.3233921575,11.223088995053711,10.3233921575,11.073934555053711Q10.3233921575,11.00008077205371,10.3378003875,10.92764607505371Q10.3522084975,10.855211375053711,10.3804711075,10.786979375053711Q10.4087337275,10.718747375053711,10.4497647275,10.65734022505371Q10.4907956675,10.59593304505371,10.5430181575,10.543710525053712Q10.5952406775,10.491488035053711,10.6566478575,10.45045709505371Q10.7180550075,10.40942609505371,10.7862870075,10.381163475053711Q10.8545190075,10.35290086505371,10.9269537075,10.33849275505371Q10.9993884045,10.324084525053712,11.0732421875,10.324084525053712Q11.2223966275,10.324084525053712,11.3601973675,10.381163415053711Q11.4979981175,10.438242435053711,11.6034662175,10.543710525053712L11.6035722475,10.54360449505371L14.432004687500001,13.372037155053711L14.4318987875,13.37214305505371Q14.5373668875,13.47761105505371,14.5944459875,13.61541175505371Q14.6515249875,13.75321265505371,14.6515249875,13.90236735505371Q14.6515247875,13.976221055053712,14.6371163875,14.04865575505371Q14.6227082875,14.12109045505371,14.5944456875,14.18932225505371Q14.5661830875,14.25755425505371,14.5251521875,14.31896135505371Q14.484121287499999,14.380368755053711,14.4318987875,14.43259115505371Q14.3796763875,14.48481365505371,14.3182692875,14.52584455505371Q14.2568618875,14.566875455053712,14.1886298875,14.595138055053711Q14.1203980875,14.623400655053711,14.0479633875,14.637808755053712Q13.9755286875,14.65221715505371,13.9016749875,14.652217355053711Q13.7525202875,14.652217355053711,13.6147193875,14.595138355053711Q13.4769186875,14.53805925505371,13.3714506875,14.43259115505371L13.3713447875,14.432697055053712L10.5429121275,11.604264615053712L10.5430181575,11.60415858505371Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",To="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1606_088069'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='8.75'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1606_088069)'%3e%3cg%20transform='matrix(0.7071067690849304,0.7071067690849304,-0.7071067690849304,0.7071067690849304,3.000820139087409,-5.382483522698749)'%3e%3cpath%20d='M17.997642517089844,5.179115295410156L7.997642517089844,5.179115295410156L7.997642517089844,5.179265265410156Q7.923788734089844,5.179265265410156,7.851354037089844,5.193673495410156Q7.778919337089844,5.208081605410157,7.710687337089844,5.236344215410156Q7.642455337089844,5.264606835410156,7.581048187089844,5.305637835410156Q7.519641007089843,5.346668775410157,7.4674184870898435,5.398891265410156Q7.415195997089844,5.451113785410156,7.374165057089844,5.512520965410157Q7.333134057089843,5.5739281154101565,7.304871437089844,5.642160115410157Q7.276608827089844,5.710392115410157,7.2622007170898435,5.782826815410156Q7.247792487089844,5.855261512410157,7.247792487089844,5.929115295410156Q7.247792487089844,6.002969078410156,7.2622007170898435,6.075403775410156Q7.276608827089844,6.147838475410156,7.304871437089844,6.216070475410156Q7.333134057089843,6.284302475410156,7.374165057089844,6.345709625410156Q7.415195997089844,6.407116805410157,7.4674184870898435,6.4593393254101565Q7.519641007089843,6.511561815410156,7.581048187089844,6.552592755410156Q7.642455337089844,6.593623755410157,7.710687337089844,6.621886375410156Q7.778919337089844,6.650148985410156,7.851354037089844,6.6645570954101565Q7.923788734089844,6.678965325410156,7.997642517089844,6.678965325410156L7.997642517089844,6.679115295410156L17.997642517089844,6.679115295410156L17.997642517089844,6.678965325410156Q18.071495517089843,6.678965325410156,18.143930517089842,6.6645570954101565Q18.216364517089843,6.650148985410156,18.284597517089843,6.621886375410156Q18.352828517089844,6.593623755410157,18.414236517089844,6.552592755410156Q18.475643517089843,6.511561815410156,18.527866517089844,6.4593393254101565Q18.580087517089844,6.407116805410157,18.621118517089844,6.345709625410156Q18.662149517089844,6.284302475410156,18.690412517089843,6.216070475410156Q18.718675517089842,6.147838475410156,18.733083517089845,6.075403775410156Q18.74749151708984,6.002969078410156,18.747492517089846,5.929115295410156Q18.74749151708984,5.855261512410157,18.733083517089845,5.782826815410156Q18.718675517089842,5.710392115410157,18.690412517089843,5.642160115410157Q18.662149517089844,5.5739281154101565,18.621118517089844,5.512520965410157Q18.580087517089844,5.451113785410156,18.527866517089844,5.398891265410156Q18.475643517089843,5.346668775410157,18.414236517089844,5.305637835410156Q18.352828517089844,5.264606835410156,18.284597517089843,5.236344215410156Q18.216364517089843,5.208081605410157,18.143930517089842,5.193673495410156Q18.071495517089843,5.179265265410156,17.997642517089844,5.179265265410156L17.997642517089844,5.179115295410156Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,13.92822265625,-12.066085815429688)'%3e%3cpath%20d='M22.997154235839844,0.18106842041015625L12.997154235839844,0.18106842041015625L12.997154235839844,0.1812183904101563Q12.923300452839843,0.1812183904101563,12.850865755839843,0.19562662041015622Q12.778431055839844,0.2100347304101563,12.710199055839844,0.23829734041015627Q12.641967055839844,0.2665599604101563,12.580559905839843,0.3075909604101562Q12.519152725839843,0.3486219004101563,12.466930205839844,0.4008443904101563Q12.414707715839844,0.45306691041015623,12.373676775839844,0.5144740904101562Q12.332645775839843,0.5758812404101563,12.304383155839844,0.6441132404101563Q12.276120545839843,0.7123452404101562,12.261712435839843,0.7847799404101563Q12.247304205839844,0.8572146374101562,12.247304205839844,0.9310684204101562Q12.247304205839844,1.0049222034101564,12.261712435839843,1.0773569004101562Q12.276120545839843,1.1497916004101563,12.304383155839844,1.2180236004101563Q12.332645775839843,1.2862556004101562,12.373676775839844,1.3476627504101564Q12.414707715839844,1.4090699304101562,12.466930205839844,1.461292450410156Q12.519152725839843,1.5135149404101562,12.580559905839843,1.5545458804101564Q12.641967055839844,1.5955768804101562,12.710199055839844,1.6238395004101562Q12.778431055839844,1.6521021104101563,12.850865755839843,1.6665102204101563Q12.923300452839843,1.6809184504101562,12.997154235839844,1.6809184504101562L12.997154235839844,1.6810684204101562L22.997154235839844,1.6810684204101562L22.997154235839844,1.6809184504101562Q23.071007235839843,1.6809184504101562,23.143442235839842,1.6665102204101563Q23.215876235839843,1.6521021104101563,23.284109235839843,1.6238395004101562Q23.352340235839844,1.5955768804101562,23.413748235839844,1.5545458804101564Q23.475155235839843,1.5135149404101562,23.527378235839844,1.461292450410156Q23.579599235839844,1.4090699304101562,23.620630235839844,1.3476627504101564Q23.661661235839844,1.2862556004101562,23.689924235839843,1.2180236004101563Q23.718187235839842,1.1497916004101563,23.732595235839845,1.0773569004101562Q23.74700323583984,1.0049222034101564,23.747004235839846,0.9310684204101562Q23.74700323583984,0.8572146374101562,23.732595235839845,0.7847799404101563Q23.718187235839842,0.7123452404101562,23.689924235839843,0.6441132404101563Q23.661661235839844,0.5758812404101563,23.620630235839844,0.5144740904101562Q23.579599235839844,0.45306691041015623,23.527378235839844,0.4008443904101563Q23.475155235839843,0.3486219004101563,23.413748235839844,0.3075909604101562Q23.352340235839844,0.2665599604101563,23.284109235839843,0.23829734041015627Q23.215876235839843,0.2100347304101563,23.143442235839842,0.19562662041015622Q23.071007235839843,0.1812183904101563,22.997154235839844,0.1812183904101563L22.997154235839844,0.18106842041015625Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Lo=t.defineComponent({name:"JTWSearchBox",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"搜索"},defaultExpanded:{type:Boolean,default:!1},wrapWidth:{type:String,default:"320px"},gap:{type:String,default:"8px"}},emits:{"update:modelValue":e=>!0,search:e=>!0},setup(e,{emit:n,expose:r}){const i=t.ref(null),o=t.ref(null),s=t.ref(e.defaultExpanded),l=t.computed(()=>s.value?{"--gap":e.gap}:{}),a=t.computed(()=>s.value?{width:e.wrapWidth}:{}),c=async()=>{var w;s.value||(s.value=!0,await t.nextTick(),(w=o.value)==null||w.focus())},g=()=>{s.value=!1},v=w=>{var k;if(!s.value)return;const d=w.target;d&&((k=i.value)!=null&&k.contains(d)||g())},h=()=>{c()},y=()=>{c()},m=w=>{const d=w.target;n("update:modelValue",d.value)},Q=async()=>{var w;n("update:modelValue",""),await t.nextTick(),(w=o.value)==null||w.focus()},u=()=>{n("search",e.modelValue)};return r({focus:()=>{var w;return(w=o.value)==null?void 0:w.focus()},blur:()=>{var w;return(w=o.value)==null?void 0:w.blur()},expand:()=>{c()},collapse:()=>{g()}}),t.watch(()=>s.value,w=>{var d;w||(d=o.value)==null||d.blur()}),t.onMounted(()=>{document.addEventListener("mousedown",v)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",v)}),{rootRef:i,inputRef:o,isExpanded:s,rootStyle:l,wrapStyle:a,handleMouseDown:h,handleFocus:y,handleInput:m,handleClear:Q,handleEnter:u,searchIcon:Io,clearIcon:To}}}),Eo={key:0,class:"j-tw-search-box__slot"},xo=["src"],jo=["value","placeholder"],zo=["src"],Bo={key:1,class:"j-tw-search-box__slot"};function Oo(e,n,r,i,o,s){return t.openBlock(),t.createElementBlock("div",{ref:"rootRef",class:t.normalizeClass(["j-tw-search-box",{"is-expanded":e.isExpanded}]),style:t.normalizeStyle(e.rootStyle),onMousedown:n[5]||(n[5]=t.withModifiers((...l)=>e.handleMouseDown&&e.handleMouseDown(...l),["stop"]))},[e.isExpanded?(t.openBlock(),t.createElementBlock("div",Eo,[t.renderSlot(e.$slots,"before")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-search-box__wrap",style:t.normalizeStyle(e.wrapStyle)},[t.createElementVNode("img",{class:"j-tw-search-box__search-icon",src:e.searchIcon,alt:"search"},null,8,xo),t.createElementVNode("input",{ref:"inputRef",class:"j-tw-search-box__input",value:e.modelValue,placeholder:e.placeholder,onInput:n[0]||(n[0]=(...l)=>e.handleInput&&e.handleInput(...l)),onKeydown:n[1]||(n[1]=t.withKeys((...l)=>e.handleEnter&&e.handleEnter(...l),["enter"])),onFocus:n[2]||(n[2]=(...l)=>e.handleFocus&&e.handleFocus(...l))},null,40,jo),e.isExpanded&&e.modelValue?(t.openBlock(),t.createElementBlock("button",{key:0,class:"j-tw-search-box__clear",type:"button","aria-label":"clear",onMousedown:n[3]||(n[3]=t.withModifiers(()=>{},["stop"])),onClick:n[4]||(n[4]=(...l)=>e.handleClear&&e.handleClear(...l))},[t.createElementVNode("img",{class:"j-tw-search-box__clear-icon",src:e.clearIcon,alt:"clear"},null,8,zo)],32)):t.createCommentVNode("",!0)],4),e.isExpanded?(t.openBlock(),t.createElementBlock("div",Bo,[t.renderSlot(e.$slots,"after")])):t.createCommentVNode("",!0)],38)}const Fo=de(Lo,[["render",Oo]]);function Q1(e){return new Promise(n=>{const r=t.ref(!1),i=document.createElement("div");document.body.appendChild(i);const o=()=>{g.unmount(),document.body.contains(i)&&document.body.removeChild(i)},s=v=>{r.value=!1,setTimeout(o,250),n(v)},l=()=>s(!0),a=()=>s(!1),c=t.defineComponent({setup(){return()=>t.h(f1,{visible:r.value,message:e.message,html:e.html,icon:e.icon,confirmText:e.confirmText,cancelText:e.cancelText,onConfirm:l,onCancel:a})}}),g=t.createApp(c);g.mount(i),t.nextTick(()=>{r.value=!0})})}const Po="#165DFF",Ro="#000000",$o="#FFFFFF",Vo="#00B42A",Uo="#FF7D00",Wo="#F53F3F",Zo="#14C9C9",Yo="#D97706",Go="#F7BA1E",Ho="#3491FA",Jo="#722ED1",Xo="#9FDB1D",Ko="#F5319D",qo="#F77EBE",Jt={primary:Po,"primary-1":"#0E42D2","primary-2":"#165DFF","primary-3":"#4080FF","primary-4":"#6AA1FF","primary-5":"#94BFFF","primary-6":"#BEDAFF","grey-1":"#1D2129","grey-2":"#4E5969","grey-3":"#86909C","grey-3-50":"#A8ABB2","grey-4":"#C9CDD4","grey-5":"#E5E6EB","grey-6":"#F2F3F5",black:Ro,white:$o,green:Vo,"green-1":"#00875A","green-2":"#00B42A","green-3":"#23C343","green-4":"#4CD263","green-5":"#7BE188","green-6":"#AFF0B5",orange:Uo,"orange-1":"#D25F00","orange-2":"#FF7D00","orange-3":"#FF9A2E","orange-4":"#FFB65D","orange-5":"#FFCF8B","orange-6":"#FFE4BA",red:Wo,"red-1":"#CB2634","red-2":"#F53F3F","red-3":"#F76560","red-4":"#F98981","red-5":"#FDACA7","red-6":"#FFCCC7",cyan:Zo,"cyan-1":"#0DA5AA","cyan-2":"#14C9C9","cyan-3":"#37D4CF","cyan-4":"#5ADFD7","cyan-5":"#87E8DD","cyan-6":"#B2F1E8",brown:Yo,"brown-1":"#B35C00","brown-2":"#D97706","brown-3":"#E89A3C","brown-4":"#F3B765","brown-5":"#F9D28F","brown-6":"#FDEAB8",yellow:Go,"yellow-1":"#D48806","yellow-2":"#F7BA1E","yellow-3":"#FADC19","yellow-4":"#FCEE21","yellow-5":"#FEF65B","yellow-6":"#FFFB8F",blue:Ho,"blue-1":"#146AFF","blue-2":"#3491FA","blue-3":"#57A3F7","blue-4":"#79BBF8","blue-5":"#A8D3FB","blue-6":"#C7E2FD",purple:Jo,"purple-1":"#551DB1","purple-2":"#722ED1","purple-3":"#8E51DA","purple-4":"#A871E3","purple-5":"#C396ED","purple-6":"#DDBEF6",lime:Xo,"lime-1":"#7BC616","lime-2":"#9FDB1D","lime-3":"#B4E04B","lime-4":"#C8E672","lime-5":"#DCEC9A","lime-6":"#EFF4C6",magenta:Ko,"magenta-1":"#CB247A","magenta-2":"#F5319D","magenta-3":"#F754B0","magenta-4":"#F975C2","magenta-5":"#FB9DD1","magenta-6":"#FDC5E3",pink:qo,"pink-1":"#D6549D","pink-2":"#F77EBE","pink-3":"#F99AC8","pink-4":"#FAB4D4","pink-5":"#FCCEE0","pink-6":"#FEE7EF"},e5=async e=>(await{"zh-CN":()=>Promise.resolve().then(()=>require("./index-C5mRo5Yi.cjs")),"en-US":()=>Promise.resolve().then(()=>require("./index-BrYPwI7i.cjs"))}[e]()).default,dt={},t5=async e=>(dt[e]||(dt[e]=await e5(e)),dt[e]),Dt=t.ref("zh-CN"),gt=t.ref(null);function n5(e,n){const r=n.split(".");let i=e;for(const o of r)if(i&&typeof i=="object"&&o in i)i=i[o];else return n;return typeof i=="string"?i:n}function r5(e,n){return n?e.replace(/\{(\w+)\}/g,(r,i)=>n[i]!==void 0?String(n[i]):r):e}function k1(e,n){if(!gt.value)return console.warn("[twcpt] i18n messages not loaded yet, please call setLocale first"),e;const r=n5(gt.value,e);return r5(r,n)}async function tt(e){Dt.value=e;try{gt.value=await t5(e)}catch(n){console.error(`[twcpt] Failed to load locale messages for ${e}:`,n)}}function b1(){return Dt.value}function o5(){return{t:k1,locale:Dt,setLocale:tt,getLocale:b1}}const M1=Symbol("pagePermissionIds"),C1=Symbol("pageActionPermissionIds");let it={};function i5(e){const{app:n,router:r,pagePermissionIds:i,pageActionPermissionIds:o,projectPermissionId:s,defaultLanguage:l,colors:a,disableBFCache:c,amap:g}=e;it={colors:a,projectPermissionId:s},Ve.configure({router:r}),r&&(r.beforeEach(()=>{Ve.destroyAll()}),console.log("[twcpt] Router listener set successfully.")),g&&(fo(g),console.log("[twcpt] AMap configuration set successfully.")),c&&window.addEventListener("pageshow",y=>{y.persisted&&window.location.reload()}),l?tt(l).catch(y=>{console.error("[twcpt] Failed to set default language:",y)}):tt("zh-CN").catch(y=>{console.error("[twcpt] Failed to load default locale:",y)});const v=i?t.isRef(i)?i:t.ref(i):void 0,h=o?t.isRef(o)?o:t.ref(o):void 0;v&&(console.log("[twcpt] Permission IDs provided:",v.value),n.provide(M1,v)),h&&(console.log("[twcpt] Action Permission IDs provided:",h.value),n.provide(C1,h)),a&&l5(a),s&&console.log("[twcpt] Project Permission ID:",s),console.log("[twcpt] Initialization completed successfully.")}function l5(e){const n=e&&Object.keys(e).length>0,r=n?{...Jt,...e}:Jt;let i=document.getElementById("twcpt-color-vars");i||(i=document.createElement("style"),i.id="twcpt-color-vars",document.head.appendChild(i));const o=Object.entries(r).map(([s,l])=>` --j-color-${s}: ${l};`).join(`
|
|
49
|
+
`);i.textContent=`:root {
|
|
50
|
+
${o}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.twcpt-container {
|
|
54
|
-
${
|
|
55
|
-
}`,console.log("[twcpt] Custom colors applied:",n?e:"Using default colors")}function
|
|
54
|
+
${o}
|
|
55
|
+
}`,console.log("[twcpt] Custom colors applied:",n?e:"Using default colors")}function a5(){return it.colors}function s5(){return it.projectPermissionId}function c5(){return{...it}}const Xt={"app:clear":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQoNCiAgICA8ZyBpZD0iY3VzdG9tLXN2ZyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSJlU0lNLUdyb3VwLUFkZC1maXJzdC1sZXZlbC1ncm91cHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03MTkuMDAwMDAwLCAtMzA5LjAwMDAwMCkiPg0KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0xNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzYxLjAwMDAwMCwgMjAzLjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkwLjAwMDAwMCwgNzIuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtN+Wkh+S7vS04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjYuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNjguMDAwMDAwLCA4LjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PC9yZWN0Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQ9Ik0xMCwxLjY2NjY2NjY3IEM1LjQwNSwxLjY2NjY2NjY3IDEuNjY2NjY2NjcsNS40MDUgMS42NjY2NjY2NywxMCBDMS42NjY2NjY2NywxNC41OTUgNS40MDUsMTguMzMzMzMzMyAxMCwxOC4zMzMzMzMzIEMxNC41OTUsMTguMzMzMzMzMyAxOC4zMzMzMzMzLDE0LjU5NSAxOC4zMzMzMzMzLDEwIEMxOC4zMzMzMzMzLDUuNDA1IDE0LjU5NSwxLjY2NjY2NjY3IDEwLDEuNjY2NjY2NjciDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPSJQYXRoIiBmaWxsPSIjRUJFQ0YwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkPSJNMTIuMjU1ODMzMyw3Ljc0NDE2NjY3IEMxMS45Myw3LjQxODMzMzMzIDExLjQwMzMzMzMsNy40MTgzMzMzMyAxMS4wNzc1LDcuNzQ0MTY2NjcgTDEwLDguODIxNjY2NjcgTDguOTIyNSw3Ljc0NDE2NjY3IEM4LjU5NjY2NjY3LDcuNDE4MzMzMzMgOC4wNyw3LjQxODMzMzMzIDcuNzQ0MTY2NjcsNy43NDQxNjY2NyBDNy40MTgzMzMzMyw4LjA3IDcuNDE4MzMzMzMsOC41OTY2NjY2NyA3Ljc0NDE2NjY3LDguOTIyNSBMOC44MjE2NjY2NywxMCBMNy43NDQxNjY2NywxMS4wNzc1IEM3LjQxODMzMzMzLDExLjQwMzMzMzMgNy40MTgzMzMzMywxMS45MyA3Ljc0NDE2NjY3LDEyLjI1NTgzMzMgQzcuOTA2NjY2NjcsMTIuNDE4MzMzMyA4LjEyLDEyLjUgOC4zMzMzMzMzMywxMi41IEM4LjU0NjY2NjY3LDEyLjUgOC43NiwxMi40MTgzMzMzIDguOTIyNSwxMi4yNTU4MzMzIEwxMCwxMS4xNzgzMzMzIEwxMS4wNzc1LDEyLjI1NTgzMzMgQzExLjI0LDEyLjQxODMzMzMgMTEuNDUzMzMzMywxMi41IDExLjY2NjY2NjcsMTIuNSBDMTEuODgsMTIuNSAxMi4wOTMzMzMzLDEyLjQxODMzMzMgMTIuMjU1ODMzMywxMi4yNTU4MzMzIEMxMi41ODE2NjY3LDExLjkzIDEyLjU4MTY2NjcsMTEuNDAzMzMzMyAxMi4yNTU4MzMzLDExLjA3NzUgTDExLjE3ODMzMzMsMTAgTDEyLjI1NTgzMzMsOC45MjI1IEMxMi41ODE2NjY3LDguNTk2NjY2NjcgMTIuNTgxNjY2Nyw4LjA3IDEyLjI1NTgzMzMsNy43NDQxNjY2NyINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9IlBhdGgiIGZpbGw9IiM5OTlEQjQiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+"},u5=e=>{const n="img:",r=[e,e.toLowerCase()];if(e.startsWith("app:")){const o=e.slice(4);r.push(o,o.toLowerCase())}else r.push(`app:${e}`,`app:${e.toLowerCase()}`);const i=r.find(o=>Xt[o]!==void 0);if(i)return{icon:n+Xt[i]}};function d5(...e){return n=>{for(const r of e){if(!r)continue;const i=r(n);if(i!==void 0)return i}}}function _1(e,n,r=o=>JSON.stringify(o),i=o=>JSON.parse(o)){const o=e,s=()=>{try{const c=localStorage.getItem(o),g=c?i(c):n;return console.log(`[storageSync] 初始化 ${o}:`,g),g}catch(c){return console.warn(`[storageSync] Failed to read ${o}:`,c),n}},l=t.ref(s());t.watch(l,(c,g)=>{try{console.log(`[storageSync] ${o} 更新:`,{oldValue:g,newValue:c,timestamp:new Date().toISOString()}),localStorage.setItem(o,r(c)),console.log(`[storageSync] ${o} 已写入 localStorage`)}catch(v){console.error(`[storageSync] Failed to write ${o}:`,v)}},{deep:!0});const a=c=>{if(c.key===o&&c.newValue!==null)try{const g=i(c.newValue);console.log(`[storageSync] 监听到 storage 事件 ${o}:`,{oldValue:c.oldValue,newValue:c.newValue,url:c.url,timestamp:new Date().toISOString()}),JSON.stringify(l.value)!==JSON.stringify(g)?(console.log(`[storageSync] ${o} 从其他标签页同步更新:`,g),l.value=g):console.log(`[storageSync] ${o} 值未改变,跳过更新`)}catch(g){console.warn(`[storageSync] Failed to parse storage event for ${o}:`,g)}else c.key===o&&c.newValue===null&&(console.log(`[storageSync] ${o} 被清空,重置为初始值`),l.value=n)};return window.addEventListener("storage",a),l}const D1=e=>e.join(","),A1=e=>e?e.split(",").filter(Boolean):[];function f5(e){return _1(e,[],D1,A1)}function h5(e){return _1(e,[],D1,A1)}function Kt(e){if(typeof e=="string")return e;if(e==null)return"请求失败";try{return JSON.stringify(e)}catch{return"请求失败"}}function p5(e){const n=xe,r=(e==null?void 0:e.intercept)??!1;let i;const o=a=>typeof a=="object"&&a!==null&&"ok"in a&&"code"in a&&"data"in a;return{run:async a=>{try{const c=await a(),g=o(c)?c:o(c==null?void 0:c.data)?c.data:void 0;if(!g){r||n.show({content:"响应格式错误",type:"error"});return}if((g==null?void 0:g.ok)===!0&&(g==null?void 0:g.code)===0)return g.data;r&&i?i(g):r||n.show({content:Kt(g==null?void 0:g.msg),type:"error"});return}catch(c){r||n.show({content:Kt((c==null?void 0:c.msg)??(c==null?void 0:c.message)),type:"error"});return}},error:a=>{i=a}}}function m5(e,n={}){const{interval:r=5e3,immediate:i=!1,onError:o,autoStopWhenHidden:s=!0}=n;let l=null,a=0,c=r,g=!document.hidden,v=!1;const h=async()=>{if(s&&!g){l=null,v=!1;return}const d=Date.now();if(d-a>=c){a=d;try{await e()}catch(D){o?o(D):console.error("RAFPolling error:",D)}}v&&(l=requestAnimationFrame(h))},y=()=>{g=!document.hidden,g&&v&&l===null?(a=Date.now(),h()):!g&&s&&Q()},m=()=>{v||(v=!0,a=Date.now(),i&&e().catch(d=>{o?o(d):console.error("RAFPolling error:",d)}),h(),s&&document.addEventListener("visibilitychange",y))},Q=()=>{v=!1,l!==null&&(cancelAnimationFrame(l),l=null),s&&document.removeEventListener("visibilitychange",y)};return{start:m,stop:Q,isRunning:()=>v,updateInterval:d=>{c=d}}}function He(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ft={exports:{}};/*!
|
|
56
56
|
|
|
57
57
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
58
58
|
<http://stuartk.com/jszip>
|
|
@@ -62,5 +62,5 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
62
62
|
|
|
63
63
|
JSZip uses the library pako released under the MIT license :
|
|
64
64
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
65
|
-
*/var
|
|
66
|
-
\0`,L+=s(O,2),L+=B.magic,L+=s(b,2),L+=s(_,2),L+=s(re.crc32,4),L+=s(re.compressedSize,4),L+=s(re.uncompressedSize,4),L+=s(R.length,2),L+=s(P.length,2),{fileRecord:h.LOCAL_FILE_HEADER+L+R+P,dirRecord:h.CENTRAL_FILE_HEADER+s(oe,2)+L+s($.length,2)+"\0\0\0\0"+s(j,4)+s(w,4)+R+P+$}}var a=r("../utils"),c=r("../stream/GenericWorker"),m=r("../utf8"),y=r("../crc32"),h=r("../signature");function v(g,k,u,w){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=k,this.zipPlatform=u,this.encodeFileName=w,this.streamFiles=g,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(v,c),v.prototype.push=function(g){var k=g.meta.percent||0,u=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(g):(this.bytesWritten+=g.data.length,c.prototype.push.call(this,{data:g.data,meta:{currentFile:this.currentFile,percent:u?(k+100*(u-w-1))/u:100}}))},v.prototype.openedSource=function(g){this.currentSourceOffset=this.bytesWritten,this.currentFile=g.file.name;var k=this.streamFiles&&!g.file.dir;if(k){var u=l(g,k,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(g){this.accumulate=!1;var k=this.streamFiles&&!g.file.dir,u=l(g,k,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),k)this.push({data:(function(w){return h.DATA_DESCRIPTOR+s(w.crc32,4)+s(w.compressedSize,4)+s(w.uncompressedSize,4)})(g),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var g=this.bytesWritten,k=0;k<this.dirRecords.length;k++)this.push({data:this.dirRecords[k],meta:{percent:100}});var u=this.bytesWritten-g,w=(function(d,Q,b,_,N){var B=a.transformTo("string",N(_));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(d,2)+s(d,2)+s(Q,4)+s(b,4)+s(B.length,2)+B})(this.dirRecords.length,u,g,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},v.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},v.prototype.registerPrevious=function(g){this._sources.push(g);var k=this;return g.on("data",function(u){k.processChunk(u)}),g.on("end",function(){k.closedSource(k.previous.streamInfo),k._sources.length?k.prepareNextSource():k.end()}),g.on("error",function(u){k.error(u)}),this},v.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},v.prototype.error=function(g){var k=this._sources;if(!c.prototype.error.call(this,g))return!1;for(var u=0;u<k.length;u++)try{k[u].error(g)}catch{}return!0},v.prototype.lock=function(){c.prototype.lock.call(this);for(var g=this._sources,k=0;k<g.length;k++)g[k].lock()},o.exports=v},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,o,i){var s=r("../compressions"),l=r("./ZipFileWorker");i.generateWorker=function(a,c,m){var y=new l(c.streamFiles,m,c.platform,c.encodeFileName),h=0;try{a.forEach(function(v,g){h++;var k=(function(Q,b){var _=Q||b,N=s[_];if(!N)throw new Error(_+" is not a valid compression method !");return N})(g.options.compression,c.compression),u=g.options.compressionOptions||c.compressionOptions||{},w=g.dir,d=g.date;g._compressWorker(k,u).withStreamInfo("file",{name:v,dir:w,date:d,comment:g.comment||"",unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions}).pipe(y)}),y.entriesCount=h}catch(v){y.error(v)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,o,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new s;for(var a in this)typeof this[a]!="function"&&(l[a]=this[a]);return l}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(l,a){return new s().loadAsync(l,a)},s.external=r("./external"),o.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,o,i){var s=r("./utils"),l=r("./external"),a=r("./utf8"),c=r("./zipEntries"),m=r("./stream/Crc32Probe"),y=r("./nodejsUtils");function h(v){return new l.Promise(function(g,k){var u=v.decompressed.getContentWorker().pipe(new m);u.on("error",function(w){k(w)}).on("end",function(){u.streamInfo.crc32!==v.decompressed.crc32?k(new Error("Corrupted zip : CRC32 mismatch")):g()}).resume()})}o.exports=function(v,g){var k=this;return g=s.extend(g||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),y.isNode&&y.isStream(v)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",v,!0,g.optimizedBinaryString,g.base64).then(function(u){var w=new c(g);return w.load(u),w}).then(function(u){var w=[l.Promise.resolve(u)],d=u.files;if(g.checkCRC32)for(var Q=0;Q<d.length;Q++)w.push(h(d[Q]));return l.Promise.all(w)}).then(function(u){for(var w=u.shift(),d=w.files,Q=0;Q<d.length;Q++){var b=d[Q],_=b.fileNameStr,N=s.resolve(b.fileNameStr);k.file(N,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:g.createFolders}),b.dir||(k.file(N).unsafeOriginalName=_)}return w.zipComment.length&&(k.comment=w.zipComment),k})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,o,i){var s=r("../utils"),l=r("../stream/GenericWorker");function a(c,m){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(m)}s.inherits(a,l),a.prototype._bindStream=function(c){var m=this;(this._stream=c).pause(),c.on("data",function(y){m.push({data:y,meta:{percent:0}})}).on("error",function(y){m.isPaused?this.generatedError=y:m.error(y)}).on("end",function(){m.isPaused?m._upstreamEnded=!0:m.end()})},a.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,o,i){var s=r("readable-stream").Readable;function l(a,c,m){s.call(this,c),this._helper=a;var y=this;a.on("data",function(h,v){y.push(h)||y._helper.pause(),m&&m(v)}).on("error",function(h){y.emit("error",h)}).on("end",function(){y.push(null)})}r("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},o.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,o,i){o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,l);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,l)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var l=new Buffer(s);return l.fill(0),l},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,o,i){function s(N,B,E){var R,D=a.getTypeOf(B),x=a.extend(E||{},y);x.date=x.date||new Date,x.compression!==null&&(x.compression=x.compression.toUpperCase()),typeof x.unixPermissions=="string"&&(x.unixPermissions=parseInt(x.unixPermissions,8)),x.unixPermissions&&16384&x.unixPermissions&&(x.dir=!0),x.dosPermissions&&16&x.dosPermissions&&(x.dir=!0),x.dir&&(N=d(N)),x.createFolders&&(R=w(N))&&Q.call(this,R,!0);var $=D==="string"&&x.binary===!1&&x.base64===!1;E&&E.binary!==void 0||(x.binary=!$),(B instanceof h&&B.uncompressedSize===0||x.dir||!B||B.length===0)&&(x.base64=!1,x.binary=!0,B="",x.compression="STORE",D="string");var C=null;C=B instanceof h||B instanceof c?B:k.isNode&&k.isStream(B)?new u(N,B):a.prepareContent(N,B,x.binary,x.optimizedBinaryString,x.base64);var I=new v(N,C,x);this.files[N]=I}var l=r("./utf8"),a=r("./utils"),c=r("./stream/GenericWorker"),m=r("./stream/StreamHelper"),y=r("./defaults"),h=r("./compressedObject"),v=r("./zipObject"),g=r("./generate"),k=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),w=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var B=N.lastIndexOf("/");return 0<B?N.substring(0,B):""},d=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},Q=function(N,B){return B=B!==void 0?B:y.createFolders,N=d(N),this.files[N]||s.call(this,N,null,{dir:!0,createFolders:B}),this.files[N]};function b(N){return Object.prototype.toString.call(N)==="[object RegExp]"}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var B,E,R;for(B in this.files)R=this.files[B],(E=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&N(E,R)},filter:function(N){var B=[];return this.forEach(function(E,R){N(E,R)&&B.push(R)}),B},file:function(N,B,E){if(arguments.length!==1)return N=this.root+N,s.call(this,N,B,E),this;if(b(N)){var R=N;return this.filter(function(x,$){return!$.dir&&R.test(x)})}var D=this.files[this.root+N];return D&&!D.dir?D:null},folder:function(N){if(!N)return this;if(b(N))return this.filter(function(D,x){return x.dir&&N.test(D)});var B=this.root+N,E=Q.call(this,B),R=this.clone();return R.root=E.name,R},remove:function(N){N=this.root+N;var B=this.files[N];if(B||(N.slice(-1)!=="/"&&(N+="/"),B=this.files[N]),B&&!B.dir)delete this.files[N];else for(var E=this.filter(function(D,x){return x.name.slice(0,N.length)===N}),R=0;R<E.length;R++)delete this.files[E[R].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var B,E={};try{if((E=a.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=E.type.toLowerCase(),E.compression=E.compression.toUpperCase(),E.type==="binarystring"&&(E.type="string"),!E.type)throw new Error("No output type specified.");a.checkSupport(E.type),E.platform!=="darwin"&&E.platform!=="freebsd"&&E.platform!=="linux"&&E.platform!=="sunos"||(E.platform="UNIX"),E.platform==="win32"&&(E.platform="DOS");var R=E.comment||this.comment||"";B=g.generateWorker(this,E,R)}catch(D){(B=new c("error")).error(D)}return new m(B,E.type||"string",E.mimeType)},generateAsync:function(N,B){return this.generateInternalStream(N).accumulate(B)},generateNodeStream:function(N,B){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(B)}};o.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,o,i){o.exports=r("stream")},{stream:void 0}],17:[function(r,o,i){var s=r("./DataReader");function l(a){s.call(this,a);for(var c=0;c<this.data.length;c++)a[c]=255&a[c]}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data[this.zero+a]},l.prototype.lastIndexOfSignature=function(a){for(var c=a.charCodeAt(0),m=a.charCodeAt(1),y=a.charCodeAt(2),h=a.charCodeAt(3),v=this.length-4;0<=v;--v)if(this.data[v]===c&&this.data[v+1]===m&&this.data[v+2]===y&&this.data[v+3]===h)return v-this.zero;return-1},l.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),m=a.charCodeAt(1),y=a.charCodeAt(2),h=a.charCodeAt(3),v=this.readData(4);return c===v[0]&&m===v[1]&&y===v[2]&&h===v[3]},l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,o,i){var s=r("../utils");function l(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var c,m=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)m=(m<<8)+this.byteAt(c);return this.index+=a,m},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},o.exports=l},{"../utils":32}],19:[function(r,o,i){var s=r("./Uint8ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,o,i){var s=r("./DataReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},l.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},l.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,o,i){var s=r("./ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,o,i){var s=r("../utils"),l=r("../support"),a=r("./ArrayReader"),c=r("./StringReader"),m=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");o.exports=function(h){var v=s.getTypeOf(h);return s.checkSupport(v),v!=="string"||l.uint8array?v==="nodebuffer"?new m(h):l.uint8array?new y(s.transformTo("uint8array",h)):new a(s.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,o,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,o,i){var s=r("./GenericWorker"),l=r("../utils");function a(c){s.call(this,"ConvertWorker to "+c),this.destType=c}l.inherits(a,s),a.prototype.processChunk=function(c){this.push({data:l.transformTo(this.destType,c.data),meta:c.meta})},o.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,o,i){var s=r("./GenericWorker"),l=r("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,s),a.prototype.processChunk=function(c){this.streamInfo.crc32=l(c.data,this.streamInfo.crc32||0),this.push(c)},o.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,o,i){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}s.inherits(a,l),a.prototype.processChunk=function(c){if(c){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+c.data.length}l.prototype.processChunk.call(this,c)},o.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,o,i){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataWorker");var m=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){m.dataIsReady=!0,m.data=y,m.max=y&&y.length||0,m.type=s.getTypeOf(y),m.isPaused||m._tickAndRepeat()},function(y){m.error(y)})}s.inherits(a,l),a.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,m=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,m);break;case"uint8array":c=this.data.subarray(this.index,m);break;case"array":case"nodebuffer":c=this.data.slice(this.index,m)}return this.index=m,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,o,i){function s(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,a){return this._listeners[l].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,a){if(this._listeners[l])for(var c=0;c<this._listeners[l].length;c++)this._listeners[l][c].call(this,a)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var a=this;return l.on("data",function(c){a.processChunk(c)}),l.on("end",function(){a.end()}),l.on("error",function(c){a.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,a){return this.extraStreamInfo[l]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},o.exports=s},{}],29:[function(r,o,i){var s=r("../utils"),l=r("./ConvertWorker"),a=r("./GenericWorker"),c=r("../base64"),m=r("../support"),y=r("../external"),h=null;if(m.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(k,u){return new y.Promise(function(w,d){var Q=[],b=k._internalType,_=k._outputType,N=k._mimeType;k.on("data",function(B,E){Q.push(B),u&&u(E)}).on("error",function(B){Q=[],d(B)}).on("end",function(){try{var B=(function(E,R,D){switch(E){case"blob":return s.newBlob(s.transformTo("arraybuffer",R),D);case"base64":return c.encode(R);default:return s.transformTo(E,R)}})(_,(function(E,R){var D,x=0,$=null,C=0;for(D=0;D<R.length;D++)C+=R[D].length;switch(E){case"string":return R.join("");case"array":return Array.prototype.concat.apply([],R);case"uint8array":for($=new Uint8Array(C),D=0;D<R.length;D++)$.set(R[D],x),x+=R[D].length;return $;case"nodebuffer":return Buffer.concat(R);default:throw new Error("concat : unsupported type '"+E+"'")}})(b,Q),N);w(B)}catch(E){d(E)}Q=[]}).resume()})}function g(k,u,w){var d=u;switch(u){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=u,this._mimeType=w,s.checkSupport(d),this._worker=k.pipe(new l(d)),k.lock()}catch(Q){this._worker=new a("error"),this._worker.error(Q)}}g.prototype={accumulate:function(k){return v(this,k)},on:function(k,u){var w=this;return k==="data"?this._worker.on(k,function(d){u.call(w,d.data,d.meta)}):this._worker.on(k,function(){s.delay(u,arguments,w)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(k){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},k)}},o.exports=g},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,o,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(s),i.blob=l.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,o,i){for(var s=r("./utils"),l=r("./support"),a=r("./nodejsUtils"),c=r("./stream/GenericWorker"),m=new Array(256),y=0;y<256;y++)m[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;m[254]=m[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function v(){c.call(this,"utf-8 encode")}i.utf8encode=function(g){return l.nodebuffer?a.newBufferFrom(g,"utf-8"):(function(k){var u,w,d,Q,b,_=k.length,N=0;for(Q=0;Q<_;Q++)(64512&(w=k.charCodeAt(Q)))==55296&&Q+1<_&&(64512&(d=k.charCodeAt(Q+1)))==56320&&(w=65536+(w-55296<<10)+(d-56320),Q++),N+=w<128?1:w<2048?2:w<65536?3:4;for(u=l.uint8array?new Uint8Array(N):new Array(N),Q=b=0;b<N;Q++)(64512&(w=k.charCodeAt(Q)))==55296&&Q+1<_&&(64512&(d=k.charCodeAt(Q+1)))==56320&&(w=65536+(w-55296<<10)+(d-56320),Q++),w<128?u[b++]=w:(w<2048?u[b++]=192|w>>>6:(w<65536?u[b++]=224|w>>>12:(u[b++]=240|w>>>18,u[b++]=128|w>>>12&63),u[b++]=128|w>>>6&63),u[b++]=128|63&w);return u})(g)},i.utf8decode=function(g){return l.nodebuffer?s.transformTo("nodebuffer",g).toString("utf-8"):(function(k){var u,w,d,Q,b=k.length,_=new Array(2*b);for(u=w=0;u<b;)if((d=k[u++])<128)_[w++]=d;else if(4<(Q=m[d]))_[w++]=65533,u+=Q-1;else{for(d&=Q===2?31:Q===3?15:7;1<Q&&u<b;)d=d<<6|63&k[u++],Q--;1<Q?_[w++]=65533:d<65536?_[w++]=d:(d-=65536,_[w++]=55296|d>>10&1023,_[w++]=56320|1023&d)}return _.length!==w&&(_.subarray?_=_.subarray(0,w):_.length=w),s.applyFromCharCode(_)})(g=s.transformTo(l.uint8array?"uint8array":"array",g))},s.inherits(h,c),h.prototype.processChunk=function(g){var k=s.transformTo(l.uint8array?"uint8array":"array",g.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var u=k;(k=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),k.set(u,this.leftOver.length)}else k=this.leftOver.concat(k);this.leftOver=null}var w=(function(Q,b){var _;for((b=b||Q.length)>Q.length&&(b=Q.length),_=b-1;0<=_&&(192&Q[_])==128;)_--;return _<0||_===0?b:_+m[Q[_]]>b?_:b})(k),d=k;w!==k.length&&(l.uint8array?(d=k.subarray(0,w),this.leftOver=k.subarray(w,k.length)):(d=k.slice(0,w),this.leftOver=k.slice(w,k.length))),this.push({data:i.utf8decode(d),meta:g.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,s.inherits(v,c),v.prototype.processChunk=function(g){this.push({data:i.utf8encode(g.data),meta:g.meta})},i.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,o,i){var s=r("./support"),l=r("./base64"),a=r("./nodejsUtils"),c=r("./external");function m(u){return u}function y(u,w){for(var d=0;d<u.length;++d)w[d]=255&u.charCodeAt(d);return w}r("setimmediate"),i.newBlob=function(u,w){i.checkSupport("blob");try{return new Blob([u],{type:w})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(u),d.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(u,w,d){var Q=[],b=0,_=u.length;if(_<=d)return String.fromCharCode.apply(null,u);for(;b<_;)w==="array"||w==="nodebuffer"?Q.push(String.fromCharCode.apply(null,u.slice(b,Math.min(b+d,_)))):Q.push(String.fromCharCode.apply(null,u.subarray(b,Math.min(b+d,_)))),b+=d;return Q.join("")},stringifyByChar:function(u){for(var w="",d=0;d<u.length;d++)w+=String.fromCharCode(u[d]);return w},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function v(u){var w=65536,d=i.getTypeOf(u),Q=!0;if(d==="uint8array"?Q=h.applyCanBeUsed.uint8array:d==="nodebuffer"&&(Q=h.applyCanBeUsed.nodebuffer),Q)for(;1<w;)try{return h.stringifyByChunk(u,d,w)}catch{w=Math.floor(w/2)}return h.stringifyByChar(u)}function g(u,w){for(var d=0;d<u.length;d++)w[d]=u[d];return w}i.applyFromCharCode=v;var k={};k.string={string:m,array:function(u){return y(u,new Array(u.length))},arraybuffer:function(u){return k.string.uint8array(u).buffer},uint8array:function(u){return y(u,new Uint8Array(u.length))},nodebuffer:function(u){return y(u,a.allocBuffer(u.length))}},k.array={string:v,array:m,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},k.arraybuffer={string:function(u){return v(new Uint8Array(u))},array:function(u){return g(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:m,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},k.uint8array={string:v,array:function(u){return g(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:m,nodebuffer:function(u){return a.newBufferFrom(u)}},k.nodebuffer={string:v,array:function(u){return g(u,new Array(u.length))},arraybuffer:function(u){return k.nodebuffer.uint8array(u).buffer},uint8array:function(u){return g(u,new Uint8Array(u.length))},nodebuffer:m},i.transformTo=function(u,w){if(w=w||"",!u)return w;i.checkSupport(u);var d=i.getTypeOf(w);return k[d][u](w)},i.resolve=function(u){for(var w=u.split("/"),d=[],Q=0;Q<w.length;Q++){var b=w[Q];b==="."||b===""&&Q!==0&&Q!==w.length-1||(b===".."?d.pop():d.push(b))}return d.join("/")},i.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(u)?"nodebuffer":s.uint8array&&u instanceof Uint8Array?"uint8array":s.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(u){if(!s[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(u){var w,d,Q="";for(d=0;d<(u||"").length;d++)Q+="\\x"+((w=u.charCodeAt(d))<16?"0":"")+w.toString(16).toUpperCase();return Q},i.delay=function(u,w,d){setImmediate(function(){u.apply(d||null,w||[])})},i.inherits=function(u,w){function d(){}d.prototype=w.prototype,u.prototype=new d},i.extend=function(){var u,w,d={};for(u=0;u<arguments.length;u++)for(w in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],w)&&d[w]===void 0&&(d[w]=arguments[u][w]);return d},i.prepareContent=function(u,w,d,Q,b){return c.Promise.resolve(w).then(function(_){return s.blob&&(_ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(_))!==-1)&&typeof FileReader<"u"?new c.Promise(function(N,B){var E=new FileReader;E.onload=function(R){N(R.target.result)},E.onerror=function(R){B(R.target.error)},E.readAsArrayBuffer(_)}):_}).then(function(_){var N=i.getTypeOf(_);return N?(N==="arraybuffer"?_=i.transformTo("uint8array",_):N==="string"&&(b?_=l.decode(_):d&&Q!==!0&&(_=(function(B){return y(B,s.uint8array?new Uint8Array(B.length):new Array(B.length))})(_))),_):c.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,o,i){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./signature"),c=r("./zipEntry"),m=r("./support");function y(h){this.files=[],this.loadOptions=h}y.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var v=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(v)+", expected "+l.pretty(h)+")")}},isSignature:function(h,v){var g=this.reader.index;this.reader.setIndex(h);var k=this.reader.readString(4)===v;return this.reader.setIndex(g),k},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),v=m.uint8array?"uint8array":"array",g=l.transformTo(v,h);this.zipComment=this.loadOptions.decodeFileName(g)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,v,g,k=this.zip64EndOfCentralSize-44;0<k;)h=this.reader.readInt(2),v=this.reader.readInt(4),g=this.reader.readData(v),this.zip64ExtensibleData[h]={id:h,length:v,value:g}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,v;for(h=0;h<this.files.length;h++)v=this.files[h],this.reader.setIndex(v.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),v.readLocalPart(this.reader),v.handleUTF8(),v.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var v=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var g=this.centralDirOffset+this.centralDirSize;this.zip64&&(g+=20,g+=12+this.zip64EndOfCentralSize);var k=v-g;if(0<k)this.isSignature(v,a.CENTRAL_FILE_HEADER)||(this.reader.zero=k);else if(k<0)throw new Error("Corrupted zip: missing "+Math.abs(k)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,o,i){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./compressedObject"),c=r("./crc32"),m=r("./utf8"),y=r("./compressions"),h=r("./support");function v(g,k){this.options=g,this.loadOptions=k}v.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(g){var k,u;if(g.skip(22),this.fileNameLength=g.readInt(2),u=g.readInt(2),this.fileName=g.readData(this.fileNameLength),g.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((k=(function(w){for(var d in y)if(Object.prototype.hasOwnProperty.call(y,d)&&y[d].magic===w)return y[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,k,g.readData(this.compressedSize))},readCentralPart:function(g){this.versionMadeBy=g.readInt(2),g.skip(2),this.bitFlag=g.readInt(2),this.compressionMethod=g.readString(2),this.date=g.readDate(),this.crc32=g.readInt(4),this.compressedSize=g.readInt(4),this.uncompressedSize=g.readInt(4);var k=g.readInt(2);if(this.extraFieldsLength=g.readInt(2),this.fileCommentLength=g.readInt(2),this.diskNumberStart=g.readInt(2),this.internalFileAttributes=g.readInt(2),this.externalFileAttributes=g.readInt(4),this.localHeaderOffset=g.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");g.skip(k),this.readExtraFields(g),this.parseZIP64ExtraField(g),this.fileComment=g.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var g=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),g==0&&(this.dosPermissions=63&this.externalFileAttributes),g==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var g=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=g.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=g.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=g.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=g.readInt(4))}},readExtraFields:function(g){var k,u,w,d=g.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});g.index+4<d;)k=g.readInt(2),u=g.readInt(2),w=g.readData(u),this.extraFields[k]={id:k,length:u,value:w};g.setIndex(d)},handleUTF8:function(){var g=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=m.utf8decode(this.fileName),this.fileCommentStr=m.utf8decode(this.fileComment);else{var k=this.findExtraFieldUnicodePath();if(k!==null)this.fileNameStr=k;else{var u=l.transformTo(g,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var d=l.transformTo(g,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var g=this.extraFields[28789];if(g){var k=s(g.value);return k.readInt(1)!==1||c(this.fileName)!==k.readInt(4)?null:m.utf8decode(k.readData(g.length-5))}return null},findExtraFieldUnicodeComment:function(){var g=this.extraFields[25461];if(g){var k=s(g.value);return k.readInt(1)!==1||c(this.fileComment)!==k.readInt(4)?null:m.utf8decode(k.readData(g.length-5))}return null}},o.exports=v},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,o,i){function s(k,u,w){this.name=k,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=u,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var l=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),c=r("./utf8"),m=r("./compressedObject"),y=r("./stream/GenericWorker");s.prototype={internalStream:function(k){var u=null,w="string";try{if(!k)throw new Error("No output type specified.");var d=(w=k.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),u=this._decompressWorker();var Q=!this._dataBinary;Q&&!d&&(u=u.pipe(new c.Utf8EncodeWorker)),!Q&&d&&(u=u.pipe(new c.Utf8DecodeWorker))}catch(b){(u=new y("error")).error(b)}return new l(u,w,"")},async:function(k,u){return this.internalStream(k).accumulate(u)},nodeStream:function(k,u){return this.internalStream(k||"nodebuffer").toNodejsStream(u)},_compressWorker:function(k,u){if(this._data instanceof m&&this._data.compression.magic===k.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new c.Utf8EncodeWorker)),m.createWorkerFrom(w,k,u)},_decompressWorker:function(){return this._data instanceof m?this._data.getContentWorker():this._data instanceof y?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],v=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},g=0;g<h.length;g++)s.prototype[h[g]]=v;o.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,o,i){(function(s){var l,a,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var m=0,y=new c(k),h=s.document.createTextNode("");y.observe(h,{characterData:!0}),l=function(){h.data=m=++m%2}}else if(s.setImmediate||s.MessageChannel===void 0)l="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var u=s.document.createElement("script");u.onreadystatechange=function(){k(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},s.document.documentElement.appendChild(u)}:function(){setTimeout(k,0)};else{var v=new s.MessageChannel;v.port1.onmessage=k,l=function(){v.port2.postMessage(0)}}var g=[];function k(){var u,w;a=!0;for(var d=g.length;d;){for(w=g,g=[],u=-1;++u<d;)w[u]();d=g.length}a=!1}o.exports=function(u){g.push(u)!==1||a||l()}}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,o,i){var s=r("immediate");function l(){}var a={},c=["REJECTED"],m=["FULFILLED"],y=["PENDING"];function h(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,d!==l&&u(this,d)}function v(d,Q,b){this.promise=d,typeof Q=="function"&&(this.onFulfilled=Q,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function g(d,Q,b){s(function(){var _;try{_=Q(b)}catch(N){return a.reject(d,N)}_===d?a.reject(d,new TypeError("Cannot resolve promise with itself")):a.resolve(d,_)})}function k(d){var Q=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof Q=="function")return function(){Q.apply(d,arguments)}}function u(d,Q){var b=!1;function _(E){b||(b=!0,a.reject(d,E))}function N(E){b||(b=!0,a.resolve(d,E))}var B=w(function(){Q(N,_)});B.status==="error"&&_(B.value)}function w(d,Q){var b={};try{b.value=d(Q),b.status="success"}catch(_){b.status="error",b.value=_}return b}(o.exports=h).prototype.finally=function(d){if(typeof d!="function")return this;var Q=this.constructor;return this.then(function(b){return Q.resolve(d()).then(function(){return b})},function(b){return Q.resolve(d()).then(function(){throw b})})},h.prototype.catch=function(d){return this.then(null,d)},h.prototype.then=function(d,Q){if(typeof d!="function"&&this.state===m||typeof Q!="function"&&this.state===c)return this;var b=new this.constructor(l);return this.state!==y?g(b,this.state===m?d:Q,this.outcome):this.queue.push(new v(b,d,Q)),b},v.prototype.callFulfilled=function(d){a.resolve(this.promise,d)},v.prototype.otherCallFulfilled=function(d){g(this.promise,this.onFulfilled,d)},v.prototype.callRejected=function(d){a.reject(this.promise,d)},v.prototype.otherCallRejected=function(d){g(this.promise,this.onRejected,d)},a.resolve=function(d,Q){var b=w(k,Q);if(b.status==="error")return a.reject(d,b.value);var _=b.value;if(_)u(d,_);else{d.state=m,d.outcome=Q;for(var N=-1,B=d.queue.length;++N<B;)d.queue[N].callFulfilled(Q)}return d},a.reject=function(d,Q){d.state=c,d.outcome=Q;for(var b=-1,_=d.queue.length;++b<_;)d.queue[b].callRejected(Q);return d},h.resolve=function(d){return d instanceof this?d:a.resolve(new this(l),d)},h.reject=function(d){var Q=new this(l);return a.reject(Q,d)},h.all=function(d){var Q=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=d.length,_=!1;if(!b)return this.resolve([]);for(var N=new Array(b),B=0,E=-1,R=new this(l);++E<b;)D(d[E],E);return R;function D(x,$){Q.resolve(x).then(function(C){N[$]=C,++B!==b||_||(_=!0,a.resolve(R,N))},function(C){_||(_=!0,a.reject(R,C))})}},h.race=function(d){var Q=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=d.length,_=!1;if(!b)return this.resolve([]);for(var N=-1,B=new this(l);++N<b;)E=d[N],Q.resolve(E).then(function(R){_||(_=!0,a.resolve(B,R))},function(R){_||(_=!0,a.reject(B,R))});var E;return B}},{immediate:36}],38:[function(r,o,i){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),o.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,o,i){var s=r("./zlib/deflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/messages"),m=r("./zlib/zstream"),y=Object.prototype.toString,h=0,v=-1,g=0,k=8;function u(d){if(!(this instanceof u))return new u(d);this.options=l.assign({level:v,method:k,chunkSize:16384,windowBits:15,memLevel:8,strategy:g,to:""},d||{});var Q=this.options;Q.raw&&0<Q.windowBits?Q.windowBits=-Q.windowBits:Q.gzip&&0<Q.windowBits&&Q.windowBits<16&&(Q.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var b=s.deflateInit2(this.strm,Q.level,Q.method,Q.windowBits,Q.memLevel,Q.strategy);if(b!==h)throw new Error(c[b]);if(Q.header&&s.deflateSetHeader(this.strm,Q.header),Q.dictionary){var _;if(_=typeof Q.dictionary=="string"?a.string2buf(Q.dictionary):y.call(Q.dictionary)==="[object ArrayBuffer]"?new Uint8Array(Q.dictionary):Q.dictionary,(b=s.deflateSetDictionary(this.strm,_))!==h)throw new Error(c[b]);this._dict_set=!0}}function w(d,Q){var b=new u(Q);if(b.push(d,!0),b.err)throw b.msg||c[b.err];return b.result}u.prototype.push=function(d,Q){var b,_,N=this.strm,B=this.options.chunkSize;if(this.ended)return!1;_=Q===~~Q?Q:Q===!0?4:0,typeof d=="string"?N.input=a.string2buf(d):y.call(d)==="[object ArrayBuffer]"?N.input=new Uint8Array(d):N.input=d,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new l.Buf8(B),N.next_out=0,N.avail_out=B),(b=s.deflate(N,_))!==1&&b!==h)return this.onEnd(b),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||_!==4&&_!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(l.shrinkBuf(N.output,N.next_out))):this.onData(l.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&b!==1);return _===4?(b=s.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===h):_!==2||(this.onEnd(h),!(N.avail_out=0))},u.prototype.onData=function(d){this.chunks.push(d)},u.prototype.onEnd=function(d){d===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},i.Deflate=u,i.deflate=w,i.deflateRaw=function(d,Q){return(Q=Q||{}).raw=!0,w(d,Q)},i.gzip=function(d,Q){return(Q=Q||{}).gzip=!0,w(d,Q)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,o,i){var s=r("./zlib/inflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/constants"),m=r("./zlib/messages"),y=r("./zlib/zstream"),h=r("./zlib/gzheader"),v=Object.prototype.toString;function g(u){if(!(this instanceof g))return new g(u);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},u||{});var w=this.options;w.raw&&0<=w.windowBits&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),!(0<=w.windowBits&&w.windowBits<16)||u&&u.windowBits||(w.windowBits+=32),15<w.windowBits&&w.windowBits<48&&(15&w.windowBits)==0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var d=s.inflateInit2(this.strm,w.windowBits);if(d!==c.Z_OK)throw new Error(m[d]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function k(u,w){var d=new g(w);if(d.push(u,!0),d.err)throw d.msg||m[d.err];return d.result}g.prototype.push=function(u,w){var d,Q,b,_,N,B,E=this.strm,R=this.options.chunkSize,D=this.options.dictionary,x=!1;if(this.ended)return!1;Q=w===~~w?w:w===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof u=="string"?E.input=a.binstring2buf(u):v.call(u)==="[object ArrayBuffer]"?E.input=new Uint8Array(u):E.input=u,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new l.Buf8(R),E.next_out=0,E.avail_out=R),(d=s.inflate(E,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&D&&(B=typeof D=="string"?a.string2buf(D):v.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,d=s.inflateSetDictionary(this.strm,B)),d===c.Z_BUF_ERROR&&x===!0&&(d=c.Z_OK,x=!1),d!==c.Z_STREAM_END&&d!==c.Z_OK)return this.onEnd(d),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&d!==c.Z_STREAM_END&&(E.avail_in!==0||Q!==c.Z_FINISH&&Q!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=a.utf8border(E.output,E.next_out),_=E.next_out-b,N=a.buf2string(E.output,b),E.next_out=_,E.avail_out=R-_,_&&l.arraySet(E.output,E.output,b,_,0),this.onData(N)):this.onData(l.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(x=!0)}while((0<E.avail_in||E.avail_out===0)&&d!==c.Z_STREAM_END);return d===c.Z_STREAM_END&&(Q=c.Z_FINISH),Q===c.Z_FINISH?(d=s.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===c.Z_OK):Q!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(E.avail_out=0))},g.prototype.onData=function(u){this.chunks.push(u)},g.prototype.onEnd=function(u){u===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},i.Inflate=g,i.inflate=k,i.inflateRaw=function(u,w){return(w=w||{}).raw=!0,k(u,w)},i.ungzip=k},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,o,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(c){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var y=m.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var h in y)y.hasOwnProperty(h)&&(c[h]=y[h])}}return c},i.shrinkBuf=function(c,m){return c.length===m?c:c.subarray?c.subarray(0,m):(c.length=m,c)};var l={arraySet:function(c,m,y,h,v){if(m.subarray&&c.subarray)c.set(m.subarray(y,y+h),v);else for(var g=0;g<h;g++)c[v+g]=m[y+g]},flattenChunks:function(c){var m,y,h,v,g,k;for(m=h=0,y=c.length;m<y;m++)h+=c[m].length;for(k=new Uint8Array(h),m=v=0,y=c.length;m<y;m++)g=c[m],k.set(g,v),v+=g.length;return k}},a={arraySet:function(c,m,y,h,v){for(var g=0;g<h;g++)c[v+g]=m[y+g]},flattenChunks:function(c){return[].concat.apply([],c)}};i.setTyped=function(c){c?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,l)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(r,o,i){var s=r("./common"),l=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var c=new s.Buf8(256),m=0;m<256;m++)c[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;function y(h,v){if(v<65537&&(h.subarray&&a||!h.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(h,v));for(var g="",k=0;k<v;k++)g+=String.fromCharCode(h[k]);return g}c[254]=c[254]=1,i.string2buf=function(h){var v,g,k,u,w,d=h.length,Q=0;for(u=0;u<d;u++)(64512&(g=h.charCodeAt(u)))==55296&&u+1<d&&(64512&(k=h.charCodeAt(u+1)))==56320&&(g=65536+(g-55296<<10)+(k-56320),u++),Q+=g<128?1:g<2048?2:g<65536?3:4;for(v=new s.Buf8(Q),u=w=0;w<Q;u++)(64512&(g=h.charCodeAt(u)))==55296&&u+1<d&&(64512&(k=h.charCodeAt(u+1)))==56320&&(g=65536+(g-55296<<10)+(k-56320),u++),g<128?v[w++]=g:(g<2048?v[w++]=192|g>>>6:(g<65536?v[w++]=224|g>>>12:(v[w++]=240|g>>>18,v[w++]=128|g>>>12&63),v[w++]=128|g>>>6&63),v[w++]=128|63&g);return v},i.buf2binstring=function(h){return y(h,h.length)},i.binstring2buf=function(h){for(var v=new s.Buf8(h.length),g=0,k=v.length;g<k;g++)v[g]=h.charCodeAt(g);return v},i.buf2string=function(h,v){var g,k,u,w,d=v||h.length,Q=new Array(2*d);for(g=k=0;g<d;)if((u=h[g++])<128)Q[k++]=u;else if(4<(w=c[u]))Q[k++]=65533,g+=w-1;else{for(u&=w===2?31:w===3?15:7;1<w&&g<d;)u=u<<6|63&h[g++],w--;1<w?Q[k++]=65533:u<65536?Q[k++]=u:(u-=65536,Q[k++]=55296|u>>10&1023,Q[k++]=56320|1023&u)}return y(Q,k)},i.utf8border=function(h,v){var g;for((v=v||h.length)>h.length&&(v=h.length),g=v-1;0<=g&&(192&h[g])==128;)g--;return g<0||g===0?v:g+c[h[g]]>v?g:v}},{"./common":41}],43:[function(r,o,i){o.exports=function(s,l,a,c){for(var m=65535&s|0,y=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;y=y+(m=m+l[c++]|0)|0,--h;);m%=65521,y%=65521}return m|y<<16|0}},{}],44:[function(r,o,i){o.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,o,i){var s=(function(){for(var l,a=[],c=0;c<256;c++){l=c;for(var m=0;m<8;m++)l=1&l?3988292384^l>>>1:l>>>1;a[c]=l}return a})();o.exports=function(l,a,c,m){var y=s,h=m+c;l^=-1;for(var v=m;v<h;v++)l=l>>>8^y[255&(l^a[v])];return-1^l}},{}],46:[function(r,o,i){var s,l=r("../utils/common"),a=r("./trees"),c=r("./adler32"),m=r("./crc32"),y=r("./messages"),h=0,v=4,g=0,k=-2,u=-1,w=4,d=2,Q=8,b=9,_=286,N=30,B=19,E=2*_+1,R=15,D=3,x=258,$=x+D+1,C=42,I=113,p=1,P=2,K=3,Z=4;function le(f,U){return f.msg=y[U],U}function Y(f){return(f<<1)-(4<f?9:0)}function re(f){for(var U=f.length;0<=--U;)f[U]=0}function O(f){var U=f.state,F=U.pending;F>f.avail_out&&(F=f.avail_out),F!==0&&(l.arraySet(f.output,U.pending_buf,U.pending_out,F,f.next_out),f.next_out+=F,U.pending_out+=F,f.total_out+=F,f.avail_out-=F,U.pending-=F,U.pending===0&&(U.pending_out=0))}function j(f,U){a._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,U),f.block_start=f.strstart,O(f.strm)}function oe(f,U){f.pending_buf[f.pending++]=U}function L(f,U){f.pending_buf[f.pending++]=U>>>8&255,f.pending_buf[f.pending++]=255&U}function S(f,U){var F,A,M=f.max_chain_length,T=f.strstart,W=f.prev_length,G=f.nice_match,z=f.strstart>f.w_size-$?f.strstart-(f.w_size-$):0,J=f.window,ee=f.w_mask,X=f.prev,ae=f.strstart+x,he=J[T+W-1],se=J[T+W];f.prev_length>=f.good_match&&(M>>=2),G>f.lookahead&&(G=f.lookahead);do if(J[(F=U)+W]===se&&J[F+W-1]===he&&J[F]===J[T]&&J[++F]===J[T+1]){T+=2,F++;do;while(J[++T]===J[++F]&&J[++T]===J[++F]&&J[++T]===J[++F]&&J[++T]===J[++F]&&J[++T]===J[++F]&&J[++T]===J[++F]&&J[++T]===J[++F]&&J[++T]===J[++F]&&T<ae);if(A=x-(ae-T),T=ae-x,W<A){if(f.match_start=U,G<=(W=A))break;he=J[T+W-1],se=J[T+W]}}while((U=X[U&ee])>z&&--M!=0);return W<=f.lookahead?W:f.lookahead}function H(f){var U,F,A,M,T,W,G,z,J,ee,X=f.w_size;do{if(M=f.window_size-f.lookahead-f.strstart,f.strstart>=X+(X-$)){for(l.arraySet(f.window,f.window,X,X,0),f.match_start-=X,f.strstart-=X,f.block_start-=X,U=F=f.hash_size;A=f.head[--U],f.head[U]=X<=A?A-X:0,--F;);for(U=F=X;A=f.prev[--U],f.prev[U]=X<=A?A-X:0,--F;);M+=X}if(f.strm.avail_in===0)break;if(W=f.strm,G=f.window,z=f.strstart+f.lookahead,J=M,ee=void 0,ee=W.avail_in,J<ee&&(ee=J),F=ee===0?0:(W.avail_in-=ee,l.arraySet(G,W.input,W.next_in,ee,z),W.state.wrap===1?W.adler=c(W.adler,G,ee,z):W.state.wrap===2&&(W.adler=m(W.adler,G,ee,z)),W.next_in+=ee,W.total_in+=ee,ee),f.lookahead+=F,f.lookahead+f.insert>=D)for(T=f.strstart-f.insert,f.ins_h=f.window[T],f.ins_h=(f.ins_h<<f.hash_shift^f.window[T+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[T+D-1])&f.hash_mask,f.prev[T&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=T,T++,f.insert--,!(f.lookahead+f.insert<D)););}while(f.lookahead<$&&f.strm.avail_in!==0)}function ne(f,U){for(var F,A;;){if(f.lookahead<$){if(H(f),f.lookahead<$&&U===h)return p;if(f.lookahead===0)break}if(F=0,f.lookahead>=D&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,F=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),F!==0&&f.strstart-F<=f.w_size-$&&(f.match_length=S(f,F)),f.match_length>=D)if(A=a._tr_tally(f,f.strstart-f.match_start,f.match_length-D),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=D){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,F=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else A=a._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(A&&(j(f,!1),f.strm.avail_out===0))return p}return f.insert=f.strstart<D-1?f.strstart:D-1,U===v?(j(f,!0),f.strm.avail_out===0?K:Z):f.last_lit&&(j(f,!1),f.strm.avail_out===0)?p:P}function ie(f,U){for(var F,A,M;;){if(f.lookahead<$){if(H(f),f.lookahead<$&&U===h)return p;if(f.lookahead===0)break}if(F=0,f.lookahead>=D&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,F=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=D-1,F!==0&&f.prev_length<f.max_lazy_match&&f.strstart-F<=f.w_size-$&&(f.match_length=S(f,F),f.match_length<=5&&(f.strategy===1||f.match_length===D&&4096<f.strstart-f.match_start)&&(f.match_length=D-1)),f.prev_length>=D&&f.match_length<=f.prev_length){for(M=f.strstart+f.lookahead-D,A=a._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-D),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=M&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,F=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=D-1,f.strstart++,A&&(j(f,!1),f.strm.avail_out===0))return p}else if(f.match_available){if((A=a._tr_tally(f,0,f.window[f.strstart-1]))&&j(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return p}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(A=a._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<D-1?f.strstart:D-1,U===v?(j(f,!0),f.strm.avail_out===0?K:Z):f.last_lit&&(j(f,!1),f.strm.avail_out===0)?p:P}function V(f,U,F,A,M){this.good_length=f,this.max_lazy=U,this.nice_length=F,this.max_chain=A,this.func=M}function q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Q,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*E),this.dyn_dtree=new l.Buf16(2*(2*N+1)),this.bl_tree=new l.Buf16(2*(2*B+1)),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(R+1),this.heap=new l.Buf16(2*_+1),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*_+1),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function te(f){var U;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=d,(U=f.state).pending=0,U.pending_out=0,U.wrap<0&&(U.wrap=-U.wrap),U.status=U.wrap?C:I,f.adler=U.wrap===2?0:1,U.last_flush=h,a._tr_init(U),g):le(f,k)}function ue(f){var U=te(f);return U===g&&(function(F){F.window_size=2*F.w_size,re(F.head),F.max_lazy_match=s[F.level].max_lazy,F.good_match=s[F.level].good_length,F.nice_match=s[F.level].nice_length,F.max_chain_length=s[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=D-1,F.match_available=0,F.ins_h=0})(f.state),U}function pe(f,U,F,A,M,T){if(!f)return k;var W=1;if(U===u&&(U=6),A<0?(W=0,A=-A):15<A&&(W=2,A-=16),M<1||b<M||F!==Q||A<8||15<A||U<0||9<U||T<0||w<T)return le(f,k);A===8&&(A=9);var G=new q;return(f.state=G).strm=f,G.wrap=W,G.gzhead=null,G.w_bits=A,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=M+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+D-1)/D),G.window=new l.Buf8(2*G.w_size),G.head=new l.Buf16(G.hash_size),G.prev=new l.Buf16(G.w_size),G.lit_bufsize=1<<M+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new l.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=U,G.strategy=T,G.method=F,ue(f)}s=[new V(0,0,0,0,function(f,U){var F=65535;for(F>f.pending_buf_size-5&&(F=f.pending_buf_size-5);;){if(f.lookahead<=1){if(H(f),f.lookahead===0&&U===h)return p;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var A=f.block_start+F;if((f.strstart===0||f.strstart>=A)&&(f.lookahead=f.strstart-A,f.strstart=A,j(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-$&&(j(f,!1),f.strm.avail_out===0))return p}return f.insert=0,U===v?(j(f,!0),f.strm.avail_out===0?K:Z):(f.strstart>f.block_start&&(j(f,!1),f.strm.avail_out),p)}),new V(4,4,8,4,ne),new V(4,5,16,8,ne),new V(4,6,32,32,ne),new V(4,4,16,16,ie),new V(8,16,32,32,ie),new V(8,16,128,128,ie),new V(8,32,128,256,ie),new V(32,128,258,1024,ie),new V(32,258,258,4096,ie)],i.deflateInit=function(f,U){return pe(f,U,Q,15,8,0)},i.deflateInit2=pe,i.deflateReset=ue,i.deflateResetKeep=te,i.deflateSetHeader=function(f,U){return f&&f.state?f.state.wrap!==2?k:(f.state.gzhead=U,g):k},i.deflate=function(f,U){var F,A,M,T;if(!f||!f.state||5<U||U<0)return f?le(f,k):k;if(A=f.state,!f.output||!f.input&&f.avail_in!==0||A.status===666&&U!==v)return le(f,f.avail_out===0?-5:k);if(A.strm=f,F=A.last_flush,A.last_flush=U,A.status===C)if(A.wrap===2)f.adler=0,oe(A,31),oe(A,139),oe(A,8),A.gzhead?(oe(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),oe(A,255&A.gzhead.time),oe(A,A.gzhead.time>>8&255),oe(A,A.gzhead.time>>16&255),oe(A,A.gzhead.time>>24&255),oe(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),oe(A,255&A.gzhead.os),A.gzhead.extra&&A.gzhead.extra.length&&(oe(A,255&A.gzhead.extra.length),oe(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(f.adler=m(f.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=69):(oe(A,0),oe(A,0),oe(A,0),oe(A,0),oe(A,0),oe(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),oe(A,3),A.status=I);else{var W=Q+(A.w_bits-8<<4)<<8;W|=(2<=A.strategy||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6,A.strstart!==0&&(W|=32),W+=31-W%31,A.status=I,L(A,W),A.strstart!==0&&(L(A,f.adler>>>16),L(A,65535&f.adler)),f.adler=1}if(A.status===69)if(A.gzhead.extra){for(M=A.pending;A.gzindex<(65535&A.gzhead.extra.length)&&(A.pending!==A.pending_buf_size||(A.gzhead.hcrc&&A.pending>M&&(f.adler=m(f.adler,A.pending_buf,A.pending-M,M)),O(f),M=A.pending,A.pending!==A.pending_buf_size));)oe(A,255&A.gzhead.extra[A.gzindex]),A.gzindex++;A.gzhead.hcrc&&A.pending>M&&(f.adler=m(f.adler,A.pending_buf,A.pending-M,M)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=73)}else A.status=73;if(A.status===73)if(A.gzhead.name){M=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>M&&(f.adler=m(f.adler,A.pending_buf,A.pending-M,M)),O(f),M=A.pending,A.pending===A.pending_buf_size)){T=1;break}T=A.gzindex<A.gzhead.name.length?255&A.gzhead.name.charCodeAt(A.gzindex++):0,oe(A,T)}while(T!==0);A.gzhead.hcrc&&A.pending>M&&(f.adler=m(f.adler,A.pending_buf,A.pending-M,M)),T===0&&(A.gzindex=0,A.status=91)}else A.status=91;if(A.status===91)if(A.gzhead.comment){M=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>M&&(f.adler=m(f.adler,A.pending_buf,A.pending-M,M)),O(f),M=A.pending,A.pending===A.pending_buf_size)){T=1;break}T=A.gzindex<A.gzhead.comment.length?255&A.gzhead.comment.charCodeAt(A.gzindex++):0,oe(A,T)}while(T!==0);A.gzhead.hcrc&&A.pending>M&&(f.adler=m(f.adler,A.pending_buf,A.pending-M,M)),T===0&&(A.status=103)}else A.status=103;if(A.status===103&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&O(f),A.pending+2<=A.pending_buf_size&&(oe(A,255&f.adler),oe(A,f.adler>>8&255),f.adler=0,A.status=I)):A.status=I),A.pending!==0){if(O(f),f.avail_out===0)return A.last_flush=-1,g}else if(f.avail_in===0&&Y(U)<=Y(F)&&U!==v)return le(f,-5);if(A.status===666&&f.avail_in!==0)return le(f,-5);if(f.avail_in!==0||A.lookahead!==0||U!==h&&A.status!==666){var G=A.strategy===2?(function(z,J){for(var ee;;){if(z.lookahead===0&&(H(z),z.lookahead===0)){if(J===h)return p;break}if(z.match_length=0,ee=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ee&&(j(z,!1),z.strm.avail_out===0))return p}return z.insert=0,J===v?(j(z,!0),z.strm.avail_out===0?K:Z):z.last_lit&&(j(z,!1),z.strm.avail_out===0)?p:P})(A,U):A.strategy===3?(function(z,J){for(var ee,X,ae,he,se=z.window;;){if(z.lookahead<=x){if(H(z),z.lookahead<=x&&J===h)return p;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=D&&0<z.strstart&&(X=se[ae=z.strstart-1])===se[++ae]&&X===se[++ae]&&X===se[++ae]){he=z.strstart+x;do;while(X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&ae<he);z.match_length=x-(he-ae),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=D?(ee=a._tr_tally(z,1,z.match_length-D),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ee=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ee&&(j(z,!1),z.strm.avail_out===0))return p}return z.insert=0,J===v?(j(z,!0),z.strm.avail_out===0?K:Z):z.last_lit&&(j(z,!1),z.strm.avail_out===0)?p:P})(A,U):s[A.level].func(A,U);if(G!==K&&G!==Z||(A.status=666),G===p||G===K)return f.avail_out===0&&(A.last_flush=-1),g;if(G===P&&(U===1?a._tr_align(A):U!==5&&(a._tr_stored_block(A,0,0,!1),U===3&&(re(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),O(f),f.avail_out===0))return A.last_flush=-1,g}return U!==v?g:A.wrap<=0?1:(A.wrap===2?(oe(A,255&f.adler),oe(A,f.adler>>8&255),oe(A,f.adler>>16&255),oe(A,f.adler>>24&255),oe(A,255&f.total_in),oe(A,f.total_in>>8&255),oe(A,f.total_in>>16&255),oe(A,f.total_in>>24&255)):(L(A,f.adler>>>16),L(A,65535&f.adler)),O(f),0<A.wrap&&(A.wrap=-A.wrap),A.pending!==0?g:1)},i.deflateEnd=function(f){var U;return f&&f.state?(U=f.state.status)!==C&&U!==69&&U!==73&&U!==91&&U!==103&&U!==I&&U!==666?le(f,k):(f.state=null,U===I?le(f,-3):g):k},i.deflateSetDictionary=function(f,U){var F,A,M,T,W,G,z,J,ee=U.length;if(!f||!f.state||(T=(F=f.state).wrap)===2||T===1&&F.status!==C||F.lookahead)return k;for(T===1&&(f.adler=c(f.adler,U,ee,0)),F.wrap=0,ee>=F.w_size&&(T===0&&(re(F.head),F.strstart=0,F.block_start=0,F.insert=0),J=new l.Buf8(F.w_size),l.arraySet(J,U,ee-F.w_size,F.w_size,0),U=J,ee=F.w_size),W=f.avail_in,G=f.next_in,z=f.input,f.avail_in=ee,f.next_in=0,f.input=U,H(F);F.lookahead>=D;){for(A=F.strstart,M=F.lookahead-(D-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[A+D-1])&F.hash_mask,F.prev[A&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=A,A++,--M;);F.strstart=A,F.lookahead=D-1,H(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=D-1,F.match_available=0,f.next_in=G,f.input=z,f.avail_in=W,F.wrap=T,g},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,o,i){o.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,o,i){o.exports=function(s,l){var a,c,m,y,h,v,g,k,u,w,d,Q,b,_,N,B,E,R,D,x,$,C,I,p,P;a=s.state,c=s.next_in,p=s.input,m=c+(s.avail_in-5),y=s.next_out,P=s.output,h=y-(l-s.avail_out),v=y+(s.avail_out-257),g=a.dmax,k=a.wsize,u=a.whave,w=a.wnext,d=a.window,Q=a.hold,b=a.bits,_=a.lencode,N=a.distcode,B=(1<<a.lenbits)-1,E=(1<<a.distbits)-1;e:do{b<15&&(Q+=p[c++]<<b,b+=8,Q+=p[c++]<<b,b+=8),R=_[Q&B];t:for(;;){if(Q>>>=D=R>>>24,b-=D,(D=R>>>16&255)===0)P[y++]=65535&R;else{if(!(16&D)){if((64&D)==0){R=_[(65535&R)+(Q&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}x=65535&R,(D&=15)&&(b<D&&(Q+=p[c++]<<b,b+=8),x+=Q&(1<<D)-1,Q>>>=D,b-=D),b<15&&(Q+=p[c++]<<b,b+=8,Q+=p[c++]<<b,b+=8),R=N[Q&E];n:for(;;){if(Q>>>=D=R>>>24,b-=D,!(16&(D=R>>>16&255))){if((64&D)==0){R=N[(65535&R)+(Q&(1<<D)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if($=65535&R,b<(D&=15)&&(Q+=p[c++]<<b,(b+=8)<D&&(Q+=p[c++]<<b,b+=8)),g<($+=Q&(1<<D)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(Q>>>=D,b-=D,(D=y-h)<$){if(u<(D=$-D)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(I=d,(C=0)===w){if(C+=k-D,D<x){for(x-=D;P[y++]=d[C++],--D;);C=y-$,I=P}}else if(w<D){if(C+=k+w-D,(D-=w)<x){for(x-=D;P[y++]=d[C++],--D;);if(C=0,w<x){for(x-=D=w;P[y++]=d[C++],--D;);C=y-$,I=P}}}else if(C+=w-D,D<x){for(x-=D;P[y++]=d[C++],--D;);C=y-$,I=P}for(;2<x;)P[y++]=I[C++],P[y++]=I[C++],P[y++]=I[C++],x-=3;x&&(P[y++]=I[C++],1<x&&(P[y++]=I[C++]))}else{for(C=y-$;P[y++]=P[C++],P[y++]=P[C++],P[y++]=P[C++],2<(x-=3););x&&(P[y++]=P[C++],1<x&&(P[y++]=P[C++]))}break}}break}}while(c<m&&y<v);c-=x=b>>3,Q&=(1<<(b-=x<<3))-1,s.next_in=c,s.next_out=y,s.avail_in=c<m?m-c+5:5-(c-m),s.avail_out=y<v?v-y+257:257-(y-v),a.hold=Q,a.bits=b}},{}],49:[function(r,o,i){var s=r("../utils/common"),l=r("./adler32"),a=r("./crc32"),c=r("./inffast"),m=r("./inftrees"),y=1,h=2,v=0,g=-2,k=1,u=852,w=592;function d(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function Q(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(C){var I;return C&&C.state?(I=C.state,C.total_in=C.total_out=I.total=0,C.msg="",I.wrap&&(C.adler=1&I.wrap),I.mode=k,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new s.Buf32(u),I.distcode=I.distdyn=new s.Buf32(w),I.sane=1,I.back=-1,v):g}function _(C){var I;return C&&C.state?((I=C.state).wsize=0,I.whave=0,I.wnext=0,b(C)):g}function N(C,I){var p,P;return C&&C.state?(P=C.state,I<0?(p=0,I=-I):(p=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?g:(P.window!==null&&P.wbits!==I&&(P.window=null),P.wrap=p,P.wbits=I,_(C))):g}function B(C,I){var p,P;return C?(P=new Q,(C.state=P).window=null,(p=N(C,I))!==v&&(C.state=null),p):g}var E,R,D=!0;function x(C){if(D){var I;for(E=new s.Buf32(512),R=new s.Buf32(32),I=0;I<144;)C.lens[I++]=8;for(;I<256;)C.lens[I++]=9;for(;I<280;)C.lens[I++]=7;for(;I<288;)C.lens[I++]=8;for(m(y,C.lens,0,288,E,0,C.work,{bits:9}),I=0;I<32;)C.lens[I++]=5;m(h,C.lens,0,32,R,0,C.work,{bits:5}),D=!1}C.lencode=E,C.lenbits=9,C.distcode=R,C.distbits=5}function $(C,I,p,P){var K,Z=C.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new s.Buf8(Z.wsize)),P>=Z.wsize?(s.arraySet(Z.window,I,p-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(P<(K=Z.wsize-Z.wnext)&&(K=P),s.arraySet(Z.window,I,p-P,K,Z.wnext),(P-=K)?(s.arraySet(Z.window,I,p-P,P,0),Z.wnext=P,Z.whave=Z.wsize):(Z.wnext+=K,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=K))),0}i.inflateReset=_,i.inflateReset2=N,i.inflateResetKeep=b,i.inflateInit=function(C){return B(C,15)},i.inflateInit2=B,i.inflate=function(C,I){var p,P,K,Z,le,Y,re,O,j,oe,L,S,H,ne,ie,V,q,te,ue,pe,f,U,F,A,M=0,T=new s.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return g;(p=C.state).mode===12&&(p.mode=13),le=C.next_out,K=C.output,re=C.avail_out,Z=C.next_in,P=C.input,Y=C.avail_in,O=p.hold,j=p.bits,oe=Y,L=re,U=v;e:for(;;)switch(p.mode){case k:if(p.wrap===0){p.mode=13;break}for(;j<16;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(2&p.wrap&&O===35615){T[p.check=0]=255&O,T[1]=O>>>8&255,p.check=a(p.check,T,2,0),j=O=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&O)<<8)+(O>>8))%31){C.msg="incorrect header check",p.mode=30;break}if((15&O)!=8){C.msg="unknown compression method",p.mode=30;break}if(j-=4,f=8+(15&(O>>>=4)),p.wbits===0)p.wbits=f;else if(f>p.wbits){C.msg="invalid window size",p.mode=30;break}p.dmax=1<<f,C.adler=p.check=1,p.mode=512&O?10:12,j=O=0;break;case 2:for(;j<16;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(p.flags=O,(255&p.flags)!=8){C.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){C.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=O>>8&1),512&p.flags&&(T[0]=255&O,T[1]=O>>>8&255,p.check=a(p.check,T,2,0)),j=O=0,p.mode=3;case 3:for(;j<32;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}p.head&&(p.head.time=O),512&p.flags&&(T[0]=255&O,T[1]=O>>>8&255,T[2]=O>>>16&255,T[3]=O>>>24&255,p.check=a(p.check,T,4,0)),j=O=0,p.mode=4;case 4:for(;j<16;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}p.head&&(p.head.xflags=255&O,p.head.os=O>>8),512&p.flags&&(T[0]=255&O,T[1]=O>>>8&255,p.check=a(p.check,T,2,0)),j=O=0,p.mode=5;case 5:if(1024&p.flags){for(;j<16;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}p.length=O,p.head&&(p.head.extra_len=O),512&p.flags&&(T[0]=255&O,T[1]=O>>>8&255,p.check=a(p.check,T,2,0)),j=O=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(Y<(S=p.length)&&(S=Y),S&&(p.head&&(f=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),s.arraySet(p.head.extra,P,Z,S,f)),512&p.flags&&(p.check=a(p.check,P,S,Z)),Y-=S,Z+=S,p.length-=S),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(Y===0)break e;for(S=0;f=P[Z+S++],p.head&&f&&p.length<65536&&(p.head.name+=String.fromCharCode(f)),f&&S<Y;);if(512&p.flags&&(p.check=a(p.check,P,S,Z)),Y-=S,Z+=S,f)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(Y===0)break e;for(S=0;f=P[Z+S++],p.head&&f&&p.length<65536&&(p.head.comment+=String.fromCharCode(f)),f&&S<Y;);if(512&p.flags&&(p.check=a(p.check,P,S,Z)),Y-=S,Z+=S,f)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;j<16;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(O!==(65535&p.check)){C.msg="header crc mismatch",p.mode=30;break}j=O=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),C.adler=p.check=0,p.mode=12;break;case 10:for(;j<32;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}C.adler=p.check=d(O),j=O=0,p.mode=11;case 11:if(p.havedict===0)return C.next_out=le,C.avail_out=re,C.next_in=Z,C.avail_in=Y,p.hold=O,p.bits=j,2;C.adler=p.check=1,p.mode=12;case 12:if(I===5||I===6)break e;case 13:if(p.last){O>>>=7&j,j-=7&j,p.mode=27;break}for(;j<3;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}switch(p.last=1&O,j-=1,3&(O>>>=1)){case 0:p.mode=14;break;case 1:if(x(p),p.mode=20,I!==6)break;O>>>=2,j-=2;break e;case 2:p.mode=17;break;case 3:C.msg="invalid block type",p.mode=30}O>>>=2,j-=2;break;case 14:for(O>>>=7&j,j-=7&j;j<32;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if((65535&O)!=(O>>>16^65535)){C.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&O,j=O=0,p.mode=15,I===6)break e;case 15:p.mode=16;case 16:if(S=p.length){if(Y<S&&(S=Y),re<S&&(S=re),S===0)break e;s.arraySet(K,P,Z,S,le),Y-=S,Z+=S,re-=S,le+=S,p.length-=S;break}p.mode=12;break;case 17:for(;j<14;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(p.nlen=257+(31&O),O>>>=5,j-=5,p.ndist=1+(31&O),O>>>=5,j-=5,p.ncode=4+(15&O),O>>>=4,j-=4,286<p.nlen||30<p.ndist){C.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;j<3;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}p.lens[W[p.have++]]=7&O,O>>>=3,j-=3}for(;p.have<19;)p.lens[W[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,F={bits:p.lenbits},U=m(0,p.lens,0,19,p.lencode,0,p.work,F),p.lenbits=F.bits,U){C.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;V=(M=p.lencode[O&(1<<p.lenbits)-1])>>>16&255,q=65535&M,!((ie=M>>>24)<=j);){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(q<16)O>>>=ie,j-=ie,p.lens[p.have++]=q;else{if(q===16){for(A=ie+2;j<A;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(O>>>=ie,j-=ie,p.have===0){C.msg="invalid bit length repeat",p.mode=30;break}f=p.lens[p.have-1],S=3+(3&O),O>>>=2,j-=2}else if(q===17){for(A=ie+3;j<A;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}j-=ie,f=0,S=3+(7&(O>>>=ie)),O>>>=3,j-=3}else{for(A=ie+7;j<A;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}j-=ie,f=0,S=11+(127&(O>>>=ie)),O>>>=7,j-=7}if(p.have+S>p.nlen+p.ndist){C.msg="invalid bit length repeat",p.mode=30;break}for(;S--;)p.lens[p.have++]=f}}if(p.mode===30)break;if(p.lens[256]===0){C.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,F={bits:p.lenbits},U=m(y,p.lens,0,p.nlen,p.lencode,0,p.work,F),p.lenbits=F.bits,U){C.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,F={bits:p.distbits},U=m(h,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,F),p.distbits=F.bits,U){C.msg="invalid distances set",p.mode=30;break}if(p.mode=20,I===6)break e;case 20:p.mode=21;case 21:if(6<=Y&&258<=re){C.next_out=le,C.avail_out=re,C.next_in=Z,C.avail_in=Y,p.hold=O,p.bits=j,c(C,L),le=C.next_out,K=C.output,re=C.avail_out,Z=C.next_in,P=C.input,Y=C.avail_in,O=p.hold,j=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;V=(M=p.lencode[O&(1<<p.lenbits)-1])>>>16&255,q=65535&M,!((ie=M>>>24)<=j);){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(V&&(240&V)==0){for(te=ie,ue=V,pe=q;V=(M=p.lencode[pe+((O&(1<<te+ue)-1)>>te)])>>>16&255,q=65535&M,!(te+(ie=M>>>24)<=j);){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}O>>>=te,j-=te,p.back+=te}if(O>>>=ie,j-=ie,p.back+=ie,p.length=q,V===0){p.mode=26;break}if(32&V){p.back=-1,p.mode=12;break}if(64&V){C.msg="invalid literal/length code",p.mode=30;break}p.extra=15&V,p.mode=22;case 22:if(p.extra){for(A=p.extra;j<A;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}p.length+=O&(1<<p.extra)-1,O>>>=p.extra,j-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;V=(M=p.distcode[O&(1<<p.distbits)-1])>>>16&255,q=65535&M,!((ie=M>>>24)<=j);){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if((240&V)==0){for(te=ie,ue=V,pe=q;V=(M=p.distcode[pe+((O&(1<<te+ue)-1)>>te)])>>>16&255,q=65535&M,!(te+(ie=M>>>24)<=j);){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}O>>>=te,j-=te,p.back+=te}if(O>>>=ie,j-=ie,p.back+=ie,64&V){C.msg="invalid distance code",p.mode=30;break}p.offset=q,p.extra=15&V,p.mode=24;case 24:if(p.extra){for(A=p.extra;j<A;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}p.offset+=O&(1<<p.extra)-1,O>>>=p.extra,j-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){C.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(re===0)break e;if(S=L-re,p.offset>S){if((S=p.offset-S)>p.whave&&p.sane){C.msg="invalid distance too far back",p.mode=30;break}H=S>p.wnext?(S-=p.wnext,p.wsize-S):p.wnext-S,S>p.length&&(S=p.length),ne=p.window}else ne=K,H=le-p.offset,S=p.length;for(re<S&&(S=re),re-=S,p.length-=S;K[le++]=ne[H++],--S;);p.length===0&&(p.mode=21);break;case 26:if(re===0)break e;K[le++]=p.length,re--,p.mode=21;break;case 27:if(p.wrap){for(;j<32;){if(Y===0)break e;Y--,O|=P[Z++]<<j,j+=8}if(L-=re,C.total_out+=L,p.total+=L,L&&(C.adler=p.check=p.flags?a(p.check,K,L,le-L):l(p.check,K,L,le-L)),L=re,(p.flags?O:d(O))!==p.check){C.msg="incorrect data check",p.mode=30;break}j=O=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;j<32;){if(Y===0)break e;Y--,O+=P[Z++]<<j,j+=8}if(O!==(4294967295&p.total)){C.msg="incorrect length check",p.mode=30;break}j=O=0}p.mode=29;case 29:U=1;break e;case 30:U=-3;break e;case 31:return-4;case 32:default:return g}return C.next_out=le,C.avail_out=re,C.next_in=Z,C.avail_in=Y,p.hold=O,p.bits=j,(p.wsize||L!==C.avail_out&&p.mode<30&&(p.mode<27||I!==4))&&$(C,C.output,C.next_out,L-C.avail_out)?(p.mode=31,-4):(oe-=C.avail_in,L-=C.avail_out,C.total_in+=oe,C.total_out+=L,p.total+=L,p.wrap&&L&&(C.adler=p.check=p.flags?a(p.check,K,L,C.next_out-L):l(p.check,K,L,C.next_out-L)),C.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(oe==0&&L===0||I===4)&&U===v&&(U=-5),U)},i.inflateEnd=function(C){if(!C||!C.state)return g;var I=C.state;return I.window&&(I.window=null),C.state=null,v},i.inflateGetHeader=function(C,I){var p;return C&&C.state?(2&(p=C.state).wrap)==0?g:((p.head=I).done=!1,v):g},i.inflateSetDictionary=function(C,I){var p,P=I.length;return C&&C.state?(p=C.state).wrap!==0&&p.mode!==11?g:p.mode===11&&l(1,I,P,0)!==p.check?-3:$(C,I,P,P)?(p.mode=31,-4):(p.havedict=1,v):g},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,o,i){var s=r("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];o.exports=function(y,h,v,g,k,u,w,d){var Q,b,_,N,B,E,R,D,x,$=d.bits,C=0,I=0,p=0,P=0,K=0,Z=0,le=0,Y=0,re=0,O=0,j=null,oe=0,L=new s.Buf16(16),S=new s.Buf16(16),H=null,ne=0;for(C=0;C<=15;C++)L[C]=0;for(I=0;I<g;I++)L[h[v+I]]++;for(K=$,P=15;1<=P&&L[P]===0;P--);if(P<K&&(K=P),P===0)return k[u++]=20971520,k[u++]=20971520,d.bits=1,0;for(p=1;p<P&&L[p]===0;p++);for(K<p&&(K=p),C=Y=1;C<=15;C++)if(Y<<=1,(Y-=L[C])<0)return-1;if(0<Y&&(y===0||P!==1))return-1;for(S[1]=0,C=1;C<15;C++)S[C+1]=S[C]+L[C];for(I=0;I<g;I++)h[v+I]!==0&&(w[S[h[v+I]]++]=I);if(E=y===0?(j=H=w,19):y===1?(j=l,oe-=257,H=a,ne-=257,256):(j=c,H=m,-1),C=p,B=u,le=I=O=0,_=-1,N=(re=1<<(Z=K))-1,y===1&&852<re||y===2&&592<re)return 1;for(;;){for(R=C-le,x=w[I]<E?(D=0,w[I]):w[I]>E?(D=H[ne+w[I]],j[oe+w[I]]):(D=96,0),Q=1<<C-le,p=b=1<<Z;k[B+(O>>le)+(b-=Q)]=R<<24|D<<16|x|0,b!==0;);for(Q=1<<C-1;O&Q;)Q>>=1;if(Q!==0?(O&=Q-1,O+=Q):O=0,I++,--L[C]==0){if(C===P)break;C=h[v+w[I]]}if(K<C&&(O&N)!==_){for(le===0&&(le=K),B+=p,Y=1<<(Z=C-le);Z+le<P&&!((Y-=L[Z+le])<=0);)Z++,Y<<=1;if(re+=1<<Z,y===1&&852<re||y===2&&592<re)return 1;k[_=O&N]=K<<24|Z<<16|B-u|0}}return O!==0&&(k[B+O]=C-le<<24|64<<16|0),d.bits=K,0}},{"../utils/common":41}],51:[function(r,o,i){o.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,o,i){var s=r("../utils/common"),l=0,a=1;function c(M){for(var T=M.length;0<=--T;)M[T]=0}var m=0,y=29,h=256,v=h+1+y,g=30,k=19,u=2*v+1,w=15,d=16,Q=7,b=256,_=16,N=17,B=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],R=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(v+2));c($);var C=new Array(2*g);c(C);var I=new Array(512);c(I);var p=new Array(256);c(p);var P=new Array(y);c(P);var K,Z,le,Y=new Array(g);function re(M,T,W,G,z){this.static_tree=M,this.extra_bits=T,this.extra_base=W,this.elems=G,this.max_length=z,this.has_stree=M&&M.length}function O(M,T){this.dyn_tree=M,this.max_code=0,this.stat_desc=T}function j(M){return M<256?I[M]:I[256+(M>>>7)]}function oe(M,T){M.pending_buf[M.pending++]=255&T,M.pending_buf[M.pending++]=T>>>8&255}function L(M,T,W){M.bi_valid>d-W?(M.bi_buf|=T<<M.bi_valid&65535,oe(M,M.bi_buf),M.bi_buf=T>>d-M.bi_valid,M.bi_valid+=W-d):(M.bi_buf|=T<<M.bi_valid&65535,M.bi_valid+=W)}function S(M,T,W){L(M,W[2*T],W[2*T+1])}function H(M,T){for(var W=0;W|=1&M,M>>>=1,W<<=1,0<--T;);return W>>>1}function ne(M,T,W){var G,z,J=new Array(w+1),ee=0;for(G=1;G<=w;G++)J[G]=ee=ee+W[G-1]<<1;for(z=0;z<=T;z++){var X=M[2*z+1];X!==0&&(M[2*z]=H(J[X]++,X))}}function ie(M){var T;for(T=0;T<v;T++)M.dyn_ltree[2*T]=0;for(T=0;T<g;T++)M.dyn_dtree[2*T]=0;for(T=0;T<k;T++)M.bl_tree[2*T]=0;M.dyn_ltree[2*b]=1,M.opt_len=M.static_len=0,M.last_lit=M.matches=0}function V(M){8<M.bi_valid?oe(M,M.bi_buf):0<M.bi_valid&&(M.pending_buf[M.pending++]=M.bi_buf),M.bi_buf=0,M.bi_valid=0}function q(M,T,W,G){var z=2*T,J=2*W;return M[z]<M[J]||M[z]===M[J]&&G[T]<=G[W]}function te(M,T,W){for(var G=M.heap[W],z=W<<1;z<=M.heap_len&&(z<M.heap_len&&q(T,M.heap[z+1],M.heap[z],M.depth)&&z++,!q(T,G,M.heap[z],M.depth));)M.heap[W]=M.heap[z],W=z,z<<=1;M.heap[W]=G}function ue(M,T,W){var G,z,J,ee,X=0;if(M.last_lit!==0)for(;G=M.pending_buf[M.d_buf+2*X]<<8|M.pending_buf[M.d_buf+2*X+1],z=M.pending_buf[M.l_buf+X],X++,G===0?S(M,z,T):(S(M,(J=p[z])+h+1,T),(ee=E[J])!==0&&L(M,z-=P[J],ee),S(M,J=j(--G),W),(ee=R[J])!==0&&L(M,G-=Y[J],ee)),X<M.last_lit;);S(M,b,T)}function pe(M,T){var W,G,z,J=T.dyn_tree,ee=T.stat_desc.static_tree,X=T.stat_desc.has_stree,ae=T.stat_desc.elems,he=-1;for(M.heap_len=0,M.heap_max=u,W=0;W<ae;W++)J[2*W]!==0?(M.heap[++M.heap_len]=he=W,M.depth[W]=0):J[2*W+1]=0;for(;M.heap_len<2;)J[2*(z=M.heap[++M.heap_len]=he<2?++he:0)]=1,M.depth[z]=0,M.opt_len--,X&&(M.static_len-=ee[2*z+1]);for(T.max_code=he,W=M.heap_len>>1;1<=W;W--)te(M,J,W);for(z=ae;W=M.heap[1],M.heap[1]=M.heap[M.heap_len--],te(M,J,1),G=M.heap[1],M.heap[--M.heap_max]=W,M.heap[--M.heap_max]=G,J[2*z]=J[2*W]+J[2*G],M.depth[z]=(M.depth[W]>=M.depth[G]?M.depth[W]:M.depth[G])+1,J[2*W+1]=J[2*G+1]=z,M.heap[1]=z++,te(M,J,1),2<=M.heap_len;);M.heap[--M.heap_max]=M.heap[1],(function(se,ke){var ze,_e,Be,me,We,lt,Ne=ke.dyn_tree,Ft=ke.max_code,o1=ke.stat_desc.static_tree,i1=ke.stat_desc.has_stree,a1=ke.stat_desc.extra_bits,Pt=ke.stat_desc.extra_base,Oe=ke.stat_desc.max_length,Ze=0;for(me=0;me<=w;me++)se.bl_count[me]=0;for(Ne[2*se.heap[se.heap_max]+1]=0,ze=se.heap_max+1;ze<u;ze++)Oe<(me=Ne[2*Ne[2*(_e=se.heap[ze])+1]+1]+1)&&(me=Oe,Ze++),Ne[2*_e+1]=me,Ft<_e||(se.bl_count[me]++,We=0,Pt<=_e&&(We=a1[_e-Pt]),lt=Ne[2*_e],se.opt_len+=lt*(me+We),i1&&(se.static_len+=lt*(o1[2*_e+1]+We)));if(Ze!==0){do{for(me=Oe-1;se.bl_count[me]===0;)me--;se.bl_count[me]--,se.bl_count[me+1]+=2,se.bl_count[Oe]--,Ze-=2}while(0<Ze);for(me=Oe;me!==0;me--)for(_e=se.bl_count[me];_e!==0;)Ft<(Be=se.heap[--ze])||(Ne[2*Be+1]!==me&&(se.opt_len+=(me-Ne[2*Be+1])*Ne[2*Be],Ne[2*Be+1]=me),_e--)}})(M,T),ne(J,he,M.bl_count)}function f(M,T,W){var G,z,J=-1,ee=T[1],X=0,ae=7,he=4;for(ee===0&&(ae=138,he=3),T[2*(W+1)+1]=65535,G=0;G<=W;G++)z=ee,ee=T[2*(G+1)+1],++X<ae&&z===ee||(X<he?M.bl_tree[2*z]+=X:z!==0?(z!==J&&M.bl_tree[2*z]++,M.bl_tree[2*_]++):X<=10?M.bl_tree[2*N]++:M.bl_tree[2*B]++,J=z,he=(X=0)===ee?(ae=138,3):z===ee?(ae=6,3):(ae=7,4))}function U(M,T,W){var G,z,J=-1,ee=T[1],X=0,ae=7,he=4;for(ee===0&&(ae=138,he=3),G=0;G<=W;G++)if(z=ee,ee=T[2*(G+1)+1],!(++X<ae&&z===ee)){if(X<he)for(;S(M,z,M.bl_tree),--X!=0;);else z!==0?(z!==J&&(S(M,z,M.bl_tree),X--),S(M,_,M.bl_tree),L(M,X-3,2)):X<=10?(S(M,N,M.bl_tree),L(M,X-3,3)):(S(M,B,M.bl_tree),L(M,X-11,7));J=z,he=(X=0)===ee?(ae=138,3):z===ee?(ae=6,3):(ae=7,4)}}c(Y);var F=!1;function A(M,T,W,G){L(M,(m<<1)+(G?1:0),3),(function(z,J,ee,X){V(z),oe(z,ee),oe(z,~ee),s.arraySet(z.pending_buf,z.window,J,ee,z.pending),z.pending+=ee})(M,T,W)}i._tr_init=function(M){F||((function(){var T,W,G,z,J,ee=new Array(w+1);for(z=G=0;z<y-1;z++)for(P[z]=G,T=0;T<1<<E[z];T++)p[G++]=z;for(p[G-1]=z,z=J=0;z<16;z++)for(Y[z]=J,T=0;T<1<<R[z];T++)I[J++]=z;for(J>>=7;z<g;z++)for(Y[z]=J<<7,T=0;T<1<<R[z]-7;T++)I[256+J++]=z;for(W=0;W<=w;W++)ee[W]=0;for(T=0;T<=143;)$[2*T+1]=8,T++,ee[8]++;for(;T<=255;)$[2*T+1]=9,T++,ee[9]++;for(;T<=279;)$[2*T+1]=7,T++,ee[7]++;for(;T<=287;)$[2*T+1]=8,T++,ee[8]++;for(ne($,v+1,ee),T=0;T<g;T++)C[2*T+1]=5,C[2*T]=H(T,5);K=new re($,E,h+1,v,w),Z=new re(C,R,0,g,w),le=new re(new Array(0),D,0,k,Q)})(),F=!0),M.l_desc=new O(M.dyn_ltree,K),M.d_desc=new O(M.dyn_dtree,Z),M.bl_desc=new O(M.bl_tree,le),M.bi_buf=0,M.bi_valid=0,ie(M)},i._tr_stored_block=A,i._tr_flush_block=function(M,T,W,G){var z,J,ee=0;0<M.level?(M.strm.data_type===2&&(M.strm.data_type=(function(X){var ae,he=4093624447;for(ae=0;ae<=31;ae++,he>>>=1)if(1&he&&X.dyn_ltree[2*ae]!==0)return l;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return a;for(ae=32;ae<h;ae++)if(X.dyn_ltree[2*ae]!==0)return a;return l})(M)),pe(M,M.l_desc),pe(M,M.d_desc),ee=(function(X){var ae;for(f(X,X.dyn_ltree,X.l_desc.max_code),f(X,X.dyn_dtree,X.d_desc.max_code),pe(X,X.bl_desc),ae=k-1;3<=ae&&X.bl_tree[2*x[ae]+1]===0;ae--);return X.opt_len+=3*(ae+1)+5+5+4,ae})(M),z=M.opt_len+3+7>>>3,(J=M.static_len+3+7>>>3)<=z&&(z=J)):z=J=W+5,W+4<=z&&T!==-1?A(M,T,W,G):M.strategy===4||J===z?(L(M,2+(G?1:0),3),ue(M,$,C)):(L(M,4+(G?1:0),3),(function(X,ae,he,se){var ke;for(L(X,ae-257,5),L(X,he-1,5),L(X,se-4,4),ke=0;ke<se;ke++)L(X,X.bl_tree[2*x[ke]+1],3);U(X,X.dyn_ltree,ae-1),U(X,X.dyn_dtree,he-1)})(M,M.l_desc.max_code+1,M.d_desc.max_code+1,ee+1),ue(M,M.dyn_ltree,M.dyn_dtree)),ie(M),G&&V(M)},i._tr_tally=function(M,T,W){return M.pending_buf[M.d_buf+2*M.last_lit]=T>>>8&255,M.pending_buf[M.d_buf+2*M.last_lit+1]=255&T,M.pending_buf[M.l_buf+M.last_lit]=255&W,M.last_lit++,T===0?M.dyn_ltree[2*W]++:(M.matches++,T--,M.dyn_ltree[2*(p[W]+h+1)]++,M.dyn_dtree[2*j(T)]++),M.last_lit===M.lit_bufsize-1},i._tr_align=function(M){L(M,2,3),S(M,b,$),(function(T){T.bi_valid===16?(oe(T,T.bi_buf),T.bi_buf=0,T.bi_valid=0):8<=T.bi_valid&&(T.pending_buf[T.pending++]=255&T.bi_buf,T.bi_buf>>=8,T.bi_valid-=8)})(M)}},{"../utils/common":41}],53:[function(r,o,i){o.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,o,i){(function(s){(function(l,a){if(!l.setImmediate){var c,m,y,h,v=1,g={},k=!1,u=l.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(l);w=w&&w.setTimeout?w:l,c={}.toString.call(l.process)==="[object process]"?function(_){process.nextTick(function(){Q(_)})}:(function(){if(l.postMessage&&!l.importScripts){var _=!0,N=l.onmessage;return l.onmessage=function(){_=!1},l.postMessage("","*"),l.onmessage=N,_}})()?(h="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",b,!1):l.attachEvent("onmessage",b),function(_){l.postMessage(h+_,"*")}):l.MessageChannel?((y=new MessageChannel).port1.onmessage=function(_){Q(_.data)},function(_){y.port2.postMessage(_)}):u&&"onreadystatechange"in u.createElement("script")?(m=u.documentElement,function(_){var N=u.createElement("script");N.onreadystatechange=function(){Q(_),N.onreadystatechange=null,m.removeChild(N),N=null},m.appendChild(N)}):function(_){setTimeout(Q,0,_)},w.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var N=new Array(arguments.length-1),B=0;B<N.length;B++)N[B]=arguments[B+1];var E={callback:_,args:N};return g[v]=E,c(v),v++},w.clearImmediate=d}function d(_){delete g[_]}function Q(_){if(k)setTimeout(Q,0,_);else{var N=g[_];if(N){k=!0;try{(function(B){var E=B.callback,R=B.args;switch(R.length){case 0:E();break;case 1:E(R[0]);break;case 2:E(R[0],R[1]);break;case 3:E(R[0],R[1],R[2]);break;default:E.apply(a,R)}})(N)}finally{d(_),k=!1}}}}function b(_){_.source===l&&typeof _.data=="string"&&_.data.indexOf(h)===0&&Q(+_.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(dt)),dt.exports}var $0=R0();const V0=Mt($0);function Me(e,n){return Array.from(e.getElementsByTagName(n))}function tt(e){return e[0]==="#"?e:`#${e}`}function U0(e,n,r){return Array.from(e.getElementsByTagNameNS(r,n))}function Qe(e){return e==null||e.normalize(),(e==null?void 0:e.textContent)||""}function we(e,n,r){const o=e.getElementsByTagName(n);return o.length?o[0]:null}function Ce(e,n,r){const o={};if(!e)return o;const i=e.getElementsByTagName(n),s=i.length?i[0]:null;return s&&r?r(s,o):o}function xe(e,n,r){const o=Qe(we(e,n));return o&&r?r(o)||{}:{}}function ye(e,n,r){const o=Number.parseFloat(Qe(we(e,n)));if(!Number.isNaN(o))return r&&r(o),o}function it(e,n){const r={};for(const o of n)xe(e,o,i=>{r[o]=i});return r}function Dn(e){return(e==null?void 0:e.nodeType)===1}function Nn(e,n){const r={},o=n==="stroke"||n==="fill"?n:`${n}-color`;return e[0]==="#"&&(e=e.substring(1)),e.length===6||e.length===3?r[o]=`#${e}`:e.length===8&&(r[`${n}-opacity`]=Number.parseInt(e.substring(0,2),16)/255,r[o]=`#${e.substring(6,8)}${e.substring(4,6)}${e.substring(2,4)}`),r}function nt(e,n,r){const o={};return ye(e,n,i=>{o[r]=i}),o}function At(e,n){return Ce(e,"color",r=>Nn(Qe(r),n))}function Dt(e){return Ce(e,"Icon",(n,r)=>(xe(n,"href",o=>{r.icon=o}),r))}function W0(e){return Ce(e,"IconStyle",n=>Object.assign(At(n,"icon"),nt(n,"scale","icon-scale"),nt(n,"heading","icon-heading"),Ce(n,"hotSpot",r=>{const o=Number.parseFloat(r.getAttribute("x")||""),i=Number.parseFloat(r.getAttribute("y")||""),s=r.getAttribute("xunits")||"",l=r.getAttribute("yunits")||"";return!Number.isNaN(o)&&!Number.isNaN(i)?{"icon-offset":[o,i],"icon-offset-units":[s,l]}:{}}),Dt(n)))}function Z0(e){return Ce(e,"LabelStyle",n=>Object.assign(At(n,"label"),nt(n,"scale","label-scale")))}function Y0(e){return Ce(e,"LineStyle",n=>Object.assign(At(n,"stroke"),nt(n,"width","stroke-width")))}function G0(e){return Ce(e,"PolyStyle",(n,r)=>Object.assign(r,Ce(n,"color",o=>Nn(Qe(o),"fill")),xe(n,"fill",o=>{if(o==="0")return{"fill-opacity":0}}),xe(n,"outline",o=>{if(o==="0")return{"stroke-opacity":0}})))}function at(e){return Object.assign({},G0(e),Y0(e),Z0(e),W0(e))}const H0=/\s*/g,J0=/^\s*|\s*$/g,X0=/\s+/;function In(e){return e.replace(H0,"").split(",").map(Number.parseFloat).filter(n=>!Number.isNaN(n)).slice(0,3)}function gt(e){return e.replace(J0,"").split(X0).map(In).filter(n=>n.length>=2)}function K0(e){let n=Me(e,"coord");n.length===0&&(n=U0(e,"coord","*"));const r=n.map(o=>Qe(o).split(" ").map(Number.parseFloat));return r.length===0?null:{geometry:r.length>2?{type:"LineString",coordinates:r}:{type:"Point",coordinates:r[0]},times:Me(e,"when").map(o=>Qe(o))}}function Sn(e){if(e.length===0)return e;const n=e[0],r=e[e.length-1];let o=!0;for(let i=0;i<Math.max(n.length,r.length);i++)if(n[i]!==r[i]){o=!1;break}return o?e:e.concat([e[0]])}function Xe(e){return Qe(we(e,"coordinates"))}function Tn(e){let n=[],r=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes.item(o);if(Dn(i))switch(i.tagName){case"MultiGeometry":case"MultiTrack":case"gx:MultiTrack":{const s=Tn(i);n=n.concat(s.geometries),r=r.concat(s.coordTimes);break}case"Point":{const s=In(Xe(i));s.length>=2&&n.push({type:"Point",coordinates:s});break}case"LinearRing":case"LineString":{const s=gt(Xe(i));s.length>=2&&n.push({type:"LineString",coordinates:s});break}case"Polygon":{const s=[];for(const l of Me(i,"LinearRing")){const a=Sn(gt(Xe(l)));a.length>=4&&s.push(a)}s.length&&n.push({type:"Polygon",coordinates:s});break}case"Track":case"gx:Track":{const s=K0(i);if(!s)break;const{times:l,geometry:a}=s;n.push(a),l.length&&r.push(l);break}}}return{geometries:n,coordTimes:r}}const Ee=e=>Number(e),wt={string:e=>e,int:Ee,uint:Ee,short:Ee,ushort:Ee,float:Ee,double:Ee,bool:e=>!!e};function Nt(e,n){return Ce(e,"ExtendedData",(r,o)=>{for(const i of Me(r,"Data"))o[i.getAttribute("name")||""]=Qe(we(i,"value"));for(const i of Me(r,"SimpleData")){const s=i.getAttribute("name")||"",l=n[s]||wt.string;o[s]=l(Qe(i))}return o})}function It(e){const n=we(e,"description");for(const r of Array.from((n==null?void 0:n.childNodes)||[]))if(r.nodeType===4)return{description:{"@type":"html",value:Qe(r)}};return{}}function St(e){return Ce(e,"TimeSpan",n=>({timespan:{begin:Qe(we(n,"begin")),end:Qe(we(n,"end"))}}))}function Tt(e){return Ce(e,"TimeStamp",n=>({timestamp:Qe(we(n,"when"))}))}function Lt(e,n){return xe(e,"styleUrl",r=>(r=tt(r),n[r]?Object.assign({styleUrl:r},n[r]):{styleUrl:r}))}var be;(function(e){e.ABSOLUTE="absolute",e.RELATIVE_TO_GROUND="relativeToGround",e.CLAMP_TO_GROUND="clampToGround",e.CLAMP_TO_SEAFLOOR="clampToSeaFloor",e.RELATIVE_TO_SEAFLOOR="relativeToSeaFloor"})(be||(be={}));function q0(e){switch(e==null?void 0:e.textContent){case be.ABSOLUTE:return be.ABSOLUTE;case be.CLAMP_TO_GROUND:return be.CLAMP_TO_GROUND;case be.CLAMP_TO_SEAFLOOR:return be.CLAMP_TO_SEAFLOOR;case be.RELATIVE_TO_GROUND:return be.RELATIVE_TO_GROUND;case be.RELATIVE_TO_SEAFLOOR:return be.RELATIVE_TO_SEAFLOOR}return null}function ei(e){return we(e,"gx:LatLonQuad")?{geometry:{type:"Polygon",coordinates:[Sn(gt(Xe(e)))]}}:ri(e)}const ti=Math.PI/180;function ni(e,n,r){const o=[(e[0]+e[2])/2,(e[1]+e[3])/2];return[n[0].map(i=>{const s=i[1]-o[1],l=i[0]-o[0],a=Math.sqrt(s**2+l**2),c=Math.atan2(s,l)+r*ti;return[o[0]+Math.cos(c)*a,o[1]+Math.sin(c)*a]})]}function ri(e){const n=we(e,"LatLonBox");if(n){const r=ye(n,"north"),o=ye(n,"west"),i=ye(n,"east"),s=ye(n,"south"),l=ye(n,"rotation");if(typeof r=="number"&&typeof s=="number"&&typeof o=="number"&&typeof i=="number"){const a=[o,s,i,r];let c=[[[o,r],[i,r],[i,s],[o,s],[o,r]]];return typeof l=="number"&&(c=ni(a,c,l)),{bbox:a,geometry:{type:"Polygon",coordinates:c}}}}return null}function oi(e,n,r,o){var c;const i=ei(e),s=(i==null?void 0:i.geometry)||null;if(!s&&o.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"groundoverlay"},it(e,["name","address","visibility","open","phoneNumber","description"]),It(e),Lt(e,n),at(e),Dt(e),Nt(e,r),St(e),Tt(e))};i!=null&&i.bbox&&(l.bbox=i.bbox),((c=l.properties)==null?void 0:c.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function ii(e){const n=we(e,"Region");return n?{coordinateBox:li(n),lod:ai(e)}:null}function ai(e){const n=we(e,"Lod");return n?[ye(n,"minLodPixels")??-1,ye(n,"maxLodPixels")??-1,ye(n,"minFadeExtent")??null,ye(n,"maxFadeExtent")??null]:null}function li(e){const n=we(e,"LatLonAltBox");if(n){const r=ye(n,"north"),o=ye(n,"west"),i=ye(n,"east"),s=ye(n,"south");if(q0(we(n,"altitudeMode")||we(n,"gx:altitudeMode"))&&console.debug("Encountered an unsupported feature of KML for togeojson: please contact developers for support of altitude mode."),typeof r=="number"&&typeof s=="number"&&typeof o=="number"&&typeof i=="number")return{bbox:[o,s,i,r],geometry:{type:"Polygon",coordinates:[[[o,r],[i,r],[i,s],[o,s],[o,r]]]}}}return null}function si(e){const n=we(e,"Link");return n?it(n,["href","refreshMode","refreshInterval","viewRefreshMode","viewRefreshTime","viewBoundScale","viewFormat","httpQuery"]):{}}function ci(e,n,r,o){var c,m,y;const i=ii(e),s=((c=i==null?void 0:i.coordinateBox)==null?void 0:c.geometry)||null;if(!s&&o.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"networklink"},it(e,["name","address","visibility","open","phoneNumber","styleUrl","refreshVisibility","flyToView","description"]),It(e),Lt(e,n),at(e),Dt(e),Nt(e,r),St(e),Tt(e),si(e),i!=null&&i.lod?{lod:i.lod}:{})};(m=i==null?void 0:i.coordinateBox)!=null&&m.bbox&&(l.bbox=i.coordinateBox.bbox),((y=l.properties)==null?void 0:y.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function ui(e){return e.length===0?null:e.length===1?e[0]:{type:"GeometryCollection",geometries:e}}function di(e,n,r,o){var m;const{coordTimes:i,geometries:s}=Tn(e),l=ui(s);if(!l&&o.skipNullGeometry)return null;const a={type:"Feature",geometry:l,properties:Object.assign(it(e,["name","address","visibility","open","phoneNumber","description"]),It(e),Lt(e,n),at(e),Nt(e,r),St(e),Tt(e),i.length?{coordinateProperties:{times:i.length===1?i[0]:i}}:{})};((m=a.properties)==null?void 0:m.visibility)!==void 0&&(a.properties.visibility=a.properties.visibility!=="0");const c=e.getAttribute("id");return c!==null&&c!==""&&(a.id=c),a}function fi(e){let n=e.getAttribute("id");const r=e.parentNode;return!n&&Dn(r)&&r.localName==="CascadingStyle"&&(n=r.getAttribute("kml:id")||r.getAttribute("id")),tt(n||"")}function hi(e){const n={};for(const r of Me(e,"Style"))n[fi(r)]=at(r);for(const r of Me(e,"StyleMap")){const o=tt(r.getAttribute("id")||"");xe(r,"styleUrl",i=>{i=tt(i),n[i]&&(n[o]=n[i])})}return n}function pi(e){const n={};for(const r of Me(e,"SimpleField"))n[r.getAttribute("name")||""]=wt[r.getAttribute("type")||""]||wt.string;return n}function*mi(e,n={skipNullGeometry:!1}){const r=e,o=hi(r),i=pi(r);for(const s of Me(r,"Placemark")){const l=di(s,o,i,n);l&&(yield l)}for(const s of Me(r,"GroundOverlay")){const l=oi(s,o,i,n);l&&(yield l)}for(const s of Me(r,"NetworkLink")){const l=ci(s,o,i,n);l&&(yield l)}}function gi(e,n={skipNullGeometry:!1}){return{type:"FeatureCollection",features:Array.from(mi(e,n))}}function yt(e){const n=[],r=e.replace(/\s+/g," ").trim();if(!r)return n;const o=r.split(/\s+/);for(const i of o){const s=i.split(",").map(l=>Number(l.trim()));s.length>=2&&Number.isFinite(s[0])&&Number.isFinite(s[1])&&n.push([s[0],s[1]])}return n}function wi(e){const n=e.split(",").map(r=>Number(r.trim()));return n.length>=2&&Number.isFinite(n[0])&&Number.isFinite(n[1])?[n[0],n[1]]:null}function qt(e){return e.replace(/wpml:/g,"")}function en(e){const n=[],r=e.getElementsByTagName("Placemark");for(let o=0;o<r.length;o++){const i=r[o],s=i.getElementsByTagName("LineString")[0],l=i.getElementsByTagName("Point")[0];if(s){const a=s.getElementsByTagName("coordinates")[0];a!=null&&a.textContent&&n.push(...yt(a.textContent))}else if(l){const a=l.getElementsByTagName("coordinates")[0];if(a!=null&&a.textContent){const c=wi(a.textContent.trim());c&&n.push(c)}}}return n}function yi(e){const n=[],r=e.getElementsByTagName("Folder");if(r.length===0){const o=en(e.documentElement);return o.length&&n.push(o),n}for(let o=0;o<r.length;o++){const i=en(r[o]);i.length&&n.push(i)}return n}function vi(e){const n=e.getElementsByTagName("LinearRing");for(let o=0;o<n.length;o++){const i=n[o].getElementsByTagName("coordinates")[0];if(i!=null&&i.textContent){const s=yt(i.textContent);if(s.length>=3)return s}}const r=e.getElementsByTagName("Polygon");for(let o=0;o<r.length;o++){const s=r[o].getElementsByTagName("LinearRing")[0];if(s){const l=s.getElementsByTagName("coordinates")[0];if(l!=null&&l.textContent){const a=yt(l.textContent);if(a.length>=3)return a}}}}function tn(e,n){if(e)switch(e.type){case"LineString":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break;case"MultiLineString":for(const r of e.coordinates)for(const o of r)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"Polygon":for(const r of e.coordinates)for(const o of r)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"MultiPolygon":for(const r of e.coordinates)for(const o of r)for(const i of o)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&n.push([i[0],i[1]]);break;case"Point":Array.isArray(e.coordinates)&&e.coordinates.length>=2&&Number.isFinite(e.coordinates[0])&&Number.isFinite(e.coordinates[1])&&n.push([e.coordinates[0],e.coordinates[1]]);break;case"MultiPoint":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break}}function Qi(e){const n=[];return e.features.forEach(r=>{if(r.geometry){const o=r.geometry;o.type==="GeometryCollection"&&Array.isArray(o.geometries)?o.geometries.forEach(i=>tn(i,n)):tn(o,n)}}),n}function nn(e){const r=new DOMParser().parseFromString(e,"text/xml"),o=gi(r);return Qi(o)}async function Ln(e){var r;const n={points:[],polylines:[]};try{if(!e||typeof e!="string"||e.trim()==="")return console.warn("KMZ URL 为空或无效"),n;const o=await fetch(e,{mode:"cors",credentials:"omit"});if(!o.ok)throw new Error(`HTTP错误: ${o.status} ${o.statusText}`);const i=await o.arrayBuffer(),a=(await new V0().loadAsync(i)).files,c=Object.keys(a).filter(g=>!a[g].dir),m=async g=>{const k=a[g];return k?k.async("text"):null},y={points:[],polylines:[]},h=c.find(g=>g.replace(/\\/g,"/").endsWith("wpmz/waylines.wpml"))||c.find(g=>g.toLowerCase().endsWith("waylines.wpml"));if(h){const g=await m(h);if(g){const k=qt(g),w=new DOMParser().parseFromString(k,"text/xml"),d=yi(w);d.length&&(y.polylines=d,y.points=d.flat())}}const v=c.find(g=>g.replace(/\\/g,"/").endsWith("wpmz/template.kml"))||c.find(g=>g.toLowerCase().endsWith("template.kml"));if(v){const g=await m(v);if(g){const k=qt(g),w=new DOMParser().parseFromString(k,"text/xml"),d=vi(w);d!=null&&d.length&&(y.polygonOutline=d);const Q=nn(k);Q.length&&!y.points.length&&(y.points=Q)}}if(!y.points.length&&!y.polylines.length){const g=c.find(k=>k.toLowerCase().endsWith(".kml"));if(g){const k=await m(g);if(k){const u=nn(k);u.length&&(y.points=u,y.polylines=[u])}}}return!y.points.length&&((r=y.polygonOutline)!=null&&r.length)&&(y.points=[...y.polygonOutline]),y.points.length&&!y.polylines.length&&(y.polylines=[y.points]),y}catch(o){return console.error("KMZ解析失败:",o),n}}const ki=async e=>(await Ln(e)).points;function Ke(e){return e===!1?!1:e===0||String(e)==="0"||e?e:"-"}function En(e){const{size:n,unit:r="B",maxUnit:o,numberFormatOptions:i}=e,{size:s,unit:l}=Et({size:n,unit:r},{maxUnit:o});return`${s.toLocaleString(void 0,i)} ${l}`}function Et(e,n){const r=["B","KB","MB","GB","TB"],{size:o,unit:i="B"}=e,s=r.indexOf(i);if(s===-1||s===r.length-1)return{size:o,unit:i};const l=(n==null?void 0:n.maxUnit)||"TB",a=r.indexOf(l);return s===a?{size:o,unit:i}:o<1024?{size:o,unit:i}:Et({size:o/1024,unit:r[s+1]},n)}function xt(e,n="-"){return(r,o)=>r===0||r==="0"?e?e(r,o):r:r?e?e(r,o):r.toString():n}function xn(e,n){const r=e.getFullYear(),o=e.getMonth()+1,i=e.getDate(),s=e.getHours(),l=s%12||12,a=e.getMinutes(),c=e.getSeconds(),m=e.getMilliseconds(),y=s<12?"AM":"PM",h={YYYY:String(r).padStart(4,"0"),YY:String(r%100).padStart(2,"0"),MM:String(o).padStart(2,"0"),M:String(o),DD:String(i).padStart(2,"0"),D:String(i),HH:String(s).padStart(2,"0"),H:String(s),hh:String(l).padStart(2,"0"),h:String(l),mm:String(a).padStart(2,"0"),m:String(a),ss:String(c).padStart(2,"0"),s:String(c),SSS:String(m).padStart(3,"0"),SS:String(m).padStart(3,"0").slice(0,2),S:String(m).padStart(3,"0").charAt(0),A:y,a:y.toLowerCase()};return n.replace(/YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a/g,v=>h[v]??v)}function jn(e){if(e==null)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;if(typeof e=="number"){const r=new Date(e);return isNaN(r.getTime())?null:r}let n=new Date(e);return isNaN(n.getTime())?(n=new Date(e.replace(" ","T")),isNaN(n.getTime())?null:n):n}function zn(e){if(e==null)return null;if(e instanceof Date)return e;const n=Number(e);if(Number.isFinite(n)){const r=String(Math.floor(n)).length;if(r===10)return n*1e3;if(r===13)return n;if(n===0)return 0}return e}function bi(e,n="YYYY-MM-DD HH:mm:ss"){const r=zn(e);if(!r&&r!==0)return Ke(e);const o=jn(r);return Ke(o?xn(o,n):e)}function Mi(e="YYYY-MM-DD HH:mm:ss",n="-"){return(r,o)=>{if(r===0||r==="0")return String(r);const i=zn(r);if(!r||r==="Invalid Date")return n;try{const s=jn(i);if(!s)return n;const l=xn(s,e);return!l||l==="Invalid Date"?n:l}catch(s){return console.error("Date formatting failed:",s),n}}}function Ci(e="-",n){return xt(o=>{const i=typeof o=="string"?Number(o):o;return Number.isFinite(i)?En({size:i,unit:(n==null?void 0:n.unit)||"B",numberFormatOptions:{maximumFractionDigits:n==null?void 0:n.digits,minimumFractionDigits:n==null?void 0:n.digits}}):o},e)}function _i(e="-",n){return xt(o=>{const i=["B","KB","MB","GB","TB"];let s=typeof o=="string"?Number(o):o,l=(n==null?void 0:n.unit)||"B";const a=(n==null?void 0:n.digits)??2;if(s===0)return`${s.toFixed(a)} ${l}`;let c=i.indexOf(l);for(c===-1&&(c=0,l="B");c<i.length-1&&s%1024===0;)s=s/1024,c++,l=i[c];return`${s.toFixed(a)} ${l}`},e)}function Ai(e,n,r,o){const i=["B","KB","MB","GB","TB"],s=(o==null?void 0:o.digits)??2,l=(o==null?void 0:o.showUnit)??!0,a=typeof e=="string"?Number(e):e;if(!Number.isFinite(a))return e;const c=i.indexOf(n),m=i.indexOf(r);if(c===-1||m===-1)return e;const y=c-m,v=(a*Math.pow(1024,y)).toFixed(s);return l?`${v} ${r}`:Number(v)}const Di=Object.freeze(Object.defineProperty({__proto__:null,convertDataUnit:Ai,defaultAutoDataFormat:_i,defaultDataFormat:Ci,defaultDateFormat:Mi,defaultFill:Ke,defaultFormat:xt,formatDate:bi,formatSize:En,getUpperSize:Et},Symbol.toStringTag,{value:"Module"}));function Ni(e){return Array.isArray(e)?[...new Set(e)]:e}function Ii(e,n){if(!Array.isArray(e))return e;const r=new Map;return e.filter(o=>{const i=o[n];return r.has(i)?!1:(r.set(i,!0),!0)})}function Si(e,n){if(!Array.isArray(e))return e;const r=new Set;return e.filter(o=>{const i=n.map(s=>o[s]).join("|");return r.has(i)?!1:(r.add(i),!0)})}function Ti(e,n){if(!Array.isArray(e))return e;const{idKey:r="id",parentKey:o="parentId",childrenKey:i="children",rootParentValue:s=null}=n||{},l=new Map,a=[];return e.forEach(c=>{l.set(c[r],{...c,[i]:[]})}),e.forEach(c=>{const m=l.get(c[r]);if(!m)return;const y=c[o];if(y===s||y===void 0)a.push(m);else{const h=l.get(y);h?(h[i]||(h[i]=[]),h[i].push(m)):a.push(m)}}),a}function Li(e,n="children"){if(!Array.isArray(e))return e;const r=[],o=i=>{i.forEach(s=>{const l=s[n],a={...s};delete a[n],r.push(a),Array.isArray(l)&&l.length>0&&o(l)})};return o(e),r}function Bn(e,n,r="children"){if(!Array.isArray(e))return null;for(const o of e){if(n(o))return o;if(Array.isArray(o[r])&&o[r].length>0){const i=Bn(o[r],n,r);if(i)return i}}return null}function Ei(e,n,r="children"){if(!Array.isArray(e))return;const o=(i,s,l)=>{i.forEach(a=>{n(a,s,l),Array.isArray(a[r])&&a[r].length>0&&o(a[r],a,l+1)})};o(e,null,0)}function xi(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=String(o[n]);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function ji(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=n(o);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function zi(e,n,r="asc"){return Array.isArray(e)?[...e].sort((o,i)=>{const s=o[n],l=i[n];return s<l?r==="asc"?-1:1:s>l?r==="asc"?1:-1:0}):e}function Bi(e,n){return Array.isArray(e)?[...e].sort((r,o)=>{for(const{key:i,order:s="asc"}of n){const l=r[i],a=o[i];if(l<a)return s==="asc"?-1:1;if(l>a)return s==="asc"?1:-1}return 0}):e}function On(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=n?o[n]:o;return r+(Number(i)||0)},0):0}function Oi(e,n){return!Array.isArray(e)||e.length===0?0:On(e,n)/e.length}function Fi(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=n?o[n]:o;return Number(i)||0});return Math.max(...r)}function Pi(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=n?o[n]:o;return Number(i)||0});return Math.min(...r)}function Ri(e,n){if(!Array.isArray(e)||n<=0)return[e];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}function $i(e,n){if(!Array.isArray(e)||!Array.isArray(n))return[];const r=new Set(n);return e.filter(o=>r.has(o))}function Vi(e,n){return Array.isArray(e)?Array.isArray(n)?[...new Set([...e,...n])]:e||[]:n||[]}function Ui(e,n){if(!Array.isArray(e))return[];if(!Array.isArray(n))return e;const r=new Set(n);return e.filter(o=>!r.has(o))}function Fn(e){if(!Array.isArray(e))return e;const n=[...e];for(let r=n.length-1;r>0;r--){const o=Math.floor(Math.random()*(r+1));[n[r],n[o]]=[n[o],n[r]]}return n}function Wi(e,n=1){return!Array.isArray(e)||n<=0?[]:Fn(e).slice(0,Math.min(n,e.length))}function Pn(e,n=1/0){return!Array.isArray(e)||n<=0?e:e.reduce((r,o)=>(Array.isArray(o)?r.push(...Pn(o,n-1)):r.push(o),r),[])}function Zi(e,n,r){if(!Array.isArray(e))return{data:[],page:n,pageSize:r,total:0,totalPages:0};const o=e.length,i=Math.ceil(o/r),s=(n-1)*r,l=s+r;return{data:e.slice(s,l),page:n,pageSize:r,total:o,totalPages:i}}function Yi(e,n,r){if(!Array.isArray(e)||n<0||n>=e.length||r<0||r>=e.length)return e;const o=[...e],[i]=o.splice(n,1);return o.splice(r,0,i),o}function Gi(e){return Array.isArray(e)?e.reduce((n,r)=>(n[r]=(n[r]||0)+1,n),{}):{}}const Hi=Object.freeze(Object.defineProperty({__proto__:null,arrayToTree:Ti,average:Oi,chunkArray:Ri,countBy:Gi,difference:Ui,findNodeInTree:Bn,flatten:Pn,forEachTree:Ei,groupBy:xi,groupByFn:ji,intersection:$i,max:Fi,min:Pi,move:Yi,paginate:Zi,sample:Wi,shuffle:Fn,sortBy:zi,sortByMultiple:Bi,sum:On,treeToArray:Li,union:Vi,uniqueArray:Ni,uniqueArrayByKey:Ii,uniqueArrayByKeys:Si},Symbol.toStringTag,{value:"Module"}));async function Ji(e){if(!e)return!1;if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch(n){console.error("Clipboard API 失败:",n)}try{const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-9999px",n.style.top="-9999px",document.body.appendChild(n),n.select(),n.setSelectionRange(0,e.length);const r=document.execCommand("copy");return document.body.removeChild(n),r}catch(n){return console.error("复制失败:",n),!1}}async function Xi(){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.readText()}catch(e){return console.error("读取剪贴板失败:",e),""}return""}function jt(e,n){const r=document.createElement("a");typeof e=="string"?r.href=e:r.href=URL.createObjectURL(e),r.download=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof e!="string"&&setTimeout(()=>URL.revokeObjectURL(r.href),100)}function Ki(e,n){const r=JSON.stringify(e,null,2),o=new Blob([r],{type:"application/json"});jt(o,n)}function qi(e,n){const r=new Blob([e],{type:"text/plain"});jt(r,n)}function zt(e){window.scrollTo(e)}function ea(e,n){const r=typeof e=="string"?document.querySelector(e):e;r&&r.scrollIntoView({behavior:"smooth",block:"start",...n})}function ta(e=!0){zt({top:0,behavior:e?"smooth":"auto"})}function na(e=!0){zt({top:document.documentElement.scrollHeight,behavior:e?"smooth":"auto"})}function Rn(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}function ra(e){let n=0;for(;e;)n+=e.offsetTop,e=e.offsetParent;return n}function oa(e,n=0){if(!e)return!1;const r=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return r.top>=0-n&&r.left>=0-n&&r.bottom<=o+n&&r.right<=i+n}function ia(e){if(!e)return!1;const n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,i=n.top<=r&&n.top+n.height>=0,s=n.left<=o&&n.left+n.width>=0;return i&&s}function aa(e=document.documentElement){document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function la(e=document.documentElement){document.fullscreenElement||e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function sa(){document.fullscreenElement&&document.exitFullscreen()}function ca(){return!!document.fullscreenElement}function ua(e,n){e&&e.classList.add(n)}function da(e,n){e&&e.classList.remove(n)}function fa(e,n){e&&e.classList.toggle(n)}function ha(e,n){return e?e.classList.contains(n):!1}function pa(e){return e?Array.from(e.classList):[]}function ma(e){return e?e.getBoundingClientRect():null}function ga(e){return e?e.offsetWidth:0}function wa(e){return e?e.offsetHeight:0}function ya(e,n=document){return n.querySelector(e)}function va(e,n=document){return Array.from(n.querySelectorAll(e))}function Qa(e,n){return e?e.getAttribute(n):null}function ka(e,n,r){e&&e.setAttribute(n,r)}function ba(e,n){e&&e.removeAttribute(n)}function Ma(e,n){return e?e.hasAttribute(n):!1}function Ca(e,n){return e&&window.getComputedStyle(e)[n]||""}function _a(e,n){e&&Object.keys(n).forEach(r=>{e.style[r]=n[r]})}function Aa(){return{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function $n(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}function Da(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)}function Na(e=0){const{y:n}=Rn(),r=window.innerHeight||document.documentElement.clientHeight,o=$n();return n+r>=o-e}const Ia=Object.freeze(Object.defineProperty({__proto__:null,addClass:ua,copyToClipboard:Ji,downloadFile:jt,downloadJSON:Ki,downloadText:qi,enterFullscreen:la,exitFullscreen:sa,getAttribute:Qa,getClasses:pa,getElementHeight:wa,getElementRect:ma,getElementWidth:ga,getOffsetTop:ra,getPageHeight:$n,getPageWidth:Da,getScrollPosition:Rn,getStyle:Ca,getWindowSize:Aa,hasAttribute:Ma,hasClass:ha,isFullscreen:ca,isInViewport:oa,isPartiallyVisible:ia,isScrolledToBottom:Na,querySelector:ya,querySelectorAll:va,readFromClipboard:Xi,removeAttribute:ba,removeClass:da,scrollTo:zt,scrollToBottom:na,scrollToElement:ea,scrollToTop:ta,setAttribute:ka,setStyle:_a,toggleClass:fa,toggleFullscreen:aa},Symbol.toStringTag,{value:"Module"}));function Sa(e,n){return Math.floor(Math.random()*(n-e+1))+e}function Ta(e,n,r=2){const o=Math.random()*(n-e)+e;return Number(o.toFixed(r))}function La(e,n,r=1){const o=[];if(r===0)return o;if(r>0)for(let i=e;i<=n;i+=r)o.push(i);else for(let i=e;i>=n;i+=r)o.push(i);return o}function Ea(e,n,r){return Math.min(Math.max(e,n),r)}function xa(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i+n*i)/i}function ja(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i-n*i)/i}function za(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,r+o);return e*Math.pow(10,r)*n*Math.pow(10,o)/i}function Ba(e,n){if(n===0)return console.warn("Division by zero"),1/0;const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length;return e*Math.pow(10,o)/(n*Math.pow(10,r))*Math.pow(10,r-o)}function Bt(e,n=0){return Math.round(e*Math.pow(10,n))/Math.pow(10,n)}function Oa(e,n=0){return Math.ceil(e*Math.pow(10,n))/Math.pow(10,n)}function Fa(e,n=0){return Math.floor(e*Math.pow(10,n))/Math.pow(10,n)}function Pa(e,n=0){return Bt(e,n).toFixed(n)}function Ra(e,n,r=2){return n===0?0:Bt(e/n*100,r)}function $a(e){return e/100}function Va(e){return e*100}function Ua(e,n=2){return String(e).padStart(n,"0")}function Wa(e){const n=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千","万"];if(e===0)return"零";if(e<0||e>99999)return String(e);const o=String(e);let i="",s=0;for(let l=0;l<o.length;l++){const a=parseInt(o[l]),c=r[o.length-1-l];a===0?s++:(s>0&&(i+="零"),i+=n[a]+c,s=0)}return e>=10&&e<20&&(i=i.replace("一十","十")),i}function Za(e){const n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=["","拾","佰","仟","万","拾","佰","仟","亿"],o=["角","分"];if(e===0)return"零元整";const[i,s=""]=e.toFixed(2).split(".");let l="";for(let a=0;a<i.length;a++){const c=parseInt(i[a]),m=r[i.length-1-a];c!==0?l+=n[c]+m:l&&!l.endsWith("零")&&(l+="零")}if(l=l.replace(/零+$/,"")+"元",s&&s!=="00")for(let a=0;a<Math.min(s.length,2);a++){const c=parseInt(s[a]);c!==0&&(l+=n[c]+o[a])}else l+="整";return l}function Ya(e){return e%2===0}function Ga(e){return e%2!==0}function Ha(e){if(e<2)return!1;if(e===2)return!0;if(e%2===0)return!1;for(let n=3;n<=Math.sqrt(e);n+=2)if(e%n===0)return!1;return!0}function Ja(e,n,r){return e>=n&&e<=r}function Xa(e){return Math.abs(e)}function Ka(e){return Math.sqrt(e)}function qa(e,n){return Math.pow(e,n)}function Vn(e){return e<0?NaN:e===0||e===1?1:e*Vn(e-1)}function Ot(e,n){return n===0?e:Ot(n,e%n)}function el(e,n){return e*n/Ot(e,n)}const tl=Object.freeze(Object.defineProperty({__proto__:null,abs:Xa,add:xa,ceil:Oa,clamp:Ea,decimalToPercent:Va,divide:Ba,factorial:Vn,floor:Fa,gcd:Ot,inRange:Ja,isEven:Ya,isOdd:Ga,isPrime:Ha,lcm:el,multiply:za,padZero:Ua,percentToDecimal:$a,percentage:Ra,pow:qa,random:Sa,randomFloat:Ta,range:La,round:Bt,sqrt:Ka,subtract:ja,toChineseMoney:Za,toChineseNumber:Wa,toFixed:Pa},Symbol.toStringTag,{value:"Module"}));function rt(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(Array.isArray(e))return e.map(r=>rt(r));const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=rt(e[r]));return n}function nl(e){return e===null||typeof e!="object"?e:Array.isArray(e)?[...e]:{...e}}function Un(...e){if(e.length===0)return{};if(e.length===1)return e[0];const n={};return e.forEach(r=>{!r||typeof r!="object"||Object.keys(r).forEach(o=>{const i=r[o],s=n[o];i&&typeof i=="object"&&!Array.isArray(i)&&s&&typeof s=="object"&&!Array.isArray(s)?n[o]=Un(s,i):n[o]=rt(i)})}),n}function rl(...e){return Object.assign({},...e)}function ol(e,n){if(!e||typeof e!="object")return{};const r={};return n.forEach(o=>{o in e&&(r[o]=e[o])}),r}function il(e,n){if(!e||typeof e!="object")return{};const r={...e};return n.forEach(o=>{delete r[o]}),r}function al(e,n,r){if(!e||typeof e!="object")return r;const o=n.split(".");let i=e;for(const s of o)if(i&&typeof i=="object"&&s in i)i=i[s];else return r;return i!==void 0?i:r}function Wn(e,n,r){if(!e||typeof e!="object")return;const o=n.split("."),i=o.pop();if(!i)return;let s=e;for(const l of o)(!(l in s)||typeof s[l]!="object")&&(s[l]={}),s=s[l];s[i]=r}function ll(e,n){if(!e||typeof e!="object")return!1;const r=n.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return!1;return!0}function sl(e){return e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function cl(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}function vt(e,n){if(e===n)return!0;if(typeof e!="object"||typeof n!="object"||e===null||n===null)return!1;if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(e instanceof RegExp&&n instanceof RegExp)return e.toString()===n.toString();if(Array.isArray(e)&&Array.isArray(n))return e.length!==n.length?!1:e.every((i,s)=>vt(i,n[s]));const r=Object.keys(e),o=Object.keys(n);return r.length!==o.length?!1:r.every(i=>vt(e[i],n[i]))}function Qt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Qt(r));const n={};return Object.keys(e).forEach(r=>{const o=r.replace(/_([a-z])/g,(s,l)=>l.toUpperCase()),i=e[r];n[o]=typeof i=="object"?Qt(i):i}),n}function kt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>kt(r));const n={};return Object.keys(e).forEach(r=>{const o=r.replace(/([A-Z])/g,"_$1").toLowerCase(),i=e[r];n[o]=typeof i=="object"?kt(i):i}),n}function ul(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(n)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function dl(e){if(!e)return{};const n=e.startsWith("?")?e.slice(1):e,r={};return n.split("&").forEach(o=>{const[i,s]=o.split("=").map(decodeURIComponent);i&&(i in r?Array.isArray(r[i])?r[i].push(s):r[i]=[r[i],s]:r[i]=s)}),r}function Zn(e,n){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{n(e[o],o)&&(r[o]=e[o])}),r}function fl(e,n=!0){return Zn(e,r=>!(r==null||n&&r===""))}function Yn(e,n=""){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{const i=n?`${n}.${o}`:o,s=e[o];s&&typeof s=="object"&&!Array.isArray(s)?Object.assign(r,Yn(s,i)):r[i]=s}),r}function hl(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{Wn(n,r,e[r])}),n}function pl(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{const o=e[r];n[String(o)]=r}),n}function ml(e){return!e||typeof e!="object"?[]:Object.values(e)}function gl(e){return!e||typeof e!="object"?[]:Object.keys(e)}function wl(e){return!e||typeof e!="object"?[]:Object.entries(e)}const yl=Object.freeze(Object.defineProperty({__proto__:null,deepClone:rt,deepMerge:Un,entries:wl,filterValues:Zn,flattenObject:Yn,fromQueryString:dl,get:al,has:ll,invert:pl,isEmpty:sl,isEqual:vt,isPlainObject:cl,keys:gl,keysToCamelCase:Qt,keysToUnderlineCase:kt,omit:il,pick:ol,removeEmpty:fl,set:Wn,shallowClone:nl,shallowMerge:rl,toQueryString:ul,unflattenObject:hl,values:ml},Symbol.toStringTag,{value:"Module"}));function vl(e,n=300,r=!1){let o=null,i=!1;const s=function(...l){o&&clearTimeout(o),r&&!i?(e.apply(this,l),i=!0):o=setTimeout(()=>{e.apply(this,l),i=!1,o=null},n)};return s.cancel=()=>{o&&(clearTimeout(o),o=null),i=!1},s}function Ql(e,n=300,r){const{leading:o=!0,trailing:i=!0}=r||{};let s=null,l=0,a=null;const c=function(...m){const y=Date.now();!l&&!o&&(l=y);const h=n-(y-l);a=m,h<=0||h>n?(s&&(clearTimeout(s),s=null),l=y,e.apply(this,m),a=null):!s&&i&&(s=setTimeout(()=>{l=o?Date.now():0,s=null,a&&(e.apply(this,a),a=null)},h))};return c.cancel=()=>{s&&(clearTimeout(s),s=null),l=0,a=null},c}function kl(e){let n=!1,r;return function(...o){return n||(n=!0,r=e.apply(this,o)),r}}function Gn(e){return new Promise(n=>setTimeout(n,e))}function Hn(e){return Gn(e)}async function bl(e,n){const{times:r=3,delay:o=1e3,onRetry:i}=n||{};let s;for(let l=0;l<r;l++)try{return await e()}catch(a){s=a,i&&i(a,l+1),l<r-1&&await Hn(o)}throw s}function Ml(e,n){return Promise.race([e,new Promise((r,o)=>setTimeout(()=>o(new Error("Timeout")),n))])}function Cl(e,n){const r=new Map,o=function(...i){const s=n?n(...i):JSON.stringify(i);if(r.has(s))return r.get(s);const l=e.apply(this,i);return r.set(s,l),l};return o.cache=r,o}function _l(e){e.cache&&e.cache.clear()}function Al(e,n=100){let r=[],o=null;return function(i){r.push(i),o&&clearTimeout(o),o=setTimeout(()=>{e(r),r=[],o=null},n)}}async function Dl(e,n){const r=[],o=[];for(const i of e){const s=i().then(l=>{r.push(l),o.splice(o.indexOf(s),1)});o.push(s),o.length>=n&&await Promise.race(o)}return await Promise.all(o),r}async function Nl(e){const n=[];for(const r of e){const o=await r();n.push(o)}return n}function Il(e,n){return function(...r){const o=performance.now(),i=e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),i}}function Sl(e,n){return async function(...r){const o=performance.now(),i=await e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),i}}function Tl(e){const n=new Map;return async function(...r){const o=JSON.stringify(r);if(n.has(o))return n.get(o);const i=e.apply(this,r).finally(()=>{n.delete(o)});return n.set(o,i),i}}function Ll(e){let n=null;const r=function(...o){n===null&&(n=requestAnimationFrame(()=>{e.apply(this,o),n=null}))};return r.cancel=()=>{n!==null&&(cancelAnimationFrame(n),n=null)},r}const El=Object.freeze(Object.defineProperty({__proto__:null,batch:Al,clearCache:_l,debounce:vl,dedupe:Tl,delay:Gn,measureTime:Il,measureTimeAsync:Sl,memoize:Cl,once:kl,promiseLimit:Dl,promiseSerial:Nl,rafThrottle:Ll,retry:bl,sleep:Hn,throttle:Ql,withTimeout:Ml},Symbol.toStringTag,{value:"Module"}));function Se(e,n){return r=>{const o=String(r||"").trim();return!o||e(o)?!0:typeof n=="function"?n():n}}function Jn(e){return e?/^1[3-9]\d{9}$/.test(e):!1}function Xn(e){return e?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e):!1}function Kn(e){return e?/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e):!1}function qn(e){return e?/^\d{16,19}$/.test(e):!1}function e1(e){return e?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/.test(e):!1}function t1(e){return e?/^(https?:\/\/)([a-zA-Z0-9.-]+)(:[0-9]+)?(\/.*)?$/.test(e):!1}function n1(e){return e?/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/.test(e):!1}function xl(e){return e?/^[\u4e00-\u9fa5]+$/.test(e):!1}function jl(e){return e?/[\u4e00-\u9fa5]/.test(e):!1}function zl(e){return e?/^\d+$/.test(e):!1}function Bl(e){return e?/^-?\d+\.?\d*$/.test(e):!1}function Ol(e){return e?/^[1-9]\d*$/.test(e):!1}function Fl(e){return!e&&e!=="0"?!1:/^(0|[1-9]\d*)$/.test(e)}function Pl(e){return e?/^[1-9]\d{4,10}$/.test(e):!1}function Rl(e){return e?/^[a-zA-Z][a-zA-Z0-9_-]{5,19}$/.test(e):!1}function $l(e){return e?/^[1-9]\d{5}$/.test(e):!1}function Vl(e){return e?/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e):!1}function Ul(e){return e?/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{6,}$/.test(e):!1}function Wl(e){return e?/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e):!1}function Zl(e){if(!e)return!1;const n=Number(e);return/^\d+$/.test(e)&&n>=1&&n<=65535}function Yl(e){return e?/^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^::$|^([\da-fA-F]{1,4}:){1,6}:$|^:((:[\da-fA-F]{1,4}){1,6})$/.test(e):!1}function Gl(e){return e?/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e):!1}function Hl(e="请输入有效的手机号"){return Se(Jn,e)}function Jl(e="请输入有效的邮箱地址"){return Se(Xn,e)}function Xl(e="请输入有效的身份证号"){return Se(Kn,e)}function Kl(e="请输入有效的银行卡号"){return Se(qn,e)}function ql(e="请输入有效的车牌号"){return Se(e1,e)}function e8(e="请输入有效的 URL 地址"){return Se(t1,e)}function t8(e="请输入有效的 IP 地址"){return Se(n1,e)}const n8=Object.freeze(Object.defineProperty({__proto__:null,bankCardRule:Kl,carNumberRule:ql,createFormRule:Se,emailRule:Jl,hasChinese:jl,idCardRule:Xl,ipRule:t8,isBankCard:qn,isCarNumber:e1,isChinese:xl,isEmail:Xn,isHexColor:Gl,isIP:n1,isIPv6:Yl,isIdCard:Kn,isMac:Wl,isMediumPassword:Ul,isNonNegativeInteger:Fl,isNumber:zl,isNumeric:Bl,isPhone:Jn,isPort:Zl,isPositiveInteger:Ol,isPostcode:$l,isQQ:Pl,isStrongPassword:Vl,isUrl:t1,isWechat:Rl,phoneRule:Hl,urlRule:e8},Symbol.toStringTag,{value:"Module"}));function r8(e){return!e||e.length!==11?e:e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function o8(e){if(!e||e.length<8)return e;const n=e.length;return e.substring(0,3)+"*".repeat(n-7)+e.substring(n-4)}function i8(e){return!e||e.length===0||e.length===1?e:e.length===2?e[0]+"*":e.substring(0,e.length-1)+"*"}function a8(e){if(!e||e.length<8)return e;const n=e.length,r=e.substring(0,4),o=e.substring(n-4);return`${r} **** **** ${o}`}function l8(e){if(!e||!e.includes("@"))return e;const[n,r]=e.split("@");return n.length<=1?e:n[0]+"***@"+r}function s8(e,n=6){return!e||e.length<=n?e:e.substring(0,n)+"***"}function c8(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function u8(e){return e&&e.replace(/\b\w/g,n=>n.toUpperCase())}function d8(e){return e&&e.replace(/_([a-z])/g,(n,r)=>r.toUpperCase())}function f8(e){return e&&e.replace(/([A-Z])/g,"_$1").toLowerCase()}function h8(e){return e&&e.replace(/([A-Z])/g,"-$1").toLowerCase()}function p8(e){if(e==null||e==="")return"";const r=String(e).split(".");return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r.join(".")}function m8(e,n){const{currency:r="¥",decimals:o=2,thousandsSeparator:i=",",decimalSeparator:s="."}=n||{},l=typeof e=="string"?parseFloat(e):e;if(isNaN(l))return e.toString();const a=l.toFixed(o),[c,m]=a.split(".");let h=c.replace(/\B(?=(\d{3})+(?!\d))/g,i);return o>0&&m&&(h+=s+m),r+h}function g8(e,n=2){if(e===0)return"0 B";if(!e)return"";const r=1024,o=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(n))+" "+o[i]}function w8(e){return e&&e.replace(/\s/g,"").replace(/(\d{4})(?=\d)/g,"$1 ")}function y8(e){return e&&e.replace(/\s/g,"").replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3")}function v8(e=8,n="alphanumeric"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="0123456789";let s=r+o;n==="alpha"&&(s=r),n==="number"&&(s=o);let l="";for(let a=0;a<e;a++)l+=s.charAt(Math.floor(Math.random()*s.length));return l}function Q8(e){const n=Date.now(),r=Math.random().toString(36).substring(2,8);return e?`${e}_${n}_${r}`:`${n}_${r}`}function k8(e,n,r="..."){return!e||e.length<=n?e:e.substring(0,n)+r}function b8(e){return e&&e.replace(/<[^>]*>/g,"")}function M8(e){if(!e)return e;const n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/g,r=>n[r])}function C8(e){if(!e)return e;const n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};return e.replace(/&(amp|lt|gt|quot|#x27|#x2F);/g,r=>n[r])}function _8(e){return e==null||e.trim()===""}function A8(e){return e&&e.split("").reverse().join("")}function D8(e,n){return!e||n<=0?"":e.repeat(n)}function N8(e,n,r=" "){return e||(e=""),e.padStart(n,r)}function I8(e,n,r=" "){return e||(e=""),e.padEnd(n,r)}const S8=Object.freeze(Object.defineProperty({__proto__:null,addressDesensitize:s8,bankCardDesensitize:a8,capitalize:c8,capitalizeWords:u8,emailDesensitize:l8,escapeHtml:M8,formatBankCard:w8,formatFileSize:g8,formatMoney:m8,formatNumber:p8,formatPhone:y8,generateUUID:Q8,idCardDesensitize:o8,isEmpty:_8,nameDesensitize:i8,padEnd:I8,padStart:N8,phoneDesensitize:r8,randomString:v8,removeHtmlTags:b8,repeat:D8,reverse:A8,toCamelCase:d8,toKebabCase:h8,toUnderlineCase:f8,truncate:k8,unescapeHtml:C8},Symbol.toStringTag,{value:"Module"}));function De(e){const n=e||(typeof window<"u"?window.location.href:"");if(!n)return{};const r=n.includes("?")?n.split("?")[1].split("#")[0]:"";if(!r)return{};const o={};return r.split("&").forEach(i=>{if(!i)return;const[s,l=""]=i.split("=").map(decodeURIComponent);s&&(s in o?Array.isArray(o[s])?o[s].push(l):o[s]=[o[s],l]:o[s]=l)}),o}function je(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(n)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function T8(e,n){const o=De(n)[e];return o===void 0?null:Array.isArray(o)?o[0]||null:o}function L8(e,n){const o=De(n)[e];return o===void 0?[]:Array.isArray(o)?o:[o]}function E8(e,n="push"){if(typeof window>"u"||!window.history)return;const o={...De(),...e};Object.keys(o).forEach(l=>{(o[l]===null||o[l]===void 0)&&delete o[l]});const i=je(o),s=i?`${window.location.pathname}?${i}`:window.location.pathname;n==="push"?window.history.pushState(null,"",s):window.history.replaceState(null,"",s)}function x8(e,n="push"){if(typeof window>"u"||!window.history)return;const r=De();e.forEach(s=>{delete r[s]});const o=je(r),i=o?`${window.location.pathname}?${o}`:window.location.pathname;n==="push"?window.history.pushState(null,"",i):window.history.replaceState(null,"",i)}function j8(e="push"){if(typeof window>"u"||!window.history)return;const n=window.location.pathname;e==="push"?window.history.pushState(null,"",n):window.history.replaceState(null,"",n)}function z8(...e){return e.length===0?"":e.map((n,r)=>r===0?n.replace(/\/+$/,""):r===e.length-1?n.replace(/^\/+/,""):n.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}function B8(e){if(!e)return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:"",search:"",hash:"",host:"",origin:"",href:"",params:{}};try{const n=new URL(e);return{protocol:n.protocol,username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search,hash:n.hash,host:n.host,origin:n.origin,href:n.href,params:De(e)}}catch{return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:e.split("?")[0].split("#")[0],search:e.includes("?")?"?"+e.split("?")[1].split("#")[0]:"",hash:e.includes("#")?"#"+e.split("#")[1]:"",host:"",origin:"",href:e,params:De(e)}}}function O8(e){const{protocol:n="https",hostname:r="",port:o="",pathname:i="",params:s={},hash:l=""}=e;if(!r)return i;let a=`${n}://${r}`;o&&(a+=`:${o}`),i&&(a+=i.startsWith("/")?i:`/${i}`);const c=je(s);return c&&(a+=`?${c}`),l&&(a+=l.startsWith("#")?l:`#${l}`),a}function F8(e){return e?/^(https?:)?\/\//.test(e):!1}function P8(e){return e?e.startsWith("/"):!1}function R8(e,n){try{const r=new URL(e),o=new URL(n);return r.origin===o.origin}catch{return!1}}function $8(e){return encodeURIComponent(e)}function V8(e){try{return decodeURIComponent(e)}catch{return e}}function U8(e){if(!e)return"";try{return encodeURI(decodeURI(e))}catch{return encodeURI(e)}}function W8(e){if(!e)return"";try{return decodeURI(e)}catch{return e}}function Z8(e,n){if(!e)return"";if(!n||Object.keys(n).length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?"),a={...s?De("?"+s):{},...n},c=je(a);let m=i;return c&&(m+=`?${c}`),o&&(m+=`#${o}`),m}function Y8(e,n){if(!e)return"";if(!n||n.length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?");if(!s)return e;const l=De("?"+s);n.forEach(m=>{delete l[m]});const a=je(l);let c=i;return a&&(c+=`?${a}`),o&&(c+=`#${o}`),c}function r1(e){try{return new URL(e).hostname}catch{return""}}function G8(e){const n=r1(e);if(!n)return"";const r=n.split(".");return r.length<=2?n:r.slice(-2).join(".")}function H8(){return typeof window>"u"?"":window.location.href}function J8(){return typeof window>"u"?"":window.location.pathname}function X8(){return typeof window>"u"?{}:De(window.location.search)}function K8(){return typeof window>"u"?"":window.location.hash.replace(/^#/,"")}const q8=Object.freeze(Object.defineProperty({__proto__:null,addQueryParams:Z8,buildUrl:O8,clearQueryParams:j8,decodeParam:V8,encodeParam:$8,getCurrentHash:K8,getCurrentPath:J8,getCurrentQuery:X8,getCurrentUrl:H8,getDomain:r1,getQueryParam:T8,getQueryParams:L8,getRootDomain:G8,isAbsolutePath:P8,isExternalLink:F8,isSameOrigin:R8,joinUrl:z8,parseQuery:De,parseUrl:B8,removeQueryParams:x8,removeQueryParamsFromUrl:Y8,safeDecodeUrl:W8,safeEncodeUrl:U8,stringifyQuery:je,updateQueryParams:E8},Symbol.toStringTag,{value:"Module"})),es={...Di,array:Hi,dom:Ia,number:tl,object:yl,perf:El,regex:n8,string:S8,url:q8};exports.twcptResolver=rn.twcptResolver;exports.twcptResolverWithOptions=rn.twcptResolverWithOptions;exports.DialogProvider=Re;exports.JTWAmap=a0;exports.JTWBtn=Ve;exports.JTWCheckbox=bt;exports.JTWCheckboxGroup=b2;exports.JTWConfirmDialog=dn;exports.JTWConfirmDialogIcon=ft;exports.JTWDatePicker=Nr;exports.JTWDateTimePicker=Er;exports.JTWDialog=mn;exports.JTWDialogFooterMode=pn;exports.JTWDialogPosition=fn;exports.JTWDialogSize=hn;exports.JTWDropdownBtn=g1;exports.JTWForm=h2;exports.JTWFormItem=g2;exports.JTWFormLabel=u2;exports.JTWInput=ln;exports.JTWMessages=un;exports.JTWMultiSelectBtn=B1;exports.JTWPagination=cn;exports.JTWRadio=_2;exports.JTWRadioGroup=N2;exports.JTWSelect=v2;exports.JTWStatusImg=Ue;exports.JTWTable=qr;exports.JTWToggle=x2;exports.JTWTooltip=T2;exports.JTWTreeSelect=r2;exports.JTWTreeSelectBtn=pr;exports.JTWTreeSelectInput=Mr;exports.PAGE_ACTION_PERMISSION_KEY=Mn;exports.PAGE_PERMISSION_KEY=bn;exports.composeIconMapFn=z0;exports.dialogConfirm=vn;exports.getLocale=kn;exports.getProjectPermissionId=E0;exports.getTwcptColors=L0;exports.getTwcptConfig=x0;exports.parseKMZFromUrl=ki;exports.parseKMZRouteFromUrl=Ln;exports.setLocale=et;exports.t=Qn;exports.twConfirmDialog=vn;exports.twDialog=Mo;exports.twMessages=yn;exports.twTool=es;exports.twcptIconMapFn=j0;exports.twcptInit=S0;exports.useBizRequest=F0;exports.useI18n=I0;exports.usePageActionPermissionSync=O0;exports.usePagePermissionSync=B0;exports.useRAFPolling=P0;
|
|
65
|
+
*/var qt;function g5(){return qt||(qt=1,(function(e,n){(function(r){e.exports=r()})(function(){return(function r(i,o,s){function l(g,v){if(!o[g]){if(!i[g]){var h=typeof He=="function"&&He;if(!v&&h)return h(g,!0);if(a)return a(g,!0);var y=new Error("Cannot find module '"+g+"'");throw y.code="MODULE_NOT_FOUND",y}var m=o[g]={exports:{}};i[g][0].call(m.exports,function(Q){var u=i[g][1][Q];return l(u||Q)},m,m.exports,r,i,o,s)}return o[g].exports}for(var a=typeof He=="function"&&He,c=0;c<s.length;c++)l(s[c]);return l})({1:[function(r,i,o){var s=r("./utils"),l=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(c){for(var g,v,h,y,m,Q,u,w=[],d=0,k=c.length,D=k,S=s.getTypeOf(c)!=="string";d<c.length;)D=k-d,h=S?(g=c[d++],v=d<k?c[d++]:0,d<k?c[d++]:0):(g=c.charCodeAt(d++),v=d<k?c.charCodeAt(d++):0,d<k?c.charCodeAt(d++):0),y=g>>2,m=(3&g)<<4|v>>4,Q=1<D?(15&v)<<2|h>>6:64,u=2<D?63&h:64,w.push(a.charAt(y)+a.charAt(m)+a.charAt(Q)+a.charAt(u));return w.join("")},o.decode=function(c){var g,v,h,y,m,Q,u=0,w=0,d="data:";if(c.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var k,D=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===a.charAt(64)&&D--,c.charAt(c.length-2)===a.charAt(64)&&D--,D%1!=0)throw new Error("Invalid base64 input, bad content length.");for(k=l.uint8array?new Uint8Array(0|D):new Array(0|D);u<c.length;)g=a.indexOf(c.charAt(u++))<<2|(y=a.indexOf(c.charAt(u++)))>>4,v=(15&y)<<4|(m=a.indexOf(c.charAt(u++)))>>2,h=(3&m)<<6|(Q=a.indexOf(c.charAt(u++))),k[w++]=g,m!==64&&(k[w++]=v),Q!==64&&(k[w++]=h);return k}},{"./support":30,"./utils":32}],2:[function(r,i,o){var s=r("./external"),l=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function g(v,h,y,m,Q){this.compressedSize=v,this.uncompressedSize=h,this.crc32=y,this.compression=m,this.compressedContent=Q}g.prototype={getContentWorker:function(){var v=new l(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return v.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),v},getCompressedWorker:function(){return new l(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(v,h,y){return v.pipe(new a).pipe(new c("uncompressedSize")).pipe(h.compressWorker(y)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},i.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,i,o){var s=r("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},o.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,i,o){var s=r("./utils"),l=(function(){for(var a,c=[],g=0;g<256;g++){a=g;for(var v=0;v<8;v++)a=1&a?3988292384^a>>>1:a>>>1;c[g]=a}return c})();i.exports=function(a,c){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(g,v,h,y){var m=l,Q=y+h;g^=-1;for(var u=y;u<Q;u++)g=g>>>8^m[255&(g^v[u])];return-1^g})(0|c,a,a.length,0):(function(g,v,h,y){var m=l,Q=y+h;g^=-1;for(var u=y;u<Q;u++)g=g>>>8^m[255&(g^v.charCodeAt(u))];return-1^g})(0|c,a,a.length,0):0}},{"./utils":32}],5:[function(r,i,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(r,i,o){var s=null;s=typeof Promise<"u"?Promise:r("lie"),i.exports={Promise:s}},{lie:37}],7:[function(r,i,o){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=r("pako"),a=r("./utils"),c=r("./stream/GenericWorker"),g=s?"uint8array":"array";function v(h,y){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=y,this.meta={}}o.magic="\b\0",a.inherits(v,c),v.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(g,h.data),!1)},v.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},v.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},v.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(y){h.push({data:y,meta:h.meta})}},o.compressWorker=function(h){return new v("Deflate",h)},o.uncompressWorker=function(){return new v("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,i,o){function s(m,Q){var u,w="";for(u=0;u<Q;u++)w+=String.fromCharCode(255&m),m>>>=8;return w}function l(m,Q,u,w,d,k){var D,S,C=m.file,I=m.compression,L=k!==g.utf8encode,F=a.transformTo("string",k(C.name)),_=a.transformTo("string",g.utf8encode(C.name)),x=C.comment,$=a.transformTo("string",k(x)),b=a.transformTo("string",g.utf8encode(x)),N=_.length!==C.name.length,p=b.length!==x.length,R="",K="",Z="",ae=C.dir,Y=C.date,re={crc32:0,compressedSize:0,uncompressedSize:0};Q&&!u||(re.crc32=m.crc32,re.compressedSize=m.compressedSize,re.uncompressedSize=m.uncompressedSize);var O=0;Q&&(O|=8),L||!N&&!p||(O|=2048);var z=0,oe=0;ae&&(z|=16),d==="UNIX"?(oe=798,z|=(function(T,H){var ne=T;return T||(ne=H?16893:33204),(65535&ne)<<16})(C.unixPermissions,ae)):(oe=20,z|=(function(T){return 63&(T||0)})(C.dosPermissions)),D=Y.getUTCHours(),D<<=6,D|=Y.getUTCMinutes(),D<<=5,D|=Y.getUTCSeconds()/2,S=Y.getUTCFullYear()-1980,S<<=4,S|=Y.getUTCMonth()+1,S<<=5,S|=Y.getUTCDate(),N&&(K=s(1,1)+s(v(F),4)+_,R+="up"+s(K.length,2)+K),p&&(Z=s(1,1)+s(v($),4)+b,R+="uc"+s(Z.length,2)+Z);var j="";return j+=`
|
|
66
|
+
\0`,j+=s(O,2),j+=I.magic,j+=s(D,2),j+=s(S,2),j+=s(re.crc32,4),j+=s(re.compressedSize,4),j+=s(re.uncompressedSize,4),j+=s(F.length,2),j+=s(R.length,2),{fileRecord:h.LOCAL_FILE_HEADER+j+F+R,dirRecord:h.CENTRAL_FILE_HEADER+s(oe,2)+j+s($.length,2)+"\0\0\0\0"+s(z,4)+s(w,4)+F+R+$}}var a=r("../utils"),c=r("../stream/GenericWorker"),g=r("../utf8"),v=r("../crc32"),h=r("../signature");function y(m,Q,u,w){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Q,this.zipPlatform=u,this.encodeFileName=w,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(y,c),y.prototype.push=function(m){var Q=m.meta.percent||0,u=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,c.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:u?(Q+100*(u-w-1))/u:100}}))},y.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var Q=this.streamFiles&&!m.file.dir;if(Q){var u=l(m,Q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},y.prototype.closedSource=function(m){this.accumulate=!1;var Q=this.streamFiles&&!m.file.dir,u=l(m,Q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),Q)this.push({data:(function(w){return h.DATA_DESCRIPTOR+s(w.crc32,4)+s(w.compressedSize,4)+s(w.uncompressedSize,4)})(m),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},y.prototype.flush=function(){for(var m=this.bytesWritten,Q=0;Q<this.dirRecords.length;Q++)this.push({data:this.dirRecords[Q],meta:{percent:100}});var u=this.bytesWritten-m,w=(function(d,k,D,S,C){var I=a.transformTo("string",C(S));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(d,2)+s(d,2)+s(k,4)+s(D,4)+s(I.length,2)+I})(this.dirRecords.length,u,m,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},y.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},y.prototype.registerPrevious=function(m){this._sources.push(m);var Q=this;return m.on("data",function(u){Q.processChunk(u)}),m.on("end",function(){Q.closedSource(Q.previous.streamInfo),Q._sources.length?Q.prepareNextSource():Q.end()}),m.on("error",function(u){Q.error(u)}),this},y.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},y.prototype.error=function(m){var Q=this._sources;if(!c.prototype.error.call(this,m))return!1;for(var u=0;u<Q.length;u++)try{Q[u].error(m)}catch{}return!0},y.prototype.lock=function(){c.prototype.lock.call(this);for(var m=this._sources,Q=0;Q<m.length;Q++)m[Q].lock()},i.exports=y},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,i,o){var s=r("../compressions"),l=r("./ZipFileWorker");o.generateWorker=function(a,c,g){var v=new l(c.streamFiles,g,c.platform,c.encodeFileName),h=0;try{a.forEach(function(y,m){h++;var Q=(function(k,D){var S=k||D,C=s[S];if(!C)throw new Error(S+" is not a valid compression method !");return C})(m.options.compression,c.compression),u=m.options.compressionOptions||c.compressionOptions||{},w=m.dir,d=m.date;m._compressWorker(Q,u).withStreamInfo("file",{name:y,dir:w,date:d,comment:m.comment||"",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(v)}),v.entriesCount=h}catch(y){v.error(y)}return v}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,i,o){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new s;for(var a in this)typeof this[a]!="function"&&(l[a]=this[a]);return l}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(l,a){return new s().loadAsync(l,a)},s.external=r("./external"),i.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,i,o){var s=r("./utils"),l=r("./external"),a=r("./utf8"),c=r("./zipEntries"),g=r("./stream/Crc32Probe"),v=r("./nodejsUtils");function h(y){return new l.Promise(function(m,Q){var u=y.decompressed.getContentWorker().pipe(new g);u.on("error",function(w){Q(w)}).on("end",function(){u.streamInfo.crc32!==y.decompressed.crc32?Q(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}i.exports=function(y,m){var Q=this;return m=s.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),v.isNode&&v.isStream(y)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",y,!0,m.optimizedBinaryString,m.base64).then(function(u){var w=new c(m);return w.load(u),w}).then(function(u){var w=[l.Promise.resolve(u)],d=u.files;if(m.checkCRC32)for(var k=0;k<d.length;k++)w.push(h(d[k]));return l.Promise.all(w)}).then(function(u){for(var w=u.shift(),d=w.files,k=0;k<d.length;k++){var D=d[k],S=D.fileNameStr,C=s.resolve(D.fileNameStr);Q.file(C,D.decompressed,{binary:!0,optimizedBinaryString:!0,date:D.date,dir:D.dir,comment:D.fileCommentStr.length?D.fileCommentStr:null,unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions,createFolders:m.createFolders}),D.dir||(Q.file(C).unsafeOriginalName=S)}return w.zipComment.length&&(Q.comment=w.zipComment),Q})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,i,o){var s=r("../utils"),l=r("../stream/GenericWorker");function a(c,g){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(g)}s.inherits(a,l),a.prototype._bindStream=function(c){var g=this;(this._stream=c).pause(),c.on("data",function(v){g.push({data:v,meta:{percent:0}})}).on("error",function(v){g.isPaused?this.generatedError=v:g.error(v)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},a.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,i,o){var s=r("readable-stream").Readable;function l(a,c,g){s.call(this,c),this._helper=a;var v=this;a.on("data",function(h,y){v.push(h)||v._helper.pause(),g&&g(y)}).on("error",function(h){v.emit("error",h)}).on("end",function(){v.push(null)})}r("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},i.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,i,o){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,l);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,l)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var l=new Buffer(s);return l.fill(0),l},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,i,o){function s(C,I,L){var F,_=a.getTypeOf(I),x=a.extend(L||{},v);x.date=x.date||new Date,x.compression!==null&&(x.compression=x.compression.toUpperCase()),typeof x.unixPermissions=="string"&&(x.unixPermissions=parseInt(x.unixPermissions,8)),x.unixPermissions&&16384&x.unixPermissions&&(x.dir=!0),x.dosPermissions&&16&x.dosPermissions&&(x.dir=!0),x.dir&&(C=d(C)),x.createFolders&&(F=w(C))&&k.call(this,F,!0);var $=_==="string"&&x.binary===!1&&x.base64===!1;L&&L.binary!==void 0||(x.binary=!$),(I instanceof h&&I.uncompressedSize===0||x.dir||!I||I.length===0)&&(x.base64=!1,x.binary=!0,I="",x.compression="STORE",_="string");var b=null;b=I instanceof h||I instanceof c?I:Q.isNode&&Q.isStream(I)?new u(C,I):a.prepareContent(C,I,x.binary,x.optimizedBinaryString,x.base64);var N=new y(C,b,x);this.files[C]=N}var l=r("./utf8"),a=r("./utils"),c=r("./stream/GenericWorker"),g=r("./stream/StreamHelper"),v=r("./defaults"),h=r("./compressedObject"),y=r("./zipObject"),m=r("./generate"),Q=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),w=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var I=C.lastIndexOf("/");return 0<I?C.substring(0,I):""},d=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},k=function(C,I){return I=I!==void 0?I:v.createFolders,C=d(C),this.files[C]||s.call(this,C,null,{dir:!0,createFolders:I}),this.files[C]};function D(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var I,L,F;for(I in this.files)F=this.files[I],(L=I.slice(this.root.length,I.length))&&I.slice(0,this.root.length)===this.root&&C(L,F)},filter:function(C){var I=[];return this.forEach(function(L,F){C(L,F)&&I.push(F)}),I},file:function(C,I,L){if(arguments.length!==1)return C=this.root+C,s.call(this,C,I,L),this;if(D(C)){var F=C;return this.filter(function(x,$){return!$.dir&&F.test(x)})}var _=this.files[this.root+C];return _&&!_.dir?_:null},folder:function(C){if(!C)return this;if(D(C))return this.filter(function(_,x){return x.dir&&C.test(_)});var I=this.root+C,L=k.call(this,I),F=this.clone();return F.root=L.name,F},remove:function(C){C=this.root+C;var I=this.files[C];if(I||(C.slice(-1)!=="/"&&(C+="/"),I=this.files[C]),I&&!I.dir)delete this.files[C];else for(var L=this.filter(function(_,x){return x.name.slice(0,C.length)===C}),F=0;F<L.length;F++)delete this.files[L[F].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var I,L={};try{if((L=a.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");a.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var F=L.comment||this.comment||"";I=m.generateWorker(this,L,F)}catch(_){(I=new c("error")).error(_)}return new g(I,L.type||"string",L.mimeType)},generateAsync:function(C,I){return this.generateInternalStream(C).accumulate(I)},generateNodeStream:function(C,I){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(I)}};i.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,i,o){i.exports=r("stream")},{stream:void 0}],17:[function(r,i,o){var s=r("./DataReader");function l(a){s.call(this,a);for(var c=0;c<this.data.length;c++)a[c]=255&a[c]}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data[this.zero+a]},l.prototype.lastIndexOfSignature=function(a){for(var c=a.charCodeAt(0),g=a.charCodeAt(1),v=a.charCodeAt(2),h=a.charCodeAt(3),y=this.length-4;0<=y;--y)if(this.data[y]===c&&this.data[y+1]===g&&this.data[y+2]===v&&this.data[y+3]===h)return y-this.zero;return-1},l.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),g=a.charCodeAt(1),v=a.charCodeAt(2),h=a.charCodeAt(3),y=this.readData(4);return c===y[0]&&g===y[1]&&v===y[2]&&h===y[3]},l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},i.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,i,o){var s=r("../utils");function l(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var c,g=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)g=(g<<8)+this.byteAt(c);return this.index+=a,g},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},i.exports=l},{"../utils":32}],19:[function(r,i,o){var s=r("./Uint8ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},i.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,i,o){var s=r("./DataReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},l.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},l.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},i.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,i,o){var s=r("./ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},i.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,i,o){var s=r("../utils"),l=r("../support"),a=r("./ArrayReader"),c=r("./StringReader"),g=r("./NodeBufferReader"),v=r("./Uint8ArrayReader");i.exports=function(h){var y=s.getTypeOf(h);return s.checkSupport(y),y!=="string"||l.uint8array?y==="nodebuffer"?new g(h):l.uint8array?new v(s.transformTo("uint8array",h)):new a(s.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,i,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,i,o){var s=r("./GenericWorker"),l=r("../utils");function a(c){s.call(this,"ConvertWorker to "+c),this.destType=c}l.inherits(a,s),a.prototype.processChunk=function(c){this.push({data:l.transformTo(this.destType,c.data),meta:c.meta})},i.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,i,o){var s=r("./GenericWorker"),l=r("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,s),a.prototype.processChunk=function(c){this.streamInfo.crc32=l(c.data,this.streamInfo.crc32||0),this.push(c)},i.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,i,o){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}s.inherits(a,l),a.prototype.processChunk=function(c){if(c){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+c.data.length}l.prototype.processChunk.call(this,c)},i.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,i,o){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(v){g.dataIsReady=!0,g.data=v,g.max=v&&v.length||0,g.type=s.getTypeOf(v),g.isPaused||g._tickAndRepeat()},function(v){g.error(v)})}s.inherits(a,l),a.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,g);break;case"uint8array":c=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":c=this.data.slice(this.index,g)}return this.index=g,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,i,o){function s(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,a){return this._listeners[l].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,a){if(this._listeners[l])for(var c=0;c<this._listeners[l].length;c++)this._listeners[l][c].call(this,a)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var a=this;return l.on("data",function(c){a.processChunk(c)}),l.on("end",function(){a.end()}),l.on("error",function(c){a.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,a){return this.extraStreamInfo[l]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},i.exports=s},{}],29:[function(r,i,o){var s=r("../utils"),l=r("./ConvertWorker"),a=r("./GenericWorker"),c=r("../base64"),g=r("../support"),v=r("../external"),h=null;if(g.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function y(Q,u){return new v.Promise(function(w,d){var k=[],D=Q._internalType,S=Q._outputType,C=Q._mimeType;Q.on("data",function(I,L){k.push(I),u&&u(L)}).on("error",function(I){k=[],d(I)}).on("end",function(){try{var I=(function(L,F,_){switch(L){case"blob":return s.newBlob(s.transformTo("arraybuffer",F),_);case"base64":return c.encode(F);default:return s.transformTo(L,F)}})(S,(function(L,F){var _,x=0,$=null,b=0;for(_=0;_<F.length;_++)b+=F[_].length;switch(L){case"string":return F.join("");case"array":return Array.prototype.concat.apply([],F);case"uint8array":for($=new Uint8Array(b),_=0;_<F.length;_++)$.set(F[_],x),x+=F[_].length;return $;case"nodebuffer":return Buffer.concat(F);default:throw new Error("concat : unsupported type '"+L+"'")}})(D,k),C);w(I)}catch(L){d(L)}k=[]}).resume()})}function m(Q,u,w){var d=u;switch(u){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=u,this._mimeType=w,s.checkSupport(d),this._worker=Q.pipe(new l(d)),Q.lock()}catch(k){this._worker=new a("error"),this._worker.error(k)}}m.prototype={accumulate:function(Q){return y(this,Q)},on:function(Q,u){var w=this;return Q==="data"?this._worker.on(Q,function(d){u.call(w,d.data,d.meta)}):this._worker.on(Q,function(){s.delay(u,arguments,w)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},Q)}},i.exports=m},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,i,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var s=new ArrayBuffer(0);try{o.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(s),o.blob=l.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!r("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(r,i,o){for(var s=r("./utils"),l=r("./support"),a=r("./nodejsUtils"),c=r("./stream/GenericWorker"),g=new Array(256),v=0;v<256;v++)g[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;g[254]=g[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function y(){c.call(this,"utf-8 encode")}o.utf8encode=function(m){return l.nodebuffer?a.newBufferFrom(m,"utf-8"):(function(Q){var u,w,d,k,D,S=Q.length,C=0;for(k=0;k<S;k++)(64512&(w=Q.charCodeAt(k)))==55296&&k+1<S&&(64512&(d=Q.charCodeAt(k+1)))==56320&&(w=65536+(w-55296<<10)+(d-56320),k++),C+=w<128?1:w<2048?2:w<65536?3:4;for(u=l.uint8array?new Uint8Array(C):new Array(C),k=D=0;D<C;k++)(64512&(w=Q.charCodeAt(k)))==55296&&k+1<S&&(64512&(d=Q.charCodeAt(k+1)))==56320&&(w=65536+(w-55296<<10)+(d-56320),k++),w<128?u[D++]=w:(w<2048?u[D++]=192|w>>>6:(w<65536?u[D++]=224|w>>>12:(u[D++]=240|w>>>18,u[D++]=128|w>>>12&63),u[D++]=128|w>>>6&63),u[D++]=128|63&w);return u})(m)},o.utf8decode=function(m){return l.nodebuffer?s.transformTo("nodebuffer",m).toString("utf-8"):(function(Q){var u,w,d,k,D=Q.length,S=new Array(2*D);for(u=w=0;u<D;)if((d=Q[u++])<128)S[w++]=d;else if(4<(k=g[d]))S[w++]=65533,u+=k-1;else{for(d&=k===2?31:k===3?15:7;1<k&&u<D;)d=d<<6|63&Q[u++],k--;1<k?S[w++]=65533:d<65536?S[w++]=d:(d-=65536,S[w++]=55296|d>>10&1023,S[w++]=56320|1023&d)}return S.length!==w&&(S.subarray?S=S.subarray(0,w):S.length=w),s.applyFromCharCode(S)})(m=s.transformTo(l.uint8array?"uint8array":"array",m))},s.inherits(h,c),h.prototype.processChunk=function(m){var Q=s.transformTo(l.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var u=Q;(Q=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),Q.set(u,this.leftOver.length)}else Q=this.leftOver.concat(Q);this.leftOver=null}var w=(function(k,D){var S;for((D=D||k.length)>k.length&&(D=k.length),S=D-1;0<=S&&(192&k[S])==128;)S--;return S<0||S===0?D:S+g[k[S]]>D?S:D})(Q),d=Q;w!==Q.length&&(l.uint8array?(d=Q.subarray(0,w),this.leftOver=Q.subarray(w,Q.length)):(d=Q.slice(0,w),this.leftOver=Q.slice(w,Q.length))),this.push({data:o.utf8decode(d),meta:m.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=h,s.inherits(y,c),y.prototype.processChunk=function(m){this.push({data:o.utf8encode(m.data),meta:m.meta})},o.Utf8EncodeWorker=y},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,i,o){var s=r("./support"),l=r("./base64"),a=r("./nodejsUtils"),c=r("./external");function g(u){return u}function v(u,w){for(var d=0;d<u.length;++d)w[d]=255&u.charCodeAt(d);return w}r("setimmediate"),o.newBlob=function(u,w){o.checkSupport("blob");try{return new Blob([u],{type:w})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(u),d.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(u,w,d){var k=[],D=0,S=u.length;if(S<=d)return String.fromCharCode.apply(null,u);for(;D<S;)w==="array"||w==="nodebuffer"?k.push(String.fromCharCode.apply(null,u.slice(D,Math.min(D+d,S)))):k.push(String.fromCharCode.apply(null,u.subarray(D,Math.min(D+d,S)))),D+=d;return k.join("")},stringifyByChar:function(u){for(var w="",d=0;d<u.length;d++)w+=String.fromCharCode(u[d]);return w},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function y(u){var w=65536,d=o.getTypeOf(u),k=!0;if(d==="uint8array"?k=h.applyCanBeUsed.uint8array:d==="nodebuffer"&&(k=h.applyCanBeUsed.nodebuffer),k)for(;1<w;)try{return h.stringifyByChunk(u,d,w)}catch{w=Math.floor(w/2)}return h.stringifyByChar(u)}function m(u,w){for(var d=0;d<u.length;d++)w[d]=u[d];return w}o.applyFromCharCode=y;var Q={};Q.string={string:g,array:function(u){return v(u,new Array(u.length))},arraybuffer:function(u){return Q.string.uint8array(u).buffer},uint8array:function(u){return v(u,new Uint8Array(u.length))},nodebuffer:function(u){return v(u,a.allocBuffer(u.length))}},Q.array={string:y,array:g,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},Q.arraybuffer={string:function(u){return y(new Uint8Array(u))},array:function(u){return m(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:g,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},Q.uint8array={string:y,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:g,nodebuffer:function(u){return a.newBufferFrom(u)}},Q.nodebuffer={string:y,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return Q.nodebuffer.uint8array(u).buffer},uint8array:function(u){return m(u,new Uint8Array(u.length))},nodebuffer:g},o.transformTo=function(u,w){if(w=w||"",!u)return w;o.checkSupport(u);var d=o.getTypeOf(w);return Q[d][u](w)},o.resolve=function(u){for(var w=u.split("/"),d=[],k=0;k<w.length;k++){var D=w[k];D==="."||D===""&&k!==0&&k!==w.length-1||(D===".."?d.pop():d.push(D))}return d.join("/")},o.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(u)?"nodebuffer":s.uint8array&&u instanceof Uint8Array?"uint8array":s.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(u){if(!s[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(u){var w,d,k="";for(d=0;d<(u||"").length;d++)k+="\\x"+((w=u.charCodeAt(d))<16?"0":"")+w.toString(16).toUpperCase();return k},o.delay=function(u,w,d){setImmediate(function(){u.apply(d||null,w||[])})},o.inherits=function(u,w){function d(){}d.prototype=w.prototype,u.prototype=new d},o.extend=function(){var u,w,d={};for(u=0;u<arguments.length;u++)for(w in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],w)&&d[w]===void 0&&(d[w]=arguments[u][w]);return d},o.prepareContent=function(u,w,d,k,D){return c.Promise.resolve(w).then(function(S){return s.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new c.Promise(function(C,I){var L=new FileReader;L.onload=function(F){C(F.target.result)},L.onerror=function(F){I(F.target.error)},L.readAsArrayBuffer(S)}):S}).then(function(S){var C=o.getTypeOf(S);return C?(C==="arraybuffer"?S=o.transformTo("uint8array",S):C==="string"&&(D?S=l.decode(S):d&&k!==!0&&(S=(function(I){return v(I,s.uint8array?new Uint8Array(I.length):new Array(I.length))})(S))),S):c.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,i,o){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./signature"),c=r("./zipEntry"),g=r("./support");function v(h){this.files=[],this.loadOptions=h}v.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var y=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(y)+", expected "+l.pretty(h)+")")}},isSignature:function(h,y){var m=this.reader.index;this.reader.setIndex(h);var Q=this.reader.readString(4)===y;return this.reader.setIndex(m),Q},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),y=g.uint8array?"uint8array":"array",m=l.transformTo(y,h);this.zipComment=this.loadOptions.decodeFileName(m)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,y,m,Q=this.zip64EndOfCentralSize-44;0<Q;)h=this.reader.readInt(2),y=this.reader.readInt(4),m=this.reader.readData(y),this.zip64ExtensibleData[h]={id:h,length:y,value:m}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,y;for(h=0;h<this.files.length;h++)y=this.files[h],this.reader.setIndex(y.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),y.readLocalPart(this.reader),y.handleUTF8(),y.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var y=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var Q=y-m;if(0<Q)this.isSignature(y,a.CENTRAL_FILE_HEADER)||(this.reader.zero=Q);else if(Q<0)throw new Error("Corrupted zip: missing "+Math.abs(Q)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=v},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,i,o){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./compressedObject"),c=r("./crc32"),g=r("./utf8"),v=r("./compressions"),h=r("./support");function y(m,Q){this.options=m,this.loadOptions=Q}y.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var Q,u;if(m.skip(22),this.fileNameLength=m.readInt(2),u=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((Q=(function(w){for(var d in v)if(Object.prototype.hasOwnProperty.call(v,d)&&v[d].magic===w)return v[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,Q,m.readData(this.compressedSize))},readCentralPart:function(m){this.versionMadeBy=m.readInt(2),m.skip(2),this.bitFlag=m.readInt(2),this.compressionMethod=m.readString(2),this.date=m.readDate(),this.crc32=m.readInt(4),this.compressedSize=m.readInt(4),this.uncompressedSize=m.readInt(4);var Q=m.readInt(2);if(this.extraFieldsLength=m.readInt(2),this.fileCommentLength=m.readInt(2),this.diskNumberStart=m.readInt(2),this.internalFileAttributes=m.readInt(2),this.externalFileAttributes=m.readInt(4),this.localHeaderOffset=m.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");m.skip(Q),this.readExtraFields(m),this.parseZIP64ExtraField(m),this.fileComment=m.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var m=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var Q,u,w,d=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<d;)Q=m.readInt(2),u=m.readInt(2),w=m.readData(u),this.extraFields[Q]={id:Q,length:u,value:w};m.setIndex(d)},handleUTF8:function(){var m=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var Q=this.findExtraFieldUnicodePath();if(Q!==null)this.fileNameStr=Q;else{var u=l.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var d=l.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var Q=s(m.value);return Q.readInt(1)!==1||c(this.fileName)!==Q.readInt(4)?null:g.utf8decode(Q.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var Q=s(m.value);return Q.readInt(1)!==1||c(this.fileComment)!==Q.readInt(4)?null:g.utf8decode(Q.readData(m.length-5))}return null}},i.exports=y},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,i,o){function s(Q,u,w){this.name=Q,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=u,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var l=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),c=r("./utf8"),g=r("./compressedObject"),v=r("./stream/GenericWorker");s.prototype={internalStream:function(Q){var u=null,w="string";try{if(!Q)throw new Error("No output type specified.");var d=(w=Q.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),u=this._decompressWorker();var k=!this._dataBinary;k&&!d&&(u=u.pipe(new c.Utf8EncodeWorker)),!k&&d&&(u=u.pipe(new c.Utf8DecodeWorker))}catch(D){(u=new v("error")).error(D)}return new l(u,w,"")},async:function(Q,u){return this.internalStream(Q).accumulate(u)},nodeStream:function(Q,u){return this.internalStream(Q||"nodebuffer").toNodejsStream(u)},_compressWorker:function(Q,u){if(this._data instanceof g&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new c.Utf8EncodeWorker)),g.createWorkerFrom(w,Q,u)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof v?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],y=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},m=0;m<h.length;m++)s.prototype[h[m]]=y;i.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,i,o){(function(s){var l,a,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var g=0,v=new c(Q),h=s.document.createTextNode("");v.observe(h,{characterData:!0}),l=function(){h.data=g=++g%2}}else if(s.setImmediate||s.MessageChannel===void 0)l="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var u=s.document.createElement("script");u.onreadystatechange=function(){Q(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},s.document.documentElement.appendChild(u)}:function(){setTimeout(Q,0)};else{var y=new s.MessageChannel;y.port1.onmessage=Q,l=function(){y.port2.postMessage(0)}}var m=[];function Q(){var u,w;a=!0;for(var d=m.length;d;){for(w=m,m=[],u=-1;++u<d;)w[u]();d=m.length}a=!1}i.exports=function(u){m.push(u)!==1||a||l()}}).call(this,typeof Ge<"u"?Ge:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,i,o){var s=r("immediate");function l(){}var a={},c=["REJECTED"],g=["FULFILLED"],v=["PENDING"];function h(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,d!==l&&u(this,d)}function y(d,k,D){this.promise=d,typeof k=="function"&&(this.onFulfilled=k,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}function m(d,k,D){s(function(){var S;try{S=k(D)}catch(C){return a.reject(d,C)}S===d?a.reject(d,new TypeError("Cannot resolve promise with itself")):a.resolve(d,S)})}function Q(d){var k=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof k=="function")return function(){k.apply(d,arguments)}}function u(d,k){var D=!1;function S(L){D||(D=!0,a.reject(d,L))}function C(L){D||(D=!0,a.resolve(d,L))}var I=w(function(){k(C,S)});I.status==="error"&&S(I.value)}function w(d,k){var D={};try{D.value=d(k),D.status="success"}catch(S){D.status="error",D.value=S}return D}(i.exports=h).prototype.finally=function(d){if(typeof d!="function")return this;var k=this.constructor;return this.then(function(D){return k.resolve(d()).then(function(){return D})},function(D){return k.resolve(d()).then(function(){throw D})})},h.prototype.catch=function(d){return this.then(null,d)},h.prototype.then=function(d,k){if(typeof d!="function"&&this.state===g||typeof k!="function"&&this.state===c)return this;var D=new this.constructor(l);return this.state!==v?m(D,this.state===g?d:k,this.outcome):this.queue.push(new y(D,d,k)),D},y.prototype.callFulfilled=function(d){a.resolve(this.promise,d)},y.prototype.otherCallFulfilled=function(d){m(this.promise,this.onFulfilled,d)},y.prototype.callRejected=function(d){a.reject(this.promise,d)},y.prototype.otherCallRejected=function(d){m(this.promise,this.onRejected,d)},a.resolve=function(d,k){var D=w(Q,k);if(D.status==="error")return a.reject(d,D.value);var S=D.value;if(S)u(d,S);else{d.state=g,d.outcome=k;for(var C=-1,I=d.queue.length;++C<I;)d.queue[C].callFulfilled(k)}return d},a.reject=function(d,k){d.state=c,d.outcome=k;for(var D=-1,S=d.queue.length;++D<S;)d.queue[D].callRejected(k);return d},h.resolve=function(d){return d instanceof this?d:a.resolve(new this(l),d)},h.reject=function(d){var k=new this(l);return a.reject(k,d)},h.all=function(d){var k=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=d.length,S=!1;if(!D)return this.resolve([]);for(var C=new Array(D),I=0,L=-1,F=new this(l);++L<D;)_(d[L],L);return F;function _(x,$){k.resolve(x).then(function(b){C[$]=b,++I!==D||S||(S=!0,a.resolve(F,C))},function(b){S||(S=!0,a.reject(F,b))})}},h.race=function(d){var k=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=d.length,S=!1;if(!D)return this.resolve([]);for(var C=-1,I=new this(l);++C<D;)L=d[C],k.resolve(L).then(function(F){S||(S=!0,a.resolve(I,F))},function(F){S||(S=!0,a.reject(I,F))});var L;return I}},{immediate:36}],38:[function(r,i,o){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),i.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,i,o){var s=r("./zlib/deflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/messages"),g=r("./zlib/zstream"),v=Object.prototype.toString,h=0,y=-1,m=0,Q=8;function u(d){if(!(this instanceof u))return new u(d);this.options=l.assign({level:y,method:Q,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},d||{});var k=this.options;k.raw&&0<k.windowBits?k.windowBits=-k.windowBits:k.gzip&&0<k.windowBits&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var D=s.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(D!==h)throw new Error(c[D]);if(k.header&&s.deflateSetHeader(this.strm,k.header),k.dictionary){var S;if(S=typeof k.dictionary=="string"?a.string2buf(k.dictionary):v.call(k.dictionary)==="[object ArrayBuffer]"?new Uint8Array(k.dictionary):k.dictionary,(D=s.deflateSetDictionary(this.strm,S))!==h)throw new Error(c[D]);this._dict_set=!0}}function w(d,k){var D=new u(k);if(D.push(d,!0),D.err)throw D.msg||c[D.err];return D.result}u.prototype.push=function(d,k){var D,S,C=this.strm,I=this.options.chunkSize;if(this.ended)return!1;S=k===~~k?k:k===!0?4:0,typeof d=="string"?C.input=a.string2buf(d):v.call(d)==="[object ArrayBuffer]"?C.input=new Uint8Array(d):C.input=d,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new l.Buf8(I),C.next_out=0,C.avail_out=I),(D=s.deflate(C,S))!==1&&D!==h)return this.onEnd(D),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(l.shrinkBuf(C.output,C.next_out))):this.onData(l.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&D!==1);return S===4?(D=s.deflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===h):S!==2||(this.onEnd(h),!(C.avail_out=0))},u.prototype.onData=function(d){this.chunks.push(d)},u.prototype.onEnd=function(d){d===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},o.Deflate=u,o.deflate=w,o.deflateRaw=function(d,k){return(k=k||{}).raw=!0,w(d,k)},o.gzip=function(d,k){return(k=k||{}).gzip=!0,w(d,k)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,i,o){var s=r("./zlib/inflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/constants"),g=r("./zlib/messages"),v=r("./zlib/zstream"),h=r("./zlib/gzheader"),y=Object.prototype.toString;function m(u){if(!(this instanceof m))return new m(u);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},u||{});var w=this.options;w.raw&&0<=w.windowBits&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),!(0<=w.windowBits&&w.windowBits<16)||u&&u.windowBits||(w.windowBits+=32),15<w.windowBits&&w.windowBits<48&&(15&w.windowBits)==0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var d=s.inflateInit2(this.strm,w.windowBits);if(d!==c.Z_OK)throw new Error(g[d]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function Q(u,w){var d=new m(w);if(d.push(u,!0),d.err)throw d.msg||g[d.err];return d.result}m.prototype.push=function(u,w){var d,k,D,S,C,I,L=this.strm,F=this.options.chunkSize,_=this.options.dictionary,x=!1;if(this.ended)return!1;k=w===~~w?w:w===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof u=="string"?L.input=a.binstring2buf(u):y.call(u)==="[object ArrayBuffer]"?L.input=new Uint8Array(u):L.input=u,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new l.Buf8(F),L.next_out=0,L.avail_out=F),(d=s.inflate(L,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&_&&(I=typeof _=="string"?a.string2buf(_):y.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,d=s.inflateSetDictionary(this.strm,I)),d===c.Z_BUF_ERROR&&x===!0&&(d=c.Z_OK,x=!1),d!==c.Z_STREAM_END&&d!==c.Z_OK)return this.onEnd(d),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&d!==c.Z_STREAM_END&&(L.avail_in!==0||k!==c.Z_FINISH&&k!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(D=a.utf8border(L.output,L.next_out),S=L.next_out-D,C=a.buf2string(L.output,D),L.next_out=S,L.avail_out=F-S,S&&l.arraySet(L.output,L.output,D,S,0),this.onData(C)):this.onData(l.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(x=!0)}while((0<L.avail_in||L.avail_out===0)&&d!==c.Z_STREAM_END);return d===c.Z_STREAM_END&&(k=c.Z_FINISH),k===c.Z_FINISH?(d=s.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===c.Z_OK):k!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(L.avail_out=0))},m.prototype.onData=function(u){this.chunks.push(u)},m.prototype.onEnd=function(u){u===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},o.Inflate=m,o.inflate=Q,o.inflateRaw=function(u,w){return(w=w||{}).raw=!0,Q(u,w)},o.ungzip=Q},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,i,o){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(c){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var v=g.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(var h in v)v.hasOwnProperty(h)&&(c[h]=v[h])}}return c},o.shrinkBuf=function(c,g){return c.length===g?c:c.subarray?c.subarray(0,g):(c.length=g,c)};var l={arraySet:function(c,g,v,h,y){if(g.subarray&&c.subarray)c.set(g.subarray(v,v+h),y);else for(var m=0;m<h;m++)c[y+m]=g[v+m]},flattenChunks:function(c){var g,v,h,y,m,Q;for(g=h=0,v=c.length;g<v;g++)h+=c[g].length;for(Q=new Uint8Array(h),g=y=0,v=c.length;g<v;g++)m=c[g],Q.set(m,y),y+=m.length;return Q}},a={arraySet:function(c,g,v,h,y){for(var m=0;m<h;m++)c[y+m]=g[v+m]},flattenChunks:function(c){return[].concat.apply([],c)}};o.setTyped=function(c){c?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,l)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(s)},{}],42:[function(r,i,o){var s=r("./common"),l=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var c=new s.Buf8(256),g=0;g<256;g++)c[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function v(h,y){if(y<65537&&(h.subarray&&a||!h.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(h,y));for(var m="",Q=0;Q<y;Q++)m+=String.fromCharCode(h[Q]);return m}c[254]=c[254]=1,o.string2buf=function(h){var y,m,Q,u,w,d=h.length,k=0;for(u=0;u<d;u++)(64512&(m=h.charCodeAt(u)))==55296&&u+1<d&&(64512&(Q=h.charCodeAt(u+1)))==56320&&(m=65536+(m-55296<<10)+(Q-56320),u++),k+=m<128?1:m<2048?2:m<65536?3:4;for(y=new s.Buf8(k),u=w=0;w<k;u++)(64512&(m=h.charCodeAt(u)))==55296&&u+1<d&&(64512&(Q=h.charCodeAt(u+1)))==56320&&(m=65536+(m-55296<<10)+(Q-56320),u++),m<128?y[w++]=m:(m<2048?y[w++]=192|m>>>6:(m<65536?y[w++]=224|m>>>12:(y[w++]=240|m>>>18,y[w++]=128|m>>>12&63),y[w++]=128|m>>>6&63),y[w++]=128|63&m);return y},o.buf2binstring=function(h){return v(h,h.length)},o.binstring2buf=function(h){for(var y=new s.Buf8(h.length),m=0,Q=y.length;m<Q;m++)y[m]=h.charCodeAt(m);return y},o.buf2string=function(h,y){var m,Q,u,w,d=y||h.length,k=new Array(2*d);for(m=Q=0;m<d;)if((u=h[m++])<128)k[Q++]=u;else if(4<(w=c[u]))k[Q++]=65533,m+=w-1;else{for(u&=w===2?31:w===3?15:7;1<w&&m<d;)u=u<<6|63&h[m++],w--;1<w?k[Q++]=65533:u<65536?k[Q++]=u:(u-=65536,k[Q++]=55296|u>>10&1023,k[Q++]=56320|1023&u)}return v(k,Q)},o.utf8border=function(h,y){var m;for((y=y||h.length)>h.length&&(y=h.length),m=y-1;0<=m&&(192&h[m])==128;)m--;return m<0||m===0?y:m+c[h[m]]>y?m:y}},{"./common":41}],43:[function(r,i,o){i.exports=function(s,l,a,c){for(var g=65535&s|0,v=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;v=v+(g=g+l[c++]|0)|0,--h;);g%=65521,v%=65521}return g|v<<16|0}},{}],44:[function(r,i,o){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,i,o){var s=(function(){for(var l,a=[],c=0;c<256;c++){l=c;for(var g=0;g<8;g++)l=1&l?3988292384^l>>>1:l>>>1;a[c]=l}return a})();i.exports=function(l,a,c,g){var v=s,h=g+c;l^=-1;for(var y=g;y<h;y++)l=l>>>8^v[255&(l^a[y])];return-1^l}},{}],46:[function(r,i,o){var s,l=r("../utils/common"),a=r("./trees"),c=r("./adler32"),g=r("./crc32"),v=r("./messages"),h=0,y=4,m=0,Q=-2,u=-1,w=4,d=2,k=8,D=9,S=286,C=30,I=19,L=2*S+1,F=15,_=3,x=258,$=x+_+1,b=42,N=113,p=1,R=2,K=3,Z=4;function ae(f,U){return f.msg=v[U],U}function Y(f){return(f<<1)-(4<f?9:0)}function re(f){for(var U=f.length;0<=--U;)f[U]=0}function O(f){var U=f.state,P=U.pending;P>f.avail_out&&(P=f.avail_out),P!==0&&(l.arraySet(f.output,U.pending_buf,U.pending_out,P,f.next_out),f.next_out+=P,U.pending_out+=P,f.total_out+=P,f.avail_out-=P,U.pending-=P,U.pending===0&&(U.pending_out=0))}function z(f,U){a._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,U),f.block_start=f.strstart,O(f.strm)}function oe(f,U){f.pending_buf[f.pending++]=U}function j(f,U){f.pending_buf[f.pending++]=U>>>8&255,f.pending_buf[f.pending++]=255&U}function T(f,U){var P,A,M=f.max_chain_length,E=f.strstart,W=f.prev_length,G=f.nice_match,B=f.strstart>f.w_size-$?f.strstart-(f.w_size-$):0,J=f.window,ee=f.w_mask,X=f.prev,le=f.strstart+x,he=J[E+W-1],se=J[E+W];f.prev_length>=f.good_match&&(M>>=2),G>f.lookahead&&(G=f.lookahead);do if(J[(P=U)+W]===se&&J[P+W-1]===he&&J[P]===J[E]&&J[++P]===J[E+1]){E+=2,P++;do;while(J[++E]===J[++P]&&J[++E]===J[++P]&&J[++E]===J[++P]&&J[++E]===J[++P]&&J[++E]===J[++P]&&J[++E]===J[++P]&&J[++E]===J[++P]&&J[++E]===J[++P]&&E<le);if(A=x-(le-E),E=le-x,W<A){if(f.match_start=U,G<=(W=A))break;he=J[E+W-1],se=J[E+W]}}while((U=X[U&ee])>B&&--M!=0);return W<=f.lookahead?W:f.lookahead}function H(f){var U,P,A,M,E,W,G,B,J,ee,X=f.w_size;do{if(M=f.window_size-f.lookahead-f.strstart,f.strstart>=X+(X-$)){for(l.arraySet(f.window,f.window,X,X,0),f.match_start-=X,f.strstart-=X,f.block_start-=X,U=P=f.hash_size;A=f.head[--U],f.head[U]=X<=A?A-X:0,--P;);for(U=P=X;A=f.prev[--U],f.prev[U]=X<=A?A-X:0,--P;);M+=X}if(f.strm.avail_in===0)break;if(W=f.strm,G=f.window,B=f.strstart+f.lookahead,J=M,ee=void 0,ee=W.avail_in,J<ee&&(ee=J),P=ee===0?0:(W.avail_in-=ee,l.arraySet(G,W.input,W.next_in,ee,B),W.state.wrap===1?W.adler=c(W.adler,G,ee,B):W.state.wrap===2&&(W.adler=g(W.adler,G,ee,B)),W.next_in+=ee,W.total_in+=ee,ee),f.lookahead+=P,f.lookahead+f.insert>=_)for(E=f.strstart-f.insert,f.ins_h=f.window[E],f.ins_h=(f.ins_h<<f.hash_shift^f.window[E+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[E+_-1])&f.hash_mask,f.prev[E&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=E,E++,f.insert--,!(f.lookahead+f.insert<_)););}while(f.lookahead<$&&f.strm.avail_in!==0)}function ne(f,U){for(var P,A;;){if(f.lookahead<$){if(H(f),f.lookahead<$&&U===h)return p;if(f.lookahead===0)break}if(P=0,f.lookahead>=_&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+_-1])&f.hash_mask,P=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),P!==0&&f.strstart-P<=f.w_size-$&&(f.match_length=T(f,P)),f.match_length>=_)if(A=a._tr_tally(f,f.strstart-f.match_start,f.match_length-_),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=_){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+_-1])&f.hash_mask,P=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else A=a._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(A&&(z(f,!1),f.strm.avail_out===0))return p}return f.insert=f.strstart<_-1?f.strstart:_-1,U===y?(z(f,!0),f.strm.avail_out===0?K:Z):f.last_lit&&(z(f,!1),f.strm.avail_out===0)?p:R}function ie(f,U){for(var P,A,M;;){if(f.lookahead<$){if(H(f),f.lookahead<$&&U===h)return p;if(f.lookahead===0)break}if(P=0,f.lookahead>=_&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+_-1])&f.hash_mask,P=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=_-1,P!==0&&f.prev_length<f.max_lazy_match&&f.strstart-P<=f.w_size-$&&(f.match_length=T(f,P),f.match_length<=5&&(f.strategy===1||f.match_length===_&&4096<f.strstart-f.match_start)&&(f.match_length=_-1)),f.prev_length>=_&&f.match_length<=f.prev_length){for(M=f.strstart+f.lookahead-_,A=a._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-_),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=M&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+_-1])&f.hash_mask,P=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=_-1,f.strstart++,A&&(z(f,!1),f.strm.avail_out===0))return p}else if(f.match_available){if((A=a._tr_tally(f,0,f.window[f.strstart-1]))&&z(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return p}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(A=a._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<_-1?f.strstart:_-1,U===y?(z(f,!0),f.strm.avail_out===0?K:Z):f.last_lit&&(z(f,!1),f.strm.avail_out===0)?p:R}function V(f,U,P,A,M){this.good_length=f,this.max_lazy=U,this.nice_length=P,this.max_chain=A,this.func=M}function q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*L),this.dyn_dtree=new l.Buf16(2*(2*C+1)),this.bl_tree=new l.Buf16(2*(2*I+1)),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(F+1),this.heap=new l.Buf16(2*S+1),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*S+1),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function te(f){var U;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=d,(U=f.state).pending=0,U.pending_out=0,U.wrap<0&&(U.wrap=-U.wrap),U.status=U.wrap?b:N,f.adler=U.wrap===2?0:1,U.last_flush=h,a._tr_init(U),m):ae(f,Q)}function ue(f){var U=te(f);return U===m&&(function(P){P.window_size=2*P.w_size,re(P.head),P.max_lazy_match=s[P.level].max_lazy,P.good_match=s[P.level].good_length,P.nice_match=s[P.level].nice_length,P.max_chain_length=s[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=_-1,P.match_available=0,P.ins_h=0})(f.state),U}function pe(f,U,P,A,M,E){if(!f)return Q;var W=1;if(U===u&&(U=6),A<0?(W=0,A=-A):15<A&&(W=2,A-=16),M<1||D<M||P!==k||A<8||15<A||U<0||9<U||E<0||w<E)return ae(f,Q);A===8&&(A=9);var G=new q;return(f.state=G).strm=f,G.wrap=W,G.gzhead=null,G.w_bits=A,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=M+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+_-1)/_),G.window=new l.Buf8(2*G.w_size),G.head=new l.Buf16(G.hash_size),G.prev=new l.Buf16(G.w_size),G.lit_bufsize=1<<M+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new l.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=U,G.strategy=E,G.method=P,ue(f)}s=[new V(0,0,0,0,function(f,U){var P=65535;for(P>f.pending_buf_size-5&&(P=f.pending_buf_size-5);;){if(f.lookahead<=1){if(H(f),f.lookahead===0&&U===h)return p;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var A=f.block_start+P;if((f.strstart===0||f.strstart>=A)&&(f.lookahead=f.strstart-A,f.strstart=A,z(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-$&&(z(f,!1),f.strm.avail_out===0))return p}return f.insert=0,U===y?(z(f,!0),f.strm.avail_out===0?K:Z):(f.strstart>f.block_start&&(z(f,!1),f.strm.avail_out),p)}),new V(4,4,8,4,ne),new V(4,5,16,8,ne),new V(4,6,32,32,ne),new V(4,4,16,16,ie),new V(8,16,32,32,ie),new V(8,16,128,128,ie),new V(8,32,128,256,ie),new V(32,128,258,1024,ie),new V(32,258,258,4096,ie)],o.deflateInit=function(f,U){return pe(f,U,k,15,8,0)},o.deflateInit2=pe,o.deflateReset=ue,o.deflateResetKeep=te,o.deflateSetHeader=function(f,U){return f&&f.state?f.state.wrap!==2?Q:(f.state.gzhead=U,m):Q},o.deflate=function(f,U){var P,A,M,E;if(!f||!f.state||5<U||U<0)return f?ae(f,Q):Q;if(A=f.state,!f.output||!f.input&&f.avail_in!==0||A.status===666&&U!==y)return ae(f,f.avail_out===0?-5:Q);if(A.strm=f,P=A.last_flush,A.last_flush=U,A.status===b)if(A.wrap===2)f.adler=0,oe(A,31),oe(A,139),oe(A,8),A.gzhead?(oe(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),oe(A,255&A.gzhead.time),oe(A,A.gzhead.time>>8&255),oe(A,A.gzhead.time>>16&255),oe(A,A.gzhead.time>>24&255),oe(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),oe(A,255&A.gzhead.os),A.gzhead.extra&&A.gzhead.extra.length&&(oe(A,255&A.gzhead.extra.length),oe(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(f.adler=g(f.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=69):(oe(A,0),oe(A,0),oe(A,0),oe(A,0),oe(A,0),oe(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),oe(A,3),A.status=N);else{var W=k+(A.w_bits-8<<4)<<8;W|=(2<=A.strategy||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6,A.strstart!==0&&(W|=32),W+=31-W%31,A.status=N,j(A,W),A.strstart!==0&&(j(A,f.adler>>>16),j(A,65535&f.adler)),f.adler=1}if(A.status===69)if(A.gzhead.extra){for(M=A.pending;A.gzindex<(65535&A.gzhead.extra.length)&&(A.pending!==A.pending_buf_size||(A.gzhead.hcrc&&A.pending>M&&(f.adler=g(f.adler,A.pending_buf,A.pending-M,M)),O(f),M=A.pending,A.pending!==A.pending_buf_size));)oe(A,255&A.gzhead.extra[A.gzindex]),A.gzindex++;A.gzhead.hcrc&&A.pending>M&&(f.adler=g(f.adler,A.pending_buf,A.pending-M,M)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=73)}else A.status=73;if(A.status===73)if(A.gzhead.name){M=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>M&&(f.adler=g(f.adler,A.pending_buf,A.pending-M,M)),O(f),M=A.pending,A.pending===A.pending_buf_size)){E=1;break}E=A.gzindex<A.gzhead.name.length?255&A.gzhead.name.charCodeAt(A.gzindex++):0,oe(A,E)}while(E!==0);A.gzhead.hcrc&&A.pending>M&&(f.adler=g(f.adler,A.pending_buf,A.pending-M,M)),E===0&&(A.gzindex=0,A.status=91)}else A.status=91;if(A.status===91)if(A.gzhead.comment){M=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>M&&(f.adler=g(f.adler,A.pending_buf,A.pending-M,M)),O(f),M=A.pending,A.pending===A.pending_buf_size)){E=1;break}E=A.gzindex<A.gzhead.comment.length?255&A.gzhead.comment.charCodeAt(A.gzindex++):0,oe(A,E)}while(E!==0);A.gzhead.hcrc&&A.pending>M&&(f.adler=g(f.adler,A.pending_buf,A.pending-M,M)),E===0&&(A.status=103)}else A.status=103;if(A.status===103&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&O(f),A.pending+2<=A.pending_buf_size&&(oe(A,255&f.adler),oe(A,f.adler>>8&255),f.adler=0,A.status=N)):A.status=N),A.pending!==0){if(O(f),f.avail_out===0)return A.last_flush=-1,m}else if(f.avail_in===0&&Y(U)<=Y(P)&&U!==y)return ae(f,-5);if(A.status===666&&f.avail_in!==0)return ae(f,-5);if(f.avail_in!==0||A.lookahead!==0||U!==h&&A.status!==666){var G=A.strategy===2?(function(B,J){for(var ee;;){if(B.lookahead===0&&(H(B),B.lookahead===0)){if(J===h)return p;break}if(B.match_length=0,ee=a._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ee&&(z(B,!1),B.strm.avail_out===0))return p}return B.insert=0,J===y?(z(B,!0),B.strm.avail_out===0?K:Z):B.last_lit&&(z(B,!1),B.strm.avail_out===0)?p:R})(A,U):A.strategy===3?(function(B,J){for(var ee,X,le,he,se=B.window;;){if(B.lookahead<=x){if(H(B),B.lookahead<=x&&J===h)return p;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=_&&0<B.strstart&&(X=se[le=B.strstart-1])===se[++le]&&X===se[++le]&&X===se[++le]){he=B.strstart+x;do;while(X===se[++le]&&X===se[++le]&&X===se[++le]&&X===se[++le]&&X===se[++le]&&X===se[++le]&&X===se[++le]&&X===se[++le]&&le<he);B.match_length=x-(he-le),B.match_length>B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=_?(ee=a._tr_tally(B,1,B.match_length-_),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ee=a._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ee&&(z(B,!1),B.strm.avail_out===0))return p}return B.insert=0,J===y?(z(B,!0),B.strm.avail_out===0?K:Z):B.last_lit&&(z(B,!1),B.strm.avail_out===0)?p:R})(A,U):s[A.level].func(A,U);if(G!==K&&G!==Z||(A.status=666),G===p||G===K)return f.avail_out===0&&(A.last_flush=-1),m;if(G===R&&(U===1?a._tr_align(A):U!==5&&(a._tr_stored_block(A,0,0,!1),U===3&&(re(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),O(f),f.avail_out===0))return A.last_flush=-1,m}return U!==y?m:A.wrap<=0?1:(A.wrap===2?(oe(A,255&f.adler),oe(A,f.adler>>8&255),oe(A,f.adler>>16&255),oe(A,f.adler>>24&255),oe(A,255&f.total_in),oe(A,f.total_in>>8&255),oe(A,f.total_in>>16&255),oe(A,f.total_in>>24&255)):(j(A,f.adler>>>16),j(A,65535&f.adler)),O(f),0<A.wrap&&(A.wrap=-A.wrap),A.pending!==0?m:1)},o.deflateEnd=function(f){var U;return f&&f.state?(U=f.state.status)!==b&&U!==69&&U!==73&&U!==91&&U!==103&&U!==N&&U!==666?ae(f,Q):(f.state=null,U===N?ae(f,-3):m):Q},o.deflateSetDictionary=function(f,U){var P,A,M,E,W,G,B,J,ee=U.length;if(!f||!f.state||(E=(P=f.state).wrap)===2||E===1&&P.status!==b||P.lookahead)return Q;for(E===1&&(f.adler=c(f.adler,U,ee,0)),P.wrap=0,ee>=P.w_size&&(E===0&&(re(P.head),P.strstart=0,P.block_start=0,P.insert=0),J=new l.Buf8(P.w_size),l.arraySet(J,U,ee-P.w_size,P.w_size,0),U=J,ee=P.w_size),W=f.avail_in,G=f.next_in,B=f.input,f.avail_in=ee,f.next_in=0,f.input=U,H(P);P.lookahead>=_;){for(A=P.strstart,M=P.lookahead-(_-1);P.ins_h=(P.ins_h<<P.hash_shift^P.window[A+_-1])&P.hash_mask,P.prev[A&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=A,A++,--M;);P.strstart=A,P.lookahead=_-1,H(P)}return P.strstart+=P.lookahead,P.block_start=P.strstart,P.insert=P.lookahead,P.lookahead=0,P.match_length=P.prev_length=_-1,P.match_available=0,f.next_in=G,f.input=B,f.avail_in=W,P.wrap=E,m},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,i,o){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,i,o){i.exports=function(s,l){var a,c,g,v,h,y,m,Q,u,w,d,k,D,S,C,I,L,F,_,x,$,b,N,p,R;a=s.state,c=s.next_in,p=s.input,g=c+(s.avail_in-5),v=s.next_out,R=s.output,h=v-(l-s.avail_out),y=v+(s.avail_out-257),m=a.dmax,Q=a.wsize,u=a.whave,w=a.wnext,d=a.window,k=a.hold,D=a.bits,S=a.lencode,C=a.distcode,I=(1<<a.lenbits)-1,L=(1<<a.distbits)-1;e:do{D<15&&(k+=p[c++]<<D,D+=8,k+=p[c++]<<D,D+=8),F=S[k&I];t:for(;;){if(k>>>=_=F>>>24,D-=_,(_=F>>>16&255)===0)R[v++]=65535&F;else{if(!(16&_)){if((64&_)==0){F=S[(65535&F)+(k&(1<<_)-1)];continue t}if(32&_){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}x=65535&F,(_&=15)&&(D<_&&(k+=p[c++]<<D,D+=8),x+=k&(1<<_)-1,k>>>=_,D-=_),D<15&&(k+=p[c++]<<D,D+=8,k+=p[c++]<<D,D+=8),F=C[k&L];n:for(;;){if(k>>>=_=F>>>24,D-=_,!(16&(_=F>>>16&255))){if((64&_)==0){F=C[(65535&F)+(k&(1<<_)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if($=65535&F,D<(_&=15)&&(k+=p[c++]<<D,(D+=8)<_&&(k+=p[c++]<<D,D+=8)),m<($+=k&(1<<_)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(k>>>=_,D-=_,(_=v-h)<$){if(u<(_=$-_)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(N=d,(b=0)===w){if(b+=Q-_,_<x){for(x-=_;R[v++]=d[b++],--_;);b=v-$,N=R}}else if(w<_){if(b+=Q+w-_,(_-=w)<x){for(x-=_;R[v++]=d[b++],--_;);if(b=0,w<x){for(x-=_=w;R[v++]=d[b++],--_;);b=v-$,N=R}}}else if(b+=w-_,_<x){for(x-=_;R[v++]=d[b++],--_;);b=v-$,N=R}for(;2<x;)R[v++]=N[b++],R[v++]=N[b++],R[v++]=N[b++],x-=3;x&&(R[v++]=N[b++],1<x&&(R[v++]=N[b++]))}else{for(b=v-$;R[v++]=R[b++],R[v++]=R[b++],R[v++]=R[b++],2<(x-=3););x&&(R[v++]=R[b++],1<x&&(R[v++]=R[b++]))}break}}break}}while(c<g&&v<y);c-=x=D>>3,k&=(1<<(D-=x<<3))-1,s.next_in=c,s.next_out=v,s.avail_in=c<g?g-c+5:5-(c-g),s.avail_out=v<y?y-v+257:257-(v-y),a.hold=k,a.bits=D}},{}],49:[function(r,i,o){var s=r("../utils/common"),l=r("./adler32"),a=r("./crc32"),c=r("./inffast"),g=r("./inftrees"),v=1,h=2,y=0,m=-2,Q=1,u=852,w=592;function d(b){return(b>>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function k(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function D(b){var N;return b&&b.state?(N=b.state,b.total_in=b.total_out=N.total=0,b.msg="",N.wrap&&(b.adler=1&N.wrap),N.mode=Q,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new s.Buf32(u),N.distcode=N.distdyn=new s.Buf32(w),N.sane=1,N.back=-1,y):m}function S(b){var N;return b&&b.state?((N=b.state).wsize=0,N.whave=0,N.wnext=0,D(b)):m}function C(b,N){var p,R;return b&&b.state?(R=b.state,N<0?(p=0,N=-N):(p=1+(N>>4),N<48&&(N&=15)),N&&(N<8||15<N)?m:(R.window!==null&&R.wbits!==N&&(R.window=null),R.wrap=p,R.wbits=N,S(b))):m}function I(b,N){var p,R;return b?(R=new k,(b.state=R).window=null,(p=C(b,N))!==y&&(b.state=null),p):m}var L,F,_=!0;function x(b){if(_){var N;for(L=new s.Buf32(512),F=new s.Buf32(32),N=0;N<144;)b.lens[N++]=8;for(;N<256;)b.lens[N++]=9;for(;N<280;)b.lens[N++]=7;for(;N<288;)b.lens[N++]=8;for(g(v,b.lens,0,288,L,0,b.work,{bits:9}),N=0;N<32;)b.lens[N++]=5;g(h,b.lens,0,32,F,0,b.work,{bits:5}),_=!1}b.lencode=L,b.lenbits=9,b.distcode=F,b.distbits=5}function $(b,N,p,R){var K,Z=b.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new s.Buf8(Z.wsize)),R>=Z.wsize?(s.arraySet(Z.window,N,p-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(R<(K=Z.wsize-Z.wnext)&&(K=R),s.arraySet(Z.window,N,p-R,K,Z.wnext),(R-=K)?(s.arraySet(Z.window,N,p-R,R,0),Z.wnext=R,Z.whave=Z.wsize):(Z.wnext+=K,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=K))),0}o.inflateReset=S,o.inflateReset2=C,o.inflateResetKeep=D,o.inflateInit=function(b){return I(b,15)},o.inflateInit2=I,o.inflate=function(b,N){var p,R,K,Z,ae,Y,re,O,z,oe,j,T,H,ne,ie,V,q,te,ue,pe,f,U,P,A,M=0,E=new s.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!b||!b.state||!b.output||!b.input&&b.avail_in!==0)return m;(p=b.state).mode===12&&(p.mode=13),ae=b.next_out,K=b.output,re=b.avail_out,Z=b.next_in,R=b.input,Y=b.avail_in,O=p.hold,z=p.bits,oe=Y,j=re,U=y;e:for(;;)switch(p.mode){case Q:if(p.wrap===0){p.mode=13;break}for(;z<16;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(2&p.wrap&&O===35615){E[p.check=0]=255&O,E[1]=O>>>8&255,p.check=a(p.check,E,2,0),z=O=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&O)<<8)+(O>>8))%31){b.msg="incorrect header check",p.mode=30;break}if((15&O)!=8){b.msg="unknown compression method",p.mode=30;break}if(z-=4,f=8+(15&(O>>>=4)),p.wbits===0)p.wbits=f;else if(f>p.wbits){b.msg="invalid window size",p.mode=30;break}p.dmax=1<<f,b.adler=p.check=1,p.mode=512&O?10:12,z=O=0;break;case 2:for(;z<16;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(p.flags=O,(255&p.flags)!=8){b.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){b.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=O>>8&1),512&p.flags&&(E[0]=255&O,E[1]=O>>>8&255,p.check=a(p.check,E,2,0)),z=O=0,p.mode=3;case 3:for(;z<32;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}p.head&&(p.head.time=O),512&p.flags&&(E[0]=255&O,E[1]=O>>>8&255,E[2]=O>>>16&255,E[3]=O>>>24&255,p.check=a(p.check,E,4,0)),z=O=0,p.mode=4;case 4:for(;z<16;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}p.head&&(p.head.xflags=255&O,p.head.os=O>>8),512&p.flags&&(E[0]=255&O,E[1]=O>>>8&255,p.check=a(p.check,E,2,0)),z=O=0,p.mode=5;case 5:if(1024&p.flags){for(;z<16;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}p.length=O,p.head&&(p.head.extra_len=O),512&p.flags&&(E[0]=255&O,E[1]=O>>>8&255,p.check=a(p.check,E,2,0)),z=O=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(Y<(T=p.length)&&(T=Y),T&&(p.head&&(f=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),s.arraySet(p.head.extra,R,Z,T,f)),512&p.flags&&(p.check=a(p.check,R,T,Z)),Y-=T,Z+=T,p.length-=T),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(Y===0)break e;for(T=0;f=R[Z+T++],p.head&&f&&p.length<65536&&(p.head.name+=String.fromCharCode(f)),f&&T<Y;);if(512&p.flags&&(p.check=a(p.check,R,T,Z)),Y-=T,Z+=T,f)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(Y===0)break e;for(T=0;f=R[Z+T++],p.head&&f&&p.length<65536&&(p.head.comment+=String.fromCharCode(f)),f&&T<Y;);if(512&p.flags&&(p.check=a(p.check,R,T,Z)),Y-=T,Z+=T,f)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;z<16;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(O!==(65535&p.check)){b.msg="header crc mismatch",p.mode=30;break}z=O=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),b.adler=p.check=0,p.mode=12;break;case 10:for(;z<32;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}b.adler=p.check=d(O),z=O=0,p.mode=11;case 11:if(p.havedict===0)return b.next_out=ae,b.avail_out=re,b.next_in=Z,b.avail_in=Y,p.hold=O,p.bits=z,2;b.adler=p.check=1,p.mode=12;case 12:if(N===5||N===6)break e;case 13:if(p.last){O>>>=7&z,z-=7&z,p.mode=27;break}for(;z<3;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}switch(p.last=1&O,z-=1,3&(O>>>=1)){case 0:p.mode=14;break;case 1:if(x(p),p.mode=20,N!==6)break;O>>>=2,z-=2;break e;case 2:p.mode=17;break;case 3:b.msg="invalid block type",p.mode=30}O>>>=2,z-=2;break;case 14:for(O>>>=7&z,z-=7&z;z<32;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if((65535&O)!=(O>>>16^65535)){b.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&O,z=O=0,p.mode=15,N===6)break e;case 15:p.mode=16;case 16:if(T=p.length){if(Y<T&&(T=Y),re<T&&(T=re),T===0)break e;s.arraySet(K,R,Z,T,ae),Y-=T,Z+=T,re-=T,ae+=T,p.length-=T;break}p.mode=12;break;case 17:for(;z<14;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(p.nlen=257+(31&O),O>>>=5,z-=5,p.ndist=1+(31&O),O>>>=5,z-=5,p.ncode=4+(15&O),O>>>=4,z-=4,286<p.nlen||30<p.ndist){b.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;z<3;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}p.lens[W[p.have++]]=7&O,O>>>=3,z-=3}for(;p.have<19;)p.lens[W[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,P={bits:p.lenbits},U=g(0,p.lens,0,19,p.lencode,0,p.work,P),p.lenbits=P.bits,U){b.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;V=(M=p.lencode[O&(1<<p.lenbits)-1])>>>16&255,q=65535&M,!((ie=M>>>24)<=z);){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(q<16)O>>>=ie,z-=ie,p.lens[p.have++]=q;else{if(q===16){for(A=ie+2;z<A;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(O>>>=ie,z-=ie,p.have===0){b.msg="invalid bit length repeat",p.mode=30;break}f=p.lens[p.have-1],T=3+(3&O),O>>>=2,z-=2}else if(q===17){for(A=ie+3;z<A;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}z-=ie,f=0,T=3+(7&(O>>>=ie)),O>>>=3,z-=3}else{for(A=ie+7;z<A;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}z-=ie,f=0,T=11+(127&(O>>>=ie)),O>>>=7,z-=7}if(p.have+T>p.nlen+p.ndist){b.msg="invalid bit length repeat",p.mode=30;break}for(;T--;)p.lens[p.have++]=f}}if(p.mode===30)break;if(p.lens[256]===0){b.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,P={bits:p.lenbits},U=g(v,p.lens,0,p.nlen,p.lencode,0,p.work,P),p.lenbits=P.bits,U){b.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,P={bits:p.distbits},U=g(h,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,P),p.distbits=P.bits,U){b.msg="invalid distances set",p.mode=30;break}if(p.mode=20,N===6)break e;case 20:p.mode=21;case 21:if(6<=Y&&258<=re){b.next_out=ae,b.avail_out=re,b.next_in=Z,b.avail_in=Y,p.hold=O,p.bits=z,c(b,j),ae=b.next_out,K=b.output,re=b.avail_out,Z=b.next_in,R=b.input,Y=b.avail_in,O=p.hold,z=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;V=(M=p.lencode[O&(1<<p.lenbits)-1])>>>16&255,q=65535&M,!((ie=M>>>24)<=z);){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(V&&(240&V)==0){for(te=ie,ue=V,pe=q;V=(M=p.lencode[pe+((O&(1<<te+ue)-1)>>te)])>>>16&255,q=65535&M,!(te+(ie=M>>>24)<=z);){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}O>>>=te,z-=te,p.back+=te}if(O>>>=ie,z-=ie,p.back+=ie,p.length=q,V===0){p.mode=26;break}if(32&V){p.back=-1,p.mode=12;break}if(64&V){b.msg="invalid literal/length code",p.mode=30;break}p.extra=15&V,p.mode=22;case 22:if(p.extra){for(A=p.extra;z<A;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}p.length+=O&(1<<p.extra)-1,O>>>=p.extra,z-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;V=(M=p.distcode[O&(1<<p.distbits)-1])>>>16&255,q=65535&M,!((ie=M>>>24)<=z);){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if((240&V)==0){for(te=ie,ue=V,pe=q;V=(M=p.distcode[pe+((O&(1<<te+ue)-1)>>te)])>>>16&255,q=65535&M,!(te+(ie=M>>>24)<=z);){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}O>>>=te,z-=te,p.back+=te}if(O>>>=ie,z-=ie,p.back+=ie,64&V){b.msg="invalid distance code",p.mode=30;break}p.offset=q,p.extra=15&V,p.mode=24;case 24:if(p.extra){for(A=p.extra;z<A;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}p.offset+=O&(1<<p.extra)-1,O>>>=p.extra,z-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){b.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(re===0)break e;if(T=j-re,p.offset>T){if((T=p.offset-T)>p.whave&&p.sane){b.msg="invalid distance too far back",p.mode=30;break}H=T>p.wnext?(T-=p.wnext,p.wsize-T):p.wnext-T,T>p.length&&(T=p.length),ne=p.window}else ne=K,H=ae-p.offset,T=p.length;for(re<T&&(T=re),re-=T,p.length-=T;K[ae++]=ne[H++],--T;);p.length===0&&(p.mode=21);break;case 26:if(re===0)break e;K[ae++]=p.length,re--,p.mode=21;break;case 27:if(p.wrap){for(;z<32;){if(Y===0)break e;Y--,O|=R[Z++]<<z,z+=8}if(j-=re,b.total_out+=j,p.total+=j,j&&(b.adler=p.check=p.flags?a(p.check,K,j,ae-j):l(p.check,K,j,ae-j)),j=re,(p.flags?O:d(O))!==p.check){b.msg="incorrect data check",p.mode=30;break}z=O=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;z<32;){if(Y===0)break e;Y--,O+=R[Z++]<<z,z+=8}if(O!==(4294967295&p.total)){b.msg="incorrect length check",p.mode=30;break}z=O=0}p.mode=29;case 29:U=1;break e;case 30:U=-3;break e;case 31:return-4;case 32:default:return m}return b.next_out=ae,b.avail_out=re,b.next_in=Z,b.avail_in=Y,p.hold=O,p.bits=z,(p.wsize||j!==b.avail_out&&p.mode<30&&(p.mode<27||N!==4))&&$(b,b.output,b.next_out,j-b.avail_out)?(p.mode=31,-4):(oe-=b.avail_in,j-=b.avail_out,b.total_in+=oe,b.total_out+=j,p.total+=j,p.wrap&&j&&(b.adler=p.check=p.flags?a(p.check,K,j,b.next_out-j):l(p.check,K,j,b.next_out-j)),b.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(oe==0&&j===0||N===4)&&U===y&&(U=-5),U)},o.inflateEnd=function(b){if(!b||!b.state)return m;var N=b.state;return N.window&&(N.window=null),b.state=null,y},o.inflateGetHeader=function(b,N){var p;return b&&b.state?(2&(p=b.state).wrap)==0?m:((p.head=N).done=!1,y):m},o.inflateSetDictionary=function(b,N){var p,R=N.length;return b&&b.state?(p=b.state).wrap!==0&&p.mode!==11?m:p.mode===11&&l(1,N,R,0)!==p.check?-3:$(b,N,R,R)?(p.mode=31,-4):(p.havedict=1,y):m},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,i,o){var s=r("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(v,h,y,m,Q,u,w,d){var k,D,S,C,I,L,F,_,x,$=d.bits,b=0,N=0,p=0,R=0,K=0,Z=0,ae=0,Y=0,re=0,O=0,z=null,oe=0,j=new s.Buf16(16),T=new s.Buf16(16),H=null,ne=0;for(b=0;b<=15;b++)j[b]=0;for(N=0;N<m;N++)j[h[y+N]]++;for(K=$,R=15;1<=R&&j[R]===0;R--);if(R<K&&(K=R),R===0)return Q[u++]=20971520,Q[u++]=20971520,d.bits=1,0;for(p=1;p<R&&j[p]===0;p++);for(K<p&&(K=p),b=Y=1;b<=15;b++)if(Y<<=1,(Y-=j[b])<0)return-1;if(0<Y&&(v===0||R!==1))return-1;for(T[1]=0,b=1;b<15;b++)T[b+1]=T[b]+j[b];for(N=0;N<m;N++)h[y+N]!==0&&(w[T[h[y+N]]++]=N);if(L=v===0?(z=H=w,19):v===1?(z=l,oe-=257,H=a,ne-=257,256):(z=c,H=g,-1),b=p,I=u,ae=N=O=0,S=-1,C=(re=1<<(Z=K))-1,v===1&&852<re||v===2&&592<re)return 1;for(;;){for(F=b-ae,x=w[N]<L?(_=0,w[N]):w[N]>L?(_=H[ne+w[N]],z[oe+w[N]]):(_=96,0),k=1<<b-ae,p=D=1<<Z;Q[I+(O>>ae)+(D-=k)]=F<<24|_<<16|x|0,D!==0;);for(k=1<<b-1;O&k;)k>>=1;if(k!==0?(O&=k-1,O+=k):O=0,N++,--j[b]==0){if(b===R)break;b=h[y+w[N]]}if(K<b&&(O&C)!==S){for(ae===0&&(ae=K),I+=p,Y=1<<(Z=b-ae);Z+ae<R&&!((Y-=j[Z+ae])<=0);)Z++,Y<<=1;if(re+=1<<Z,v===1&&852<re||v===2&&592<re)return 1;Q[S=O&C]=K<<24|Z<<16|I-u|0}}return O!==0&&(Q[I+O]=b-ae<<24|64<<16|0),d.bits=K,0}},{"../utils/common":41}],51:[function(r,i,o){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,i,o){var s=r("../utils/common"),l=0,a=1;function c(M){for(var E=M.length;0<=--E;)M[E]=0}var g=0,v=29,h=256,y=h+1+v,m=30,Q=19,u=2*y+1,w=15,d=16,k=7,D=256,S=16,C=17,I=18,L=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(y+2));c($);var b=new Array(2*m);c(b);var N=new Array(512);c(N);var p=new Array(256);c(p);var R=new Array(v);c(R);var K,Z,ae,Y=new Array(m);function re(M,E,W,G,B){this.static_tree=M,this.extra_bits=E,this.extra_base=W,this.elems=G,this.max_length=B,this.has_stree=M&&M.length}function O(M,E){this.dyn_tree=M,this.max_code=0,this.stat_desc=E}function z(M){return M<256?N[M]:N[256+(M>>>7)]}function oe(M,E){M.pending_buf[M.pending++]=255&E,M.pending_buf[M.pending++]=E>>>8&255}function j(M,E,W){M.bi_valid>d-W?(M.bi_buf|=E<<M.bi_valid&65535,oe(M,M.bi_buf),M.bi_buf=E>>d-M.bi_valid,M.bi_valid+=W-d):(M.bi_buf|=E<<M.bi_valid&65535,M.bi_valid+=W)}function T(M,E,W){j(M,W[2*E],W[2*E+1])}function H(M,E){for(var W=0;W|=1&M,M>>>=1,W<<=1,0<--E;);return W>>>1}function ne(M,E,W){var G,B,J=new Array(w+1),ee=0;for(G=1;G<=w;G++)J[G]=ee=ee+W[G-1]<<1;for(B=0;B<=E;B++){var X=M[2*B+1];X!==0&&(M[2*B]=H(J[X]++,X))}}function ie(M){var E;for(E=0;E<y;E++)M.dyn_ltree[2*E]=0;for(E=0;E<m;E++)M.dyn_dtree[2*E]=0;for(E=0;E<Q;E++)M.bl_tree[2*E]=0;M.dyn_ltree[2*D]=1,M.opt_len=M.static_len=0,M.last_lit=M.matches=0}function V(M){8<M.bi_valid?oe(M,M.bi_buf):0<M.bi_valid&&(M.pending_buf[M.pending++]=M.bi_buf),M.bi_buf=0,M.bi_valid=0}function q(M,E,W,G){var B=2*E,J=2*W;return M[B]<M[J]||M[B]===M[J]&&G[E]<=G[W]}function te(M,E,W){for(var G=M.heap[W],B=W<<1;B<=M.heap_len&&(B<M.heap_len&&q(E,M.heap[B+1],M.heap[B],M.depth)&&B++,!q(E,G,M.heap[B],M.depth));)M.heap[W]=M.heap[B],W=B,B<<=1;M.heap[W]=G}function ue(M,E,W){var G,B,J,ee,X=0;if(M.last_lit!==0)for(;G=M.pending_buf[M.d_buf+2*X]<<8|M.pending_buf[M.d_buf+2*X+1],B=M.pending_buf[M.l_buf+X],X++,G===0?T(M,B,E):(T(M,(J=p[B])+h+1,E),(ee=L[J])!==0&&j(M,B-=R[J],ee),T(M,J=z(--G),W),(ee=F[J])!==0&&j(M,G-=Y[J],ee)),X<M.last_lit;);T(M,D,E)}function pe(M,E){var W,G,B,J=E.dyn_tree,ee=E.stat_desc.static_tree,X=E.stat_desc.has_stree,le=E.stat_desc.elems,he=-1;for(M.heap_len=0,M.heap_max=u,W=0;W<le;W++)J[2*W]!==0?(M.heap[++M.heap_len]=he=W,M.depth[W]=0):J[2*W+1]=0;for(;M.heap_len<2;)J[2*(B=M.heap[++M.heap_len]=he<2?++he:0)]=1,M.depth[B]=0,M.opt_len--,X&&(M.static_len-=ee[2*B+1]);for(E.max_code=he,W=M.heap_len>>1;1<=W;W--)te(M,J,W);for(B=le;W=M.heap[1],M.heap[1]=M.heap[M.heap_len--],te(M,J,1),G=M.heap[1],M.heap[--M.heap_max]=W,M.heap[--M.heap_max]=G,J[2*B]=J[2*W]+J[2*G],M.depth[B]=(M.depth[W]>=M.depth[G]?M.depth[W]:M.depth[G])+1,J[2*W+1]=J[2*G+1]=B,M.heap[1]=B++,te(M,J,1),2<=M.heap_len;);M.heap[--M.heap_max]=M.heap[1],(function(se,ke){var Oe,_e,Fe,me,Ze,st,Ne=ke.dyn_tree,Pt=ke.max_code,ln=ke.stat_desc.static_tree,an=ke.stat_desc.has_stree,sn=ke.stat_desc.extra_bits,Rt=ke.stat_desc.extra_base,Pe=ke.stat_desc.max_length,Ye=0;for(me=0;me<=w;me++)se.bl_count[me]=0;for(Ne[2*se.heap[se.heap_max]+1]=0,Oe=se.heap_max+1;Oe<u;Oe++)Pe<(me=Ne[2*Ne[2*(_e=se.heap[Oe])+1]+1]+1)&&(me=Pe,Ye++),Ne[2*_e+1]=me,Pt<_e||(se.bl_count[me]++,Ze=0,Rt<=_e&&(Ze=sn[_e-Rt]),st=Ne[2*_e],se.opt_len+=st*(me+Ze),an&&(se.static_len+=st*(ln[2*_e+1]+Ze)));if(Ye!==0){do{for(me=Pe-1;se.bl_count[me]===0;)me--;se.bl_count[me]--,se.bl_count[me+1]+=2,se.bl_count[Pe]--,Ye-=2}while(0<Ye);for(me=Pe;me!==0;me--)for(_e=se.bl_count[me];_e!==0;)Pt<(Fe=se.heap[--Oe])||(Ne[2*Fe+1]!==me&&(se.opt_len+=(me-Ne[2*Fe+1])*Ne[2*Fe],Ne[2*Fe+1]=me),_e--)}})(M,E),ne(J,he,M.bl_count)}function f(M,E,W){var G,B,J=-1,ee=E[1],X=0,le=7,he=4;for(ee===0&&(le=138,he=3),E[2*(W+1)+1]=65535,G=0;G<=W;G++)B=ee,ee=E[2*(G+1)+1],++X<le&&B===ee||(X<he?M.bl_tree[2*B]+=X:B!==0?(B!==J&&M.bl_tree[2*B]++,M.bl_tree[2*S]++):X<=10?M.bl_tree[2*C]++:M.bl_tree[2*I]++,J=B,he=(X=0)===ee?(le=138,3):B===ee?(le=6,3):(le=7,4))}function U(M,E,W){var G,B,J=-1,ee=E[1],X=0,le=7,he=4;for(ee===0&&(le=138,he=3),G=0;G<=W;G++)if(B=ee,ee=E[2*(G+1)+1],!(++X<le&&B===ee)){if(X<he)for(;T(M,B,M.bl_tree),--X!=0;);else B!==0?(B!==J&&(T(M,B,M.bl_tree),X--),T(M,S,M.bl_tree),j(M,X-3,2)):X<=10?(T(M,C,M.bl_tree),j(M,X-3,3)):(T(M,I,M.bl_tree),j(M,X-11,7));J=B,he=(X=0)===ee?(le=138,3):B===ee?(le=6,3):(le=7,4)}}c(Y);var P=!1;function A(M,E,W,G){j(M,(g<<1)+(G?1:0),3),(function(B,J,ee,X){V(B),oe(B,ee),oe(B,~ee),s.arraySet(B.pending_buf,B.window,J,ee,B.pending),B.pending+=ee})(M,E,W)}o._tr_init=function(M){P||((function(){var E,W,G,B,J,ee=new Array(w+1);for(B=G=0;B<v-1;B++)for(R[B]=G,E=0;E<1<<L[B];E++)p[G++]=B;for(p[G-1]=B,B=J=0;B<16;B++)for(Y[B]=J,E=0;E<1<<F[B];E++)N[J++]=B;for(J>>=7;B<m;B++)for(Y[B]=J<<7,E=0;E<1<<F[B]-7;E++)N[256+J++]=B;for(W=0;W<=w;W++)ee[W]=0;for(E=0;E<=143;)$[2*E+1]=8,E++,ee[8]++;for(;E<=255;)$[2*E+1]=9,E++,ee[9]++;for(;E<=279;)$[2*E+1]=7,E++,ee[7]++;for(;E<=287;)$[2*E+1]=8,E++,ee[8]++;for(ne($,y+1,ee),E=0;E<m;E++)b[2*E+1]=5,b[2*E]=H(E,5);K=new re($,L,h+1,y,w),Z=new re(b,F,0,m,w),ae=new re(new Array(0),_,0,Q,k)})(),P=!0),M.l_desc=new O(M.dyn_ltree,K),M.d_desc=new O(M.dyn_dtree,Z),M.bl_desc=new O(M.bl_tree,ae),M.bi_buf=0,M.bi_valid=0,ie(M)},o._tr_stored_block=A,o._tr_flush_block=function(M,E,W,G){var B,J,ee=0;0<M.level?(M.strm.data_type===2&&(M.strm.data_type=(function(X){var le,he=4093624447;for(le=0;le<=31;le++,he>>>=1)if(1&he&&X.dyn_ltree[2*le]!==0)return l;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return a;for(le=32;le<h;le++)if(X.dyn_ltree[2*le]!==0)return a;return l})(M)),pe(M,M.l_desc),pe(M,M.d_desc),ee=(function(X){var le;for(f(X,X.dyn_ltree,X.l_desc.max_code),f(X,X.dyn_dtree,X.d_desc.max_code),pe(X,X.bl_desc),le=Q-1;3<=le&&X.bl_tree[2*x[le]+1]===0;le--);return X.opt_len+=3*(le+1)+5+5+4,le})(M),B=M.opt_len+3+7>>>3,(J=M.static_len+3+7>>>3)<=B&&(B=J)):B=J=W+5,W+4<=B&&E!==-1?A(M,E,W,G):M.strategy===4||J===B?(j(M,2+(G?1:0),3),ue(M,$,b)):(j(M,4+(G?1:0),3),(function(X,le,he,se){var ke;for(j(X,le-257,5),j(X,he-1,5),j(X,se-4,4),ke=0;ke<se;ke++)j(X,X.bl_tree[2*x[ke]+1],3);U(X,X.dyn_ltree,le-1),U(X,X.dyn_dtree,he-1)})(M,M.l_desc.max_code+1,M.d_desc.max_code+1,ee+1),ue(M,M.dyn_ltree,M.dyn_dtree)),ie(M),G&&V(M)},o._tr_tally=function(M,E,W){return M.pending_buf[M.d_buf+2*M.last_lit]=E>>>8&255,M.pending_buf[M.d_buf+2*M.last_lit+1]=255&E,M.pending_buf[M.l_buf+M.last_lit]=255&W,M.last_lit++,E===0?M.dyn_ltree[2*W]++:(M.matches++,E--,M.dyn_ltree[2*(p[W]+h+1)]++,M.dyn_dtree[2*z(E)]++),M.last_lit===M.lit_bufsize-1},o._tr_align=function(M){j(M,2,3),T(M,D,$),(function(E){E.bi_valid===16?(oe(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):8<=E.bi_valid&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)})(M)}},{"../utils/common":41}],53:[function(r,i,o){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,i,o){(function(s){(function(l,a){if(!l.setImmediate){var c,g,v,h,y=1,m={},Q=!1,u=l.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(l);w=w&&w.setTimeout?w:l,c={}.toString.call(l.process)==="[object process]"?function(S){process.nextTick(function(){k(S)})}:(function(){if(l.postMessage&&!l.importScripts){var S=!0,C=l.onmessage;return l.onmessage=function(){S=!1},l.postMessage("","*"),l.onmessage=C,S}})()?(h="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",D,!1):l.attachEvent("onmessage",D),function(S){l.postMessage(h+S,"*")}):l.MessageChannel?((v=new MessageChannel).port1.onmessage=function(S){k(S.data)},function(S){v.port2.postMessage(S)}):u&&"onreadystatechange"in u.createElement("script")?(g=u.documentElement,function(S){var C=u.createElement("script");C.onreadystatechange=function(){k(S),C.onreadystatechange=null,g.removeChild(C),C=null},g.appendChild(C)}):function(S){setTimeout(k,0,S)},w.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var C=new Array(arguments.length-1),I=0;I<C.length;I++)C[I]=arguments[I+1];var L={callback:S,args:C};return m[y]=L,c(y),y++},w.clearImmediate=d}function d(S){delete m[S]}function k(S){if(Q)setTimeout(k,0,S);else{var C=m[S];if(C){Q=!0;try{(function(I){var L=I.callback,F=I.args;switch(F.length){case 0:L();break;case 1:L(F[0]);break;case 2:L(F[0],F[1]);break;case 3:L(F[0],F[1],F[2]);break;default:L.apply(a,F)}})(C)}finally{d(S),Q=!1}}}}function D(S){S.source===l&&typeof S.data=="string"&&S.data.indexOf(h)===0&&k(+S.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ge<"u"?Ge:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ft)),ft.exports}var w5=g5();const y5=Ct(w5);function Me(e,n){return Array.from(e.getElementsByTagName(n))}function nt(e){return e[0]==="#"?e:`#${e}`}function v5(e,n,r){return Array.from(e.getElementsByTagNameNS(r,n))}function Qe(e){return e==null||e.normalize(),(e==null?void 0:e.textContent)||""}function we(e,n,r){const i=e.getElementsByTagName(n);return i.length?i[0]:null}function Ce(e,n,r){const i={};if(!e)return i;const o=e.getElementsByTagName(n),s=o.length?o[0]:null;return s&&r?r(s,i):i}function je(e,n,r){const i=Qe(we(e,n));return i&&r?r(i)||{}:{}}function ye(e,n,r){const i=Number.parseFloat(Qe(we(e,n)));if(!Number.isNaN(i))return r&&r(i),i}function lt(e,n){const r={};for(const i of n)je(e,i,o=>{r[i]=o});return r}function N1(e){return(e==null?void 0:e.nodeType)===1}function S1(e,n){const r={},i=n==="stroke"||n==="fill"?n:`${n}-color`;return e[0]==="#"&&(e=e.substring(1)),e.length===6||e.length===3?r[i]=`#${e}`:e.length===8&&(r[`${n}-opacity`]=Number.parseInt(e.substring(0,2),16)/255,r[i]=`#${e.substring(6,8)}${e.substring(4,6)}${e.substring(2,4)}`),r}function rt(e,n,r){const i={};return ye(e,n,o=>{i[r]=o}),i}function At(e,n){return Ce(e,"color",r=>S1(Qe(r),n))}function Nt(e){return Ce(e,"Icon",(n,r)=>(je(n,"href",i=>{r.icon=i}),r))}function Q5(e){return Ce(e,"IconStyle",n=>Object.assign(At(n,"icon"),rt(n,"scale","icon-scale"),rt(n,"heading","icon-heading"),Ce(n,"hotSpot",r=>{const i=Number.parseFloat(r.getAttribute("x")||""),o=Number.parseFloat(r.getAttribute("y")||""),s=r.getAttribute("xunits")||"",l=r.getAttribute("yunits")||"";return!Number.isNaN(i)&&!Number.isNaN(o)?{"icon-offset":[i,o],"icon-offset-units":[s,l]}:{}}),Nt(n)))}function k5(e){return Ce(e,"LabelStyle",n=>Object.assign(At(n,"label"),rt(n,"scale","label-scale")))}function b5(e){return Ce(e,"LineStyle",n=>Object.assign(At(n,"stroke"),rt(n,"width","stroke-width")))}function M5(e){return Ce(e,"PolyStyle",(n,r)=>Object.assign(r,Ce(n,"color",i=>S1(Qe(i),"fill")),je(n,"fill",i=>{if(i==="0")return{"fill-opacity":0}}),je(n,"outline",i=>{if(i==="0")return{"stroke-opacity":0}})))}function at(e){return Object.assign({},M5(e),b5(e),k5(e),Q5(e))}const C5=/\s*/g,_5=/^\s*|\s*$/g,D5=/\s+/;function I1(e){return e.replace(C5,"").split(",").map(Number.parseFloat).filter(n=>!Number.isNaN(n)).slice(0,3)}function wt(e){return e.replace(_5,"").split(D5).map(I1).filter(n=>n.length>=2)}function A5(e){let n=Me(e,"coord");n.length===0&&(n=v5(e,"coord","*"));const r=n.map(i=>Qe(i).split(" ").map(Number.parseFloat));return r.length===0?null:{geometry:r.length>2?{type:"LineString",coordinates:r}:{type:"Point",coordinates:r[0]},times:Me(e,"when").map(i=>Qe(i))}}function T1(e){if(e.length===0)return e;const n=e[0],r=e[e.length-1];let i=!0;for(let o=0;o<Math.max(n.length,r.length);o++)if(n[o]!==r[o]){i=!1;break}return i?e:e.concat([e[0]])}function Ke(e){return Qe(we(e,"coordinates"))}function L1(e){let n=[],r=[];for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes.item(i);if(N1(o))switch(o.tagName){case"MultiGeometry":case"MultiTrack":case"gx:MultiTrack":{const s=L1(o);n=n.concat(s.geometries),r=r.concat(s.coordTimes);break}case"Point":{const s=I1(Ke(o));s.length>=2&&n.push({type:"Point",coordinates:s});break}case"LinearRing":case"LineString":{const s=wt(Ke(o));s.length>=2&&n.push({type:"LineString",coordinates:s});break}case"Polygon":{const s=[];for(const l of Me(o,"LinearRing")){const a=T1(wt(Ke(l)));a.length>=4&&s.push(a)}s.length&&n.push({type:"Polygon",coordinates:s});break}case"Track":case"gx:Track":{const s=A5(o);if(!s)break;const{times:l,geometry:a}=s;n.push(a),l.length&&r.push(l);break}}}return{geometries:n,coordTimes:r}}const Ee=e=>Number(e),yt={string:e=>e,int:Ee,uint:Ee,short:Ee,ushort:Ee,float:Ee,double:Ee,bool:e=>!!e};function St(e,n){return Ce(e,"ExtendedData",(r,i)=>{for(const o of Me(r,"Data"))i[o.getAttribute("name")||""]=Qe(we(o,"value"));for(const o of Me(r,"SimpleData")){const s=o.getAttribute("name")||"",l=n[s]||yt.string;i[s]=l(Qe(o))}return i})}function It(e){const n=we(e,"description");for(const r of Array.from((n==null?void 0:n.childNodes)||[]))if(r.nodeType===4)return{description:{"@type":"html",value:Qe(r)}};return{}}function Tt(e){return Ce(e,"TimeSpan",n=>({timespan:{begin:Qe(we(n,"begin")),end:Qe(we(n,"end"))}}))}function Lt(e){return Ce(e,"TimeStamp",n=>({timestamp:Qe(we(n,"when"))}))}function Et(e,n){return je(e,"styleUrl",r=>(r=nt(r),n[r]?Object.assign({styleUrl:r},n[r]):{styleUrl:r}))}var be;(function(e){e.ABSOLUTE="absolute",e.RELATIVE_TO_GROUND="relativeToGround",e.CLAMP_TO_GROUND="clampToGround",e.CLAMP_TO_SEAFLOOR="clampToSeaFloor",e.RELATIVE_TO_SEAFLOOR="relativeToSeaFloor"})(be||(be={}));function N5(e){switch(e==null?void 0:e.textContent){case be.ABSOLUTE:return be.ABSOLUTE;case be.CLAMP_TO_GROUND:return be.CLAMP_TO_GROUND;case be.CLAMP_TO_SEAFLOOR:return be.CLAMP_TO_SEAFLOOR;case be.RELATIVE_TO_GROUND:return be.RELATIVE_TO_GROUND;case be.RELATIVE_TO_SEAFLOOR:return be.RELATIVE_TO_SEAFLOOR}return null}function S5(e){return we(e,"gx:LatLonQuad")?{geometry:{type:"Polygon",coordinates:[T1(wt(Ke(e)))]}}:L5(e)}const I5=Math.PI/180;function T5(e,n,r){const i=[(e[0]+e[2])/2,(e[1]+e[3])/2];return[n[0].map(o=>{const s=o[1]-i[1],l=o[0]-i[0],a=Math.sqrt(s**2+l**2),c=Math.atan2(s,l)+r*I5;return[i[0]+Math.cos(c)*a,i[1]+Math.sin(c)*a]})]}function L5(e){const n=we(e,"LatLonBox");if(n){const r=ye(n,"north"),i=ye(n,"west"),o=ye(n,"east"),s=ye(n,"south"),l=ye(n,"rotation");if(typeof r=="number"&&typeof s=="number"&&typeof i=="number"&&typeof o=="number"){const a=[i,s,o,r];let c=[[[i,r],[o,r],[o,s],[i,s],[i,r]]];return typeof l=="number"&&(c=T5(a,c,l)),{bbox:a,geometry:{type:"Polygon",coordinates:c}}}}return null}function E5(e,n,r,i){var c;const o=S5(e),s=(o==null?void 0:o.geometry)||null;if(!s&&i.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"groundoverlay"},lt(e,["name","address","visibility","open","phoneNumber","description"]),It(e),Et(e,n),at(e),Nt(e),St(e,r),Tt(e),Lt(e))};o!=null&&o.bbox&&(l.bbox=o.bbox),((c=l.properties)==null?void 0:c.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function x5(e){const n=we(e,"Region");return n?{coordinateBox:z5(n),lod:j5(e)}:null}function j5(e){const n=we(e,"Lod");return n?[ye(n,"minLodPixels")??-1,ye(n,"maxLodPixels")??-1,ye(n,"minFadeExtent")??null,ye(n,"maxFadeExtent")??null]:null}function z5(e){const n=we(e,"LatLonAltBox");if(n){const r=ye(n,"north"),i=ye(n,"west"),o=ye(n,"east"),s=ye(n,"south");if(N5(we(n,"altitudeMode")||we(n,"gx:altitudeMode"))&&console.debug("Encountered an unsupported feature of KML for togeojson: please contact developers for support of altitude mode."),typeof r=="number"&&typeof s=="number"&&typeof i=="number"&&typeof o=="number")return{bbox:[i,s,o,r],geometry:{type:"Polygon",coordinates:[[[i,r],[o,r],[o,s],[i,s],[i,r]]]}}}return null}function B5(e){const n=we(e,"Link");return n?lt(n,["href","refreshMode","refreshInterval","viewRefreshMode","viewRefreshTime","viewBoundScale","viewFormat","httpQuery"]):{}}function O5(e,n,r,i){var c,g,v;const o=x5(e),s=((c=o==null?void 0:o.coordinateBox)==null?void 0:c.geometry)||null;if(!s&&i.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"networklink"},lt(e,["name","address","visibility","open","phoneNumber","styleUrl","refreshVisibility","flyToView","description"]),It(e),Et(e,n),at(e),Nt(e),St(e,r),Tt(e),Lt(e),B5(e),o!=null&&o.lod?{lod:o.lod}:{})};(g=o==null?void 0:o.coordinateBox)!=null&&g.bbox&&(l.bbox=o.coordinateBox.bbox),((v=l.properties)==null?void 0:v.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function F5(e){return e.length===0?null:e.length===1?e[0]:{type:"GeometryCollection",geometries:e}}function P5(e,n,r,i){var g;const{coordTimes:o,geometries:s}=L1(e),l=F5(s);if(!l&&i.skipNullGeometry)return null;const a={type:"Feature",geometry:l,properties:Object.assign(lt(e,["name","address","visibility","open","phoneNumber","description"]),It(e),Et(e,n),at(e),St(e,r),Tt(e),Lt(e),o.length?{coordinateProperties:{times:o.length===1?o[0]:o}}:{})};((g=a.properties)==null?void 0:g.visibility)!==void 0&&(a.properties.visibility=a.properties.visibility!=="0");const c=e.getAttribute("id");return c!==null&&c!==""&&(a.id=c),a}function R5(e){let n=e.getAttribute("id");const r=e.parentNode;return!n&&N1(r)&&r.localName==="CascadingStyle"&&(n=r.getAttribute("kml:id")||r.getAttribute("id")),nt(n||"")}function $5(e){const n={};for(const r of Me(e,"Style"))n[R5(r)]=at(r);for(const r of Me(e,"StyleMap")){const i=nt(r.getAttribute("id")||"");je(r,"styleUrl",o=>{o=nt(o),n[o]&&(n[i]=n[o])})}return n}function V5(e){const n={};for(const r of Me(e,"SimpleField"))n[r.getAttribute("name")||""]=yt[r.getAttribute("type")||""]||yt.string;return n}function*U5(e,n={skipNullGeometry:!1}){const r=e,i=$5(r),o=V5(r);for(const s of Me(r,"Placemark")){const l=P5(s,i,o,n);l&&(yield l)}for(const s of Me(r,"GroundOverlay")){const l=E5(s,i,o,n);l&&(yield l)}for(const s of Me(r,"NetworkLink")){const l=O5(s,i,o,n);l&&(yield l)}}function W5(e,n={skipNullGeometry:!1}){return{type:"FeatureCollection",features:Array.from(U5(e,n))}}function vt(e){const n=[],r=e.replace(/\s+/g," ").trim();if(!r)return n;const i=r.split(/\s+/);for(const o of i){const s=o.split(",").map(l=>Number(l.trim()));s.length>=2&&Number.isFinite(s[0])&&Number.isFinite(s[1])&&n.push([s[0],s[1]])}return n}function Z5(e){const n=e.split(",").map(r=>Number(r.trim()));return n.length>=2&&Number.isFinite(n[0])&&Number.isFinite(n[1])?[n[0],n[1]]:null}function e1(e){return e.replace(/wpml:/g,"")}function t1(e){const n=[],r=e.getElementsByTagName("Placemark");for(let i=0;i<r.length;i++){const o=r[i],s=o.getElementsByTagName("LineString")[0],l=o.getElementsByTagName("Point")[0];if(s){const a=s.getElementsByTagName("coordinates")[0];a!=null&&a.textContent&&n.push(...vt(a.textContent))}else if(l){const a=l.getElementsByTagName("coordinates")[0];if(a!=null&&a.textContent){const c=Z5(a.textContent.trim());c&&n.push(c)}}}return n}function Y5(e){const n=[],r=e.getElementsByTagName("Folder");if(r.length===0){const i=t1(e.documentElement);return i.length&&n.push(i),n}for(let i=0;i<r.length;i++){const o=t1(r[i]);o.length&&n.push(o)}return n}function G5(e){const n=e.getElementsByTagName("LinearRing");for(let i=0;i<n.length;i++){const o=n[i].getElementsByTagName("coordinates")[0];if(o!=null&&o.textContent){const s=vt(o.textContent);if(s.length>=3)return s}}const r=e.getElementsByTagName("Polygon");for(let i=0;i<r.length;i++){const s=r[i].getElementsByTagName("LinearRing")[0];if(s){const l=s.getElementsByTagName("coordinates")[0];if(l!=null&&l.textContent){const a=vt(l.textContent);if(a.length>=3)return a}}}}function n1(e,n){if(e)switch(e.type){case"LineString":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break;case"MultiLineString":for(const r of e.coordinates)for(const i of r)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&n.push([i[0],i[1]]);break;case"Polygon":for(const r of e.coordinates)for(const i of r)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&n.push([i[0],i[1]]);break;case"MultiPolygon":for(const r of e.coordinates)for(const i of r)for(const o of i)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"Point":Array.isArray(e.coordinates)&&e.coordinates.length>=2&&Number.isFinite(e.coordinates[0])&&Number.isFinite(e.coordinates[1])&&n.push([e.coordinates[0],e.coordinates[1]]);break;case"MultiPoint":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break}}function H5(e){const n=[];return e.features.forEach(r=>{if(r.geometry){const i=r.geometry;i.type==="GeometryCollection"&&Array.isArray(i.geometries)?i.geometries.forEach(o=>n1(o,n)):n1(i,n)}}),n}function r1(e){const r=new DOMParser().parseFromString(e,"text/xml"),i=W5(r);return H5(i)}async function E1(e){var r;const n={points:[],polylines:[]};try{if(!e||typeof e!="string"||e.trim()==="")return console.warn("KMZ URL 为空或无效"),n;const i=await fetch(e,{mode:"cors",credentials:"omit"});if(!i.ok)throw new Error(`HTTP错误: ${i.status} ${i.statusText}`);const o=await i.arrayBuffer(),a=(await new y5().loadAsync(o)).files,c=Object.keys(a).filter(m=>!a[m].dir),g=async m=>{const Q=a[m];return Q?Q.async("text"):null},v={points:[],polylines:[]},h=c.find(m=>m.replace(/\\/g,"/").endsWith("wpmz/waylines.wpml"))||c.find(m=>m.toLowerCase().endsWith("waylines.wpml"));if(h){const m=await g(h);if(m){const Q=e1(m),w=new DOMParser().parseFromString(Q,"text/xml"),d=Y5(w);d.length&&(v.polylines=d,v.points=d.flat())}}const y=c.find(m=>m.replace(/\\/g,"/").endsWith("wpmz/template.kml"))||c.find(m=>m.toLowerCase().endsWith("template.kml"));if(y){const m=await g(y);if(m){const Q=e1(m),w=new DOMParser().parseFromString(Q,"text/xml"),d=G5(w);d!=null&&d.length&&(v.polygonOutline=d);const k=r1(Q);k.length&&!v.points.length&&(v.points=k)}}if(!v.points.length&&!v.polylines.length){const m=c.find(Q=>Q.toLowerCase().endsWith(".kml"));if(m){const Q=await g(m);if(Q){const u=r1(Q);u.length&&(v.points=u,v.polylines=[u])}}}return!v.points.length&&((r=v.polygonOutline)!=null&&r.length)&&(v.points=[...v.polygonOutline]),v.points.length&&!v.polylines.length&&(v.polylines=[v.points]),v}catch(i){return console.error("KMZ解析失败:",i),n}}const J5=async e=>(await E1(e)).points;function qe(e){return e===!1?!1:e===0||String(e)==="0"||e?e:"-"}function x1(e){const{size:n,unit:r="B",maxUnit:i,numberFormatOptions:o}=e,{size:s,unit:l}=xt({size:n,unit:r},{maxUnit:i});return`${s.toLocaleString(void 0,o)} ${l}`}function xt(e,n){const r=["B","KB","MB","GB","TB"],{size:i,unit:o="B"}=e,s=r.indexOf(o);if(s===-1||s===r.length-1)return{size:i,unit:o};const l=(n==null?void 0:n.maxUnit)||"TB",a=r.indexOf(l);return s===a?{size:i,unit:o}:i<1024?{size:i,unit:o}:xt({size:i/1024,unit:r[s+1]},n)}function jt(e,n="-"){return(r,i)=>r===0||r==="0"?e?e(r,i):r:r?e?e(r,i):r.toString():n}function j1(e,n){const r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),l=s%12||12,a=e.getMinutes(),c=e.getSeconds(),g=e.getMilliseconds(),v=s<12?"AM":"PM",h={YYYY:String(r).padStart(4,"0"),YY:String(r%100).padStart(2,"0"),MM:String(i).padStart(2,"0"),M:String(i),DD:String(o).padStart(2,"0"),D:String(o),HH:String(s).padStart(2,"0"),H:String(s),hh:String(l).padStart(2,"0"),h:String(l),mm:String(a).padStart(2,"0"),m:String(a),ss:String(c).padStart(2,"0"),s:String(c),SSS:String(g).padStart(3,"0"),SS:String(g).padStart(3,"0").slice(0,2),S:String(g).padStart(3,"0").charAt(0),A:v,a:v.toLowerCase()};return n.replace(/YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a/g,y=>h[y]??y)}function z1(e){if(e==null)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;if(typeof e=="number"){const r=new Date(e);return isNaN(r.getTime())?null:r}let n=new Date(e);return isNaN(n.getTime())?(n=new Date(e.replace(" ","T")),isNaN(n.getTime())?null:n):n}function B1(e){if(e==null)return null;if(e instanceof Date)return e;const n=Number(e);if(Number.isFinite(n)){const r=String(Math.floor(n)).length;if(r===10)return n*1e3;if(r===13)return n;if(n===0)return 0}return e}function X5(e,n="YYYY-MM-DD HH:mm:ss"){const r=B1(e);if(!r&&r!==0)return qe(e);const i=z1(r);return qe(i?j1(i,n):e)}function K5(e="YYYY-MM-DD HH:mm:ss",n="-"){return(r,i)=>{if(r===0||r==="0")return String(r);const o=B1(r);if(!r||r==="Invalid Date")return n;try{const s=z1(o);if(!s)return n;const l=j1(s,e);return!l||l==="Invalid Date"?n:l}catch(s){return console.error("Date formatting failed:",s),n}}}function q5(e="-",n){return jt(i=>{const o=typeof i=="string"?Number(i):i;return Number.isFinite(o)?x1({size:o,unit:(n==null?void 0:n.unit)||"B",numberFormatOptions:{maximumFractionDigits:n==null?void 0:n.digits,minimumFractionDigits:n==null?void 0:n.digits}}):i},e)}function ei(e="-",n){return jt(i=>{const o=["B","KB","MB","GB","TB"];let s=typeof i=="string"?Number(i):i,l=(n==null?void 0:n.unit)||"B";const a=(n==null?void 0:n.digits)??2;if(s===0)return`${s.toFixed(a)} ${l}`;let c=o.indexOf(l);for(c===-1&&(c=0,l="B");c<o.length-1&&s%1024===0;)s=s/1024,c++,l=o[c];return`${s.toFixed(a)} ${l}`},e)}function ti(e,n,r,i){const o=["B","KB","MB","GB","TB"],s=(i==null?void 0:i.digits)??2,l=(i==null?void 0:i.showUnit)??!0,a=typeof e=="string"?Number(e):e;if(!Number.isFinite(a))return e;const c=o.indexOf(n),g=o.indexOf(r);if(c===-1||g===-1)return e;const v=c-g,y=(a*Math.pow(1024,v)).toFixed(s);return l?`${y} ${r}`:Number(y)}const ni=Object.freeze(Object.defineProperty({__proto__:null,convertDataUnit:ti,defaultAutoDataFormat:ei,defaultDataFormat:q5,defaultDateFormat:K5,defaultFill:qe,defaultFormat:jt,formatDate:X5,formatSize:x1,getUpperSize:xt},Symbol.toStringTag,{value:"Module"}));function ri(e){return Array.isArray(e)?[...new Set(e)]:e}function oi(e,n){if(!Array.isArray(e))return e;const r=new Map;return e.filter(i=>{const o=i[n];return r.has(o)?!1:(r.set(o,!0),!0)})}function ii(e,n){if(!Array.isArray(e))return e;const r=new Set;return e.filter(i=>{const o=n.map(s=>i[s]).join("|");return r.has(o)?!1:(r.add(o),!0)})}function li(e,n){if(!Array.isArray(e))return e;const{idKey:r="id",parentKey:i="parentId",childrenKey:o="children",rootParentValue:s=null}=n||{},l=new Map,a=[];return e.forEach(c=>{l.set(c[r],{...c,[o]:[]})}),e.forEach(c=>{const g=l.get(c[r]);if(!g)return;const v=c[i];if(v===s||v===void 0)a.push(g);else{const h=l.get(v);h?(h[o]||(h[o]=[]),h[o].push(g)):a.push(g)}}),a}function ai(e,n="children"){if(!Array.isArray(e))return e;const r=[],i=o=>{o.forEach(s=>{const l=s[n],a={...s};delete a[n],r.push(a),Array.isArray(l)&&l.length>0&&i(l)})};return i(e),r}function O1(e,n,r="children"){if(!Array.isArray(e))return null;for(const i of e){if(n(i))return i;if(Array.isArray(i[r])&&i[r].length>0){const o=O1(i[r],n,r);if(o)return o}}return null}function si(e,n,r="children"){if(!Array.isArray(e))return;const i=(o,s,l)=>{o.forEach(a=>{n(a,s,l),Array.isArray(a[r])&&a[r].length>0&&i(a[r],a,l+1)})};i(e,null,0)}function ci(e,n){return Array.isArray(e)?e.reduce((r,i)=>{const o=String(i[n]);return r[o]||(r[o]=[]),r[o].push(i),r},{}):{}}function ui(e,n){return Array.isArray(e)?e.reduce((r,i)=>{const o=n(i);return r[o]||(r[o]=[]),r[o].push(i),r},{}):{}}function di(e,n,r="asc"){return Array.isArray(e)?[...e].sort((i,o)=>{const s=i[n],l=o[n];return s<l?r==="asc"?-1:1:s>l?r==="asc"?1:-1:0}):e}function fi(e,n){return Array.isArray(e)?[...e].sort((r,i)=>{for(const{key:o,order:s="asc"}of n){const l=r[o],a=i[o];if(l<a)return s==="asc"?-1:1;if(l>a)return s==="asc"?1:-1}return 0}):e}function F1(e,n){return Array.isArray(e)?e.reduce((r,i)=>{const o=n?i[n]:i;return r+(Number(o)||0)},0):0}function hi(e,n){return!Array.isArray(e)||e.length===0?0:F1(e,n)/e.length}function pi(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(i=>{const o=n?i[n]:i;return Number(o)||0});return Math.max(...r)}function mi(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(i=>{const o=n?i[n]:i;return Number(o)||0});return Math.min(...r)}function gi(e,n){if(!Array.isArray(e)||n<=0)return[e];const r=[];for(let i=0;i<e.length;i+=n)r.push(e.slice(i,i+n));return r}function wi(e,n){if(!Array.isArray(e)||!Array.isArray(n))return[];const r=new Set(n);return e.filter(i=>r.has(i))}function yi(e,n){return Array.isArray(e)?Array.isArray(n)?[...new Set([...e,...n])]:e||[]:n||[]}function vi(e,n){if(!Array.isArray(e))return[];if(!Array.isArray(n))return e;const r=new Set(n);return e.filter(i=>!r.has(i))}function P1(e){if(!Array.isArray(e))return e;const n=[...e];for(let r=n.length-1;r>0;r--){const i=Math.floor(Math.random()*(r+1));[n[r],n[i]]=[n[i],n[r]]}return n}function Qi(e,n=1){return!Array.isArray(e)||n<=0?[]:P1(e).slice(0,Math.min(n,e.length))}function R1(e,n=1/0){return!Array.isArray(e)||n<=0?e:e.reduce((r,i)=>(Array.isArray(i)?r.push(...R1(i,n-1)):r.push(i),r),[])}function ki(e,n,r){if(!Array.isArray(e))return{data:[],page:n,pageSize:r,total:0,totalPages:0};const i=e.length,o=Math.ceil(i/r),s=(n-1)*r,l=s+r;return{data:e.slice(s,l),page:n,pageSize:r,total:i,totalPages:o}}function bi(e,n,r){if(!Array.isArray(e)||n<0||n>=e.length||r<0||r>=e.length)return e;const i=[...e],[o]=i.splice(n,1);return i.splice(r,0,o),i}function Mi(e){return Array.isArray(e)?e.reduce((n,r)=>(n[r]=(n[r]||0)+1,n),{}):{}}const Ci=Object.freeze(Object.defineProperty({__proto__:null,arrayToTree:li,average:hi,chunkArray:gi,countBy:Mi,difference:vi,findNodeInTree:O1,flatten:R1,forEachTree:si,groupBy:ci,groupByFn:ui,intersection:wi,max:pi,min:mi,move:bi,paginate:ki,sample:Qi,shuffle:P1,sortBy:di,sortByMultiple:fi,sum:F1,treeToArray:ai,union:yi,uniqueArray:ri,uniqueArrayByKey:oi,uniqueArrayByKeys:ii},Symbol.toStringTag,{value:"Module"}));async function _i(e){if(!e)return!1;if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch(n){console.error("Clipboard API 失败:",n)}try{const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-9999px",n.style.top="-9999px",document.body.appendChild(n),n.select(),n.setSelectionRange(0,e.length);const r=document.execCommand("copy");return document.body.removeChild(n),r}catch(n){return console.error("复制失败:",n),!1}}async function Di(){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.readText()}catch(e){return console.error("读取剪贴板失败:",e),""}return""}function zt(e,n){const r=document.createElement("a");typeof e=="string"?r.href=e:r.href=URL.createObjectURL(e),r.download=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof e!="string"&&setTimeout(()=>URL.revokeObjectURL(r.href),100)}function Ai(e,n){const r=JSON.stringify(e,null,2),i=new Blob([r],{type:"application/json"});zt(i,n)}function Ni(e,n){const r=new Blob([e],{type:"text/plain"});zt(r,n)}function Bt(e){window.scrollTo(e)}function Si(e,n){const r=typeof e=="string"?document.querySelector(e):e;r&&r.scrollIntoView({behavior:"smooth",block:"start",...n})}function Ii(e=!0){Bt({top:0,behavior:e?"smooth":"auto"})}function Ti(e=!0){Bt({top:document.documentElement.scrollHeight,behavior:e?"smooth":"auto"})}function $1(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}function Li(e){let n=0;for(;e;)n+=e.offsetTop,e=e.offsetParent;return n}function Ei(e,n=0){if(!e)return!1;const r=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return r.top>=0-n&&r.left>=0-n&&r.bottom<=i+n&&r.right<=o+n}function xi(e){if(!e)return!1;const n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,o=n.top<=r&&n.top+n.height>=0,s=n.left<=i&&n.left+n.width>=0;return o&&s}function ji(e=document.documentElement){document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function zi(e=document.documentElement){document.fullscreenElement||e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function Bi(){document.fullscreenElement&&document.exitFullscreen()}function Oi(){return!!document.fullscreenElement}function Fi(e,n){e&&e.classList.add(n)}function Pi(e,n){e&&e.classList.remove(n)}function Ri(e,n){e&&e.classList.toggle(n)}function $i(e,n){return e?e.classList.contains(n):!1}function Vi(e){return e?Array.from(e.classList):[]}function Ui(e){return e?e.getBoundingClientRect():null}function Wi(e){return e?e.offsetWidth:0}function Zi(e){return e?e.offsetHeight:0}function Yi(e,n=document){return n.querySelector(e)}function Gi(e,n=document){return Array.from(n.querySelectorAll(e))}function Hi(e,n){return e?e.getAttribute(n):null}function Ji(e,n,r){e&&e.setAttribute(n,r)}function Xi(e,n){e&&e.removeAttribute(n)}function Ki(e,n){return e?e.hasAttribute(n):!1}function qi(e,n){return e&&window.getComputedStyle(e)[n]||""}function e3(e,n){e&&Object.keys(n).forEach(r=>{e.style[r]=n[r]})}function t3(){return{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function V1(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}function n3(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)}function r3(e=0){const{y:n}=$1(),r=window.innerHeight||document.documentElement.clientHeight,i=V1();return n+r>=i-e}const o3=Object.freeze(Object.defineProperty({__proto__:null,addClass:Fi,copyToClipboard:_i,downloadFile:zt,downloadJSON:Ai,downloadText:Ni,enterFullscreen:zi,exitFullscreen:Bi,getAttribute:Hi,getClasses:Vi,getElementHeight:Zi,getElementRect:Ui,getElementWidth:Wi,getOffsetTop:Li,getPageHeight:V1,getPageWidth:n3,getScrollPosition:$1,getStyle:qi,getWindowSize:t3,hasAttribute:Ki,hasClass:$i,isFullscreen:Oi,isInViewport:Ei,isPartiallyVisible:xi,isScrolledToBottom:r3,querySelector:Yi,querySelectorAll:Gi,readFromClipboard:Di,removeAttribute:Xi,removeClass:Pi,scrollTo:Bt,scrollToBottom:Ti,scrollToElement:Si,scrollToTop:Ii,setAttribute:Ji,setStyle:e3,toggleClass:Ri,toggleFullscreen:ji},Symbol.toStringTag,{value:"Module"}));function i3(e,n){return Math.floor(Math.random()*(n-e+1))+e}function l3(e,n,r=2){const i=Math.random()*(n-e)+e;return Number(i.toFixed(r))}function a3(e,n,r=1){const i=[];if(r===0)return i;if(r>0)for(let o=e;o<=n;o+=r)i.push(o);else for(let o=e;o>=n;o+=r)i.push(o);return i}function s3(e,n,r){return Math.min(Math.max(e,n),r)}function c3(e,n){const r=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,o=Math.pow(10,Math.max(r,i));return(e*o+n*o)/o}function u3(e,n){const r=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,o=Math.pow(10,Math.max(r,i));return(e*o-n*o)/o}function d3(e,n){const r=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,o=Math.pow(10,r+i);return e*Math.pow(10,r)*n*Math.pow(10,i)/o}function f3(e,n){if(n===0)return console.warn("Division by zero"),1/0;const r=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length;return e*Math.pow(10,i)/(n*Math.pow(10,r))*Math.pow(10,r-i)}function Ot(e,n=0){return Math.round(e*Math.pow(10,n))/Math.pow(10,n)}function h3(e,n=0){return Math.ceil(e*Math.pow(10,n))/Math.pow(10,n)}function p3(e,n=0){return Math.floor(e*Math.pow(10,n))/Math.pow(10,n)}function m3(e,n=0){return Ot(e,n).toFixed(n)}function g3(e,n,r=2){return n===0?0:Ot(e/n*100,r)}function w3(e){return e/100}function y3(e){return e*100}function v3(e,n=2){return String(e).padStart(n,"0")}function Q3(e){const n=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千","万"];if(e===0)return"零";if(e<0||e>99999)return String(e);const i=String(e);let o="",s=0;for(let l=0;l<i.length;l++){const a=parseInt(i[l]),c=r[i.length-1-l];a===0?s++:(s>0&&(o+="零"),o+=n[a]+c,s=0)}return e>=10&&e<20&&(o=o.replace("一十","十")),o}function k3(e){const n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=["","拾","佰","仟","万","拾","佰","仟","亿"],i=["角","分"];if(e===0)return"零元整";const[o,s=""]=e.toFixed(2).split(".");let l="";for(let a=0;a<o.length;a++){const c=parseInt(o[a]),g=r[o.length-1-a];c!==0?l+=n[c]+g:l&&!l.endsWith("零")&&(l+="零")}if(l=l.replace(/零+$/,"")+"元",s&&s!=="00")for(let a=0;a<Math.min(s.length,2);a++){const c=parseInt(s[a]);c!==0&&(l+=n[c]+i[a])}else l+="整";return l}function b3(e){return e%2===0}function M3(e){return e%2!==0}function C3(e){if(e<2)return!1;if(e===2)return!0;if(e%2===0)return!1;for(let n=3;n<=Math.sqrt(e);n+=2)if(e%n===0)return!1;return!0}function _3(e,n,r){return e>=n&&e<=r}function D3(e){return Math.abs(e)}function A3(e){return Math.sqrt(e)}function N3(e,n){return Math.pow(e,n)}function U1(e){return e<0?NaN:e===0||e===1?1:e*U1(e-1)}function Ft(e,n){return n===0?e:Ft(n,e%n)}function S3(e,n){return e*n/Ft(e,n)}const I3=Object.freeze(Object.defineProperty({__proto__:null,abs:D3,add:c3,ceil:h3,clamp:s3,decimalToPercent:y3,divide:f3,factorial:U1,floor:p3,gcd:Ft,inRange:_3,isEven:b3,isOdd:M3,isPrime:C3,lcm:S3,multiply:d3,padZero:v3,percentToDecimal:w3,percentage:g3,pow:N3,random:i3,randomFloat:l3,range:a3,round:Ot,sqrt:A3,subtract:u3,toChineseMoney:k3,toChineseNumber:Q3,toFixed:m3},Symbol.toStringTag,{value:"Module"}));function ot(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(Array.isArray(e))return e.map(r=>ot(r));const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ot(e[r]));return n}function T3(e){return e===null||typeof e!="object"?e:Array.isArray(e)?[...e]:{...e}}function W1(...e){if(e.length===0)return{};if(e.length===1)return e[0];const n={};return e.forEach(r=>{!r||typeof r!="object"||Object.keys(r).forEach(i=>{const o=r[i],s=n[i];o&&typeof o=="object"&&!Array.isArray(o)&&s&&typeof s=="object"&&!Array.isArray(s)?n[i]=W1(s,o):n[i]=ot(o)})}),n}function L3(...e){return Object.assign({},...e)}function E3(e,n){if(!e||typeof e!="object")return{};const r={};return n.forEach(i=>{i in e&&(r[i]=e[i])}),r}function x3(e,n){if(!e||typeof e!="object")return{};const r={...e};return n.forEach(i=>{delete r[i]}),r}function j3(e,n,r){if(!e||typeof e!="object")return r;const i=n.split(".");let o=e;for(const s of i)if(o&&typeof o=="object"&&s in o)o=o[s];else return r;return o!==void 0?o:r}function Z1(e,n,r){if(!e||typeof e!="object")return;const i=n.split("."),o=i.pop();if(!o)return;let s=e;for(const l of i)(!(l in s)||typeof s[l]!="object")&&(s[l]={}),s=s[l];s[o]=r}function z3(e,n){if(!e||typeof e!="object")return!1;const r=n.split(".");let i=e;for(const o of r)if(i&&typeof i=="object"&&o in i)i=i[o];else return!1;return!0}function B3(e){return e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function O3(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}function Qt(e,n){if(e===n)return!0;if(typeof e!="object"||typeof n!="object"||e===null||n===null)return!1;if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(e instanceof RegExp&&n instanceof RegExp)return e.toString()===n.toString();if(Array.isArray(e)&&Array.isArray(n))return e.length!==n.length?!1:e.every((o,s)=>Qt(o,n[s]));const r=Object.keys(e),i=Object.keys(n);return r.length!==i.length?!1:r.every(o=>Qt(e[o],n[o]))}function kt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>kt(r));const n={};return Object.keys(e).forEach(r=>{const i=r.replace(/_([a-z])/g,(s,l)=>l.toUpperCase()),o=e[r];n[i]=typeof o=="object"?kt(o):o}),n}function bt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>bt(r));const n={};return Object.keys(e).forEach(r=>{const i=r.replace(/([A-Z])/g,"_$1").toLowerCase(),o=e[r];n[i]=typeof o=="object"?bt(o):o}),n}function F3(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${encodeURIComponent(n)}=${encodeURIComponent(i)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function P3(e){if(!e)return{};const n=e.startsWith("?")?e.slice(1):e,r={};return n.split("&").forEach(i=>{const[o,s]=i.split("=").map(decodeURIComponent);o&&(o in r?Array.isArray(r[o])?r[o].push(s):r[o]=[r[o],s]:r[o]=s)}),r}function Y1(e,n){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(i=>{n(e[i],i)&&(r[i]=e[i])}),r}function R3(e,n=!0){return Y1(e,r=>!(r==null||n&&r===""))}function G1(e,n=""){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(i=>{const o=n?`${n}.${i}`:i,s=e[i];s&&typeof s=="object"&&!Array.isArray(s)?Object.assign(r,G1(s,o)):r[o]=s}),r}function $3(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{Z1(n,r,e[r])}),n}function V3(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{const i=e[r];n[String(i)]=r}),n}function U3(e){return!e||typeof e!="object"?[]:Object.values(e)}function W3(e){return!e||typeof e!="object"?[]:Object.keys(e)}function Z3(e){return!e||typeof e!="object"?[]:Object.entries(e)}const Y3=Object.freeze(Object.defineProperty({__proto__:null,deepClone:ot,deepMerge:W1,entries:Z3,filterValues:Y1,flattenObject:G1,fromQueryString:P3,get:j3,has:z3,invert:V3,isEmpty:B3,isEqual:Qt,isPlainObject:O3,keys:W3,keysToCamelCase:kt,keysToUnderlineCase:bt,omit:x3,pick:E3,removeEmpty:R3,set:Z1,shallowClone:T3,shallowMerge:L3,toQueryString:F3,unflattenObject:$3,values:U3},Symbol.toStringTag,{value:"Module"}));function G3(e,n=300,r=!1){let i=null,o=!1;const s=function(...l){i&&clearTimeout(i),r&&!o?(e.apply(this,l),o=!0):i=setTimeout(()=>{e.apply(this,l),o=!1,i=null},n)};return s.cancel=()=>{i&&(clearTimeout(i),i=null),o=!1},s}function H3(e,n=300,r){const{leading:i=!0,trailing:o=!0}=r||{};let s=null,l=0,a=null;const c=function(...g){const v=Date.now();!l&&!i&&(l=v);const h=n-(v-l);a=g,h<=0||h>n?(s&&(clearTimeout(s),s=null),l=v,e.apply(this,g),a=null):!s&&o&&(s=setTimeout(()=>{l=i?Date.now():0,s=null,a&&(e.apply(this,a),a=null)},h))};return c.cancel=()=>{s&&(clearTimeout(s),s=null),l=0,a=null},c}function J3(e){let n=!1,r;return function(...i){return n||(n=!0,r=e.apply(this,i)),r}}function H1(e){return new Promise(n=>setTimeout(n,e))}function J1(e){return H1(e)}async function X3(e,n){const{times:r=3,delay:i=1e3,onRetry:o}=n||{};let s;for(let l=0;l<r;l++)try{return await e()}catch(a){s=a,o&&o(a,l+1),l<r-1&&await J1(i)}throw s}function K3(e,n){return Promise.race([e,new Promise((r,i)=>setTimeout(()=>i(new Error("Timeout")),n))])}function q3(e,n){const r=new Map,i=function(...o){const s=n?n(...o):JSON.stringify(o);if(r.has(s))return r.get(s);const l=e.apply(this,o);return r.set(s,l),l};return i.cache=r,i}function e8(e){e.cache&&e.cache.clear()}function t8(e,n=100){let r=[],i=null;return function(o){r.push(o),i&&clearTimeout(i),i=setTimeout(()=>{e(r),r=[],i=null},n)}}async function n8(e,n){const r=[],i=[];for(const o of e){const s=o().then(l=>{r.push(l),i.splice(i.indexOf(s),1)});i.push(s),i.length>=n&&await Promise.race(i)}return await Promise.all(i),r}async function r8(e){const n=[];for(const r of e){const i=await r();n.push(i)}return n}function o8(e,n){return function(...r){const i=performance.now(),o=e.apply(this,r),l=(performance.now()-i).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),o}}function i8(e,n){return async function(...r){const i=performance.now(),o=await e.apply(this,r),l=(performance.now()-i).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),o}}function l8(e){const n=new Map;return async function(...r){const i=JSON.stringify(r);if(n.has(i))return n.get(i);const o=e.apply(this,r).finally(()=>{n.delete(i)});return n.set(i,o),o}}function a8(e){let n=null;const r=function(...i){n===null&&(n=requestAnimationFrame(()=>{e.apply(this,i),n=null}))};return r.cancel=()=>{n!==null&&(cancelAnimationFrame(n),n=null)},r}const s8=Object.freeze(Object.defineProperty({__proto__:null,batch:t8,clearCache:e8,debounce:G3,dedupe:l8,delay:H1,measureTime:o8,measureTimeAsync:i8,memoize:q3,once:J3,promiseLimit:n8,promiseSerial:r8,rafThrottle:a8,retry:X3,sleep:J1,throttle:H3,withTimeout:K3},Symbol.toStringTag,{value:"Module"}));function Ie(e,n){return r=>{const i=String(r||"").trim();return!i||e(i)?!0:typeof n=="function"?n():n}}function X1(e){return e?/^1[3-9]\d{9}$/.test(e):!1}function K1(e){return e?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e):!1}function q1(e){return e?/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e):!1}function en(e){return e?/^\d{16,19}$/.test(e):!1}function tn(e){return e?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/.test(e):!1}function nn(e){return e?/^(https?:\/\/)([a-zA-Z0-9.-]+)(:[0-9]+)?(\/.*)?$/.test(e):!1}function rn(e){return e?/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/.test(e):!1}function c8(e){return e?/^[\u4e00-\u9fa5]+$/.test(e):!1}function u8(e){return e?/[\u4e00-\u9fa5]/.test(e):!1}function d8(e){return e?/^\d+$/.test(e):!1}function f8(e){return e?/^-?\d+\.?\d*$/.test(e):!1}function h8(e){return e?/^[1-9]\d*$/.test(e):!1}function p8(e){return!e&&e!=="0"?!1:/^(0|[1-9]\d*)$/.test(e)}function m8(e){return e?/^[1-9]\d{4,10}$/.test(e):!1}function g8(e){return e?/^[a-zA-Z][a-zA-Z0-9_-]{5,19}$/.test(e):!1}function w8(e){return e?/^[1-9]\d{5}$/.test(e):!1}function y8(e){return e?/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e):!1}function v8(e){return e?/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{6,}$/.test(e):!1}function Q8(e){return e?/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e):!1}function k8(e){if(!e)return!1;const n=Number(e);return/^\d+$/.test(e)&&n>=1&&n<=65535}function b8(e){return e?/^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^::$|^([\da-fA-F]{1,4}:){1,6}:$|^:((:[\da-fA-F]{1,4}){1,6})$/.test(e):!1}function M8(e){return e?/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e):!1}function C8(e="请输入有效的手机号"){return Ie(X1,e)}function _8(e="请输入有效的邮箱地址"){return Ie(K1,e)}function D8(e="请输入有效的身份证号"){return Ie(q1,e)}function A8(e="请输入有效的银行卡号"){return Ie(en,e)}function N8(e="请输入有效的车牌号"){return Ie(tn,e)}function S8(e="请输入有效的 URL 地址"){return Ie(nn,e)}function I8(e="请输入有效的 IP 地址"){return Ie(rn,e)}const T8=Object.freeze(Object.defineProperty({__proto__:null,bankCardRule:A8,carNumberRule:N8,createFormRule:Ie,emailRule:_8,hasChinese:u8,idCardRule:D8,ipRule:I8,isBankCard:en,isCarNumber:tn,isChinese:c8,isEmail:K1,isHexColor:M8,isIP:rn,isIPv6:b8,isIdCard:q1,isMac:Q8,isMediumPassword:v8,isNonNegativeInteger:p8,isNumber:d8,isNumeric:f8,isPhone:X1,isPort:k8,isPositiveInteger:h8,isPostcode:w8,isQQ:m8,isStrongPassword:y8,isUrl:nn,isWechat:g8,phoneRule:C8,urlRule:S8},Symbol.toStringTag,{value:"Module"}));function L8(e){return!e||e.length!==11?e:e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function E8(e){if(!e||e.length<8)return e;const n=e.length;return e.substring(0,3)+"*".repeat(n-7)+e.substring(n-4)}function x8(e){return!e||e.length===0||e.length===1?e:e.length===2?e[0]+"*":e.substring(0,e.length-1)+"*"}function j8(e){if(!e||e.length<8)return e;const n=e.length,r=e.substring(0,4),i=e.substring(n-4);return`${r} **** **** ${i}`}function z8(e){if(!e||!e.includes("@"))return e;const[n,r]=e.split("@");return n.length<=1?e:n[0]+"***@"+r}function B8(e,n=6){return!e||e.length<=n?e:e.substring(0,n)+"***"}function O8(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function F8(e){return e&&e.replace(/\b\w/g,n=>n.toUpperCase())}function P8(e){return e&&e.replace(/_([a-z])/g,(n,r)=>r.toUpperCase())}function R8(e){return e&&e.replace(/([A-Z])/g,"_$1").toLowerCase()}function $8(e){return e&&e.replace(/([A-Z])/g,"-$1").toLowerCase()}function V8(e){if(e==null||e==="")return"";const r=String(e).split(".");return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r.join(".")}function U8(e,n){const{currency:r="¥",decimals:i=2,thousandsSeparator:o=",",decimalSeparator:s="."}=n||{},l=typeof e=="string"?parseFloat(e):e;if(isNaN(l))return e.toString();const a=l.toFixed(i),[c,g]=a.split(".");let h=c.replace(/\B(?=(\d{3})+(?!\d))/g,o);return i>0&&g&&(h+=s+g),r+h}function W8(e,n=2){if(e===0)return"0 B";if(!e)return"";const r=1024,i=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(n))+" "+i[o]}function Z8(e){return e&&e.replace(/\s/g,"").replace(/(\d{4})(?=\d)/g,"$1 ")}function Y8(e){return e&&e.replace(/\s/g,"").replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3")}function G8(e=8,n="alphanumeric"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i="0123456789";let s=r+i;n==="alpha"&&(s=r),n==="number"&&(s=i);let l="";for(let a=0;a<e;a++)l+=s.charAt(Math.floor(Math.random()*s.length));return l}function H8(e){const n=Date.now(),r=Math.random().toString(36).substring(2,8);return e?`${e}_${n}_${r}`:`${n}_${r}`}function J8(e,n,r="..."){return!e||e.length<=n?e:e.substring(0,n)+r}function X8(e){return e&&e.replace(/<[^>]*>/g,"")}function K8(e){if(!e)return e;const n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/g,r=>n[r])}function q8(e){if(!e)return e;const n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};return e.replace(/&(amp|lt|gt|quot|#x27|#x2F);/g,r=>n[r])}function e6(e){return e==null||e.trim()===""}function t6(e){return e&&e.split("").reverse().join("")}function n6(e,n){return!e||n<=0?"":e.repeat(n)}function r6(e,n,r=" "){return e||(e=""),e.padStart(n,r)}function o6(e,n,r=" "){return e||(e=""),e.padEnd(n,r)}const i6=Object.freeze(Object.defineProperty({__proto__:null,addressDesensitize:B8,bankCardDesensitize:j8,capitalize:O8,capitalizeWords:F8,emailDesensitize:z8,escapeHtml:K8,formatBankCard:Z8,formatFileSize:W8,formatMoney:U8,formatNumber:V8,formatPhone:Y8,generateUUID:H8,idCardDesensitize:E8,isEmpty:e6,nameDesensitize:x8,padEnd:o6,padStart:r6,phoneDesensitize:L8,randomString:G8,removeHtmlTags:X8,repeat:n6,reverse:t6,toCamelCase:P8,toKebabCase:$8,toUnderlineCase:R8,truncate:J8,unescapeHtml:q8},Symbol.toStringTag,{value:"Module"}));function Ae(e){const n=e||(typeof window<"u"?window.location.href:"");if(!n)return{};const r=n.includes("?")?n.split("?")[1].split("#")[0]:"";if(!r)return{};const i={};return r.split("&").forEach(o=>{if(!o)return;const[s,l=""]=o.split("=").map(decodeURIComponent);s&&(s in i?Array.isArray(i[s])?i[s].push(l):i[s]=[i[s],l]:i[s]=l)}),i}function Be(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${encodeURIComponent(n)}=${encodeURIComponent(i)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function l6(e,n){const i=Ae(n)[e];return i===void 0?null:Array.isArray(i)?i[0]||null:i}function a6(e,n){const i=Ae(n)[e];return i===void 0?[]:Array.isArray(i)?i:[i]}function s6(e,n="push"){if(typeof window>"u"||!window.history)return;const i={...Ae(),...e};Object.keys(i).forEach(l=>{(i[l]===null||i[l]===void 0)&&delete i[l]});const o=Be(i),s=o?`${window.location.pathname}?${o}`:window.location.pathname;n==="push"?window.history.pushState(null,"",s):window.history.replaceState(null,"",s)}function c6(e,n="push"){if(typeof window>"u"||!window.history)return;const r=Ae();e.forEach(s=>{delete r[s]});const i=Be(r),o=i?`${window.location.pathname}?${i}`:window.location.pathname;n==="push"?window.history.pushState(null,"",o):window.history.replaceState(null,"",o)}function u6(e="push"){if(typeof window>"u"||!window.history)return;const n=window.location.pathname;e==="push"?window.history.pushState(null,"",n):window.history.replaceState(null,"",n)}function d6(...e){return e.length===0?"":e.map((n,r)=>r===0?n.replace(/\/+$/,""):r===e.length-1?n.replace(/^\/+/,""):n.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}function f6(e){if(!e)return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:"",search:"",hash:"",host:"",origin:"",href:"",params:{}};try{const n=new URL(e);return{protocol:n.protocol,username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search,hash:n.hash,host:n.host,origin:n.origin,href:n.href,params:Ae(e)}}catch{return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:e.split("?")[0].split("#")[0],search:e.includes("?")?"?"+e.split("?")[1].split("#")[0]:"",hash:e.includes("#")?"#"+e.split("#")[1]:"",host:"",origin:"",href:e,params:Ae(e)}}}function h6(e){const{protocol:n="https",hostname:r="",port:i="",pathname:o="",params:s={},hash:l=""}=e;if(!r)return o;let a=`${n}://${r}`;i&&(a+=`:${i}`),o&&(a+=o.startsWith("/")?o:`/${o}`);const c=Be(s);return c&&(a+=`?${c}`),l&&(a+=l.startsWith("#")?l:`#${l}`),a}function p6(e){return e?/^(https?:)?\/\//.test(e):!1}function m6(e){return e?e.startsWith("/"):!1}function g6(e,n){try{const r=new URL(e),i=new URL(n);return r.origin===i.origin}catch{return!1}}function w6(e){return encodeURIComponent(e)}function y6(e){try{return decodeURIComponent(e)}catch{return e}}function v6(e){if(!e)return"";try{return encodeURI(decodeURI(e))}catch{return encodeURI(e)}}function Q6(e){if(!e)return"";try{return decodeURI(e)}catch{return e}}function k6(e,n){if(!e)return"";if(!n||Object.keys(n).length===0)return e;const[r,i]=e.split("#"),[o,s]=r.split("?"),a={...s?Ae("?"+s):{},...n},c=Be(a);let g=o;return c&&(g+=`?${c}`),i&&(g+=`#${i}`),g}function b6(e,n){if(!e)return"";if(!n||n.length===0)return e;const[r,i]=e.split("#"),[o,s]=r.split("?");if(!s)return e;const l=Ae("?"+s);n.forEach(g=>{delete l[g]});const a=Be(l);let c=o;return a&&(c+=`?${a}`),i&&(c+=`#${i}`),c}function on(e){try{return new URL(e).hostname}catch{return""}}function M6(e){const n=on(e);if(!n)return"";const r=n.split(".");return r.length<=2?n:r.slice(-2).join(".")}function C6(){return typeof window>"u"?"":window.location.href}function _6(){return typeof window>"u"?"":window.location.pathname}function D6(){return typeof window>"u"?{}:Ae(window.location.search)}function A6(){return typeof window>"u"?"":window.location.hash.replace(/^#/,"")}const N6=Object.freeze(Object.defineProperty({__proto__:null,addQueryParams:k6,buildUrl:h6,clearQueryParams:u6,decodeParam:y6,encodeParam:w6,getCurrentHash:A6,getCurrentPath:_6,getCurrentQuery:D6,getCurrentUrl:C6,getDomain:on,getQueryParam:l6,getQueryParams:a6,getRootDomain:M6,isAbsolutePath:m6,isExternalLink:p6,isSameOrigin:g6,joinUrl:d6,parseQuery:Ae,parseUrl:f6,removeQueryParams:c6,removeQueryParamsFromUrl:b6,safeDecodeUrl:Q6,safeEncodeUrl:v6,stringifyQuery:Be,updateQueryParams:s6},Symbol.toStringTag,{value:"Module"})),S6={...ni,array:Ci,dom:o3,number:I3,object:Y3,perf:s8,regex:T8,string:i6,url:N6};exports.twcptResolver=o1.twcptResolver;exports.twcptResolverWithOptions=o1.twcptResolverWithOptions;exports.DialogProvider=Ve;exports.JTWAmap=So;exports.JTWBtn=ze;exports.JTWCheckbox=Mt;exports.JTWCheckboxGroup=Ir;exports.JTWConfirmDialog=f1;exports.JTWConfirmDialogIcon=ht;exports.JTWDatePicker=I0;exports.JTWDateTimePicker=j0;exports.JTWDialog=g1;exports.JTWDialogFooterMode=m1;exports.JTWDialogPosition=h1;exports.JTWDialogSize=p1;exports.JTWDropdownBtn=yn;exports.JTWFileUpload=no;exports.JTWForm=kr;exports.JTWFormItem=Cr;exports.JTWFormLabel=yr;exports.JTWInput=a1;exports.JTWMessages=d1;exports.JTWMultiSelectBtn=Fn;exports.JTWPagination=u1;exports.JTWRadio=c1;exports.JTWRadioGroup=Er;exports.JTWSearchBox=Fo;exports.JTWSelect=Ar;exports.JTWStatusImg=We;exports.JTWTable=s2;exports.JTWToggle=Or;exports.JTWTooltip=w1;exports.JTWTreeSelect=dr;exports.JTWTreeSelectBtn=g0;exports.JTWTreeSelectInput=_0;exports.PAGE_ACTION_PERMISSION_KEY=C1;exports.PAGE_PERMISSION_KEY=M1;exports.composeIconMapFn=d5;exports.dialogConfirm=Q1;exports.getLocale=b1;exports.getProjectPermissionId=s5;exports.getTwcptColors=a5;exports.getTwcptConfig=c5;exports.parseKMZFromUrl=J5;exports.parseKMZRouteFromUrl=E1;exports.setLocale=tt;exports.t=k1;exports.twConfirmDialog=Q1;exports.twDialog=T2;exports.twMessages=xe;exports.twTool=S6;exports.twcptIconMapFn=u5;exports.twcptInit=i5;exports.useBizRequest=p5;exports.useI18n=o5;exports.usePageActionPermissionSync=h5;exports.usePagePermissionSync=f5;exports.useRAFPolling=m5;
|