@vtj/pro 0.9.15 → 0.9.16

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.
Files changed (48) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +8 -8
  9. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +18 -18
  10. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  11. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +19 -19
  12. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  13. package/dist/assets/{@element-plus-icons-vue-BM7nPgXL.js → @element-plus-icons-vue-CClttscX.js} +1 -1
  14. package/dist/assets/@vueuse-54eSL_G4.js +1 -0
  15. package/dist/assets/Editor-Cp9Sb2ni-Dk9vII-5.js +1 -0
  16. package/dist/assets/auth-B7RXv-Ll.js +1 -0
  17. package/dist/assets/{dayjs-DO-COJPZ.js → dayjs-D_Mdy0hN.js} +1 -1
  18. package/dist/assets/element-plus-C1NYT3Gu.js +21 -0
  19. package/dist/assets/element-plus-IIQy0ps0.css +1 -0
  20. package/dist/assets/{extension-pBXqPLzO.js → extension-CxIyYzvy.js} +35 -35
  21. package/dist/assets/{html2canvas-CIV5arX1.js → html2canvas-D2Pt4KSj.js} +2 -2
  22. package/dist/assets/index-DsP4ZQJh.js +157 -0
  23. package/dist/assets/index-OvjY7FCy.js +1 -0
  24. package/dist/assets/{json.worker-Deqi-XXW-DeWZL2p5.js → json.worker-Cz3wPAlQ-CAknfGu-.js} +1 -1
  25. package/dist/assets/lodash-es-Cd_vyJR8.js +1 -0
  26. package/dist/assets/{mockjs-BiYWQEnZ.js → mockjs-D_rM_kf7.js} +1 -1
  27. package/dist/assets/{monaco-editor-Lba3v2gb.js → monaco-editor-BhWNbPWS.js} +139 -139
  28. package/dist/assets/page-BlQqSlzU.js +2 -0
  29. package/dist/assets/preview-O2B0CWAm.js +2 -0
  30. package/dist/assets/shared-CMPiinVg.js +25 -0
  31. package/dist/assets/{ts.worker-P1pVlN2Z-CTQnFNid.js → ts.worker-C2xNNmKz-DfuXuMr6.js} +166 -166
  32. package/dist/assets/{utils-B1oXN591.js → utils-B9i9aHNx.js} +1 -1
  33. package/dist/assets/{vue-Dzbx66BV.js → vue-DEqBd9tH.js} +9 -9
  34. package/dist/assets/{vue-router-CBK9GHjZ.js → vue-router-CrZzyM_O.js} +2 -2
  35. package/dist/assets/{vxe-l3jZ90Gb.js → vxe-CzgOUQRv.js} +4 -4
  36. package/dist/index.html +14 -14
  37. package/package.json +11 -10
  38. package/dist/assets/@vueuse-BwkL59YI.js +0 -1
  39. package/dist/assets/Editor-ZiUDqfgK-lELAAGrH.js +0 -1
  40. package/dist/assets/auth-DP29B0zF.js +0 -1
  41. package/dist/assets/element-plus-Ci5Lh083.js +0 -21
  42. package/dist/assets/element-plus-oK66jojF.css +0 -1
  43. package/dist/assets/index-37s4bIf2.js +0 -1
  44. package/dist/assets/index-BFFDA44f.js +0 -145
  45. package/dist/assets/lodash-es-D0ldFxdg.js +0 -1
  46. package/dist/assets/page-DmLTYH0Y.js +0 -2
  47. package/dist/assets/preview-C91cKzkG.js +0 -2
  48. package/dist/assets/shared-BAqo0W56.js +0 -25
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CrZzyM_O.js","./vue-DEqBd9tH.js"])))=>i.map(i=>d[i]);
2
+ var T=Object.defineProperty,I=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var O=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,g=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&O(o,t,e[t]);if(C)for(var t of C(e))b.call(e,t)&&O(o,t,e[t]);return o},l=(o,e)=>I(o,S(e));var E=(o,e,t)=>new Promise((_,i)=>{var p=s=>{try{a(t.next(s))}catch(m){i(m)}},c=s=>{try{a(t.throw(s))}catch(m){i(m)}},a=s=>s.done?_(s.value):Promise.resolve(s.value).then(p,c);a((t=t.apply(o,e)).next())});import{_ as R}from"./monaco-editor-BhWNbPWS.js";import{useRoute as B}from"./vue-router-CrZzyM_O.js";import{A as L,O as M,M as k,T as D,a as j,I as K,y as G}from"./index-DsP4ZQJh.js";import{a as H}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{b as J,E as N}from"./extension-CxIyYzvy.js";import{l as Y,n as v}from"./utils-B9i9aHNx.js";import{d as q,aA as w,e as z,J as F,M as Q,O as U,h as W,o as X}from"./vue-DEqBd9tH.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const le=q({__name:"page",setup(o){return E(this,null,function*(){let e,t;const _=L({loading:Y,notify:v}),i=new M(k(v)),p=([e,t]=w(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),{options:c,adapters:a}=p?([e,t]=w(()=>new N(p).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/"}=p||{},m=a==null?void 0:a.access,x=a==null?void 0:a.remote,P=m?new D(l(g({},m),{alert:H.alert,storageKey:j})):void 0,{provider:y,onReady:h}=K(l(g({mode:G.Runtime,service:i,materialPath:s,adapter:Object.assign(_,{access:P,remote:x},(c==null?void 0:c.adapter)||{})},c||{}),{dependencies:{Vue:()=>R(()=>import("./vue-DEqBd9tH.js").then(n=>n.ay),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-CrZzyM_O.js"),__vite__mapDeps([0,1]),import.meta.url)}})),A=B(),u=z(),d=W();return h(()=>E(this,null,function*(){const n=d==null?void 0:d.appContext.app;n&&(n.use(J),n.use(y)),u.value=yield y.getRenderComponent(A.params.id.toString(),r=>{Object.assign(A.meta,r.meta);const f=n==null?void 0:n._container;(r==null?void 0:r.type)==="page"&&f.classList.add("is-page"),(r==null?void 0:r.pure)&&f.classList.add("is-pure")})})),(n,r)=>u.value?(X(),F(Q(u.value),{key:0})):U("",!0)})}});export{le as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CrZzyM_O.js","./vue-DEqBd9tH.js"])))=>i.map(i=>d[i]);
2
+ var T=Object.defineProperty,I=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,l=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&C(o,t,e[t]);if(f)for(var t of f(e))b.call(e,t)&&C(o,t,e[t]);return o},O=(o,e)=>I(o,S(e));var g=(o,e,t)=>new Promise((_,i)=>{var p=s=>{try{a(t.next(s))}catch(m){i(m)}},c=s=>{try{a(t.throw(s))}catch(m){i(m)}},a=s=>s.done?_(s.value):Promise.resolve(s.value).then(p,c);a((t=t.apply(o,e)).next())});import{_ as v}from"./monaco-editor-BhWNbPWS.js";import{useRoute as B}from"./vue-router-CrZzyM_O.js";import{a as L}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{b as M,E as k}from"./extension-CxIyYzvy.js";import{A as D,O as j,M as K,T as G,a as H,I as J,y as N}from"./index-DsP4ZQJh.js";import{l as Y,n as w}from"./utils-B9i9aHNx.js";import{d as q,aA as R,e as z,J as F,M as Q,O as U,h as W,o as X}from"./vue-DEqBd9tH.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./dayjs-D_Mdy0hN.js";import"./html2canvas-D2Pt4KSj.js";import"./mockjs-D_rM_kf7.js";const ge=q({__name:"preview",setup(o){return g(this,null,function*(){let e,t;const _=D({loading:Y,notify:w}),i=new j(K(w)),p=([e,t]=R(()=>i.getExtension().catch(()=>null)),e=yield e,t(),e),{options:c,adapters:a}=p?([e,t]=R(()=>new k(p).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/"}=p||{},m=a==null?void 0:a.access,x=a==null?void 0:a.remote,P=m?new G(l({alert:L.alert,storageKey:H},m)):void 0,{provider:E,onReady:h}=J(O(l({mode:N.Runtime,service:i,materialPath:s},c||{}),{adapter:Object.assign(_,{access:P,remote:x},(c==null?void 0:c.adapter)||{}),dependencies:{Vue:()=>v(()=>import("./vue-DEqBd9tH.js").then(n=>n.ay),[],import.meta.url),VueRouter:()=>v(()=>import("./vue-router-CrZzyM_O.js"),__vite__mapDeps([0,1]),import.meta.url)}})),y=B(),u=z(),d=W();return h(()=>g(this,null,function*(){const n=d==null?void 0:d.appContext.app;n&&(n.use(M),n.use(E)),u.value=yield E.getRenderComponent(y.params.id.toString(),r=>{Object.assign(y.meta,r.meta);const A=n==null?void 0:n._container;(r==null?void 0:r.type)==="page"&&A.classList.add("is-page"),(r==null?void 0:r.pure)&&A.classList.add("is-pure")})})),(n,r)=>u.value?(X(),F(Q(u.value),{key:0})):U("",!0)})}});export{ge as default};
@@ -0,0 +1,25 @@
1
+ var ei=Object.defineProperty,ti=Object.defineProperties;var ni=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var Pn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var Mn=(t,e,n)=>e in t?ei(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$=(t,e)=>{for(var n in e||(e={}))Pn.call(e,n)&&Mn(t,n,e[n]);if(it)for(var n of it(e))Tn.call(e,n)&&Mn(t,n,e[n]);return t},ue=(t,e)=>ti(t,ni(e));var Mt=(t,e)=>{var n={};for(var r in t)Pn.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&it)for(var r of it(t))e.indexOf(r)<0&&Tn.call(t,r)&&(n[r]=t[r]);return n};var se=(t,e,n)=>new Promise((r,i)=>{var o=f=>{try{s(n.next(f))}catch(c){i(c)}},a=f=>{try{s(n.throw(f))}catch(c){i(c)}},s=f=>f.done?r(f.value):Promise.resolve(f.value).then(o,a);s((n=n.apply(t,e)).next())});var B="top",G="bottom",Z="right",W="left",Qt="auto",Ze=[B,G,Z,W],Te="start",Ue="end",ri="clippingParents",ar="viewport",We="popper",ii="reference",qn=Ze.reduce(function(t,e){return t.concat([e+"-"+Te,e+"-"+Ue])},[]),sr=[].concat(Ze,[Qt]).reduce(function(t,e){return t.concat([e,e+"-"+Te,e+"-"+Ue])},[]),oi="beforeRead",ai="read",si="afterRead",fi="beforeMain",ci="main",ui="afterMain",li="beforeWrite",di="write",pi="afterWrite",hi=[oi,ai,si,fi,ci,ui,li,di,pi];function re(t){return t?(t.nodeName||"").toLowerCase():null}function ee(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function qe(t){var e=ee(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=ee(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function en(t){if(typeof ShadowRoot=="undefined")return!1;var e=ee(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function gi(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!Y(o)||!re(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function mi(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f},{});!Y(i)||!re(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}var fr={name:"applyStyles",enabled:!0,phase:"write",fn:gi,effect:mi,requires:["computeStyles"]};function te(t){return t.split("-")[0]}var Oe=Math.max,mt=Math.min,De=Math.round;function Ne(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Y(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(r=De(n.width)/a||1),o>0&&(i=De(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function tn(t){var e=Ne(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function cr(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&en(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ce(t){return ee(t).getComputedStyle(t)}function vi(t){return["table","td","th"].indexOf(re(t))>=0}function he(t){return((qe(t)?t.ownerDocument:t.document)||window.document).documentElement}function xt(t){return re(t)==="html"?t:t.assignedSlot||t.parentNode||(en(t)?t.host:null)||he(t)}function Dn(t){return!Y(t)||ce(t).position==="fixed"?null:t.offsetParent}function yi(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Y(t)){var r=ce(t);if(r.position==="fixed")return null}var i=xt(t);for(en(i)&&(i=i.host);Y(i)&&["html","body"].indexOf(re(i))<0;){var o=ce(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Ke(t){for(var e=ee(t),n=Dn(t);n&&vi(n)&&ce(n).position==="static";)n=Dn(n);return n&&(re(n)==="html"||re(n)==="body"&&ce(n).position==="static")?e:n||yi(t)||e}function nn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ie(t,e,n){return Oe(t,mt(e,n))}function bi(t,e,n){var r=Ie(t,e,n);return r>n?n:r}function ur(){return{top:0,right:0,bottom:0,left:0}}function lr(t){return Object.assign({},ur(),t)}function dr(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var xi=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,lr(typeof t!="number"?t:dr(t,Ze))};function wi(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=te(n.placement),f=nn(s),c=[W,Z].indexOf(s)>=0,l=c?"height":"width";if(!(!o||!a)){var p=xi(i.padding,n),m=tn(o),h=f==="y"?B:W,v=f==="y"?G:Z,u=n.rects.reference[l]+n.rects.reference[f]-a[f]-n.rects.popper[l],y=a[f]-n.rects.reference[f],d=Ke(o),w=d?f==="y"?d.clientHeight||0:d.clientWidth||0:0,g=u/2-y/2,b=p[h],x=w-m[l]-p[v],O=w/2-m[l]/2+g,A=Ie(b,O,x),E=f;n.modifiersData[r]=(e={},e[E]=A,e.centerOffset=A-O,e)}}function Oi(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!cr(e.elements.popper,i)||(e.elements.arrow=i))}var Ai={name:"arrow",enabled:!0,phase:"main",fn:wi,effect:Oi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ke(t){return t.split("-")[1]}var Ei={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ri(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:De(e*i)/i||0,y:De(n*i)/i||0}}function Nn(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,l=t.roundOffsets,p=t.isFixed,m=a.x,h=m===void 0?0:m,v=a.y,u=v===void 0?0:v,y=typeof l=="function"?l({x:h,y:u}):{x:h,y:u};h=y.x,u=y.y;var d=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),g=W,b=B,x=window;if(c){var O=Ke(n),A="clientHeight",E="clientWidth";if(O===ee(n)&&(O=he(n),ce(O).position!=="static"&&s==="absolute"&&(A="scrollHeight",E="scrollWidth")),O=O,i===B||(i===W||i===Z)&&o===Ue){b=G;var P=p&&O===x&&x.visualViewport?x.visualViewport.height:O[A];u-=P-r.height,u*=f?1:-1}if(i===W||(i===B||i===G)&&o===Ue){g=Z;var T=p&&O===x&&x.visualViewport?x.visualViewport.width:O[E];h-=T-r.width,h*=f?1:-1}}var F=Object.assign({position:s},c&&Ei),M=l===!0?Ri({x:h,y:u}):{x:h,y:u};if(h=M.x,u=M.y,f){var S;return Object.assign({},F,(S={},S[b]=w?"0":"",S[g]=d?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+u+"px)":"translate3d("+h+"px, "+u+"px, 0)",S))}return Object.assign({},F,(e={},e[b]=w?u+"px":"",e[g]=d?h+"px":"",e.transform="",e))}function Si(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,f=s===void 0?!0:s,c={placement:te(e.placement),variation:ke(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Nn(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Nn(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var pr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Si,data:{}},ot={passive:!0};function Fi(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,f=ee(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(l){l.addEventListener("scroll",n.update,ot)}),s&&f.addEventListener("resize",n.update,ot),function(){o&&c.forEach(function(l){l.removeEventListener("scroll",n.update,ot)}),s&&f.removeEventListener("resize",n.update,ot)}}var hr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fi,data:{}},Mi={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(t){return t.replace(/left|right|bottom|top/g,function(e){return Mi[e]})}var Pi={start:"end",end:"start"};function kn(t){return t.replace(/start|end/g,function(e){return Pi[e]})}function rn(t){var e=ee(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function on(t){return Ne(he(t)).left+rn(t).scrollLeft}function Ti(t){var e=ee(t),n=he(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+on(t),y:s}}function qi(t){var e,n=he(t),r=rn(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Oe(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Oe(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+on(t),f=-r.scrollTop;return ce(i||n).direction==="rtl"&&(s+=Oe(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}function an(t){var e=ce(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function gr(t){return["html","body","#document"].indexOf(re(t))>=0?t.ownerDocument.body:Y(t)&&an(t)?t:gr(xt(t))}function $e(t,e){var n;e===void 0&&(e=[]);var r=gr(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=ee(r),a=i?[o].concat(o.visualViewport||[],an(r)?r:[]):r,s=e.concat(a);return i?s:s.concat($e(xt(a)))}function jt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Di(t){var e=Ne(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function jn(t,e){return e===ar?jt(Ti(t)):qe(e)?Di(e):jt(qi(he(t)))}function Ni(t){var e=$e(xt(t)),n=["absolute","fixed"].indexOf(ce(t).position)>=0,r=n&&Y(t)?Ke(t):t;return qe(r)?e.filter(function(i){return qe(i)&&cr(i,r)&&re(i)!=="body"}):[]}function ki(t,e,n){var r=e==="clippingParents"?Ni(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,f){var c=jn(t,f);return s.top=Oe(c.top,s.top),s.right=mt(c.right,s.right),s.bottom=mt(c.bottom,s.bottom),s.left=Oe(c.left,s.left),s},jn(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mr(t){var e=t.reference,n=t.element,r=t.placement,i=r?te(r):null,o=r?ke(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(i){case B:f={x:a,y:e.y-n.height};break;case G:f={x:a,y:e.y+e.height};break;case Z:f={x:e.x+e.width,y:s};break;case W:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y}}var c=i?nn(i):null;if(c!=null){var l=c==="y"?"height":"width";switch(o){case Te:f[c]=f[c]-(e[l]/2-n[l]/2);break;case Ue:f[c]=f[c]+(e[l]/2-n[l]/2);break}}return f}function ze(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.boundary,a=o===void 0?ri:o,s=n.rootBoundary,f=s===void 0?ar:s,c=n.elementContext,l=c===void 0?We:c,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,v=h===void 0?0:h,u=lr(typeof v!="number"?v:dr(v,Ze)),y=l===We?ii:We,d=t.rects.popper,w=t.elements[m?y:l],g=ki(qe(w)?w:w.contextElement||he(t.elements.popper),a,f),b=Ne(t.elements.reference),x=mr({reference:b,element:d,strategy:"absolute",placement:i}),O=jt(Object.assign({},d,x)),A=l===We?O:b,E={top:g.top-A.top+u.top,bottom:A.bottom-g.bottom+u.bottom,left:g.left-A.left+u.left,right:A.right-g.right+u.right},P=t.modifiersData.offset;if(l===We&&P){var T=P[i];Object.keys(E).forEach(function(F){var M=[Z,G].indexOf(F)>=0?1:-1,S=[B,G].indexOf(F)>=0?"y":"x";E[F]+=T[S]*M})}return E}function ji(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?sr:f,l=ke(r),p=l?s?qn:qn.filter(function(v){return ke(v)===l}):Ze,m=p.filter(function(v){return c.indexOf(v)>=0});m.length===0&&(m=p);var h=m.reduce(function(v,u){return v[u]=ze(t,{placement:u,boundary:i,rootBoundary:o,padding:a})[te(u)],v},{});return Object.keys(h).sort(function(v,u){return h[v]-h[u]})}function Hi(t){if(te(t)===Qt)return[];var e=lt(t);return[kn(t),e,kn(e)]}function Li(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,f=n.fallbackPlacements,c=n.padding,l=n.boundary,p=n.rootBoundary,m=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,u=n.allowedAutoPlacements,y=e.options.placement,d=te(y),w=d===y,g=f||(w||!v?[lt(y)]:Hi(y)),b=[y].concat(g).reduce(function(me,ae){return me.concat(te(ae)===Qt?ji(e,{placement:ae,boundary:l,rootBoundary:p,padding:c,flipVariations:v,allowedAutoPlacements:u}):ae)},[]),x=e.rects.reference,O=e.rects.popper,A=new Map,E=!0,P=b[0],T=0;T<b.length;T++){var F=b[T],M=te(F),S=ke(F)===Te,V=[B,G].indexOf(M)>=0,j=V?"width":"height",q=ze(e,{placement:F,boundary:l,rootBoundary:p,altBoundary:m,padding:c}),N=V?S?Z:W:S?G:B;x[j]>O[j]&&(N=lt(N));var H=lt(N),L=[];if(o&&L.push(q[M]<=0),s&&L.push(q[N]<=0,q[H]<=0),L.every(function(me){return me})){P=F,E=!1;break}A.set(F,L)}if(E)for(var I=v?3:1,X=function(me){var ae=b.find(function(nt){var Be=A.get(nt);if(Be)return Be.slice(0,me).every(function(Se){return Se})});if(ae)return P=ae,"break"},ge=I;ge>0;ge--){var tt=X(ge);if(tt==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}var Ci={name:"flip",enabled:!0,phase:"main",fn:Li,requiresIfExists:["offset"],data:{_skip:!1}};function Hn(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ln(t){return[B,Z,G,W].some(function(e){return t[e]>=0})}function Bi(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=ze(e,{elementContext:"reference"}),s=ze(e,{altBoundary:!0}),f=Hn(a,r),c=Hn(s,i,o),l=Ln(f),p=Ln(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}var Wi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Bi};function Vi(t,e,n){var r=te(t),i=[W,B].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[W,Z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Ii(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=sr.reduce(function(l,p){return l[p]=Vi(p,e.rects,o),l},{}),s=a[e.placement],f=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}var $i={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ii};function _i(t){var e=t.state,n=t.name;e.modifiersData[n]=mr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var vr={name:"popperOffsets",enabled:!0,phase:"read",fn:_i,data:{}};function Ui(t){return t==="x"?"y":"x"}function zi(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,f=n.boundary,c=n.rootBoundary,l=n.altBoundary,p=n.padding,m=n.tether,h=m===void 0?!0:m,v=n.tetherOffset,u=v===void 0?0:v,y=ze(e,{boundary:f,rootBoundary:c,padding:p,altBoundary:l}),d=te(e.placement),w=ke(e.placement),g=!w,b=nn(d),x=Ui(b),O=e.modifiersData.popperOffsets,A=e.rects.reference,E=e.rects.popper,P=typeof u=="function"?u(Object.assign({},e.rects,{placement:e.placement})):u,T=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(O){if(o){var S,V=b==="y"?B:W,j=b==="y"?G:Z,q=b==="y"?"height":"width",N=O[b],H=N+y[V],L=N-y[j],I=h?-E[q]/2:0,X=w===Te?A[q]:E[q],ge=w===Te?-E[q]:-A[q],tt=e.elements.arrow,me=h&&tt?tn(tt):{width:0,height:0},ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ur(),nt=ae[V],Be=ae[j],Se=Ie(0,A[q],me[q]),Xr=g?A[q]/2-I-Se-nt-T.mainAxis:X-Se-nt-T.mainAxis,Yr=g?-A[q]/2+I+Se+Be+T.mainAxis:ge+Se+Be+T.mainAxis,St=e.elements.arrow&&Ke(e.elements.arrow),Gr=St?b==="y"?St.clientTop||0:St.clientLeft||0:0,bn=(S=F==null?void 0:F[b])!=null?S:0,Zr=N+Xr-bn-Gr,Kr=N+Yr-bn,xn=Ie(h?mt(H,Zr):H,N,h?Oe(L,Kr):L);O[b]=xn,M[b]=xn-N}if(s){var wn,Jr=b==="x"?B:W,Qr=b==="x"?G:Z,ve=O[x],rt=x==="y"?"height":"width",On=ve+y[Jr],An=ve-y[Qr],Ft=[B,W].indexOf(d)!==-1,En=(wn=F==null?void 0:F[x])!=null?wn:0,Rn=Ft?On:ve-A[rt]-E[rt]-En+T.altAxis,Sn=Ft?ve+A[rt]+E[rt]-En-T.altAxis:An,Fn=h&&Ft?bi(Rn,ve,Sn):Ie(h?Rn:On,ve,h?Sn:An);O[x]=Fn,M[x]=Fn-ve}e.modifiersData[r]=M}}var Xi={name:"preventOverflow",enabled:!0,phase:"main",fn:zi,requiresIfExists:["offset"]};function Yi(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Gi(t){return t===ee(t)||!Y(t)?rn(t):Yi(t)}function Zi(t){var e=t.getBoundingClientRect(),n=De(e.width)/t.offsetWidth||1,r=De(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ki(t,e,n){n===void 0&&(n=!1);var r=Y(e),i=Y(e)&&Zi(e),o=he(e),a=Ne(t,i),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((re(e)!=="body"||an(o))&&(s=Gi(e)),Y(e)?(f=Ne(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):o&&(f.x=on(o))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function Ji(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&i(f)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function Qi(t){var e=Ji(t);return hi.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function eo(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function to(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Cn={placement:"bottom",modifiers:[],strategy:"absolute"};function Bn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function sn(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?Cn:i;return function(a,s,f){f===void 0&&(f=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cn,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},l=[],p=!1,m={state:c,setOptions:function(u){var y=typeof u=="function"?u(c.options):u;v(),c.options=Object.assign({},o,c.options,y),c.scrollParents={reference:qe(a)?$e(a):a.contextElement?$e(a.contextElement):[],popper:$e(s)};var d=Qi(to([].concat(r,c.options.modifiers)));return c.orderedModifiers=d.filter(function(w){return w.enabled}),h(),m.update()},forceUpdate:function(){if(!p){var u=c.elements,y=u.reference,d=u.popper;if(Bn(y,d)){c.rects={reference:Ki(y,Ke(d),c.options.strategy==="fixed"),popper:tn(d)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(E){return c.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var g=c.orderedModifiers[w],b=g.fn,x=g.options,O=x===void 0?{}:x,A=g.name;typeof b=="function"&&(c=b({state:c,options:O,name:A,instance:m})||c)}}}},update:eo(function(){return new Promise(function(u){m.forceUpdate(),u(c)})}),destroy:function(){v(),p=!0}};if(!Bn(a,s))return m;m.setOptions(f).then(function(u){!p&&f.onFirstUpdate&&f.onFirstUpdate(u)});function h(){c.orderedModifiers.forEach(function(u){var y=u.name,d=u.options,w=d===void 0?{}:d,g=u.effect;if(typeof g=="function"){var b=g({state:c,name:y,instance:m,options:w}),x=function(){};l.push(b||x)}})}function v(){l.forEach(function(u){return u()}),l=[]}return m}}sn();var no=[hr,vr,pr,fr];sn({defaultModifiers:no});var ro=[hr,vr,pr,fr,$i,Ci,Xi,Ai,Wi],ka=sn({defaultModifiers:ro});function k(t,e){io(t)&&(t="100%");var n=oo(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function at(t){return Math.min(1,Math.max(0,t))}function io(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function oo(t){return typeof t=="string"&&t.indexOf("%")!==-1}function yr(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function st(t){return t<=1?"".concat(Number(t)*100,"%"):t}function xe(t){return t.length===1?"0"+t:String(t)}function ao(t,e,n){return{r:k(t,255)*255,g:k(e,255)*255,b:k(n,255)*255}}function Wn(t,e,n){t=k(t,255),e=k(e,255),n=k(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var f=r-i;switch(a=s>.5?f/(2-r-i):f/(r+i),r){case t:o=(e-n)/f+(e<n?6:0);break;case e:o=(n-t)/f+2;break;case n:o=(t-e)/f+4;break}o/=6}return{h:o,s:a,l:s}}function Pt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function so(t,e,n){var r,i,o;if(t=k(t,360),e=k(e,100),n=k(n,100),e===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=Pt(s,a,t+1/3),i=Pt(s,a,t),o=Pt(s,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function Vn(t,e,n){t=k(t,255),e=k(e,255),n=k(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=r,s=r-i,f=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e<n?6:0);break;case e:o=(n-t)/s+2;break;case n:o=(t-e)/s+4;break}o/=6}return{h:o,s:f,v:a}}function fo(t,e,n){t=k(t,360)*6,e=k(e,100),n=k(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),f=r%6,c=[n,a,o,o,s,n][f],l=[s,n,n,a,o,o][f],p=[o,o,s,n,n,a][f];return{r:c*255,g:l*255,b:p*255}}function In(t,e,n,r){var i=[xe(Math.round(t).toString(16)),xe(Math.round(e).toString(16)),xe(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function co(t,e,n,r,i){var o=[xe(Math.round(t).toString(16)),xe(Math.round(e).toString(16)),xe(Math.round(n).toString(16)),xe(uo(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function uo(t){return Math.round(parseFloat(t)*255).toString(16)}function $n(t){return _(t)/255}function _(t){return parseInt(t,16)}function lo(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var Ht={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function po(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof t=="string"&&(t=mo(t)),typeof t=="object"&&(fe(t.r)&&fe(t.g)&&fe(t.b)?(e=ao(t.r,t.g,t.b),a=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):fe(t.h)&&fe(t.s)&&fe(t.v)?(r=st(t.s),i=st(t.v),e=fo(t.h,r,i),a=!0,s="hsv"):fe(t.h)&&fe(t.s)&&fe(t.l)&&(r=st(t.s),o=st(t.l),e=so(t.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=yr(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var ho="[-\\+]?\\d+%?",go="[-\\+]?\\d*\\.\\d+%?",de="(?:".concat(go,")|(?:").concat(ho,")"),Tt="[\\s|\\(]+(".concat(de,")[,|\\s]+(").concat(de,")[,|\\s]+(").concat(de,")\\s*\\)?"),qt="[\\s|\\(]+(".concat(de,")[,|\\s]+(").concat(de,")[,|\\s]+(").concat(de,")[,|\\s]+(").concat(de,")\\s*\\)?"),K={CSS_UNIT:new RegExp(de),rgb:new RegExp("rgb"+Tt),rgba:new RegExp("rgba"+qt),hsl:new RegExp("hsl"+Tt),hsla:new RegExp("hsla"+qt),hsv:new RegExp("hsv"+Tt),hsva:new RegExp("hsva"+qt),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 mo(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Ht[t])t=Ht[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=K.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=K.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=K.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=K.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=K.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=K.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=K.hex8.exec(t),n?{r:_(n[1]),g:_(n[2]),b:_(n[3]),a:$n(n[4]),format:e?"name":"hex8"}:(n=K.hex6.exec(t),n?{r:_(n[1]),g:_(n[2]),b:_(n[3]),format:e?"name":"hex"}:(n=K.hex4.exec(t),n?{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),a:$n(n[4]+n[4]),format:e?"name":"hex8"}:(n=K.hex3.exec(t),n?{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function fe(t){return!!K.CSS_UNIT.exec(String(t))}var ja=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=lo(e)),this.originalInput=e;var i=po(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.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.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,o=e.r/255,a=e.g/255,s=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=yr(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=Vn(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=Vn(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Wn(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Wn(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),In(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),co(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(k(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(k(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+In(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ht);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(e===a)return o}return!1},t.prototype.toString=function(e){var n=!!e;e=e!=null?e:this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=at(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=at(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=at(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=at(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(a)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a<e;a++)i.push(new t({h:(r+a*o)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function we(){return we=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},we.apply(this,arguments)}function vo(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xe(t,e)}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lt(t)}function Xe(t,e){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xe(t,e)}function yo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function dt(t,e,n){return yo()?dt=Reflect.construct.bind():dt=function(i,o,a){var s=[null];s.push.apply(s,o);var f=Function.bind.apply(i,s),c=new f;return a&&Xe(c,a.prototype),c},dt.apply(null,arguments)}function bo(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ct(t){var e=typeof Map=="function"?new Map:void 0;return Ct=function(r){if(r===null||!bo(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return dt(r,arguments,Lt(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xe(i,r)},Ct(t)}var xo=/%[sdj%]/g,wo=function(){};function Bt(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function U(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var a=t.replace(xo,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(f){return"[Circular]"}break;default:return s}});return a}return t}function Oo(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function D(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Oo(e)&&typeof t=="string"&&!t)}function Ao(t,e,n){var r=[],i=0,o=t.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}t.forEach(function(s){e(s,a)})}function _n(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?e(t[s],o):n([])}o([])}function Eo(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var Un=function(t){vo(e,t);function e(n,r){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return e}(Ct(Error));function Ro(t,e,n,r,i){if(e.first){var o=new Promise(function(m,h){var v=function(d){return r(d),d.length?h(new Un(d,Bt(d))):m(i)},u=Eo(t);_n(u,n,v)});return o.catch(function(m){return m}),o}var a=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),f=s.length,c=0,l=[],p=new Promise(function(m,h){var v=function(y){if(l.push.apply(l,y),c++,c===f)return r(l),l.length?h(new Un(l,Bt(l))):m(i)};s.length||(r(l),m(i)),s.forEach(function(u){var y=t[u];a.indexOf(u)!==-1?_n(y,n,v):Ao(y,n,v)})});return p.catch(function(m){return m}),p}function So(t){return!!(t&&t.message!==void 0)}function Fo(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function zn(t,e){return function(n){var r;return t.fullFields?r=Fo(e,t.fullFields):r=e[n.field||t.fullField],So(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function Xn(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=we({},t[n],r):t[n]=r}}return t}var br=function(e,n,r,i,o,a){e.required&&(!r.hasOwnProperty(e.field)||D(n,a||e.type))&&i.push(U(o.messages.required,e.fullField))},Mo=function(e,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(U(o.messages.whitespace,e.fullField))},ft,Po=function(){if(ft)return ft;var t="[a-fA-F\\d:]",e=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
2
+ (?:
3
+ (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
4
+ (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
5
+ (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
6
+ (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
7
+ (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
8
+ (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
9
+ (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
10
+ (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
11
+ )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
12
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),f=function(b){return b&&b.exact?o:new RegExp("(?:"+e(b)+n+e(b)+")|(?:"+e(b)+i+e(b)+")","g")};f.v4=function(g){return g&&g.exact?a:new RegExp(""+e(g)+n+e(g),"g")},f.v6=function(g){return g&&g.exact?s:new RegExp(""+e(g)+i+e(g),"g")};var c="(?:(?:[a-z]+:)?//)",l="(?:\\S+(?::\\S*)?@)?",p=f.v4().source,m=f.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",d='(?:[/?#][^\\s"]*)?',w="(?:"+c+"|www\\.)"+l+"(?:localhost|"+p+"|"+m+"|"+h+v+u+")"+y+d;return ft=new RegExp("(?:^"+w+"$)","i"),ft},Yn={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ve={integer:function(e){return Ve.number(e)&&parseInt(e,10)===e},float:function(e){return Ve.number(e)&&!Ve.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Ve.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Yn.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Po())},hex:function(e){return typeof e=="string"&&!!e.match(Yn.hex)}},To=function(e,n,r,i,o){if(e.required&&n===void 0){br(e,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?Ve[s](n)||i.push(U(o.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&i.push(U(o.messages.types[s],e.fullField,e.type))},qo=function(e,n,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",f=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=n,p=null,m=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(m?p="number":h?p="string":v&&(p="array"),!p)return!1;v&&(l=n.length),h&&(l=n.replace(c,"_").length),a?l!==e.len&&i.push(U(o.messages[p].len,e.fullField,e.len)):s&&!f&&l<e.min?i.push(U(o.messages[p].min,e.fullField,e.min)):f&&!s&&l>e.max?i.push(U(o.messages[p].max,e.fullField,e.max)):s&&f&&(l<e.min||l>e.max)&&i.push(U(o.messages[p].range,e.fullField,e.min,e.max))},Fe="enum",Do=function(e,n,r,i,o){e[Fe]=Array.isArray(e[Fe])?e[Fe]:[],e[Fe].indexOf(n)===-1&&i.push(U(o.messages[Fe],e.fullField,e[Fe].join(", ")))},No=function(e,n,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(U(o.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||i.push(U(o.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},R={required:br,whitespace:Mo,type:To,range:qo,enum:Do,pattern:No},ko=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n,"string")&&!e.required)return r();R.required(e,n,i,a,o,"string"),D(n,"string")||(R.type(e,n,i,a,o),R.range(e,n,i,a,o),R.pattern(e,n,i,a,o),e.whitespace===!0&&R.whitespace(e,n,i,a,o))}r(a)},jo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&R.type(e,n,i,a,o)}r(a)},Ho=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&(R.type(e,n,i,a,o),R.range(e,n,i,a,o))}r(a)},Lo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&R.type(e,n,i,a,o)}r(a)},Co=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),D(n)||R.type(e,n,i,a,o)}r(a)},Bo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&(R.type(e,n,i,a,o),R.range(e,n,i,a,o))}r(a)},Wo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&(R.type(e,n,i,a,o),R.range(e,n,i,a,o))}r(a)},Vo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();R.required(e,n,i,a,o,"array"),n!=null&&(R.type(e,n,i,a,o),R.range(e,n,i,a,o))}r(a)},Io=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&R.type(e,n,i,a,o)}r(a)},$o="enum",_o=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o),n!==void 0&&R[$o](e,n,i,a,o)}r(a)},Uo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n,"string")&&!e.required)return r();R.required(e,n,i,a,o),D(n,"string")||R.pattern(e,n,i,a,o)}r(a)},zo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n,"date")&&!e.required)return r();if(R.required(e,n,i,a,o),!D(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),R.type(e,f,i,a,o),f&&R.range(e,f.getTime(),i,a,o)}}r(a)},Xo=function(e,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;R.required(e,n,i,a,o,s),r(a)},Dt=function(e,n,r,i,o){var a=e.type,s=[],f=e.required||!e.required&&i.hasOwnProperty(e.field);if(f){if(D(n,a)&&!e.required)return r();R.required(e,n,i,s,o,a),D(n,a)||R.type(e,n,i,s,o)}r(s)},Yo=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(D(n)&&!e.required)return r();R.required(e,n,i,a,o)}r(a)},_e={string:ko,method:jo,number:Ho,boolean:Lo,regexp:Co,integer:Bo,float:Wo,array:Vo,object:Io,enum:_o,pattern:Uo,date:zo,url:Dt,hex:Dt,email:Dt,required:Xo,any:Yo};function Wt(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Vt=Wt(),wt=function(){function t(n){this.rules=null,this._messages=Vt,this.define(n)}var e=t.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=Xn(Wt(),r)),this._messages},e.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,f=i,c=o;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function l(u){var y=[],d={};function w(b){if(Array.isArray(b)){var x;y=(x=y).concat.apply(x,b)}else y.push(b)}for(var g=0;g<u.length;g++)w(u[g]);y.length?(d=Bt(y),c(y,d)):c(null,s)}if(f.messages){var p=this.messages();p===Vt&&(p=Wt()),Xn(p,f.messages),f.messages=p}else f.messages=this.messages();var m={},h=f.keys||Object.keys(this.rules);h.forEach(function(u){var y=a.rules[u],d=s[u];y.forEach(function(w){var g=w;typeof g.transform=="function"&&(s===r&&(s=we({},s)),d=s[u]=g.transform(d)),typeof g=="function"?g={validator:g}:g=we({},g),g.validator=a.getValidationMethod(g),g.validator&&(g.field=u,g.fullField=g.fullField||u,g.type=a.getType(g),m[u]=m[u]||[],m[u].push({rule:g,value:d,source:s,field:u}))})});var v={};return Ro(m,f,function(u,y){var d=u.rule,w=(d.type==="object"||d.type==="array")&&(typeof d.fields=="object"||typeof d.defaultField=="object");w=w&&(d.required||!d.required&&u.value),d.field=u.field;function g(O,A){return we({},A,{fullField:d.fullField+"."+O,fullFields:d.fullFields?[].concat(d.fullFields,[O]):[O]})}function b(O){O===void 0&&(O=[]);var A=Array.isArray(O)?O:[O];!f.suppressWarning&&A.length&&t.warning("async-validator:",A),A.length&&d.message!==void 0&&(A=[].concat(d.message));var E=A.map(zn(d,s));if(f.first&&E.length)return v[d.field]=1,y(E);if(!w)y(E);else{if(d.required&&!u.value)return d.message!==void 0?E=[].concat(d.message).map(zn(d,s)):f.error&&(E=[f.error(d,U(f.messages.required,d.field))]),y(E);var P={};d.defaultField&&Object.keys(u.value).map(function(M){P[M]=d.defaultField}),P=we({},P,u.rule.fields);var T={};Object.keys(P).forEach(function(M){var S=P[M],V=Array.isArray(S)?S:[S];T[M]=V.map(g.bind(null,M))});var F=new t(T);F.messages(f.messages),u.rule.options&&(u.rule.options.messages=f.messages,u.rule.options.error=f.error),F.validate(u.value,u.rule.options||f,function(M){var S=[];E&&E.length&&S.push.apply(S,E),M&&M.length&&S.push.apply(S,M),y(S.length?S:null)})}}var x;if(d.asyncValidator)x=d.asyncValidator(d,u.value,b,u.source,f);else if(d.validator){try{x=d.validator(d,u.value,b,u.source,f)}catch(O){console.error==null||console.error(O),f.suppressValidatorError||setTimeout(function(){throw O},0),b(O.message)}x===!0?b():x===!1?b(typeof d.message=="function"?d.message(d.fullField||d.field):d.message||(d.fullField||d.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(O){return b(O)})},function(u){l(u)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!_e.hasOwnProperty(r.type))throw new Error(U("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?_e.required:_e[this.getType(r)]||void 0},t}();wt.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");_e[e]=n};wt.warning=wo;wt.messages=Vt;wt.validators=_e;var Gn=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Go(t,e){return!!(t===e||Gn(t)&&Gn(e))}function Zo(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Go(t[n],e[n]))return!1;return!0}function Ha(t,e){e===void 0&&(e=Zo);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&e(i,n.lastArgs))return n.lastResult;var a=t.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}var Zn=!1,be,It,$t,pt,ht,xr,gt,_t,Ut,zt,wr,Xt,Yt,Or,Ar;function C(){if(!Zn){Zn=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(Xt=/\b(iPhone|iP[ao]d)/.exec(t),Yt=/\b(iP[ao]d)/.exec(t),zt=/Android/i.exec(t),Or=/FBAN\/\w+;/i.exec(t),Ar=/Mobile/i.exec(t),wr=!!/Win64/.exec(t),e){be=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,be&&document&&document.documentMode&&(be=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);xr=r?parseFloat(r[1])+4:be,It=e[2]?parseFloat(e[2]):NaN,$t=e[3]?parseFloat(e[3]):NaN,pt=e[4]?parseFloat(e[4]):NaN,pt?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),ht=e&&e[1]?parseFloat(e[1]):NaN):ht=NaN}else be=It=$t=ht=pt=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);gt=i?parseFloat(i[1].replace("_",".")):!0}else gt=!1;_t=!!n[2],Ut=!!n[3]}else gt=_t=Ut=!1}}var Gt={ie:function(){return C()||be},ieCompatibilityMode:function(){return C()||xr>be},ie64:function(){return Gt.ie()&&wr},firefox:function(){return C()||It},opera:function(){return C()||$t},webkit:function(){return C()||pt},safari:function(){return Gt.webkit()},chrome:function(){return C()||ht},windows:function(){return C()||_t},osx:function(){return C()||gt},linux:function(){return C()||Ut},iphone:function(){return C()||Xt},mobile:function(){return C()||Xt||Yt||zt||Ar},nativeApp:function(){return C()||Or},android:function(){return C()||zt},ipad:function(){return C()||Yt}},Ko=Gt,ct=!!(typeof window<"u"&&window.document&&window.document.createElement),Jo={canUseDOM:ct,canUseWorkers:typeof Worker<"u",canUseEventListeners:ct&&!!(window.addEventListener||window.attachEvent),canUseViewport:ct&&!!window.screen,isInWorker:!ct},Er=Jo,Rr;Er.canUseDOM&&(Rr=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Qo(t,e){if(!Er.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&Rr&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var ea=Qo,Kn=10,Jn=40,Qn=800;function Sr(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*Kn,i=n*Kn,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(t.deltaMode==1?(r*=Jn,i*=Jn):(r*=Qn,i*=Qn)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}Sr.getEventType=function(){return Ko.firefox()?"DOMMouseScroll":ea("wheel")?"wheel":"mousewheel"};var La=Sr;/**
13
+ * Checks if an event is supported in the current execution environment.
14
+ *
15
+ * NOTE: This will not work correctly for non-generic events such as `change`,
16
+ * `reset`, `load`, `error`, and `select`.
17
+ *
18
+ * Borrows from Modernizr.
19
+ *
20
+ * @param {string} eventNameSuffix Event name, e.g. "click".
21
+ * @param {?boolean} capture Check if the capture phase is supported.
22
+ * @return {boolean} True if the event is supported.
23
+ * @internal
24
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
25
+ */const je=Math.min,Ae=Math.max,vt=Math.round,ut=Math.floor,ne=t=>({x:t,y:t}),ta={left:"right",right:"left",bottom:"top",top:"bottom"},na={start:"end",end:"start"};function Zt(t,e,n){return Ae(t,je(e,n))}function Je(t,e){return typeof t=="function"?t(e):t}function Ee(t){return t.split("-")[0]}function Qe(t){return t.split("-")[1]}function Fr(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function He(t){return["top","bottom"].includes(Ee(t))?"y":"x"}function cn(t){return Fr(He(t))}function ra(t,e,n){n===void 0&&(n=!1);const r=Qe(t),i=cn(t),o=fn(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=yt(a)),[a,yt(a)]}function ia(t){const e=yt(t);return[Kt(t),e,Kt(e)]}function Kt(t){return t.replace(/start|end/g,e=>na[e])}function oa(t,e,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:a;default:return[]}}function aa(t,e,n,r){const i=Qe(t);let o=oa(Ee(t),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),e&&(o=o.concat(o.map(Kt)))),o}function yt(t){return t.replace(/left|right|bottom|top/g,e=>ta[e])}function sa(t){return $({top:0,right:0,bottom:0,left:0},t)}function Mr(t){return typeof t!="number"?sa(t):{top:t,right:t,bottom:t,left:t}}function bt(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function er(t,e,n){let{reference:r,floating:i}=t;const o=He(e),a=cn(e),s=fn(a),f=Ee(e),c=o==="y",l=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let h;switch(f){case"top":h={x:l,y:r.y-i.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Qe(e)){case"start":h[a]-=m*(n&&c?-1:1);break;case"end":h[a]+=m*(n&&c?-1:1);break}return h}const fa=(t,e,n)=>se(void 0,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(e);let c=yield a.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:p}=er(c,r,f),m=r,h={},v=0;for(let u=0;u<s.length;u++){const{name:y,fn:d}=s[u],{x:w,y:g,data:b,reset:x}=yield d({x:l,y:p,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});l=w!=null?w:l,p=g!=null?g:p,h=ue($({},h),{[y]:$($({},h[y]),b)}),x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?yield a.getElementRects({reference:t,floating:e,strategy:i}):x.rects),{x:l,y:p}=er(c,m,f)),u=-1)}return{x:l,y:p,placement:m,strategy:i,middlewareData:h}});function un(t,e){return se(this,null,function*(){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=Je(e,t),v=Mr(h),y=s[m?p==="floating"?"reference":"floating":p],d=bt(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),w=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(g))?(yield o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=bt(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:g,strategy:f}):w);return{top:(d.top-x.top+v.top)/b.y,bottom:(x.bottom-d.bottom+v.bottom)/b.y,left:(d.left-x.left+v.left)/b.x,right:(x.right-d.right+v.right)/b.x}})}const ca=t=>({name:"arrow",options:t,fn(n){return se(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:p=0}=Je(t,n)||{};if(l==null)return{};const m=Mr(p),h={x:r,y:i},v=cn(o),u=fn(v),y=yield s.getDimensions(l),d=v==="y",w=d?"top":"left",g=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[v]-h[v]-a.floating[u],O=h[v]-a.reference[v],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const P=x/2-O/2,T=E/2-y[u]/2-1,F=je(m[w],T),M=je(m[g],T),S=F,V=E-y[u]-M,j=E/2-y[u]/2+P,q=Zt(S,j,V),N=!c.arrow&&Qe(o)!=null&&j!==q&&a.reference[u]/2-(j<S?F:M)-y[u]/2<0,H=N?j<S?j-S:j-V:0;return{[v]:h[v]+H,data:$({[v]:q,centerOffset:j-q-H},N&&{alignmentOffset:H}),reset:N}})}}),ua=function(t){return t===void 0&&(t={}),{name:"flip",options:t,fn(n){return se(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,j=Je(t,n),{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=j,d=Mt(j,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Ee(o),g=He(f),b=Ee(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),O=h||(b||!y?[yt(f)]:ia(f)),A=u!=="none";!h&&A&&O.push(...aa(f,y,u,x));const E=[f,...O],P=yield un(n,d),T=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&T.push(P[w]),m){const q=ra(o,s,x);T.push(P[q[0]],P[q[1]])}if(F=[...F,{placement:o,overflows:T}],!T.every(q=>q<=0)){var M,S;const q=(((M=a.flip)==null?void 0:M.index)||0)+1,N=E[q];if(N)return{data:{index:q,overflows:F},reset:{placement:N}};let H=(S=F.filter(L=>L.overflows[0]<=0).sort((L,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:S.placement;if(!H)switch(v){case"bestFit":{var V;const L=(V=F.filter(I=>{if(A){const X=He(I.placement);return X===g||X==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(X=>X>0).reduce((X,ge)=>X+ge,0)]).sort((I,X)=>I[1]-X[1])[0])==null?void 0:V[0];L&&(H=L);break}case"initialPlacement":H=f;break}if(o!==H)return{reset:{placement:H}}}return{}})}}};function la(t,e){return se(this,null,function*(){const{placement:n,platform:r,elements:i}=t,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Ee(n),s=Qe(n),f=He(n)==="y",c=["left","top"].includes(a)?-1:1,l=o&&f?-1:1,p=Je(e,t);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),f?{x:h*l,y:m*c}:{x:m*c,y:h*l}})}const da=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){return se(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield la(n,t);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:ue($({},c),{placement:s})}})}}},pa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,fn(n){return se(this,null,function*(){const{x:r,y:i,placement:o}=n,d=Je(t,n),{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}}}=d,c=Mt(d,["mainAxis","crossAxis","limiter"]),l={x:r,y:i},p=yield un(n,c),m=He(Ee(o)),h=Fr(m);let v=l[h],u=l[m];if(a){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=v+p[w],x=v-p[g];v=Zt(b,v,x)}if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=u+p[w],x=u-p[g];u=Zt(b,u,x)}const y=f.fn(ue($({},n),{[h]:v,[m]:u}));return ue($({},y),{data:{x:y.x-r,y:y.y-i,enabled:{[h]:a,[m]:s}}})})}}};function Ot(){return typeof window!="undefined"}function Ce(t){return Pr(t)?(t.nodeName||"").toLowerCase():"#document"}function z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function oe(t){var e;return(e=(Pr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pr(t){return Ot()?t instanceof Node||t instanceof z(t).Node:!1}function J(t){return Ot()?t instanceof Element||t instanceof z(t).Element:!1}function ie(t){return Ot()?t instanceof HTMLElement||t instanceof z(t).HTMLElement:!1}function tr(t){return!Ot()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof z(t).ShadowRoot}function et(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function ha(t){return["table","td","th"].includes(Ce(t))}function At(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(n){return!1}})}function ln(t){const e=dn(),n=J(t)?Q(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ga(t){let e=pe(t);for(;ie(e)&&!Le(e);){if(ln(e))return e;if(At(e))return null;e=pe(e)}return null}function dn(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Le(t){return["html","body","#document"].includes(Ce(t))}function Q(t){return z(t).getComputedStyle(t)}function Et(t){return J(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pe(t){if(Ce(t)==="html")return t;const e=t.assignedSlot||t.parentNode||tr(t)&&t.host||oe(t);return tr(e)?e.host:e}function Tr(t){const e=pe(t);return Le(e)?t.ownerDocument?t.ownerDocument.body:t.body:ie(e)&&et(e)?e:Tr(e)}function Ye(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Tr(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),a=z(i);if(o){const s=Jt(a);return e.concat(a,a.visualViewport||[],et(i)?i:[],s&&n?Ye(s):[])}return e.concat(i,Ye(i,[],n))}function Jt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qr(t){const e=Q(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=ie(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r,s=vt(n)!==o||vt(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function pn(t){return J(t)?t:t.contextElement}function Me(t){const e=pn(t);if(!ie(e))return ne(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=qr(e);let a=(o?vt(n.width):n.width)/r,s=(o?vt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ma=ne(0);function Dr(t){const e=z(t);return!dn()||!e.visualViewport?ma:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function va(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==z(t)?!1:e}function Re(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=pn(t);let a=ne(1);e&&(r?J(r)&&(a=Me(r)):a=Me(t));const s=va(o,n,r)?Dr(o):ne(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,p=i.height/a.y;if(o){const m=z(o),h=r&&J(r)?z(r):r;let v=m,u=Jt(v);for(;u&&r&&h!==v;){const y=Me(u),d=u.getBoundingClientRect(),w=Q(u),g=d.left+(u.clientLeft+parseFloat(w.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(w.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,p*=y.y,f+=g,c+=b,v=z(u),u=Jt(v)}}return bt({width:l,height:p,x:f,y:c})}function hn(t,e){const n=Et(t).scrollLeft;return e?e.left+n:Re(oe(t)).left+n}function Nr(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:hn(t,r)),o=r.top+e.scrollTop;return{x:i,y:o}}function ya(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o=i==="fixed",a=oe(r),s=e?At(e.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=ne(1);const l=ne(0),p=ie(r);if((p||!p&&!o)&&((Ce(r)!=="body"||et(a))&&(f=Et(r)),ie(r))){const h=Re(r);c=Me(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}const m=a&&!p&&!o?Nr(a,f,!0):ne(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+m.x,y:n.y*c.y-f.scrollTop*c.y+l.y+m.y}}function ba(t){return Array.from(t.getClientRects())}function xa(t){const e=oe(t),n=Et(t),r=t.ownerDocument.body,i=Ae(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Ae(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hn(t);const s=-n.scrollTop;return Q(r).direction==="rtl"&&(a+=Ae(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function wa(t,e){const n=z(t),r=oe(t),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const c=dn();(!c||c&&e==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s,y:f}}function Oa(t,e){const n=Re(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=ie(t)?Me(t):ne(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function nr(t,e,n){let r;if(e==="viewport")r=wa(t,n);else if(e==="document")r=xa(oe(t));else if(J(e))r=Oa(e,n);else{const i=Dr(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return bt(r)}function kr(t,e){const n=pe(t);return n===e||!J(n)||Le(n)?!1:Q(n).position==="fixed"||kr(n,e)}function Aa(t,e){const n=e.get(t);if(n)return n;let r=Ye(t,[],!1).filter(s=>J(s)&&Ce(s)!=="body"),i=null;const o=Q(t).position==="fixed";let a=o?pe(t):t;for(;J(a)&&!Le(a);){const s=Q(a),f=ln(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||et(a)&&!f&&kr(t,a))?r=r.filter(l=>l!==a):i=s,a=pe(a)}return e.set(t,r),r}function Ea(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const a=[...n==="clippingAncestors"?At(e)?[]:Aa(e,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const p=nr(e,l,i);return c.top=Ae(p.top,c.top),c.right=je(p.right,c.right),c.bottom=je(p.bottom,c.bottom),c.left=Ae(p.left,c.left),c},nr(e,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ra(t){const{width:e,height:n}=qr(t);return{width:e,height:n}}function Sa(t,e,n){const r=ie(e),i=oe(e),o=n==="fixed",a=Re(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const f=ne(0);if(r||!r&&!o)if((Ce(e)!=="body"||et(i))&&(s=Et(e)),r){const m=Re(e,!0,o,e);f.x=m.x+e.clientLeft,f.y=m.y+e.clientTop}else i&&(f.x=hn(i));const c=i&&!r&&!o?Nr(i,s):ne(0),l=a.left+s.scrollLeft-f.x-c.x,p=a.top+s.scrollTop-f.y-c.y;return{x:l,y:p,width:a.width,height:a.height}}function Nt(t){return Q(t).position==="static"}function rr(t,e){if(!ie(t)||Q(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return oe(t)===n&&(n=n.ownerDocument.body),n}function jr(t,e){const n=z(t);if(At(t))return n;if(!ie(t)){let i=pe(t);for(;i&&!Le(i);){if(J(i)&&!Nt(i))return i;i=pe(i)}return n}let r=rr(t,e);for(;r&&ha(r)&&Nt(r);)r=rr(r,e);return r&&Le(r)&&Nt(r)&&!ln(r)?n:r||ga(t)||n}const Fa=function(t){return se(this,null,function*(){const e=this.getOffsetParent||jr,n=this.getDimensions,r=yield n(t.floating);return{reference:Sa(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function Ma(t){return Q(t).direction==="rtl"}const Pa={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:oe,getClippingRect:Ea,getOffsetParent:jr,getElementRects:Fa,getClientRects:ba,getDimensions:Ra,getScale:Me,isElement:J,isRTL:Ma};function Hr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ta(t,e){let n=null,r;const i=oe(t);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=t.getBoundingClientRect(),{left:l,top:p,width:m,height:h}=c;if(s||e(),!m||!h)return;const v=ut(p),u=ut(i.clientWidth-(l+m)),y=ut(i.clientHeight-(p+h)),d=ut(l),g={rootMargin:-v+"px "+-u+"px "+-y+"px "+-d+"px",threshold:Ae(0,je(1,f))||1};let b=!0;function x(O){const A=O[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Hr(c,t.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,ue($({},g),{root:i.ownerDocument}))}catch(O){n=new IntersectionObserver(x,g)}n.observe(t)}return a(!0),o}function Ca(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=pn(t),l=i||o?[...c?Ye(c):[],...Ye(e)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const p=c&&s?Ta(c,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(d=>{let[w]=d;w&&w.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(e)})),n()}),c&&!f&&h.observe(c),h.observe(e));let v,u=f?Re(t):null;f&&y();function y(){const d=Re(t);u&&!Hr(u,d)&&n(),u=d,v=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),p==null||p(),(d=h)==null||d.disconnect(),h=null,f&&cancelAnimationFrame(v)}}const Ba=un,Wa=da,Va=pa,Ia=ua,$a=ca,_a=(t,e,n)=>{const r=new Map,i=$({platform:Pa},n),o=ue($({},i.platform),{_c:r});return fa(t,e,ue($({},i),{platform:o}))};var Pe=null,kt=null,le=null,ir="z-index-manage",ye=null,or="z-index-style",Lr="m",Cr="s",Ge={m:1e3,s:1e3};function gn(){return Pe||typeof document!="undefined"&&(Pe=document),Pe}function Br(){return Pe&&!kt&&(kt=Pe.body||Pe.getElementsByTagName("body")[0]),kt}function qa(){var t=0,e=gn();if(e){var n=Br();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(t=Math.max(t,Number(a)))}}}return t}function Da(){if(!ye){var t=gn();t&&(ye=t.getElementById(or),ye||(ye=t.createElement("style"),ye.id=or,t.getElementsByTagName("head")[0].appendChild(ye)))}return ye}function Wr(){var t=Da();if(t){var e="--dom-",n="-z-index";t.innerHTML=":root{"+e+"main"+n+":"+Rt()+";"+e+"sub"+n+":"+yn()+"}"}}function Vr(){if(!le){var t=gn();if(t&&(le=t.getElementById(ir),!le)){var e=Br();e&&(le=t.createElement("div"),le.id=ir,le.style.display="none",e.appendChild(le),mn(Ge.m),vn(Ge.s))}}return le}function Ir(t){return function(e){if(e){e=Number(e),Ge[t]=e;var n=Vr();n&&(n.dataset?n.dataset[t]=e+"":n.setAttribute("data-"+t,e+""))}return Wr(),Ge[t]}}var mn=Ir(Lr);function $r(t,e){return function(r){var i,o=Vr();if(o){var a=o.dataset?o.dataset[t]:o.getAttribute("data-"+t);a&&(i=Number(a))}return i||(i=Ge[t]),r?Number(r)<i?e():r:i}}var Rt=$r(Lr,_r);function _r(){return mn(Rt()+1)}var vn=Ir(Cr),Ur=$r(Cr,zr);function yn(){return Rt()+Ur()}function zr(){return vn(Ur()+1),yn()}var Ua={setCurrent:mn,getCurrent:Rt,getNext:_r,setSubCurrent:vn,getSubCurrent:yn,getSubNext:zr,getMax:qa};Wr();export{Ua as D,sr as E,wt as S,ja as T,La as Y,$a as a,Ca as b,_a as c,Ba as d,Ia as f,Ha as m,Wa as o,Va as s,ka as y};