var Ei=Object.defineProperty,Oi=Object.defineProperties;var $i=Object.getOwnPropertyDescriptors;var pa=Object.getOwnPropertySymbols;var Ti=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable;var ha=(e,t,r)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t)=>{for(var r in t||(t={}))Ti.call(t,r)&&ha(e,r,t[r]);if(pa)for(var r of pa(t))Pi.call(t,r)&&ha(e,r,t[r]);return e},we=(e,t)=>Oi(e,$i(t));var ee=(e,t,r)=>new Promise((n,a)=>{var o=l=>{try{i(r.next(l))}catch(c){a(c)}},s=l=>{try{i(r.throw(l))}catch(c){a(c)}},i=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);i((r=r.apply(e,t)).next())});import{u as je,C as Mi}from"./index-BvywwHGE.js";import{p as X,aI as ct,b as _n,B as Le,i as xn,_ as tt,aJ as L,aK as Tt,aL as he,aM as Fi,aN as kn,aO as Ii,u as Bi,aP as Hi,aQ as Nt,a as Li,aG as Di,az as Ni}from"./entry/index-W3jW1nIG.js";import{o as Or,a as un,l as Q,ao as We,as as St,h as ji,v as Ui,at as Vi,au as Jt,av as An,af as zi,aw as So,ax as wo,ah as _o,ay as $r,az as Wi,ae as xo,V as Ki,aA as Gi,aB as Xi,U as qi,aC as Yi,aD as Ji,X as Zi,E as rr,aE as Qi,aF as el,aG as tl,aH as ko,aI as rl,aJ as nl,aK as Tr,aL as Ao,ab as al}from"./antd-Cume0_44.js";import{d as Y,f as T,c as q,u as P,w as oe,a5 as V,_ as w,a6 as re,Z as F,F as Ce,a8 as Se,G as Ie,a0 as se,aa as Be,H as nr,ab as Pr,a9 as _t,ag as Pt,ah as Mt,k as G,$ as x,K as Ro,o as Rn,h as ol,a4 as W,r as Oe,g as il,y as ll,e as Eo,ad as de,a1 as fe,a7 as z,n as gr,an as sl,ao as Ft,ap as It,af as va,A as cn,E as ul,p as cl,ae as fl,I as dl}from"./vue-4umLpMSY.js";import{I as pl,B as hl}from"./index-w7Vd8LfC.js";import{S as vl}from"./index-BlXwa6k2.js";import{_ as gl}from"./IconPicker.vue_vue_type_script_setup_true_lang-E4mDcJBd.js";import{C as ml}from"./index-DQKKpka6.js";import{T as yl}from"./index-DwKSf7fW.js";import{u as fn,a as Oo,B as $o}from"./index-tUUDMOj4.js";import{g as bl}from"./index-C6UzVZkw.js";import{U as Cl}from"./UploadPreviewModal-DWlTF4YI.js";import{d as Sl}from"./download-C0CG1OjY.js";import{a as wl}from"./uuid-BUBnBT7J.js";import{c as _l}from"./cateApi-BoCoTBel.js";import{a as xl}from"./resourceApi-nEBFxX9L.js";import{h as kl}from"./common-B2cy0fGI.js";const Al=Y({name:"ApiRadioGroup",__name:"ApiRadioGroup",props:{api:{type:Function,default:null},params:{type:[Object,String],default:()=>({})},value:{type:[String,Number,Boolean]},isBtn:{type:[Boolean],default:!1},numberToString:X.bool,resultField:X.string.def(""),labelField:X.string.def("label"),valueField:X.string.def("value"),immediate:X.bool.def(!0),beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["options-change","change","update:value"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T(!1),s=T([]),i=ct(),[l]=je(r,"value","change",s),c=q(()=>{const{labelField:d,valueField:g,numberToString:m}=r;return P(a).reduce((y,h)=>{if(h){const v=h[g];y.push(le({label:h[d],value:m?`${v}`:v},Or(h,[d,g])))}return y},[])});oe(()=>r.params,(d,g)=>{un(d,g)||u()},{deep:!0,immediate:r.immediate});function u(){return ee(this,null,function*(){let{api:d,beforeFetch:g,afterFetch:m,params:y,resultField:h}=r;if(!(!d||!Q(d))){a.value=[];try{o.value=!0,g&&Q(g)&&(y=(yield g(y))||y);let v=yield d(y);if(m&&Q(m)&&(v=(yield m(v))||v),Array.isArray(v)){a.value=v,f();return}h&&(a.value=We(v,h)||[]),f()}catch(v){}finally{o.value=!1}}})}function f(){n("options-change",P(c))}function p(...d){s.value=d}return(d,g)=>(w(),V(P(St).Group,Be(P(i),{value:P(l),"onUpdate:value":g[0]||(g[0]=m=>nr(l)?l.value=m:null),"button-style":"solid"}),{default:re(()=>[(w(!0),F(Ce,null,Se(c.value,m=>(w(),F(Ce,{key:`${m.value}`},[r.isBtn?(w(),V(P(St).Button,{key:0,value:m.value,disabled:m.disabled,onClick:y=>p(m)},{default:re(()=>[Ie(se(m.label),1)]),_:2},1032,["value","disabled","onClick"])):(w(),V(P(St),{key:1,value:m.value,disabled:m.disabled,onClick:y=>p(m)},{default:re(()=>[Ie(se(m.label),1)]),_:2},1032,["value","disabled","onClick"]))],64))),128))]),_:1},16,["value"]))}}),Rl=Y({name:"RadioButtonGroup",__name:"RadioButtonGroup",props:{value:{type:[String,Number,Boolean]},options:{type:Array,default:()=>[]}},setup(e){const t=e,r=ct(),n=T([]),[a]=je(t,"value","change",n),o=q(()=>{const{options:i}=t;return!i||(i==null?void 0:i.length)===0?[]:i.some(c=>ji(c))?i.map(c=>({label:c,value:c})):i});function s(...i){n.value=i}return(i,l)=>(w(),V(P(St).Group,Be(P(r),{value:P(a),"onUpdate:value":l[0]||(l[0]=c=>nr(a)?a.value=c:null),"button-style":"solid"}),{default:re(()=>[(w(!0),F(Ce,null,Se(o.value,c=>(w(),V(P(St).Button,{key:`${c.value}`,value:c.value,disabled:c.disabled,onClick:u=>s(c)},{default:re(()=>[Ie(se(c.label),1)]),_:2},1032,["value","disabled","onClick"]))),128))]),_:1},16,["value"]))}}),El=Y({name:"ApiSelect",inheritAttrs:!1,__name:"ApiSelect",props:{value:{type:[Array,Object,String,Number]},numberToString:X.bool,api:{type:Function,default:null},params:X.any.def({}),resultField:X.string.def(""),labelField:X.string.def("label"),valueField:X.string.def("value"),immediate:X.bool.def(!0),alwaysLoad:X.bool.def(!1),options:{type:Array,default:[]},apiSearch:{type:Object,default:()=>null},beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["options-change","change","update:value"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T(!1),s=T(!1),i=T([]),l=T({}),{t:c}=_n(),[u]=je(r,"value","change",i),f=q(()=>{const{labelField:v,valueField:C,numberToString:S}=r;let _=P(a).reduce((R,E)=>{if(E){const I=We(E,C);R.push(we(le({},Or(E,[v,C])),{label:We(E,v),value:S?`${I}`:I}))}return R},[]);return _.length>0?_:r.options});oe(()=>u.value,v=>{n("update:value",v)}),oe(()=>r.params,(v,C)=>{un(v,C)||p()},{deep:!0,immediate:r.immediate}),oe(()=>l.value,(v,C)=>{Ui(v)||un(v,C)||ee(this,null,function*(){yield p(),l.value={}})},{deep:!0,immediate:r.immediate});function p(){return ee(this,null,function*(){let{api:v,beforeFetch:C,afterFetch:S,params:_,resultField:R}=r;if(!(!v||!Q(v)||o.value)){a.value=[];try{o.value=!0;let E=Vi({},_,l.value);C&&Q(C)&&(E=(yield C(E))||E);let I=yield v(E);if(S&&Q(S)&&(I=(yield S(I))||I),s.value=!0,Array.isArray(I)){a.value=I,y();return}R&&(a.value=We(I,R)||[]),y()}catch(E){s.value=!1}finally{o.value=!1}}})}function d(v){return ee(this,null,function*(){v&&(r.alwaysLoad?yield p():!r.immediate&&!P(s)&&(r.apiSearch&&r.apiSearch.show&&!r.apiSearch.emptySearch?(a.value=[],y()):yield p()))})}let g=Le(m,500);function m(v){return ee(this,null,function*(){if(!r.apiSearch)return;const{show:C,searchName:S,beforeFetch:_,interceptFetch:R}=r.apiSearch;!C||!S||(v=v||void 0,_&&Q(_)&&(v=(yield _(v))||v),!(R&&Q(R)&&!(yield R(v)))&&(l.value={[S]:v}))})}function y(){n("options-change",P(f))}function h(v,...C){i.value=C}return(v,C)=>(w(),V(P(An),Be({onDropdownVisibleChange:d},v.$attrs,{onChange:h,onSearch:P(g),options:f.value,value:P(u),"onUpdate:value":C[0]||(C[0]=S=>nr(u)?u.value=S:null)}),Pr({_:2},[Se(Object.keys(v.$slots),S=>({name:S,fn:re(_=>[_t(v.$slots,S,Pt(Mt(_||{})))])})),o.value?{name:"suffixIcon",fn:re(()=>[G(P(Jt),{spin:""})]),key:"0"}:void 0,o.value?{name:"notFoundContent",fn:re(()=>[x("span",null,[G(P(Jt),{spin:"",class:"mr-1"}),Ie(" "+se(P(c)("component.form.apiSelectNotFound")),1)])]),key:"1"}:void 0]),1040,["onSearch","options","value"]))}}),Ol=Y({name:"ApiTree",__name:"ApiTree",props:{api:{type:Function},params:{type:Object},immediate:{type:Boolean,default:!0},resultField:{type:String,default:""},beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null},value:{type:Array}},emits:["options-change","change","update:value"],setup(e,{emit:t}){const r=e,n=t,a=Ro(),o=T([]),s=T(!1),i=T(!1),l=T([]),[c]=je(r,"value","change",l),u=q(()=>le(le({},r.api?{treeData:P(o)}:{}),a));oe(()=>c.value,p=>{n("update:value",p)}),oe(()=>r.params,()=>{!P(s)&&f()},{deep:!0}),oe(()=>r.immediate,p=>{p&&!s.value&&f()}),Rn(()=>{r.immediate&&f()});function f(){return ee(this,null,function*(){let{api:p,beforeFetch:d,afterFetch:g,params:m,resultField:y}=r;if(!p||!Q(p))return;i.value=!0,o.value=[];let h;try{d&&Q(d)&&(m=(yield d(m))||m),h=yield p(m),g&&Q(g)&&(h=(yield g(h))||h)}catch(v){}i.value=!1,h&&(y&&(h=We(h,y)||[]),o.value=h||[],s.value=!0,n("options-change",o.value))})}return(p,d)=>(w(),V(P(zi),Be(u.value,{selectedKeys:P(c),"onUpdate:selectedKeys":d[0]||(d[0]=g=>nr(c)?c.value=g:null)}),Pr({_:2},[Se(Object.keys(p.$slots),g=>({name:g,fn:re(m=>[_t(p.$slots,g,Pt(Mt(m||{})))])}))]),1040,["selectedKeys"]))}}),$l=Y({name:"ApiTreeSelect",__name:"ApiTreeSelect",props:{api:{type:Function},params:{type:Object},immediate:{type:Boolean,default:!0},async:{type:Boolean,default:!1},resultField:X.string.def(""),labelField:X.string.def("title"),valueField:X.string.def("value"),childrenField:X.string.def("children"),beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["options-change","change","load-data"],setup(e,{emit:t}){const r=e,n=t,a=Ro(),o=T([]),s=T(!1),i=T(!1),l=q(()=>le(le({},r.api?{treeData:P(o)}:{}),a)),c={children:r.childrenField,value:r.valueField,label:r.labelField};function u(...d){n("change",...d)}oe(()=>r.params,()=>{!P(s)&&p()},{deep:!0}),oe(()=>r.immediate,d=>{d&&!s.value&&p()}),Rn(()=>{r.immediate&&p()});function f(d){return new Promise(g=>{if(xn(d.children)&&d.children.length>0){g();return}n("load-data",{treeData:o,treeNode:d,resolve:g})})}function p(){return ee(this,null,function*(){let{api:d,beforeFetch:g,afterFetch:m,params:y,resultField:h}=r;if(!d||!Q(d)||i.value)return;i.value=!0,o.value=[];let v;try{g&&Q(g)&&(y=(yield g(y))||y),v=yield d(y),m&&Q(m)&&(v=(yield m(v))||v)}catch(C){}i.value=!1,v&&(h&&(v=We(v,h)||[]),o.value=v||[],s.value=!0,n("options-change",o.value))})}return(d,g)=>(w(),V(P(So),Be(l.value,{onChange:u,"field-names":c,"load-data":e.async?f:void 0}),Pr({_:2},[Se(Object.keys(d.$slots),m=>({name:m,fn:re(y=>[_t(d.$slots,m,Pt(Mt(y||{})))])})),i.value?{name:"suffixIcon",fn:re(()=>[G(P(Jt),{spin:""})]),key:"0"}:void 0]),1040,["load-data"]))}}),Tl=Y({name:"ApiCascader",__name:"ApiCascader",props:{value:{type:Array},api:{type:Function,default:null},numberToString:X.bool,resultField:X.string.def(""),labelField:X.string.def("label"),valueField:X.string.def("value"),childrenField:X.string.def("children"),apiParamKey:X.string.def("parentCode"),immediate:X.bool.def(!0),initFetchParams:{type:Object,default:()=>({})},isLeaf:{type:Function,default:null},displayRenderArray:{type:Array},beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["change","defaultChange"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T([]),s=T(!1),i=T([]),l=T(!0),{t:c}=_n(),[u]=je(r,"value","change",i);oe(a,y=>{const h=f(y);o.value=h},{deep:!0});function f(y){const{labelField:h,valueField:v,numberToString:C,childrenField:S,isLeaf:_}=r;return y.reduce((R,E)=>{if(E){const I=E[v],k=we(le({},Or(E,[h,v])),{label:E[h],value:C?`${I}`:I,isLeaf:_&&typeof _=="function"?_(E):!1}),M=Reflect.get(E,S);M&&Reflect.set(k,S,f(M)),R.push(k)}return R},[])}function p(){return ee(this,null,function*(){let{api:y,beforeFetch:h,initFetchParams:v,afterFetch:C,resultField:S}=r;if(!(!y||!Q(y))){a.value=[],s.value=!0;try{h&&Q(h)&&(v=(yield h(v))||v);let _=yield y(v);if(C&&Q(C)&&(_=(yield C(_))||_),Array.isArray(_)){a.value=_;return}S&&(a.value=We(_,S)||[])}catch(_){}finally{s.value=!1}}})}const d=y=>ee(this,null,function*(){const h=y[y.length-1];h.loading=!0;let{api:v,beforeFetch:C,afterFetch:S,resultField:_,apiParamKey:R}=r;if(!(!v||!Q(v)))try{let E={[R]:Reflect.get(h,"value")};C&&Q(C)&&(E=(yield C(E))||E);let I=yield v(E);if(S&&Q(S)&&(I=(yield S(I))||I),Array.isArray(I)){const k=f(I);h.children=k;return}if(_){const k=f(We(I,_)||[]);h.children=k}}catch(E){}finally{h.loading=!1}});oe(()=>r.immediate,()=>{r.immediate&&p()},{immediate:!0}),oe(()=>r.initFetchParams,()=>{!P(l)&&p()},{deep:!0});function g(y,h){i.value=h,n("defaultChange",y,h)}const m=({labels:y,selectedOptions:h})=>P(i).length===(h==null?void 0:h.length)?y.join(" / "):r.displayRenderArray?r.displayRenderArray.join(" / "):"";return(y,h)=>(w(),V(P(wo),{value:P(u),"onUpdate:value":h[0]||(h[0]=v=>nr(u)?u.value=v:null),options:o.value,"load-data":d,"change-on-select":"",onChange:g,displayRender:m},Pr({_:2},[s.value?{name:"suffixIcon",fn:re(()=>[G(P(Jt),{spin:""})]),key:"0"}:void 0,s.value?{name:"notFoundContent",fn:re(()=>[x("span",null,[G(P(Jt),{spin:"",class:"mr-1"}),Ie(" "+se(P(c)("component.form.apiSelectNotFound")),1)])]),key:"1"}:void 0]),1032,["value","options"]))}}),Pl=Y({name:"ApiTransfer",__name:"ApiTransfer",props:{value:{type:Array},api:{type:Function,default:null},params:{type:Object},dataSource:{type:Array},immediate:X.bool.def(!0),alwaysLoad:X.bool.def(!1),beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null},resultField:X.string.def(""),labelField:X.string.def("title"),valueField:X.string.def("key"),showSearch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterOption:{type:Function},selectedKeys:{type:Array},showSelectAll:{type:Boolean,default:!1},targetKeys:{type:Array}},emits:["options-change","change"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T([]),s=q(()=>{const{labelField:f,valueField:p}=r;return P(a).reduce((d,g)=>(g&&d.push(we(le({},Or(g,[f,p])),{title:g[f],key:g[p]})),d),[])}),i=q(()=>Array.isArray(r.value)?r.value:Array.isArray(r.targetKeys)?r.targetKeys:[]);function l(f,p,d){o.value=f,n("change",f)}ol(()=>{r.immediate&&!r.alwaysLoad&&c()}),oe(()=>r.params,()=>{c()},{deep:!0});function c(){return ee(this,null,function*(){let{api:f,beforeFetch:p,afterFetch:d,params:g,resultField:m,dataSource:y}=r;if(!f||!Q(f)){Array.isArray(y)&&(a.value=y);return}a.value=[];try{p&&Q(p)&&(g=(yield p(g))||g);let h=yield f(g);if(d&&Q(d)&&(h=(yield d(h))||h),Array.isArray(h)){a.value=h,u();return}m&&(a.value=We(h,m)||[]),u()}catch(h){}})}function u(){n("options-change",P(s))}return(f,p)=>(w(),V(P(_o),{"data-source":s.value,"filter-option":e.filterOption,render:d=>d.title,showSelectAll:e.showSelectAll,selectedKeys:e.selectedKeys,targetKeys:i.value,showSearch:e.showSearch,disabled:e.disabled,onChange:l},null,8,["data-source","filter-option","render","showSelectAll","selectedKeys","targetKeys","showSearch","disabled"]))}}),Ml=Y({name:"PlainText",props:{value:{type:[String,Number],default:""}},setup(e){var a,o;const t=ct(),[r]=je(e),n=(o=(a=r.value)==null?void 0:a.toString())!=null?o:"";return{attrs:t,state:r,title:n}}}),Fl=["title"];function Il(e,t,r,n,a,o){return w(),F("div",Pt(Mt(e.attrs)),[x("span",{class:"ant-form-text",title:e.title},se(e.state),9,Fl)],16)}const Bl=tt(Ml,[["render",Il],["__scopeId","data-v-79eb5031"]]),Hl=Y({name:"PlainTitle",props:{value:{type:[String,Number],default:""}},setup(e){var a,o;const t=ct(),[r]=je(e),n=(o=(a=r.value)==null?void 0:a.toString())!=null?o:"";return{attrs:t,state:r,title:n}}}),Ll=["title"];function Dl(e,t,r,n,a,o){return w(),F("div",Pt(Mt(e.attrs)),[x("div",{class:"form-plainTit",title:e.title},[x("span",null,se(e.title),1)],8,Ll)],16)}const Nl=tt(Hl,[["render",Dl],["__scopeId","data-v-09b333d1"]]),jl=Y({name:"PlainSlot",props:{value:{type:[String,Number],default:""}},setup(e){var a,o;const t=ct(),[r]=je(e),n=(o=(a=r.value)==null?void 0:a.toString())!=null?o:"";return{attrs:t,state:r,title:n}}}),Ul=["title"];function Vl(e,t,r,n,a,o){return w(),F("div",Pt(Mt(e.attrs)),[x("div",{class:"form-plainSlot",title:e.title},null,8,Ul)],16)}const zl=tt(jl,[["render",Vl]]),Wl=Y({name:"TextEditor",components:{Tinymce:yl},props:{value:{type:[String,Number]},content:{type:String,default:"请输入文本内容"},height:{type:Number,default:600},reference:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const r=ct(),[n]=je(e);function a(o){t("change",o)}return{attrs:r,state:n,handleChange:a}}});function Kl(e,t,r,n,a,o){const s=W("Tinymce");return w(),F("div",Be(e.attrs,{"button-style":"solid",class:"text-editor"}),[G(s,{modelValue:e.state,"onUpdate:modelValue":t[0]||(t[0]=i=>e.state=i),height:e.height,showReference:e.reference,onChange:e.handleChange},null,8,["modelValue","height","showReference","onChange"])],16)}const Gl=tt(Wl,[["render",Kl],["__scopeId","data-v-0ea9be76"]]);function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}var Xl=/^\s+/,ql=/\s+$/;function A(e,t){if(e=e||"",t=t||{},e instanceof A)return e;if(!(this instanceof A))return new A(e,t);var r=Yl(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}A.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,o,s,i;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*s+.0722*i},setAlpha:function(t){return this._a=To(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ma(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return ya(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return es(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ds[ya(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ba(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var o=A(t);n="#"+ba(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,o=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return A(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(as,arguments)},brighten:function(){return this._applyModification(os,arguments)},darken:function(){return this._applyModification(is,arguments)},desaturate:function(){return this._applyModification(ts,arguments)},saturate:function(){return this._applyModification(rs,arguments)},greyscale:function(){return this._applyModification(ns,arguments)},spin:function(){return this._applyModification(ls,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(cs,arguments)},complement:function(){return this._applyCombination(ss,arguments)},monochromatic:function(){return this._applyCombination(fs,arguments)},splitcomplement:function(){return this._applyCombination(us,arguments)},triad:function(){return this._applyCombination(Ca,[3])},tetrad:function(){return this._applyCombination(Ca,[4])}};A.fromRatio=function(e,t){if(mr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Wt(e[n]));e=r}return A(e,t)};function Yl(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=gs(e)),mr(e)=="object"&&(Ue(e.r)&&Ue(e.g)&&Ue(e.b)?(t=Jl(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ue(e.h)&&Ue(e.s)&&Ue(e.v)?(n=Wt(e.s),a=Wt(e.v),t=Ql(e.h,n,a),s=!0,i="hsv"):Ue(e.h)&&Ue(e.s)&&Ue(e.l)&&(n=Wt(e.s),o=Wt(e.l),t=Zl(e.h,n,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=To(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Jl(e,t,r){return{r:Z(e,255)*255,g:Z(t,255)*255,b:Z(r,255)*255}}function ga(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o,s,i=(n+a)/2;if(n==a)o=s=0;else{var l=n-a;switch(s=i>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=a=o=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function ma(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o,s,i=n,l=n-a;if(s=n===0?0:l/n,n==a)o=0;else{switch(n){case e:o=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(A(n));return o}function fs(e,t){t=t||6;for(var r=A(e).toHsv(),n=r.h,a=r.s,o=r.v,s=[],i=1/t;t--;)s.push(A({h:n,s:a,v:o})),o=(o+i)%1;return s}A.mix=function(e,t,r){r=r===0?0:r||50;var n=A(e).toRgb(),a=A(t).toRgb(),o=r/100,s={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return A(s)};A.readability=function(e,t){var r=A(e),n=A(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};A.isReadable=function(e,t,r){var n=A.readability(e,t),a,o;switch(o=!1,a=ms(r),a.level+a.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};A.mostReadable=function(e,t,r){var n=null,a=0,o,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;ca&&(a=o,n=A(t[c]));return A.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,A.mostReadable(e,["#fff","#000"],r))};var dn=A.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ds=A.hexNames=ps(dn);function ps(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function To(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Z(e,t){hs(e)&&(e="100%");var r=vs(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Mr(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function hs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function vs(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Fe(e){return e.length==1?"0"+e:""+e}function Wt(e){return e<=1&&(e=e*100+"%"),e}function Po(e){return Math.round(parseFloat(e)*255).toString(16)}function Sa(e){return _e(e)/255}var Me=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ue(e){return!!Me.CSS_UNIT.exec(e)}function gs(e){e=e.replace(Xl,"").replace(ql,"").toLowerCase();var t=!1;if(dn[e])e=dn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Me.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Me.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Me.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Me.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Me.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Me.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Me.hex8.exec(e))?{r:_e(r[1]),g:_e(r[2]),b:_e(r[3]),a:Sa(r[4]),format:t?"name":"hex8"}:(r=Me.hex6.exec(e))?{r:_e(r[1]),g:_e(r[2]),b:_e(r[3]),format:t?"name":"hex"}:(r=Me.hex4.exec(e))?{r:_e(r[1]+""+r[1]),g:_e(r[2]+""+r[2]),b:_e(r[3]+""+r[3]),a:Sa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Me.hex3.exec(e))?{r:_e(r[1]+""+r[1]),g:_e(r[2]+""+r[2]),b:_e(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function ms(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var ft=ft||{};ft.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,n=e.visit(t.at),a=e.visit(t.style);return a&&(r+=" "+a),n&&(r+=" at "+n),r},"visit_default-radial":function(t){var r="",n=e.visit(t.at);return n&&(r+=n),r},"visit_extent-keyword":function(t){var r=t.value,n=e.visit(t.at);return n&&(r+=" at "+n),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,r){var n=t,a=e.visit(r.length);return a&&(n+=" "+a),n},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",n=t.length;return t.forEach(function(a,o){r+=e.visit(a),o0&&r("Invalid input not EOF"),O}function a(){return C(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,f)||s("repeating-radial-gradient",e.repeatingRadialGradient,f)}function s(O,U,K){return i(U,function(ge){var Ye=K();return Ye&&(N(e.comma)||r("Missing comma before color stops")),{type:O,orientation:Ye,colorStops:C(S)}})}function i(O,U){var K=N(O);if(K){N(e.startCall)||r("Missing (");var ge=U(K);return N(e.endCall)||r("Missing )"),ge}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function f(){var O,U=p(),K;return U&&(O=[],O.push(U),K=t,N(e.comma)&&(U=p(),U?O.push(U):t=K)),O}function p(){var O=d()||g();if(O)O.at=y();else{var U=m();if(U){O=U;var K=y();K&&(O.at=K)}else{var ge=h();ge&&(O={type:"default-radial",at:ge})}}return O}function d(){var O=H("shape",/^(circle)/i,0);return O&&(O.style=B()||m()),O}function g(){var O=H("shape",/^(ellipse)/i,0);return O&&(O.style=b()||m()),O}function m(){return H("extent-keyword",e.extentKeywords,1)}function y(){if(H("position",/^at/,0)){var O=h();return O||r("Missing positioning value"),O}}function h(){var O=v();if(O.x||O.y)return{type:"position",value:O}}function v(){return{x:b(),y:b()}}function C(O){var U=O(),K=[];if(U)for(K.push(U);N(e.comma);)U=O(),U?K.push(U):r("One extra comma");return K}function S(){var O=_();return O||r("Expected color definition"),O.length=b(),O}function _(){return E()||k()||I()||R()}function R(){return H("literal",e.literalColor,0)}function E(){return H("hex",e.hexColor,1)}function I(){return i(e.rgbColor,function(){return{type:"rgb",value:C(M)}})}function k(){return i(e.rgbaColor,function(){return{type:"rgba",value:C(M)}})}function M(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||$()||B()}function $(){return H("position-keyword",e.positionKeywords,1)}function B(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(O,U,K){var ge=N(U);if(ge)return{type:O,value:ge[K]}}function N(O){var U,K;return K=/^[\n\r\t\s]+/.exec(t),K&&j(K[0].length),U=O.exec(t),U&&j(U[0].length),U}function j(O){t=t.substr(O)}return function(O){return t=O.toString(),n()}}();var ys=ft.parse,bs=ft.stringify,ye="top",$e="bottom",Te="right",be="left",En="auto",ar=[ye,$e,Te,be],xt="start",Zt="end",Cs="clippingParents",Mo="viewport",jt="popper",Ss="reference",wa=ar.reduce(function(e,t){return e.concat([t+"-"+xt,t+"-"+Zt])},[]),Fo=[].concat(ar,[En]).reduce(function(e,t){return e.concat([t,t+"-"+xt,t+"-"+Zt])},[]),ws="beforeRead",_s="read",xs="afterRead",ks="beforeMain",As="main",Rs="afterMain",Es="beforeWrite",Os="write",$s="afterWrite",Ts=[ws,_s,xs,ks,As,Rs,Es,Os,$s];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Re(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function On(e){if(typeof ShadowRoot=="undefined")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ps(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Re(o)||!Ne(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function Ms(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Re(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const Fs={name:"applyStyles",enabled:!0,phase:"write",fn:Ps,effect:Ms,requires:["computeStyles"]};function De(e){return e.split("-")[0]}var lt=Math.max,yr=Math.min,kt=Math.round;function pn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Io(){return!/^((?!chrome|android).)*safari/i.test(pn())}function At(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Re(e)&&(a=e.offsetWidth>0&&kt(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&kt(n.height)/e.offsetHeight||1);var s=st(e)?xe(e):window,i=s.visualViewport,l=!Io()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/a,u=(n.top+(l&&i?i.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function $n(e){var t=At(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Bo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&On(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ge(e){return xe(e).getComputedStyle(e)}function Is(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fr(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(On(e)?e.host:null)||rt(e)}function _a(e){return!Re(e)||Ge(e).position==="fixed"?null:e.offsetParent}function Bs(e){var t=/firefox/i.test(pn()),r=/Trident/i.test(pn());if(r&&Re(e)){var n=Ge(e);if(n.position==="fixed")return null}var a=Fr(e);for(On(a)&&(a=a.host);Re(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ge(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function or(e){for(var t=xe(e),r=_a(e);r&&Is(r)&&Ge(r).position==="static";)r=_a(r);return r&&(Ne(r)==="html"||Ne(r)==="body"&&Ge(r).position==="static")?t:r||Bs(e)||t}function Tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gt(e,t,r){return lt(e,yr(t,r))}function Hs(e,t,r){var n=Gt(e,t,r);return n>r?r:n}function Ho(){return{top:0,right:0,bottom:0,left:0}}function Lo(e){return Object.assign({},Ho(),e)}function Do(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Ls=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Lo(typeof t!="number"?t:Do(t,ar))};function Ds(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,i=De(r.placement),l=Tn(i),c=[be,Te].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var f=Ls(a.padding,r),p=$n(o),d=l==="y"?ye:be,g=l==="y"?$e:Te,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],y=s[l]-r.rects.reference[l],h=or(o),v=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,C=m/2-y/2,S=f[d],_=v-p[u]-f[g],R=v/2-p[u]/2+C,E=Gt(S,R,_),I=l;r.modifiersData[n]=(t={},t[I]=E,t.centerOffset=E-R,t)}}function Ns(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Bo(t.elements.popper,a)&&(t.elements.arrow=a))}const js={name:"arrow",enabled:!0,phase:"main",fn:Ds,effect:Ns,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(e){return e.split("-")[1]}var Us={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vs(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:kt(r*a)/a||0,y:kt(n*a)/a||0}}function xa(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,d=p===void 0?0:p,g=s.y,m=g===void 0?0:g,y=typeof u=="function"?u({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var h=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),C=be,S=ye,_=window;if(c){var R=or(r),E="clientHeight",I="clientWidth";if(R===xe(r)&&(R=rt(r),Ge(R).position!=="static"&&i==="absolute"&&(E="scrollHeight",I="scrollWidth")),R=R,a===ye||(a===be||a===Te)&&o===Zt){S=$e;var k=f&&R===_&&_.visualViewport?_.visualViewport.height:R[E];m-=k-n.height,m*=l?1:-1}if(a===be||(a===ye||a===$e)&&o===Zt){C=Te;var M=f&&R===_&&_.visualViewport?_.visualViewport.width:R[I];d-=M-n.width,d*=l?1:-1}}var b=Object.assign({position:i},c&&Us),$=u===!0?Vs({x:d,y:m},xe(r)):{x:d,y:m};if(d=$.x,m=$.y,l){var B;return Object.assign({},b,(B={},B[S]=v?"0":"",B[C]=h?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",B))}return Object.assign({},b,(t={},t[S]=v?m+"px":"",t[C]=h?d+"px":"",t.transform="",t))}function zs(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:De(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ws={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zs,data:{}};var cr={passive:!0};function Ks(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",r.update,cr)}),i&&l.addEventListener("resize",r.update,cr),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",r.update,cr)}),i&&l.removeEventListener("resize",r.update,cr)}}const Gs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ks,data:{}};var Xs={left:"right",right:"left",bottom:"top",top:"bottom"};function hr(e){return e.replace(/left|right|bottom|top/g,function(t){return Xs[t]})}var qs={start:"end",end:"start"};function ka(e){return e.replace(/start|end/g,function(t){return qs[t]})}function Pn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mn(e){return At(rt(e)).left+Pn(e).scrollLeft}function Ys(e,t){var r=xe(e),n=rt(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=Io();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+Mn(e),y:l}}function Js(e){var t,r=rt(e),n=Pn(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=lt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=lt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Mn(e),l=-n.scrollTop;return Ge(a||r).direction==="rtl"&&(i+=lt(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Fn(e){var t=Ge(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function No(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Re(e)&&Fn(e)?e:No(Fr(e))}function Xt(e,t){var r;t===void 0&&(t=[]);var n=No(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=xe(n),s=a?[o].concat(o.visualViewport||[],Fn(n)?n:[]):n,i=t.concat(s);return a?i:i.concat(Xt(Fr(s)))}function hn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zs(e,t){var r=At(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Aa(e,t,r){return t===Mo?hn(Ys(e,r)):st(t)?Zs(t,r):hn(Js(rt(e)))}function Qs(e){var t=Xt(Fr(e)),r=["absolute","fixed"].indexOf(Ge(e).position)>=0,n=r&&Re(e)?or(e):e;return st(n)?t.filter(function(a){return st(a)&&Bo(a,n)&&Ne(a)!=="body"}):[]}function eu(e,t,r,n){var a=t==="clippingParents"?Qs(e):[].concat(t),o=[].concat(a,[r]),s=o[0],i=o.reduce(function(l,c){var u=Aa(e,c,n);return l.top=lt(u.top,l.top),l.right=yr(u.right,l.right),l.bottom=yr(u.bottom,l.bottom),l.left=lt(u.left,l.left),l},Aa(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function jo(e){var t=e.reference,r=e.element,n=e.placement,a=n?De(n):null,o=n?Rt(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(a){case ye:l={x:s,y:t.y-r.height};break;case $e:l={x:s,y:t.y+t.height};break;case Te:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Tn(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case xt:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Zt:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function Qt(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,i=r.boundary,l=i===void 0?Cs:i,c=r.rootBoundary,u=c===void 0?Mo:c,f=r.elementContext,p=f===void 0?jt:f,d=r.altBoundary,g=d===void 0?!1:d,m=r.padding,y=m===void 0?0:m,h=Lo(typeof y!="number"?y:Do(y,ar)),v=p===jt?Ss:jt,C=e.rects.popper,S=e.elements[g?v:p],_=eu(st(S)?S:S.contextElement||rt(e.elements.popper),l,u,s),R=At(e.elements.reference),E=jo({reference:R,element:C,placement:a}),I=hn(Object.assign({},C,E)),k=p===jt?I:R,M={top:_.top-k.top+h.top,bottom:k.bottom-_.bottom+h.bottom,left:_.left-k.left+h.left,right:k.right-_.right+h.right},b=e.modifiersData.offset;if(p===jt&&b){var $=b[a];Object.keys(M).forEach(function(B){var H=[Te,$e].indexOf(B)>=0?1:-1,N=[ye,$e].indexOf(B)>=0?"y":"x";M[B]+=$[N]*H})}return M}function tu(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Fo:l,u=Rt(n),f=u?i?wa:wa.filter(function(g){return Rt(g)===u}):ar,p=f.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=f);var d=p.reduce(function(g,m){return g[m]=Qt(e,{placement:m,boundary:a,rootBoundary:o,padding:s})[De(m)],g},{});return Object.keys(d).sort(function(g,m){return d[g]-d[m]})}function ru(e){if(De(e)===En)return[];var t=hr(e);return[ka(e),t,ka(t)]}function nu(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,p=r.altBoundary,d=r.flipVariations,g=d===void 0?!0:d,m=r.allowedAutoPlacements,y=t.options.placement,h=De(y),v=h===y,C=l||(v||!g?[hr(y)]:ru(y)),S=[y].concat(C).reduce(function(Je,He){return Je.concat(De(He)===En?tu(t,{placement:He,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:m}):He)},[]),_=t.rects.reference,R=t.rects.popper,E=new Map,I=!0,k=S[0],M=0;M=0,N=H?"width":"height",j=Qt(t,{placement:b,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),O=H?B?Te:be:B?$e:ye;_[N]>R[N]&&(O=hr(O));var U=hr(O),K=[];if(o&&K.push(j[$]<=0),i&&K.push(j[O]<=0,j[U]<=0),K.every(function(Je){return Je})){k=b,I=!1;break}E.set(b,K)}if(I)for(var ge=g?3:1,Ye=function(He){var Dt=S.find(function(sr){var at=E.get(sr);if(at)return at.slice(0,He).every(function(Nr){return Nr})});if(Dt)return k=Dt,"break"},nt=ge;nt>0;nt--){var ht=Ye(nt);if(ht==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const au={name:"flip",enabled:!0,phase:"main",fn:nu,requiresIfExists:["offset"],data:{_skip:!1}};function Ra(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ea(e){return[ye,Te,$e,be].some(function(t){return e[t]>=0})}function ou(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Qt(t,{elementContext:"reference"}),i=Qt(t,{altBoundary:!0}),l=Ra(s,n),c=Ra(i,a,o),u=Ea(l),f=Ea(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const iu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ou};function lu(e,t,r){var n=De(e),a=[be,ye].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Te].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function su(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=Fo.reduce(function(u,f){return u[f]=lu(f,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const uu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:su};function cu(e){var t=e.state,r=e.name;t.modifiersData[r]=jo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const fu={name:"popperOffsets",enabled:!0,phase:"read",fn:cu,data:{}};function du(e){return e==="x"?"y":"x"}function pu(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,p=r.tether,d=p===void 0?!0:p,g=r.tetherOffset,m=g===void 0?0:g,y=Qt(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),h=De(t.placement),v=Rt(t.placement),C=!v,S=Tn(h),_=du(S),R=t.modifiersData.popperOffsets,E=t.rects.reference,I=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(R){if(o){var B,H=S==="y"?ye:be,N=S==="y"?$e:Te,j=S==="y"?"height":"width",O=R[S],U=O+y[H],K=O-y[N],ge=d?-I[j]/2:0,Ye=v===xt?E[j]:I[j],nt=v===xt?-I[j]:-E[j],ht=t.elements.arrow,Je=d&&ht?$n(ht):{width:0,height:0},He=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ho(),Dt=He[H],sr=He[N],at=Gt(0,E[j],Je[j]),Nr=C?E[j]/2-ge-at-Dt-M.mainAxis:Ye-at-Dt-M.mainAxis,wi=C?-E[j]/2+ge+at+sr+M.mainAxis:nt+at+sr+M.mainAxis,jr=t.elements.arrow&&or(t.elements.arrow),_i=jr?S==="y"?jr.clientTop||0:jr.clientLeft||0:0,aa=(B=b==null?void 0:b[S])!=null?B:0,xi=O+Nr-aa-_i,ki=O+wi-aa,oa=Gt(d?yr(U,xi):U,O,d?lt(K,ki):K);R[S]=oa,$[S]=oa-O}if(i){var ia,Ai=S==="x"?ye:be,Ri=S==="x"?$e:Te,ot=R[_],ur=_==="y"?"height":"width",la=ot+y[Ai],sa=ot-y[Ri],Ur=[ye,be].indexOf(h)!==-1,ua=(ia=b==null?void 0:b[_])!=null?ia:0,ca=Ur?la:ot-E[ur]-I[ur]-ua+M.altAxis,fa=Ur?ot+E[ur]+I[ur]-ua-M.altAxis:sa,da=d&&Ur?Hs(ca,ot,fa):Gt(d?ca:la,ot,d?fa:sa);R[_]=da,$[_]=da-ot}t.modifiersData[n]=$}}const hu={name:"preventOverflow",enabled:!0,phase:"main",fn:pu,requiresIfExists:["offset"]};function vu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gu(e){return e===xe(e)||!Re(e)?Pn(e):vu(e)}function mu(e){var t=e.getBoundingClientRect(),r=kt(t.width)/e.offsetWidth||1,n=kt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function yu(e,t,r){r===void 0&&(r=!1);var n=Re(t),a=Re(t)&&mu(t),o=rt(t),s=At(e,a,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ne(t)!=="body"||Fn(o))&&(i=gu(t)),Re(t)?(l=At(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Mn(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function bu(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&a(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Cu(e){var t=bu(e);return Ts.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Su(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function wu(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Oa={placement:"bottom",modifiers:[],strategy:"absolute"};function $a(){for(var e=arguments.length,t=new Array(e),r=0;r0?Nu:Du)(e)},ju=Math.min,ke=function(e){return e>0?ju(Ht(e),9007199254740991):0},Uu=Math.max,Vu=Math.min,Sr=function(e,t){var r=Ht(e);return r<0?Uu(r+t,0):Vu(r,t)},zu=function(e){return function(t,r,n){var a,o=Bt(t),s=ke(o.length),i=Sr(n,s);if(e&&r!=r){for(;s>i;)if((a=o[i++])!=a)return!0}else for(;s>i;i++)if((e||i in o)&&o[i]===r)return e||i||0;return!e&&-1}},Ko={indexOf:zu(!1)},Wu=Ko.indexOf,Go=function(e,t){var r,n=Bt(e),a=0,o=[];for(r in n)!ie(Hr,r)&&ie(n,r)&&o.push(r);for(;t.length>a;)ie(n,r=t[a++])&&(~Wu(o,r)||o.push(r));return o},wr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ku=wr.concat("length","prototype"),Gu={f:Object.getOwnPropertyNames||function(e){return Go(e,Ku)}},Xu={f:Object.getOwnPropertySymbols},qu=Lr("Reflect","ownKeys")||function(e){var t=Gu.f(me(e)),r=Xu.f;return r?t.concat(r(e)):t},Yu=function(e,t){for(var r=qu(t),n=Xe.f,a=Hn.f,o=0;o1?arguments[1]:void 0)}});(function(){function e(){dt(this,e)}return pt(e,null,[{key:"isInBrowser",value:function(){return typeof window!="undefined"}},{key:"isServer",value:function(){return typeof window=="undefined"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var sc=[].join,uc=Br!=Object,cc=jn("join",",");ve({target:"Array",proto:!0,forced:uc||!cc},{join:function(e){return sc.call(Bt(this),e===void 0?",":e)}});var gt,_r,qe=function(e){return Object(Ze(e))},Et=Array.isArray||function(e){return Ke(e)=="Array"},qo=!!Object.getOwnPropertySymbols&&!J(function(){return!String(Symbol())}),fc=qo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dr=Wo("wks"),Yt=ue.Symbol,dc=fc?Yt:Yt&&Yt.withoutSetter||Dn,ne=function(e){return ie(dr,e)||(qo&&ie(Yt,e)?dr[e]=Yt[e]:dr[e]=dc("Symbol."+e)),dr[e]},pc=ne("species"),Dr=function(e,t){var r;return Et(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!Et(r.prototype)?ce(r)&&(r=r[pc])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},Ot=function(e,t,r){var n=Bn(t);n in e?Xe.f(e,n,Ir(0,r)):e[n]=r},Wr=Lr("navigator","userAgent")||"",ja=ue.process,Ua=ja&&ja.versions,Va=Ua&&Ua.v8;Va?_r=(gt=Va.split("."))[0]+gt[1]:Wr&&(!(gt=Wr.match(/Edge\/(\d+)/))||gt[1]>=74)&&(gt=Wr.match(/Chrome\/(\d+)/))&&(_r=gt[1]);var xr=_r&&+_r,hc=ne("species"),Un=function(e){return xr>=51||!J(function(){var t=[];return(t.constructor={})[hc]=function(){return{foo:1}},t[e](Boolean).foo!==1})},vc=Un("splice"),gc=Lt("splice",{ACCESSORS:!0,0:0,1:2}),mc=Math.max,yc=Math.min;ve({target:"Array",proto:!0,forced:!vc||!gc},{splice:function(e,t){var r,n,a,o,s,i,l=qe(this),c=ke(l.length),u=Sr(e,c),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=c-u):(r=f-2,n=yc(mc(Ht(t),0),c-u)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(a=Dr(l,n),o=0;oc-n+r;o--)delete l[o-1]}else if(r>n)for(o=c-n;o>u;o--)i=o+r-1,(s=o+n-1)in l?l[i]=l[s]:delete l[i];for(o=0;o0&&(!o.multiline||o.multiline&&e[o.lastIndex-1]!==` `)&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",i)),qr&&(r=new RegExp("^"+l+"$(?!\\s)",i)),Xr&&(t=o.lastIndex),n=kr.call(s?r:o,u),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:Xr&&n&&(o.lastIndex=o.global?n.index+n[0].length:t),qr&&n&&n.length>1&&wc.call(n[0],r,function(){for(a=1;a")!=="7"}),Ga="a".replace(/./,"$0")==="$0",Xa=ne("replace"),qa=!!/./[Xa]&&/./[Xa]("a","$0")==="",Rc=!J(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),ri=function(e,t,r,n){var a=ne(e),o=!J(function(){var f={};return f[a]=function(){return 7},""[e](f)!=7}),s=o&&!J(function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[kc]=function(){return p},p.flags="",p[a]=/./[a]),p.exec=function(){return f=!0,null},p[a](""),!f});if(!o||!s||e==="replace"&&(!Ac||!Ga||qa)||e==="split"&&!Rc){var i=/./[a],l=r(a,""[e],function(f,p,d,g,m){return p.exec===er?o&&!m?{done:!0,value:i.call(p,d,g)}:{done:!0,value:f.call(d,p,g)}:{done:!1}},{REPLACE_KEEPS_$0:Ga,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qa}),c=l[0],u=l[1];et(String.prototype,e,c),et(RegExp.prototype,a,function(f,p){return u.call(f,this,p)})}n&&Ee(RegExp.prototype[a],"sham",!0)},Ec=ne("match"),ni=function(e){var t;return ce(e)&&((t=e[Ec])!==void 0?!!t:Ke(e)=="RegExp")},zn=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Oc=ne("species"),$c=function(e){return function(t,r){var n,a,o=String(Ze(t)),s=Ht(r),i=o.length;return s<0||s>=i?e?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===i||(a=o.charCodeAt(s+1))<56320||a>57343?e?o.charAt(s):n:e?o.slice(s,s+2):a-56320+(n-55296<<10)+65536}},ai={charAt:$c(!0)},Tc=ai.charAt,oi=function(e,t,r){return t+(r?Tc(e,t).length:1)},mn=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(Ke(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return er.call(e,t)},Pc=[].push,Mc=Math.min,mt=!J(function(){return!RegExp(4294967295,"y")});ri("split",2,function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(a,o){var s=String(Ze(this)),i=o===void 0?4294967295:o>>>0;if(i===0)return[];if(a===void 0)return[s];if(!ni(a))return t.call(s,a,i);for(var l,c,u,f=[],p=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),d=0,g=new RegExp(a.source,p+"g");(l=er.call(g,s))&&!((c=g.lastIndex)>d&&(f.push(s.slice(d,l.index)),l.length>1&&l.index=i));)g.lastIndex===l.index&&g.lastIndex++;return d===s.length?!u&&g.test("")||f.push(""):f.push(s.slice(d)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(a,o){return a===void 0&&o===0?[]:t.call(this,a,o)}:t,[function(a,o){var s=Ze(this),i=a==null?void 0:a[e];return i!==void 0?i.call(a,s,o):n.call(String(s),a,o)},function(a,o){var s=r(n,a,this,o,n!==t);if(s.done)return s.value;var i=me(a),l=String(this),c=function(S,_){var R,E=me(S).constructor;return E===void 0||(R=me(E)[Oc])==null?_:zn(R)}(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mt?"y":"g"),p=new c(mt?i:"^(?:"+i.source+")",f),d=o===void 0?4294967295:o>>>0;if(d===0)return[];if(l.length===0)return mn(p,l)===null?[l]:[];for(var g=0,m=0,y=[];m1?arguments[1]:void 0,t.length)),n=String(e);return Ya?Ya.call(t,n,r):t.slice(r,r+n.length)===n}});var yt=function(e){return typeof e=="string"},bt=function(e){return e!==null&&li(e)==="object"},tr=function(){function e(){dt(this,e)}return pt(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,a)}},{key:"removeEventListener",value:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,a)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,a=function(s){var i;(i=r.drag)===null||i===void 0||i.call(r,s)},o=function s(i){var l;e.removeEventListener(document,"mousemove",a),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,n=!1,(l=r.end)===null||l===void 0||l.call(r,i)};e.addEventListener(t,"mousedown",function(s){var i;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",a),e.addEventListener(document,"mouseup",o),n=!0,(i=r.start)===null||i===void 0||i.call(r,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&bt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&bt(t)&&yt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&bt(t)&&yt(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&bt(t)&&yt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),a=n.length-1;a>=0;a--)n[a]=n[a].trim(),n[a]&&n[a]!==r||n.splice(a,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&bt(t)&&yt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&bt(t)&&yt(r)&&yt(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",a=t.offsetParent===null&&r.position!=="fixed";return n||a}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),a=n.left+n.width/2,o=n.top+n.height/2,s=Math.abs(a-r.clientX),i=Math.abs(o-r.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return r.clientX>a&&r.clientY>o&&(u=180-u),r.clientX==a&&r.clientY>o&&(u=180),r.clientX>a&&r.clientY==o&&(u=90),r.clientXo&&(u=180+u),r.clientX1?n-1:0),o=1;o]*>)/g,Qc=/\$([$&'`]|\d\d?)/g,ef=function(e,t,r,n,a,o){var s=r+e.length,i=n.length,l=Qc;return a!==void 0&&(a=qe(a),l=Zc),Jc.call(o,l,function(c,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":f=a[u.slice(1,-1)];break;default:var p=+u;if(p===0)return c;if(p>i){var d=Yc(p/10);return d===0?c:d<=i?n[d-1]===void 0?u.charAt(1):n[d-1]+u.charAt(1):c}f=n[p-1]}return f===void 0?"":f})},tf=Math.max,rf=Math.min;ri("replace",2,function(e,t,r,n){var a=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=n.REPLACE_KEEPS_$0,s=a?"$":"$0";return[function(i,l){var c=Ze(this),u=i==null?void 0:i[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!a&&o||typeof l=="string"&&l.indexOf(s)===-1){var c=r(t,i,this,l);if(c.done)return c.value}var u=me(i),f=String(this),p=typeof l=="function";p||(l=String(l));var d=u.global;if(d){var g=u.unicode;u.lastIndex=0}for(var m=[];;){var y=mn(u,f);if(y===null||(m.push(y),!d))break;String(y[0])===""&&(u.lastIndex=oi(f,ke(u.lastIndex),g))}for(var h,v="",C=0,S=0;S=C&&(v+=f.slice(C,R)+b,C=R+_.length)}return v+f.slice(C)}]});(function(){function e(){dt(this,e)}return pt(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(r,n){return n?n.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){dt(this,e)}return pt(e,null,[{key:"_clone",value:function(){}}]),e})();var si=ne("isConcatSpreadable"),nf=xr>=51||!J(function(){var e=[];return e[si]=!1,e.concat()[0]!==e}),af=Un("concat"),of=function(e){if(!ce(e))return!1;var t=e[si];return t!==void 0?!!t:Et(e)};ve({target:"Array",proto:!0,forced:!nf||!af},{concat:function(e){var t,r,n,a,o,s=qe(this),i=Dr(s,0),l=0;for(t=-1,n=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ot(i,l++,o)}return i.length=l,i}});var Jr,lr=function(e,t,r){if(zn(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,o){return e.call(t,n,a,o)}}return function(){return e.apply(t,arguments)}},Ja=[].push,Za=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,o=e==6,s=e==7,i=e==5||o;return function(l,c,u,f){for(var p,d,g=qe(l),m=Br(g),y=lr(c,u,3),h=ke(m.length),v=0,C=f||Dr,S=t?C(l,h):r||s?C(l,0):void 0;h>v;v++)if((i||v in m)&&(d=y(p=m[v],v,g),e))if(t)S[v]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return v;case 2:Ja.call(S,p)}else switch(e){case 4:return!1;case 7:Ja.call(S,p)}return o?-1:n||a?a:S}},ui={find:Za(5),findIndex:Za(6)},lf=Ae?Object.defineProperties:function(e,t){me(e);for(var r,n=Wn(t),a=n.length,o=0;a>o;)Xe.f(e,r=n[o++],t[r]);return e},sf=Lr("document","documentElement"),ci=Nn("IE_PROTO"),Zr=function(){},Qa=function(e){return"