UNPKG

terriajs

Version:

Geospatial data visualization platform.

2 lines 15.5 MB
/*! For license information please see TerriaJS-specs.js.LICENSE.txt */ (()=>{var __webpack_modules__={55655:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var i=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),r=Math.abs,a=String.fromCharCode,o=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function A(e,t){return t.push(e),e}var m=1,f=1,g=0,y=0,_=0,b="";function v(e,t,n,i,r,a,o){return{value:e,root:t,parent:n,type:i,props:r,children:a,line:m,column:f,length:o,return:""}}function w(e,t){return o(v("",null,null,"",null,null,0),e,{length:-e.length},t)}function C(){return _=y>0?u(b,--y):0,f--,10===_&&(f=1,m--),_}function S(){return _=y<g?u(b,y++):0,f++,10===_&&(f=1,m++),_}function E(){return u(b,y)}function T(){return y}function I(e,t){return d(b,e,t)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(e){return m=f=1,g=p(b=e),y=0,[]}function M(e){return b="",e}function B(e){return s(I(y-1,O(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(_=E())&&_<33;)S();return x(e)>2||x(_)>3?"":" "}function P(e,t){for(;--t&&S()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return I(e,T()+(t<6&&32==E()&&32==S()))}function O(e){for(;S();)switch(_){case e:return y;case 34:case 39:34!==e&&39!==e&&O(_);break;case 40:41===e&&O(e);break;case 92:S()}return y}function N(e,t){for(;S()&&e+_!==57&&(e+_!==84||47!==E()););return"/*"+I(t,y-1)+"*"+a(47===e?e:S())}function L(e){for(;!x(E());)S();return I(e,y)}var z="-ms-",F="-moz-",G="-webkit-",k="comm",U="rule",j="decl",Q="@keyframes";function H(e,t){for(var n="",i=h(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function W(e,t,n,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case k:return"";case Q:return e.return=e.value+"{"+H(e.children,i)+"}";case U:e.value=e.props.join(",")}return p(n=H(e.children,i))?e.return=e.value+"{"+n+"}":""}function V(e){return M(q("",null,null,null,[""],e=D(e),0,[0],e))}function q(e,t,n,i,r,o,s,d,h){for(var m=0,f=0,g=s,y=0,_=0,b=0,v=1,w=1,I=1,x=0,D="",M=r,O=o,z=i,F=D;w;)switch(b=x,x=S()){case 40:if(108!=b&&58==u(F,g-1)){-1!=c(F+=l(B(x),"&","&\f"),"&\f")&&(I=-1);break}case 34:case 39:case 91:F+=B(x);break;case 9:case 10:case 13:case 32:F+=R(b);break;case 92:F+=P(T()-1,7);continue;case 47:switch(E()){case 42:case 47:A(K(N(S(),T()),t,n),h);break;default:F+="/"}break;case 123*v:d[m++]=p(F)*I;case 125*v:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+f:-1==I&&(F=l(F,/\f/g,"")),_>0&&p(F)-g&&A(_>32?J(F+";",i,n,g-1):J(l(F," ","")+";",i,n,g-2),h);break;case 59:F+=";";default:if(A(z=Y(F,t,n,m,f,r,d,D,M=[],O=[],g),o),123===x)if(0===f)q(F,t,z,z,M,o,g,d,O);else switch(99===y&&110===u(F,3)?100:y){case 100:case 108:case 109:case 115:q(e,z,z,i&&A(Y(e,z,z,0,0,r,d,D,r,M=[],g),O),r,O,g,d,i?M:O);break;default:q(F,z,z,z,[""],O,0,d,O)}}m=f=_=0,v=I=1,D=F="",g=s;break;case 58:g=1+p(F),_=b;default:if(v<1)if(123==x)--v;else if(125==x&&0==v++&&125==C())continue;switch(F+=a(x),x*v){case 38:I=f>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*I,I=1;break;case 64:45===E()&&(F+=B(S())),y=E(),f=g=p(D=F+=L(T())),x++;break;case 45:45===b&&2==p(F)&&(v=0)}}return o}function Y(e,t,n,i,a,o,c,u,p,A,m){for(var f=a-1,g=0===a?o:[""],y=h(g),_=0,b=0,w=0;_<i;++_)for(var C=0,S=d(e,f+1,f=r(b=c[_])),E=e;C<y;++C)(E=s(b>0?g[C]+" "+S:l(S,/&\f/g,g[C])))&&(p[w++]=E);return v(e,t,n,0===a?U:u,p,A,m)}function K(e,t,n){return v(e,t,n,k,a(_),d(e,2,-2),0)}function J(e,t,n,i){return v(e,t,n,j,d(e,0,i),d(e,i+1,-1),i)}var Z=function(e,t,n){for(var i=0,r=0;i=r,r=E(),38===i&&12===r&&(t[n]=1),!x(r);)S();return I(e,y)},X=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!i){X.set(e,!0);for(var r=[],o=function(e,t){return M(function(e,t){var n=-1,i=44;do{switch(x(i)){case 0:38===i&&12===E()&&(t[n]=1),e[n]+=Z(y-1,t,n);break;case 2:e[n]+=B(i);break;case 4:if(44===i){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(i)}}while(i=S());return e}(D(e),t))}(t,r),s=n.props,l=0,c=0;l<o.length;l++)for(var u=0;u<s.length;u++,c++)e.props[c]=r[l]?o[l].replace(/&\f/g,s[u]):s[u]+" "+o[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+F+e+z+e+e;case 6828:case 4268:return G+e+z+e+e;case 6165:return G+e+z+"flex-"+e+e;case 5187:return G+e+l(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return G+e+z+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return G+e+z+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+z+l(e,"shrink","negative")+e;case 5292:return G+e+z+l(e,"basis","preferred-size")+e;case 6060:return G+"box-"+l(e,"-grow","")+G+e+z+l(e,"grow","positive")+e;case 4554:return G+l(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+G)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===u(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return G+e+z+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+z+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+z+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+z+e+e}return e}var ne=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=te(e.value,e.length);break;case Q:return H([w(e,{value:l(e.value,"@","@"+G)})],i);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return H([w(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return H([w(e,{props:[l(t,/:(plac\w+)/,":"+G+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,z+"input-$1")]})],i)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,a,o=e.stylisPlugins||ne,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d,p,A=[W,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[$,ee].concat(o,A),d=h(u),function(e,t,n,i){for(var r="",a=0;a<d;a++)r+=u[a](e,t,n,i)||"";return r});a=function(e,t,n,i){c=n,H(V(e?e+"{"+t.styles+"}":t.styles),m),i&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new i({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return f.sheet.hydrate(l),f}},36289:(e,t,n)=>{"use strict";function i(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>i})},41418:(e,t,n)=>{"use strict";n.d(t,{AH:()=>P,Y:()=>R,i7:()=>O});var i=n(96540),r=n.t(i,2),a=n(55655),o=function(e,t,n){var i=e.key+"-"+t.name;!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},l=n(36289),c=!1,u=/[A-Z]|^ms/g,d=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return 45===e.charCodeAt(1)},h=function(e){return null!=e&&"boolean"!=typeof e},A=(0,l.A)((function(e){return p(e)?e:e.replace(u,"-$&").toLowerCase()})),m=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(d,(function(e,t,n){return y={name:t,styles:n,next:y},t}))}return 1===s[e]||p(e)||"number"!=typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g(e,t,n){if(null==n)return"";var i=n;if(void 0!==i.__emotion_styles)return i;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return y={name:r.name,styles:r.styles,next:y},r.name;var a=n;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)y={name:o.name,styles:o.styles,next:y},o=o.next;return a.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=g(e,t,n[r])+";";else for(var a in n){var o=n[a];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?i+=a+"{"+t[s]+"}":h(s)&&(i+=A(a)+":"+m(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&c)throw new Error(f);if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=g(e,t,o);switch(a){case"animation":case"animationName":i+=A(a)+":"+l+";";break;default:i+=a+"{"+l+"}"}}else for(var u=0;u<o.length;u++)h(o[u])&&(i+=A(a)+":"+m(a,o[u])+";")}}return i}(e,t,n);case"function":if(void 0!==e){var s=y,l=n(e);return y=s,g(e,t,l)}}var u=n;if(null==t)return u;var d=t[u];return void 0!==d?d:u}var y,_=/label:\s*([^\s;{]+)\s*(;|$)/g;function b(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,r="";y=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,r+=g(n,t,a)):r+=a[0];for(var o=1;o<e.length;o++)r+=g(n,t,e[o]),i&&(r+=a[o]);_.lastIndex=0;for(var s,l="";null!==(s=_.exec(r));)l+="-"+s[1];var c=function(e){for(var t,n=0,i=0,r=e.length;r>=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:y}}var v,w,C=!!r.useInsertionEffect&&r.useInsertionEffect,S=C||function(e){return e()},E=(C||i.useLayoutEffect,i.createContext("undefined"!=typeof HTMLElement?(0,a.A)({key:"css"}):null)),T=(E.Provider,function(e){return(0,i.forwardRef)((function(t,n){var r=(0,i.useContext)(E);return e(t,r,n)}))}),I=i.createContext({}),x={}.hasOwnProperty,D="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return o(t,n,i),S((function(){return function(e,t,n){o(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+i:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,i)})),null},B=T((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[D],o=[r],s="";"string"==typeof e.className?s=function(e,t,n){var i="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(i+=n+" ")})),i}(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var l=b(o,void 0,i.useContext(I));s+=t.key+"-"+l.name;var c={};for(var u in e)x.call(e,u)&&"css"!==u&&u!==D&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),i.createElement(i.Fragment,null,i.createElement(M,{cache:t,serialized:l,isStringTag:"string"==typeof a}),i.createElement(a,c))})),R=(n(4146),function(e,t){var n=arguments;if(null==t||!x.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=B,a[1]=function(e,t){var n={};for(var i in t)x.call(t,i)&&(n[i]=t[i]);return n[D]=e,n}(e,t);for(var o=2;o<r;o++)a[o]=n[o];return i.createElement.apply(null,a)});function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(t)}function O(){var e=P.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}v=R||(R={}),w||(w=v.JSX||(v.JSX={}))},84842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Re,CompositeItem:()=>Pe,FloatingArrow:()=>Fe,FloatingDelayGroup:()=>tt,FloatingFocusManager:()=>zt,FloatingList:()=>Ee,FloatingNode:()=>We,FloatingOverlay:()=>kt,FloatingPortal:()=>xt,FloatingTree:()=>Ve,arrow:()=>ie,autoPlacement:()=>ee,autoUpdate:()=>j.ll,computePosition:()=>j.rD,detectOverflow:()=>j.__,flip:()=>X,getOverflowAncestors:()=>a.v9,hide:()=>te,inline:()=>ne,inner:()=>_n,limitShift:()=>Z,offset:()=>K,platform:()=>j.iD,safePolygon:()=>wn,shift:()=>J,size:()=>$,useClick:()=>Qt,useClientPoint:()=>Wt,useDelayGroup:()=>nt,useDelayGroupContext:()=>et,useDismiss:()=>Kt,useFloating:()=>Zt,useFloatingNodeId:()=>He,useFloatingParentNodeId:()=>je,useFloatingPortalNode:()=>It,useFloatingRootContext:()=>Jt,useFloatingTree:()=>Qe,useFocus:()=>Xt,useHover:()=>Ze,useId:()=>ze,useInnerOffset:()=>bn,useInteractions:()=>nn,useListItem:()=>Te,useListNavigation:()=>un,useMergeRefs:()=>re,useRole:()=>pn,useTransitionStatus:()=>mn,useTransitionStyles:()=>fn,useTypeahead:()=>gn});var i=n(96540),r=n.t(i,2),a=n(86635);function o(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function s(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function l(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function u(e){return!(0!==e.mozInputSource||!e.isTrusted)||(h()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function d(e){return!c().includes("jsdom/")&&(!h()&&0===e.width&&0===e.height||h()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function p(){return/apple/i.test(navigator.vendor)}function h(){const e=/android/i;return e.test(l())||e.test(c())}function A(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function m(e){return(null==e?void 0:e.ownerDocument)||document}function f(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function g(e){return"composedPath"in e?e.composedPath()[0]:e.target}const y="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _(e){return(0,a.sb)(e)&&e.matches(y)}function b(e){e.preventDefault(),e.stopPropagation()}function v(e){return!!e&&"combobox"===e.getAttribute("role")&&_(e)}var w=n(97193),C=n(74848),S=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),E="undefined"==typeof Element,T=E?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,I=!E&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},x=function e(t,n){var i;void 0===n&&(n=!0);var r=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},D=function e(t,n,i){for(var r=[],a=Array.from(t);a.length;){var o=a.shift();if(!x(o,!1))if("SLOT"===o.tagName){var s=o.assignedElements(),l=e(s.length?s:o.children,!0,i);i.flatten?r.push.apply(r,l):r.push({scopeParent:o,candidates:l})}else{T.call(o,S)&&i.filter(o)&&(n||!t.includes(o))&&r.push(o);var c=o.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(o),u=!x(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(o));if(c&&u){var d=e(!0===c?o.children:c.children,!0,i);i.flatten?r.push.apply(r,d):r.push({scopeParent:o,candidates:d})}else a.unshift.apply(a,o.children)}}return r},M=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},B=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!M(e)?0:e.tabIndex},R=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},P=function(e){return"INPUT"===e.tagName},O=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},N=function(e,t){return!(t.disabled||x(t)||function(e){return P(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=T.call(e,"details>summary:first-of-type")?e.parentElement:e;if(T.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return O(e)}else{if("function"==typeof i){for(var a=e;e;){var o=e.parentElement,s=I(e);if(o&&!o.shadowRoot&&!0===i(o))return O(e);e=e.assignedSlot?e.assignedSlot:o||s===e.ownerDocument?o:s.host}e=a}if(function(e){var t,n,i,r,a=e&&I(e),o=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=o)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(o)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!s&&o;){var l,c,u;s=!(null===(c=o=null===(l=a=I(o))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(o))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!T.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},L=function(e,t){return!(function(e){return function(e){return P(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||I(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||B(t)<0||!N(e,t))},z=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},F=function e(t){var n=[],i=[];return t.forEach((function(t,r){var a=!!t.scopeParent,o=a?t.scopeParent:t,s=function(e,t){var n=B(e);return n<0&&t&&!M(e)?0:n}(o,a),l=a?e(t.candidates):o;0===s?a?n.push.apply(n,l):n.push(o):i.push({documentOrder:r,tabIndex:s,item:t,isScope:a,content:l})})),i.sort(R).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},G=function(e,t){var n;return n=(t=t||{}).getShadowRoot?D([e],t.includeContainer,{filter:L.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:z}):function(e,t,n){if(x(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(S));return t&&T.call(e,S)&&i.unshift(e),i.filter(n)}(e,t.includeContainer,L.bind(null,t)),F(n)},k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==T.call(e,S)&&L(t,e)},U=n(40961),j=n(46885),Q="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function H(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;0!=i--;)if(!H(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){const n=r[i];if(!("_owner"===n&&e.$$typeof||H(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function W(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function V(e,t){const n=W(e);return Math.round(t*n)/n}function q(e){const t=i.useRef(e);return Q((()=>{t.current=e})),t}const Y=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:i}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?(0,j.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,j.UE)({element:n,padding:i}).fn(t):{};var r}}),K=(e,t)=>({...(0,j.cY)(e),options:[e,t]}),J=(e,t)=>({...(0,j.BN)(e),options:[e,t]}),Z=(e,t)=>({...(0,j.ER)(e),options:[e,t]}),X=(e,t)=>({...(0,j.UU)(e),options:[e,t]}),$=(e,t)=>({...(0,j.Ej)(e),options:[e,t]}),ee=(e,t)=>({...(0,j.RK)(e),options:[e,t]}),te=(e,t)=>({...(0,j.jD)(e),options:[e,t]}),ne=(e,t)=>({...(0,j.mG)(e),options:[e,t]}),ie=(e,t)=>({...Y(e),options:[e,t]});function re(e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const ae={...r},oe=ae.useInsertionEffect||(e=>e());function se(e){const t=i.useRef((()=>{}));return oe((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return null==t.current?void 0:t.current(...n)}),[])}const le="ArrowUp",ce="ArrowDown",ue="ArrowLeft",de="ArrowRight";function pe(e,t,n){return Math.floor(e/t)!==n}function he(e,t){return t<0||t>=e.current.length}function Ae(e,t){return fe(e,{disabledIndices:t})}function me(e,t){return fe(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function fe(e,t){let{startingIndex:n=-1,decrement:i=!1,disabledIndices:r,amount:a=1}=void 0===t?{}:t;const o=e.current;let s=n;do{s+=i?-a:a}while(s>=0&&s<=o.length-1&&ve(o,s,r));return s}function ge(e,t){let{event:n,orientation:i,loop:r,rtl:a,cols:o,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===le){if(d&&b(n),-1===u)p=c;else if(p=fe(e,{startingIndex:p,amount:o,decrement:!0,disabledIndices:s}),r&&(u-o<l||p<0)){const e=u%o,t=c%o,n=c-(t-e);p=t===e?c:t>e?n:n-o}he(e,p)&&(p=u)}if(n.key===ce&&(d&&b(n),-1===u?p=l:(p=fe(e,{startingIndex:u,amount:o,disabledIndices:s}),r&&u+o>c&&(p=fe(e,{startingIndex:u%o-o,amount:o,disabledIndices:s}))),he(e,p)&&(p=u)),"both"===i){const t=(0,w.RI)(u/o);n.key===(a?ue:de)&&(d&&b(n),u%o!=o-1?(p=fe(e,{startingIndex:u,disabledIndices:s}),r&&pe(p,o,t)&&(p=fe(e,{startingIndex:u-u%o-1,disabledIndices:s}))):r&&(p=fe(e,{startingIndex:u-u%o-1,disabledIndices:s})),pe(p,o,t)&&(p=u)),n.key===(a?de:ue)&&(d&&b(n),u%o!=0?(p=fe(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&pe(p,o,t)&&(p=fe(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}))):r&&(p=fe(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s})),pe(p,o,t)&&(p=u));const i=(0,w.RI)(c/o)===t;he(e,p)&&(p=r&&i?n.key===(a?de:ue)?c:fe(e,{startingIndex:u-u%o-1,disabledIndices:s}):u)}return p}function ye(e,t,n){const i=[];let r=0;return e.forEach(((e,a)=>{let{width:o,height:s}=e,l=!1;for(n&&(r=0);!l;){const e=[];for(let n=0;n<o;n++)for(let i=0;i<s;i++)e.push(r+n+i*t);r%t+o<=t&&e.every((e=>null==i[e]))?(e.forEach((e=>{i[e]=a})),l=!0):r++}})),[...i]}function _e(e,t,n,i,r){if(-1===e)return-1;const a=n.indexOf(e),o=t[e];switch(r){case"tl":return a;case"tr":return o?a+o.width-1:a;case"bl":return o?a+(o.height-1)*i:a;case"br":return n.lastIndexOf(e)}}function be(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function ve(e,t,n){if(n)return n.includes(t);const i=e[t];return null==i||i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled")}var we="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function Ce(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Se=i.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ee(e){const{children:t,elementsRef:n,labelsRef:r}=e,[a,o]=i.useState((()=>new Set)),s=i.useCallback((e=>{o((t=>new Set(t).add(e)))}),[]),l=i.useCallback((e=>{o((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),c=i.useMemo((()=>{const e=new Map;return Array.from(a.keys()).sort(Ce).forEach(((t,n)=>{e.set(t,n)})),e}),[a]);return(0,C.jsx)(Se.Provider,{value:i.useMemo((()=>({register:s,unregister:l,map:c,elementsRef:n,labelsRef:r})),[s,l,c,n,r]),children:t})}function Te(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:a,elementsRef:o,labelsRef:s}=i.useContext(Se),[l,c]=i.useState(null),u=i.useRef(null),d=i.useCallback((e=>{if(u.current=e,null!==l&&(o.current[l]=e,s)){var n;const i=void 0!==t;s.current[l]=i?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,o,s,t]);return we((()=>{const e=u.current;if(e)return n(e),()=>{r(e)}}),[n,r]),we((()=>{const e=u.current?a.get(u.current):null;null!=e&&c(e)}),[a]),i.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}function Ie(e,t){return"function"==typeof e?e(t):e?i.cloneElement(e,t):(0,C.jsx)("div",{...t})}const xe=i.createContext({activeIndex:0,onNavigate:()=>{}}),De=[ue,de],Me=[le,ce],Be=[...De,...Me],Re=i.forwardRef((function(e,t){const{render:n,orientation:r="both",loop:a=!0,rtl:o=!1,cols:s=1,disabledIndices:l,activeIndex:c,onNavigate:u,itemSizes:d,dense:p=!1,...h}=e,[A,m]=i.useState(0),f=null!=c?c:A,g=se(null!=u?u:m),y=i.useRef([]),_=n&&"function"!=typeof n?n.props:{},b=i.useMemo((()=>({activeIndex:f,onNavigate:g})),[f,g]),v=s>1,w={...h,..._,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==h.onKeyDown||h.onKeyDown(e),null==_.onKeyDown||_.onKeyDown(e),function(e){if(!Be.includes(e.key))return;let t=f;const n=Ae(y,l),i=me(y,l),c=o?ue:de,u=o?de:ue;if(v){const u=d||Array.from({length:y.current.length},(()=>({width:1,height:1}))),h=ye(u,s,p),A=h.findIndex((e=>null!=e&&!ve(y.current,e,l))),m=h.reduce(((e,t,n)=>null==t||ve(y.current,t,l)?e:n),-1),g=h[ge({current:h.map((e=>e?y.current[e]:null))},{event:e,orientation:r,loop:a,rtl:o,cols:s,disabledIndices:be([...l||y.current.map(((e,t)=>ve(y.current,t)?t:void 0)),void 0],h),minIndex:A,maxIndex:m,prevIndex:_e(f>i?n:f,u,h,s,e.key===ce?"bl":e.key===c?"tr":"tl")})];null!=g&&(t=g)}const h={horizontal:[c],vertical:[ce],both:[c,ce]}[r],A={horizontal:[u],vertical:[le],both:[u,le]}[r],m=v?Be:{horizontal:De,vertical:Me,both:Be}[r];var _;t===f&&[...h,...A].includes(e.key)&&(t=a&&t===i&&h.includes(e.key)?n:a&&t===n&&A.includes(e.key)?i:fe(y,{startingIndex:t,decrement:A.includes(e.key),disabledIndices:l})),t===f||he(y,t)||(e.stopPropagation(),m.includes(e.key)&&e.preventDefault(),g(t),null==(_=y.current[t])||_.focus())}(e)}};return(0,C.jsx)(xe.Provider,{value:b,children:(0,C.jsx)(Ee,{elementsRef:y,children:Ie(n,w)})})})),Pe=i.forwardRef((function(e,t){const{render:n,...r}=e,a=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:s}=i.useContext(xe),{ref:l,index:c}=Te(),u=re([l,t,a.ref]),d=o===c;return Ie(n,{...r,...a,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==a.onFocus||a.onFocus(e),s(c)}})}));let Oe=!1,Ne=0;const Le=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ne++,ze=ae.useId||function(){const[e,t]=i.useState((()=>Oe?Le():void 0));return we((()=>{null==e&&t(Le())}),[]),i.useEffect((()=>{Oe=!0}),[]),e},Fe=i.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:s}},width:l=14,height:c=7,tipRadius:u=0,strokeWidth:d=0,staticOffset:p,stroke:h,d:A,style:{transform:m,...f}={},...g}=e,y=ze(),[_,b]=i.useState(!1);if(we((()=>{r&&"rtl"===(0,a.L9)(r).direction&&b(!0)}),[r]),!r)return null;const[v,w]=n.split("-"),S="top"===v||"bottom"===v;let E=p;(S&&null!=s&&s.x||!S&&null!=s&&s.y)&&(E=null);const T=2*d,I=T/2,x=l/2*(u/-8+1),D=c/2*u/4,M=!!A,B=E&&"end"===w?"bottom":"top";let R=E&&"end"===w?"right":"left";E&&_&&(R="end"===w?"left":"right");const P=null!=(null==o?void 0:o.x)?E||o.x:"",O=null!=(null==o?void 0:o.y)?E||o.y:"",N=A||"M0,0 H"+l+" L"+(l-x)+","+(c-D)+" Q"+l/2+","+c+" "+x+","+(c-D)+" Z",L={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[v];return(0,C.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:M?l:l+T,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[R]:P,[B]:O,[v]:S||M?"100%":"calc(100% - "+T/2+"px)",transform:[L,m].filter((e=>!!e)).join(" "),...f},children:[T>0&&(0,C.jsx)("path",{clipPath:"url(#"+y+")",fill:"none",stroke:h,strokeWidth:T+(A?0:1),d:N}),(0,C.jsx)("path",{stroke:T&&!A?g.fill:"none",d:N}),(0,C.jsx)("clipPath",{id:y,children:(0,C.jsx)("rect",{x:-I,y:I*(M?-1:1),width:l+T,height:l})})]})}));function Ge(){const e=new Map;return{emit(t,n){var i;null==(i=e.get(t))||i.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,(null==(i=e.get(t))?void 0:i.filter((e=>e!==n)))||[])}}}const ke=i.createContext(null),Ue=i.createContext(null),je=()=>{var e;return(null==(e=i.useContext(ke))?void 0:e.id)||null},Qe=()=>i.useContext(Ue);function He(e){const t=ze(),n=Qe(),i=je(),r=e||i;return we((()=>{if(!t)return;const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,r]),t}function We(e){const{children:t,id:n}=e,r=je();return(0,C.jsx)(ke.Provider,{value:i.useMemo((()=>({id:n,parentId:r})),[n,r]),children:t})}function Ve(e){const{children:t}=e,n=i.useRef([]),r=i.useCallback((e=>{n.current=[...n.current,e]}),[]),a=i.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),o=i.useState((()=>Ge()))[0];return(0,C.jsx)(Ue.Provider,{value:i.useMemo((()=>({nodesRef:n,addNode:r,removeNode:a,events:o})),[r,a,o]),children:t})}function qe(e){return"data-floating-ui-"+e}function Ye(e){const t=(0,i.useRef)(e);return we((()=>{t.current=e})),t}const Ke=qe("safe-polygon");function Je(e,t,n){return n&&!A(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ze(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:l,elements:c}=e,{enabled:u=!0,delay:d=0,handleClose:p=null,mouseOnly:h=!1,restMs:f=0,move:g=!0}=t,y=Qe(),_=je(),b=Ye(p),v=Ye(d),w=Ye(n),C=i.useRef(),S=i.useRef(-1),E=i.useRef(),T=i.useRef(-1),I=i.useRef(!0),x=i.useRef(!1),D=i.useRef((()=>{})),M=i.useRef(!1),B=i.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);i.useEffect((()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(S.current),clearTimeout(T.current),I.current=!0,M.current=!1)}}),[u,l]),i.useEffect((()=>{if(!u)return;if(!b.current)return;if(!n)return;function e(e){B()&&r(!1,e,"hover")}const t=m(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[c.floating,n,r,u,b,B]);const R=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const i=Je(v.current,"close",C.current);i&&!E.current?(clearTimeout(S.current),S.current=window.setTimeout((()=>r(!1,e,n)),i)):t&&(clearTimeout(S.current),r(!1,e,n))}),[v,r]),P=se((()=>{D.current(),E.current=void 0})),O=se((()=>{if(x.current){const e=m(c.floating).body;e.style.pointerEvents="",e.removeAttribute(Ke),x.current=!1}})),N=se((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));i.useEffect((()=>{if(u&&(0,a.vq)(c.domReference)){var e;const r=c.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=c.floating)||e.addEventListener("mouseleave",l),g&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=c.floating)||e.removeEventListener("mouseleave",l),g&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(S.current),I.current=!1,h&&!A(C.current)||f>0&&!Je(v.current,"open"))return;const t=Je(v.current,"open",C.current);t?S.current=window.setTimeout((()=>{w.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(N())return;D.current();const t=m(c.floating);if(clearTimeout(T.current),M.current=!1,b.current&&o.current.floatingContext){n||clearTimeout(S.current),E.current=b.current({...o.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){O(),P(),N()||R(e,!0,"safe-polygon")}});const i=E.current;return t.addEventListener("mousemove",i),void(D.current=()=>{t.removeEventListener("mousemove",i)})}("touch"!==C.current||!s(c.floating,e.relatedTarget))&&R(e)}function l(e){N()||o.current.floatingContext&&(null==b.current||b.current({...o.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){O(),P(),N()||R(e)}})(e))}}),[c,u,e,h,f,g,R,P,O,r,n,w,y,v,b,o,N]),we((()=>{var e;if(u&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&B()){x.current=!0;const e=c.floating;if((0,a.vq)(c.domReference)&&e){var t;const n=m(c.floating).body;n.setAttribute(Ke,"");const i=c.domReference,r=null==y||null==(t=y.nodesRef.current.find((e=>e.id===_)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),n.style.pointerEvents="none",i.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",i.style.pointerEvents="",e.style.pointerEvents=""}}}}),[u,n,_,c,y,b,B]),we((()=>{n||(C.current=void 0,M.current=!1,P(),O())}),[n,P,O]),i.useEffect((()=>()=>{P(),clearTimeout(S.current),clearTimeout(T.current),O()}),[u,c.domReference,P,O]);const L=i.useMemo((()=>{function e(e){C.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function i(){I.current||w.current||r(!0,t,"hover")}h&&!A(C.current)||n||0===f||M.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(T.current),"touch"===C.current?i():(M.current=!0,T.current=window.setTimeout(i,f)))}}}),[h,r,n,w,f]),z=i.useMemo((()=>({onMouseEnter(){clearTimeout(S.current)},onMouseLeave(e){N()||R(e.nativeEvent,!1)}})),[R,N]);return i.useMemo((()=>u?{reference:L,floating:z}:{}),[u,L,z])}const Xe=()=>{},$e=i.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Xe,setState:Xe,isInstantPhase:!1}),et=()=>i.useContext($e);function tt(e){const{children:t,delay:n,timeoutMs:r=0}=e,[a,o]=i.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=i.useRef(null),l=i.useCallback((e=>{o({currentId:e})}),[]);return we((()=>{a.currentId?null===s.current?s.current=a.currentId:a.isInstantPhase||o({isInstantPhase:!0}):(a.isInstantPhase&&o({isInstantPhase:!1}),s.current=null)}),[a.currentId,a.isInstantPhase]),(0,C.jsx)($e.Provider,{value:i.useMemo((()=>({...a,setState:o,setCurrentId:l})),[a,l]),children:t})}function nt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,floatingId:r}=e,{id:a,enabled:o=!0}=t,s=null!=a?a:r,l=et(),{currentId:c,setCurrentId:u,initialDelay:d,setState:p,timeoutMs:h}=l;return we((()=>{o&&c&&(p({delay:{open:1,close:Je(d,"close")}}),c!==s&&i(!1))}),[o,s,i,p,c,d]),we((()=>{function e(){i(!1),p({delay:d,currentId:null})}if(o&&c&&!n&&c===s){if(h){const t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}}),[o,n,p,c,s,i,d,h]),we((()=>{o&&u!==Xe&&n&&u(s)}),[o,n,u,s]),l}let it=0;function rt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:i=!0,sync:r=!1}=t;i&&cancelAnimationFrame(it);const a=()=>null==e?void 0:e.focus({preventScroll:n});r?a():it=requestAnimationFrame(a)}function at(e,t){var n;let i=[],r=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;r;){const t=e.find((e=>e.id===r));r=null==t?void 0:t.parentId,t&&(i=i.concat(t))}return i}function ot(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),i=n;for(;i.length;)i=e.filter((e=>{var t;return null==(t=i)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(i);return n}let st=new WeakMap,lt=new WeakSet,ct={},ut=0;const dt=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,pt=e=>e&&(e.host||pt(e.parentNode)),ht=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=pt(t);return e.contains(n)?n:null})).filter((e=>null!=e));function At(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=m(e[0]).body;return function(e,t,n,i){const r="data-floating-ui-inert",o=i?"inert":n?"aria-hidden":null,s=ht(t,e),l=new Set,c=new Set(s),u=[];ct[r]||(ct[r]=new WeakMap);const d=ct[r];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,a.mq)(t))if(l.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,i=st.get(t)||0,a=o?i+1:i,s=(d.get(t)||0)+1;st.set(t,a),d.set(t,s),u.push(t),1===a&&n&&lt.add(t),1===s&&t.setAttribute(r,""),!n&&o&&t.setAttribute(o,"true")}}))}(t),l.clear(),ut++,()=>{u.forEach((e=>{const t=st.get(e)||0,n=o?t-1:t,i=(d.get(e)||0)-1;st.set(e,n),d.set(e,i),n||(!lt.has(e)&&o&&e.removeAttribute(o),lt.delete(e)),i||e.removeAttribute(r)})),ut--,ut||(st=new WeakMap,st=new WeakMap,lt=new WeakSet,ct={})}}(e.concat(Array.from(i.querySelectorAll("[aria-live]"))),i,t,n)}const mt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ft(e,t){const n=G(e,mt());"prev"===t&&n.reverse();const i=n.indexOf(o(m(e)));return n.slice(i+1)[0]}function gt(){return ft(document.body,"next")}function yt(){return ft(document.body,"prev")}function _t(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!s(n,i)}function bt(e){G(e,mt()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function vt(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const wt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ct(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const St=i.forwardRef((function(e,t){const[n,r]=i.useState();we((()=>(p()&&r("button"),document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[qe("focus-guard")]:"",style:wt};return(0,C.jsx)("span",{...e,...a})})),Et=i.createContext(null),Tt=qe("portal");function It(e){void 0===e&&(e={});const{id:t,root:n}=e,r=ze(),o=Dt(),[s,l]=i.useState(null),c=i.useRef(null);return we((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{c.current=null}))}),[s]),we((()=>{if(!r)return;if(c.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Tt,""),e.appendChild(n),c.current=n,l(n)}),[t,r]),we((()=>{if(null===n)return;if(!r)return;if(c.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,a.vq)(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(Tt,""),e=i||e,e.appendChild(s),c.current=s,l(s)}),[t,n,r,o]),s}function xt(e){const{children:t,id:n,root:r,preserveTabOrder:a=!0}=e,o=It({id:n,root:r}),[s,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),h=null==s?void 0:s.modal,A=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&a&&!(!r&&!o);return i.useEffect((()=>{if(o&&a&&!h)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&_t(e)&&("focusin"===e.type?vt:bt)(o)}}),[o,a,h]),i.useEffect((()=>{o&&(A||vt(o))}),[A,o]),(0,C.jsxs)(Et.Provider,{value:i.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:p,portalNode:o,setFocusManagerState:l})),[a,o]),children:[m&&o&&(0,C.jsx)(St,{"data-type":"outside",ref:c,onFocus:e=>{if(_t(e,o)){var t;null==(t=d.current)||t.focus()}else{const e=yt()||(null==s?void 0:s.domReference);null==e||e.focus()}}}),m&&o&&(0,C.jsx)("span",{"aria-owns":o.id,style:wt}),o&&U.createPortal(t,o),m&&o&&(0,C.jsx)(St,{"data-type":"outside",ref:u,onFocus:e=>{if(_t(e,o)){var t;null==(t=p.current)||t.focus()}else{const t=gt()||(null==s?void 0:s.domReference);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Dt=()=>i.useContext(Et),Mt="data-floating-ui-focusable";function Bt(e){return e?e.hasAttribute(Mt)?e:e.querySelector("["+Mt+"]")||e:null}const Rt=20;let Pt=[];function Ot(e){Pt=Pt.filter((e=>e.isConnected)),e&&"body"!==(0,a.mq)(e)&&(Pt.push(e),Pt.length>Rt&&(Pt=Pt.slice(-Rt)))}function Nt(){return Pt.slice().reverse().find((e=>e.isConnected))}const Lt=i.forwardRef((function(e,t){return(0,C.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:wt})}));function zt(e){const{context:t,children:n,disabled:r=!1,order:l=["content"],guards:c=!0,initialFocus:p=0,returnFocus:h=!0,restoreFocus:A=!1,modal:f=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:_=!0,outsideElementsInert:w=!1}=e,{open:S,onOpenChange:E,events:T,dataRef:I,elements:{domReference:x,floating:D}}=t,M=se((()=>{var e;return null==(e=I.current.floatingContext)?void 0:e.nodeId})),B="number"==typeof p&&p<0,R=v(x)&&B,P=dt(),O=!P||c,N=!O||P&&w,L=Ye(l),z=Ye(p),F=Ye(h),U=Qe(),j=Dt(),Q=i.useRef(null),H=i.useRef(null),W=i.useRef(!1),V=i.useRef(!1),q=i.useRef(-1),Y=null!=j,K=Bt(D),J=se((function(e){return void 0===e&&(e=K),e?G(e,mt()):[]})),Z=se((e=>{const t=J(e);return L.current.map((e=>x&&"reference"===e?x:K&&"floating"===e?K:t)).filter(Boolean).flat()}));i.useEffect((()=>{if(r)return;if(!f)return;function e(e){if("Tab"===e.key){s(K,o(m(K)))&&0===J().length&&!R&&b(e);const t=Z(),n=g(e);"reference"===L.current[0]&&n===x&&(b(e),e.shiftKey?rt(t[t.length-1]):rt(t[1])),"floating"===L.current[1]&&n===K&&e.shiftKey&&(b(e),rt(t[0]))}}const t=m(K);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,K,f,L,R,J,Z]),i.useEffect((()=>{if(!r&&D)return D.addEventListener("focusin",e),()=>{D.removeEventListener("focusin",e)};function e(e){const t=g(e),n=J().indexOf(t);-1!==n&&(q.current=n)}}),[r,D,J]),i.useEffect((()=>{if(!r&&_)return D&&(0,a.sb)(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),D.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),D.removeEventListener("focusout",t)}):void 0;function e(){V.current=!0,setTimeout((()=>{V.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=M(),i=!(s(x,t)||s(D,t)||s(t,D)||s(null==j?void 0:j.portalNode,t)||null!=t&&t.hasAttribute(qe("focus-guard"))||U&&(ot(U.nodesRef.current,n).find((e=>{var n,i;return s(null==(n=e.context)?void 0:n.elements.floating,t)||s(null==(i=e.context)?void 0:i.elements.domReference,t)}))||at(U.nodesRef.current,n).find((e=>{var n,i,r;return[null==(n=e.context)?void 0:n.elements.floating,Bt(null==(i=e.context)?void 0:i.elements.floating)].includes(t)||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(A&&i&&o(m(K))===m(K).body){(0,a.sb)(K)&&K.focus();const e=q.current,t=J(),n=t[e]||t[t.length-1]||K;(0,a.sb)(n)&&n.focus()}!R&&f||!t||!i||V.current||t===Nt()||(W.current=!0,E(!1,e,"focus-out"))}))}}),[r,x,D,K,f,U,j,E,_,A,J,R,M]);const X=i.useRef(null),$=i.useRef(null),ee=re([X,null==j?void 0:j.beforeInsideRef]),te=re([$,null==j?void 0:j.afterInsideRef]);function ne(e){return!r&&y&&f?(0,C.jsx)(Lt,{ref:"start"===e?Q:H,onClick:e=>E(!1,e.nativeEvent),children:"string"==typeof y?y:"Dismiss"}):null}i.useEffect((()=>{var e;if(r)return;if(!D)return;const t=Array.from((null==j||null==(e=j.portalNode)?void 0:e.querySelectorAll("["+qe("portal")+"]"))||[]),n=U&&!f?at(null==U?void 0:U.nodesRef.current,M()).map((e=>{var t;return null==(t=e.context)?void 0:t.elements.floating})):[],i=[D,...t,...n,Q.current,H.current,X.current,$.current,null==j?void 0:j.beforeOutsideRef.current,null==j?void 0:j.afterOutsideRef.current,L.current.includes("reference")||R?x:null].filter((e=>null!=e)),a=f||R?At(i,!N,N):At(i);return()=>{a()}}),[r,x,D,f,L,j,R,O,N,U,M]),we((()=>{if(r||!(0,a.sb)(K))return;const e=o(m(K));queueMicrotask((()=>{const t=Z(K),n=z.current,i=("number"==typeof n?t[n]:n.current)||K,r=s(K,e);B||r||!S||rt(i,{preventScroll:i===K})}))}),[r,S,K,B,Z,z]),we((()=>{if(r||!K)return;let e=!1;const t=m(K),n=o(t);let i=I.current.openEvent;function l(t){let{open:n,reason:r,event:a,nested:o}=t;n&&(i=a),"escape-key"===r&&x&&Ot(x),["hover","safe-polygon"].includes(r)&&"mouseleave"===a.type&&(W.current=!0),"outside-press"===r&&(o?(W.current=!1,e=!0):W.current=!(u(a)||d(a)))}Ot(n),T.on("openchange",l);const c=t.createElement("span");return c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),Object.assign(c.style,wt),Y&&x&&x.insertAdjacentElement("afterend",c),()=>{T.off("openchange",l);const n=o(t),r=s(D,n)||U&&ot(U.nodesRef.current,M()).some((e=>{var t;return s(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||i&&["click","mousedown"].includes(i.type))&&x&&Ot(x);const u="boolean"==typeof F.current?Nt()||c:F.current.current||c;queueMicrotask((()=>{const i=function(e){const t=mt();return k(e,t)?e:G(e,t)[0]||e}(u);F.current&&!W.current&&(0,a.sb)(i)&&(i===n||n===t.body||r)&&i.focus({preventScroll:e}),c.remove()}))}}),[r,D,K,F,I,T,U,Y,x,M]),i.useEffect((()=>{queueMicrotask((()=>{W.current=!1}))}),[r]),we((()=>{if(!r&&j)return j.setFocusManagerState({modal:f,closeOnFocusOut:_,open:S,onOpenChange:E,domReference:x}),()=>{j.setFocusManagerState(null)}}),[r,j,f,S,E,_,x]),we((()=>{if(r)return;if(!K)return;if("function"!=typeof MutationObserver)return;if(B)return;const e=()=>{const e=K.getAttribute("tabindex"),t=J(),n=o(m(D)),i=t.indexOf(n);-1!==i&&(q.current=i),L.current.includes("floating")||n!==x&&0===t.length?"0"!==e&&K.setAttribute("tabindex","0"):"-1"!==e&&K.setAttribute("tabindex","-1")};e();const t=ne