-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskpane.js
More file actions
3 lines (3 loc) · 397 KB
/
taskpane.js
File metadata and controls
3 lines (3 loc) · 397 KB
1
2
3
/*! For license information please see taskpane.js.LICENSE.txt */
"use strict";(self.webpackChunkOdoo_Addin=self.webpackChunkOdoo_Addin||[]).push([[926],{5338:function(e,t,r){var o=r(40961);t.H=o.createRoot,o.hydrateRoot},7463:function(e,t){function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(!(0<i(n,t)))break e;e[o]=t,e[r]=n,r=o}}function o(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,a=n>>>1;o<a;){var s=2*(o+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,r))c<n&&0>i(u,l)?(e[o]=u,e[c]=r,o=c):(e[o]=l,e[s]=r,o=s);else{if(!(c<n&&0>i(u,r)))break e;e[o]=u,e[c]=r,o=c}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=o(u);null!==t;){if(null===t.callback)n(u);else{if(!(t.startTime<=e))break;n(u),t.sortIndex=t.expirationTime,r(c,t)}t=o(u)}}function k(e){if(v=!1,w(e),!m)if(null!==o(c))m=!0,R(x);else{var t=o(u);null!==t&&z(k,t.startTime-e)}}function x(e,r){m=!1,v&&(v=!1,b(T),T=-1),p=!0;var i=h;try{for(w(r),f=o(c);null!==f&&(!(f.expirationTime>r)||e&&!N());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?f.callback=s:f===o(c)&&n(c),w(r)}else n(c);f=o(c)}if(null!==f)var l=!0;else{var d=o(u);null!==d&&z(k,d.startTime-r),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,C=null,T=-1,S=5,B=-1;function N(){return!(t.unstable_now()-B<S)}function O(){if(null!==C){var e=t.unstable_now();B=e;var r=!0;try{r=C(!0,e)}finally{r?_():(E=!1,C=null)}}else E=!1}if("function"==typeof y)_=function(){y(O)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,P=j.port2;j.port1.onmessage=O,_=function(){P.postMessage(null)}}else _=function(){g(O,0)};function R(e){C=e,E||(E=!0,_())}function z(e,r){T=g(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,R(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,n,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:n,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,r(u,e),null===o(c)&&e===o(u)&&(v?(b(T),T=-1):v=!0,z(k,i-a))):(e.sortIndex=s,r(c,e),m||p||(m=!0,R(x))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},19888:function(e,t,r){e.exports=r(58493)},21020:function(e,t,r){var o=r(96540),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,i={},c=null,u=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},22799:function(e,t){if("function"==typeof Symbol&&Symbol.for){var r=Symbol.for;r("react.element"),r("react.portal"),r("react.fragment"),r("react.strict_mode"),r("react.profiler"),r("react.provider"),r("react.context"),r("react.forward_ref"),r("react.suspense"),r("react.suspense_list"),r("react.memo"),r("react.lazy"),r("react.block"),r("react.server.block"),r("react.fundamental"),r("react.debug_trace_mode"),r("react.legacy_hidden")}},36451:function(e,t,r){const o="#242424",n="#424242",i="#616161",a="#bdbdbd",s="#e0e0e0",l="#e6e6e6",c="#ebebeb",u="#f0f0f0",d="#f5f5f5",f="#fafafa",h="rgba(255, 255, 255, 0.4)",p="rgba(255, 255, 255, 0.5)",m="rgba(0, 0, 0, 0.05)",v="rgba(0, 0, 0, 0.1)",g="#ffffff",b={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},y={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},w={red:{shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},green:y,darkOrange:{shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},yellow:{shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},berry:{shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lightGreen:{shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},marigold:{shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"}},k={darkRed:{shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry:b,pumpkin:{shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},peach:{shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},gold:{shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass:{shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown:{shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest:{shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam:{shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},darkGreen:{shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal:{shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal:{shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel:{shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue:{shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue:{shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower:{shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy:{shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender:{shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple:{shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape:{shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},lilac:{shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink:{shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta:{shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum:{shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige:{shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink:{shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum:{shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor:{shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"}},x={cranberry:b,green:y,orange:{shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"}},_={success:"green",warning:"orange",danger:"cranberry"},E=["red","green","darkOrange","yellow","berry","lightGreen","marigold"].reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorPalette${r}Background1`]:w[t].tint60,[`colorPalette${r}Background2`]:w[t].tint40,[`colorPalette${r}Background3`]:w[t].primary,[`colorPalette${r}Foreground1`]:w[t].shade10,[`colorPalette${r}Foreground2`]:w[t].shade30,[`colorPalette${r}Foreground3`]:w[t].primary,[`colorPalette${r}BorderActive`]:w[t].primary,[`colorPalette${r}Border1`]:w[t].tint40,[`colorPalette${r}Border2`]:w[t].primary};return Object.assign(e,o)},{});E.colorPaletteYellowForeground1=w.yellow.shade30,E.colorPaletteRedForegroundInverted=w.red.tint20,E.colorPaletteGreenForegroundInverted=w.green.tint20,E.colorPaletteYellowForegroundInverted=w.yellow.tint40;const C=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"].reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorPalette${r}Background2`]:k[t].tint40,[`colorPalette${r}Foreground2`]:k[t].shade30,[`colorPalette${r}BorderActive`]:k[t].primary};return Object.assign(e,o)},{}),T={...E,...C},S=Object.entries(_).reduce((e,[t,r])=>{const o=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorStatus${o}Background1`]:x[r].tint60,[`colorStatus${o}Background2`]:x[r].tint40,[`colorStatus${o}Background3`]:x[r].primary,[`colorStatus${o}Foreground1`]:x[r].shade10,[`colorStatus${o}Foreground2`]:x[r].shade30,[`colorStatus${o}Foreground3`]:x[r].primary,[`colorStatus${o}ForegroundInverted`]:x[r].tint30,[`colorStatus${o}BorderActive`]:x[r].primary,[`colorStatus${o}Border1`]:x[r].tint40,[`colorStatus${o}Border2`]:x[r].primary};return Object.assign(e,n)},{});S.colorStatusDangerBackground3Hover=x[_.danger].shade10,S.colorStatusDangerBackground3Pressed=x[_.danger].shade20,S.colorStatusWarningForeground1=x[_.warning].shade20,S.colorStatusWarningForeground3=x[_.warning].shade20,S.colorStatusWarningBorder2=x[_.warning].shade20;const B={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},N={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},O={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},j={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},P={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},R={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"};function z(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const D={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},F={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},A="10px",I="12px",q="16px",L="20px",M="24px",H="32px",W={spacingHorizontalNone:"0",spacingHorizontalXXS:"2px",spacingHorizontalXS:"4px",spacingHorizontalSNudge:"6px",spacingHorizontalS:"8px",spacingHorizontalMNudge:A,spacingHorizontalM:I,spacingHorizontalL:q,spacingHorizontalXL:L,spacingHorizontalXXL:M,spacingHorizontalXXXL:H},V={spacingVerticalNone:"0",spacingVerticalXXS:"2px",spacingVerticalXS:"4px",spacingVerticalSNudge:"6px",spacingVerticalS:"8px",spacingVerticalMNudge:A,spacingVerticalM:I,spacingVerticalL:q,spacingVerticalXL:L,spacingVerticalXXL:M,spacingVerticalXXXL:H};var $=r(96540),U=r.t($,2);const G=Symbol.for("fui.slotRenderFunction"),K=Symbol.for("fui.slotElementType"),Z=Symbol.for("fui.slotClassNameProp");function X(e){return Boolean(null==e?void 0:e.hasOwnProperty(K))}function J(e,t){return function(r,o,n,i,a){return X(o)?t(function(e,t){return{...t,[K]:e}}(r,o),null,n,i,a):X(r)?t(r,o,n,i,a):e(r,o,n,i,a)}}function Q(e){const{as:t,[Z]:r,[K]:o,[G]:n,...i}=e,a=i,s="string"==typeof o&&null!=t?t:o;return"string"!=typeof s&&t&&(a.as=t),{elementType:s,props:a,renderFunction:n}}r(44363);var Y=r(74848);const ee=r.t(Y,2),te=J(ee.jsx,(e,t,r)=>{const{elementType:o,renderFunction:n,props:i}=Q(e),a={...i,...t};return n?ee.jsx($.Fragment,{children:n(o,a)},r):ee.jsx(o,a,r)}),re=J(ee.jsxs,(e,t,r)=>{const{elementType:o,renderFunction:n,props:i}=Q(e),a={...i,...t};return n?ee.jsx($.Fragment,{children:n(o,{...a,children:ee.jsxs($.Fragment,{children:a.children},void 0)})},r):ee.jsxs(o,a,r)});function oe(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}const ne=$.createContext("ltr"),ie=({children:e,dir:t})=>$.createElement(ne.Provider,{value:t},e);function ae(){return $.useContext(ne)}const se=$.createContext(void 0),le={targetDocument:"object"==typeof document?document:void 0,dir:"ltr"},ce=se.Provider;function ue(){var e;return null!==(e=$.useContext(se))&&void 0!==e?e:le}const de=$.createContext(void 0),fe=de.Provider,he=$.createContext(void 0),pe=he.Provider,me=$.createContext(void 0),ve=()=>{},ge=me.Provider,be=e=>{var t,r;return null!==(r=null===(t=$.useContext(me))||void 0===t?void 0:t[e])&&void 0!==r?r:ve},ye=$.createContext(void 0).Provider,we=$.createContext(void 0),ke=we.Provider;function xe(){var e;return null!==(e=$.useContext(we))&&void 0!==e?e:{}}const _e=$.createContext(void 0),Ee={},Ce=_e.Provider;function Te(e){return Array.isArray(e)?e:[e]}const Se="undefined"==typeof window?r.g:window,Be="@griffel/";function Ne(e,t){return Se[Symbol.for(Be+e)]||(Se[Symbol.for(Be+e)]=t),Se[Symbol.for(Be+e)]}const Oe=Ne("DEFINITION_LOOKUP_TABLE",{}),je="data-make-styles-bucket",Pe={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},Re="DO_NOT_USE_DIRECTLY: @griffel/reset-value";const ze=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,r)=>(e[t]=r,e),{});function De(e,t,r,o,n={}){var i,a;const s="m"===e,l=null!==(i=n.m)&&void 0!==i?i:"0",c=null!==(a=n.p)&&void 0!==a?a:0,u=function(e,t,r){return("m"===e?e+t:e)+r}(e,l,c);if(!o.stylesheets[u]){const i=t&&t.createElement("style"),a=function(e,t,r,o){const n=[];if(o[je]=t,o["data-priority"]=String(r),e)for(const t in o)e.setAttribute(t,o[t]);return{elementAttributes:o,insertRule:function(t){return(null==e?void 0:e.sheet)?e.sheet.insertRule(t,e.sheet.cssRules.length):n.push(t)},element:e,bucketName:t,cssRules(){return(null==e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map(e=>e.cssText):n}}}(i,e,c,Object.assign({},o.styleElementAttributes,s&&{media:l}));o.stylesheets[u]=a,(null==t?void 0:t.head)&&i&&t.head.insertBefore(i,function(e,t,r,o,n={}){var i,a;const s=ze[r],l=null!==(i=n.m)&&void 0!==i?i:"",c=null!==(a=n.p)&&void 0!==a?a:0;let u=e=>s-ze[e.getAttribute(je)],d=e.head.querySelectorAll(`[${je}]`);if("m"===r){const t=e.head.querySelectorAll(`[${je}="${r}"]`);t.length&&(d=t,u=e=>o.compareMediaQueries(l,e.media))}const f=e=>function(e,t,r){var o,n;return t+(null!==(o=r.m)&&void 0!==o?o:"")===e.getAttribute(je)+(null!==(n=e.media)&&void 0!==n?n:"")}(e,r,n)?c-Number(e.getAttribute("data-priority")):u(e),h=d.length;let p=h-1;for(;p>=0;){const e=d.item(p);if(f(e)>0)return e.nextSibling;p--}return h>0?d.item(0):t?t.nextSibling:null}(t,r,e,o,n))}return o.stylesheets[u]}function Fe(e,t){try{e.insertRule(t)}catch(e){}}let Ae=0;const Ie=(e,t)=>e<t?-1:e>t?1:0;function qe(e=("undefined"==typeof document?void 0:document),t={}){const{classNameHashSalt:r,unstable_filterCSSRule:o,insertionPoint:n,styleElementAttributes:i,compareMediaQueries:a=Ie}=t,s={classNameHashSalt:r,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:a,id:"d"+Ae++,insertCSSRules(t){for(const r in t){const i=t[r];for(let t=0,a=i.length;t<a;t++){const[a,l]=Te(i[t]),c=De(r,e,n||null,s,l);s.insertionCache[a]||(s.insertionCache[a]=r,o?o(a)&&Fe(c,a):Fe(c,a))}}}};return s}const Le=$.createContext(qe());function Me(){return $.useContext(Le)}function He(e,t){var r;const o=e;var n;return Boolean((null==o||null===(r=o.ownerDocument)||void 0===r?void 0:r.defaultView)&&o instanceof o.ownerDocument.defaultView[null!==(n=null==t?void 0:t.constructorName)&&void 0!==n?n:"HTMLElement"])}var We="undefined"!=typeof WeakRef,Ve=class{constructor(e){We&&"object"==typeof e?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let r;return this._weakRef?(r=null==(e=this._weakRef)?void 0:e.deref(),r||delete this._weakRef):(r=this._instance,(null==(t=null==r?void 0:r.isDisposed)?void 0:t.call(r))&&delete this._instance),r}},$e="keyborg:focusin",Ue="keyborg:focusout",Ge=!1;function Ke(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}var Ze=0,Xe=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=e=>{if(this._isMouseOrTouchUsedTimer)return;if(this.isNavigatingWithKeyboard)return;const t=e.detail;t.relatedTarget&&(t.isFocusedProgrammatically||void 0===t.isFocusedProgrammatically||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=e=>{0===e.buttons||0===e.clientX&&0===e.clientY&&0===e.screenX&&0===e.screenY||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const e=this._win;e&&(this._isMouseOrTouchUsedTimer&&e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=e.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=e=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(e)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(e)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++Ze,this._win=e;const r=e.document;if(t){const e=t.triggerKeys,r=t.dismissKeys;(null==e?void 0:e.length)&&(this._triggerKeys=new Set(e)),(null==r?void 0:r.length)&&(this._dismissKeys=new Set(r))}r.addEventListener($e,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener("touchstart",this._onMouseOrTouch,!0),r.addEventListener("touchend",this._onMouseOrTouch,!0),r.addEventListener("touchcancel",this._onMouseOrTouch,!0),function(e){const t=e;Ge||(Ge=function(e){const t=e.HTMLElement,r=t.prototype.focus;let o=!1;return t.prototype.focus=function(){o=!0},e.document.createElement("button").focus(),t.prototype.focus=r,o}(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=l;const o=new Set,n=e=>{const t=e.target;if(!t)return;const r=new CustomEvent(Ue,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:e}});t.dispatchEvent(r)},i=e=>{const t=e.target;if(!t)return;let r=e.composedPath()[0];const s=new Set;for(;r;)r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(s.add(r),r=r.host):r=r.parentNode;for(const e of o){const t=e.deref();t&&s.has(t)||(o.delete(e),t&&(t.removeEventListener("focusin",i,!0),t.removeEventListener("focusout",n,!0)))}a(t,e.relatedTarget||void 0)},a=(e,t,r)=>{var a;const l=e.shadowRoot;if(l){for(const e of o)if(e.deref()===l)return;return l.addEventListener("focusin",i,!0),l.addEventListener("focusout",n,!0),void o.add(new Ve(l))}const c={relatedTarget:t,originalEvent:r},u=new CustomEvent($e,{cancelable:!0,bubbles:!0,composed:!0,detail:c});u.details=c,(Ge||s.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=e===(null==(a=s.lastFocusedProgrammatically)?void 0:a.deref()),s.lastFocusedProgrammatically=void 0),e.dispatchEvent(u)},s=t.__keyborgData={focusInHandler:i,focusOutHandler:n,shadowTargets:o};function l(){const e=t.__keyborgData;return e&&(e.lastFocusedProgrammatically=new Ve(this)),r.apply(this,arguments)}t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);let c=t.document.activeElement;for(;c&&c.shadowRoot;)a(c),c=c.shadowRoot.activeElement;l.__keyborgNativeFocus=r}(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),function(e){const t=e,r=t.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=t.__keyborgData;if(n){t.document.removeEventListener("focusin",n.focusInHandler,!0),t.document.removeEventListener("focusout",n.focusOutHandler,!0);for(const e of n.shadowTargets){const t=e.deref();t&&(t.removeEventListener("focusin",n.focusInHandler,!0),t.removeEventListener("focusout",n.focusOutHandler,!0))}n.shadowTargets.clear(),delete t.__keyborgData}o&&(r.focus=o)}(e);const t=e.document;t.removeEventListener($e,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("touchstart",this._onMouseOrTouch,!0),t.removeEventListener("touchend",this._onMouseOrTouch,!0),t.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;const r=null==(t=null==(e=this._win)?void 0:e.__keyborg)?void 0:t.refs;if(r)for(const e of Object.keys(r))Je.update(r[e],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if("Tab"===e.key)return!0;const r=null==(t=this._win)?void 0:t.document.activeElement,o=!this._triggerKeys||this._triggerKeys.has(e.keyCode),n=r&&("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable);return o&&!n}_shouldDismissKeyboardNavigation(e){var t;return null==(t=this._dismissKeys)?void 0:t.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const r=e.document.activeElement;t&&r&&t===r&&(this.isNavigatingWithKeyboard=!1)},500)}}},Je=class e{constructor(e,t){this._cb=[],this._id="k"+ ++Ze,this._win=e;const r=e.__keyborg;r?(this._core=r.core,r.refs[this._id]=this):(this._core=new Xe(e,t),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new e(t,r)}static dispose(e){e.dispose()}static update(e,t){e._cb.forEach(e=>e(t))}dispose(){var e;const t=null==(e=this._win)?void 0:e.__keyborg;(null==t?void 0:t.refs[this._id])&&(delete t.refs[this._id],0===Object.keys(t.refs).length&&(t.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var e;return!!(null==(e=this._core)?void 0:e.isNavigatingWithKeyboard)}subscribe(e){this._cb.push(e)}unsubscribe(e){const t=this._cb.indexOf(e);t>=0&&this._cb.splice(t,1)}setVal(e){this._core&&(this._core.isNavigatingWithKeyboard=e)}};function Qe(e,t){return Je.create(e,t)}function Ye(e){Je.dispose(e)}const et="data-fui-focus-visible";function tt(e,t){if(rt(e))return()=>{};const r={current:void 0},o=Qe(t);function n(e){o.isNavigatingWithKeyboard()&&He(e)&&(r.current=e,e.setAttribute(et,""))}function i(){r.current&&(r.current.removeAttribute(et),r.current=void 0)}o.subscribe(e=>{e?n(t.document.activeElement):i()});const a=e=>{i(),n(e.composedPath()[0])},s=t=>{(!t.relatedTarget||He(t.relatedTarget)&&!e.contains(t.relatedTarget))&&i()};return e.addEventListener($e,a),e.addEventListener("focusout",s),e.focusVisible=!0,e.contains(t.document.activeElement)&&n(t.document.activeElement),()=>{i(),e.removeEventListener($e,a),e.removeEventListener("focusout",s),e.focusVisible=void 0,Ye(o)}}function rt(e){return!!e&&(!!e.focusVisible||rt(null==e?void 0:e.parentElement))}function ot(e={}){const t=ue(),r=$.useRef(null);var o;const n=null!==(o=e.targetDocument)&&void 0!==o?o:t.targetDocument;return $.useEffect(()=>{if((null==n?void 0:n.defaultView)&&r.current)return tt(r.current,n.defaultView)},[r,n]),r}function nt(e,t){const{defaultProps:r,elementType:o}=t,n=function(e){return"string"==typeof e||"number"==typeof e||at(e)||$.isValidElement(e)?{children:e}:e}(e),i={...r,...n,[K]:o,[Z]:null==n?void 0:n.className};return n&&"function"==typeof n.children&&(i[G]=n.children,i.children=null==r?void 0:r.children),i}function it(e,t){if(null!==e&&(void 0!==e||t.renderByDefault))return nt(e,t)}const at=e=>"object"==typeof e&&null!==e&&Symbol.iterator in e,st=(...e)=>{const t={};for(const r of e){const e=Array.isArray(r)?r:Object.keys(r);for(const r of e)t[r]=1}return t},lt=st(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),ct=st(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),ut=st(["itemID","itemProp","itemRef","itemScope","itemType"]),dt=st(ct,lt,ut),ft=st(dt,["form"]),ht=st(dt,["height","loop","muted","preload","src","width"]),pt=st(ht,["poster"]),mt=st(dt,["start"]),vt=st(dt,["value"]),gt=st(dt,["download","href","hrefLang","media","rel","target","type"]),bt=st(dt,["dateTime"]),yt=st(dt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),wt={label:ft,audio:ht,video:pt,ol:mt,li:vt,a:gt,button:yt,input:st(yt,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:st(yt,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:st(yt,["form","multiple","required"]),option:st(dt,["selected","value"]),table:st(dt,["cellPadding","cellSpacing"]),tr:dt,th:st(dt,["colSpan","rowSpan","scope"]),td:st(dt,["colSpan","headers","rowSpan","scope"]),colGroup:st(dt,["span"]),col:st(dt,["span"]),fieldset:st(dt,["disabled","form"]),form:st(dt,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:st(dt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:st(dt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),time:bt,dialog:st(dt,["open","onCancel","onClose"])};function kt(e,t,r){const o=e&&wt[e]||dt;return o.as=1,function(e,t,r){const o=Array.isArray(t),n={},i=Object.keys(e);for(const a of i)!(!o&&t[a]||o&&t.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||r&&-1!==(null==r?void 0:r.indexOf(a))||(n[a]=e[a]);return n}(t,o,r)}const xt=(e,t,r)=>{var o;return kt(null!==(o=t.as)&&void 0!==o?o:e,t,r)};function _t(...e){const t=$.useCallback(r=>{t.current=r;for(const t of e)"function"==typeof t?t(r):t&&(t.current=r)},[...e]);return t}const Et=oe()?$.useLayoutEffect:$.useEffect,Ct={current:0},Tt=$.createContext(void 0);const St=$.createContext(void 0);function Bt(e="fui-",t){const r=null!==(i=$.useContext(Tt))&&void 0!==i?i:Ct,o=$.useContext(St)||"",n=U.useId;var i;if(n){const r=n(),i=$.useMemo(()=>r.replace(/:/g,""),[r]);return t||`${o}${e}${i}`}return $.useMemo(()=>t||`${o}${e}${++r.current}`,[o,e,t,r])}St.Provider;const Nt=()=>{const e={};return function(t,r){void 0===e[t.id]&&(t.insertCSSRules(r),e[t.id]=!0)}};function Ot(e){for(var t,r=0,o=0,n=e.length;n>=4;++o,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}function jt(e,t,r=[]){return"___"+function(e){const t=e.length;if(7===t)return e;for(let r=t;r<7;r++)e+="0";return e}(Ot(e+t))}function Pt(e,t){let r="",o="";for(const n in e){const i=e[n];if(0===i){o+=n+" ";continue}const a=Array.isArray(i),s="rtl"===t?(a?i[1]:i)+" ":(a?i[0]:i)+" ";r+=s,o+=s}return[r.slice(0,-1),o.slice(0,-1)]}function Rt(e,t){const r={};for(const o in e){const[n,i]=Pt(e[o],t);if(""===i){r[o]="";continue}const a=jt(i,t),s=a+(""===n?"":" "+n);Oe[a]=[e[o],t],r[o]=s}return r}function zt(e,t,r=Nt){const o=r();let n=null,i=null;return function(r){const{dir:a,renderer:s}=r,l="ltr"===a;return l?null===n&&(n=Rt(e,a)):null===i&&(i=Rt(e,a)),o(s,t),l?n:i}}const Dt={};function Ft(){let e=null,t="",r="";const o=new Array(arguments.length);for(let e=0;e<arguments.length;e++){const n=arguments[e];if("string"==typeof n&&""!==n){const i=n.indexOf("___");if(-1===i)t+=n+" ";else{const a=n.substr(i,10);i>0&&(t+=n.slice(0,i)),r+=a,o[e]=a}}}if(""===r)return t.slice(0,-1);const n=Dt[r];if(void 0!==n)return t+n;const i=[];for(let t=0;t<arguments.length;t++){const r=o[t];if(r){const t=Oe[r];t&&(i.push(t[0]),e=t[1])}}const a=Object.assign.apply(Object,[{}].concat(i)),[s,l]=Pt(a,e),c=jt(l,e,o),u=c+" "+s;return Dt[r]=u,Oe[c]=[a,e],t+u}const At="fui-FluentProvider",It=zt({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),qt=U.useInsertionEffect?U.useInsertionEffect:Et,Lt={},Mt={},Ht=(e,t)=>{const r=ue(),o=$.useContext(de),n=xe(),i=$.useContext(me)||Lt,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=e,f=Wt(o,u),h=Wt(n,d),p=Wt(i,s),m=Me();var v;const{styleTagId:g,rule:b}=(e=>{const{targetDocument:t,theme:r,rendererAttributes:o}=e,n=$.useRef(void 0),i=Bt(At),a=o,s=$.useMemo(()=>function(e,t){return t?`${e} { ${Object.keys(t).reduce((e,r)=>`${e}--${r}: ${t[r]}; `,"")} }`:`${e} {}`}(`.${i}`,r),[r,i]);return function(e,t){$.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}(t,i),qt(()=>{const e=null==t?void 0:t.getElementById(i);return e?n.current=e:(n.current=((e,t)=>{if(!(null==e?void 0:e.head))return;const r=e.createElement("style");return Object.keys(t).forEach(e=>{r.setAttribute(e,t[e])}),e.head.appendChild(r),r})(t,{...a,id:i}),n.current&&((e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))})(n.current,s)),()=>{var e;null===(e=n.current)||void 0===e||e.remove()}},[i,t,s,a]),{styleTagId:i,rule:s}})({theme:f,targetDocument:c,rendererAttributes:null!==(v=m.styleElementAttributes)&&void 0!==v?v:Mt});return{applyStylesToPortals:a,customStyleHooks_unstable:p,dir:l,targetDocument:c,theme:f,overrides_unstable:h,themeClassName:g,components:{root:"div"},root:nt(xt("div",{...e,dir:l,ref:_t(t,ot({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:b,attributes:{...m.styleElementAttributes,id:g}}}};function Wt(e,t){return e&&t?{...e,...t}:e||t}const Vt=$.forwardRef((e,t)=>{const r=Ht(e,t);(e=>{const t=Me(),r=It({dir:e.dir,renderer:t});e.root.className=Ft(At,e.themeClassName,r.root,e.root.className)})(r);const o=function(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:l}=e,c=$.useMemo(()=>({dir:o,targetDocument:i}),[o,i]),[u]=$.useState(()=>({})),d=$.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:o,iconDirection:d,tooltip:u,theme:a,themeClassName:t?n.className:s}}(r);return((e,t)=>te(ce,{value:t.provider,children:te(fe,{value:t.theme,children:te(pe,{value:t.themeClassName,children:te(ge,{value:t.customStyleHooks_unstable,children:te(ye,{value:t.tooltip,children:te(ie,{dir:t.textDirection,children:te(Ce,{value:t.iconDirection,children:te(ke,{value:t.overrides_unstable,children:re(e.root,{children:[oe()?null:te("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})}))(r,o)});Vt.displayName="FluentProvider";var $t=r(5338);function Ut(e){return e.reduce(function(e,t){var r=t[0],o=t[1];return e[r]=o,e[o]=r,e},{})}function Gt(e){return"number"==typeof e}function Kt(e,t){return-1!==e.indexOf(t)}function Zt(e,t,r,o){return t+(n=r,0===parseFloat(n)?n:"-"===n[0]?n.slice(1):"-"+n)+o;var n}function Xt(e){return e.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,t){var r=e.list,o=e.state,n=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return o.parensDepth>0?r[r.length-1]=r[r.length-1]+" "+t:r.push(t),o.parensDepth+=n-i,{list:r,state:o}},{list:[],state:{parensDepth:0}}).list}function Jt(e){var t=Xt(e);if(t.length<=3||t.length>4)return e;var r=t[0],o=t[1],n=t[2];return[r,t[3],n,o].join(" ")}var Qt={padding:function(e){var t=e.value;return Gt(t)?t:Jt(t)},textShadow:function(e){return function(e){for(var t=[],r=0,o=0,n=!1;o<e.length;)n||","!==e[o]?"("===e[o]?(n=!0,o++):")"===e[o]?(n=!1,o++):o++:(t.push(e.substring(r,o).trim()),r=++o);return r!=o&&t.push(e.substring(r,o+1)),t}(e.value).map(function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,function(e,t,r,o){return"0"===o?e:t+(""===r?"-":"")+o})}).join(",")},borderColor:function(e){return Jt(e.value)},borderRadius:function(e){var t=e.value;if(Gt(t))return t;if(Kt(t,"/")){var r=t.split("/"),o=r[0],n=r[1];return Qt.borderRadius({value:o.trim()})+" / "+Qt.borderRadius({value:n.trim()})}var i=Xt(t);switch(i.length){case 2:return i.reverse().join(" ");case 4:var a=i[0],s=i[1],l=i[2];return[s,a,i[3],l].join(" ");default:return t}},background:function(e){var t=e.value,r=e.valuesToConvert,o=e.isRtl,n=e.bgImgDirectionRegex,i=e.bgPosDirectionRegex;if(Gt(t))return t;var a=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(a,Qt.backgroundPosition({value:a,valuesToConvert:r,isRtl:o,bgPosDirectionRegex:i})),Qt.backgroundImage({value:t,valuesToConvert:r,bgImgDirectionRegex:n})},backgroundImage:function(e){var t=e.value,r=e.valuesToConvert,o=e.bgImgDirectionRegex;return Kt(t,"url(")||Kt(t,"linear-gradient(")?t.replace(o,function(e,t,o){return e.replace(o,r[o])}):t},backgroundPosition:function(e){var t=e.value,r=e.valuesToConvert,o=e.isRtl,n=e.bgPosDirectionRegex;return t.replace(o?/^((-|\d|\.)+%)/:null,function(e,t){return function(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(r)+"%"}return e}(t)}).replace(n,function(e){return r[e]})},backgroundPositionX:function(e){var t=e.value,r=e.valuesToConvert,o=e.isRtl,n=e.bgPosDirectionRegex;return Gt(t)?t:Qt.backgroundPosition({value:t,valuesToConvert:r,isRtl:o,bgPosDirectionRegex:n})},transition:function(e){var t=e.value,r=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){var t=e.split(" ");return t[0]=r[t[0]]||t[0],t.join(" ")}).join(", ")},transitionProperty:function(e){var t=e.value,r=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){return r[e]||e}).join(", ")},transform:function(e){var t=e.value,r="[^\\u0020-\\u007e]",o="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|"+r+"|"+o+")(?:[_a-z0-9-]|"+r+"|"+o+")*)?)|(?:inherit|auto))",i=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),s=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi"),l=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+n+"(\\s*\\))","gi");return t.replace(i,Zt).replace(a,Zt).replace(s,Zt).replace(l,Zt)}};Qt.objectPosition=Qt.backgroundPosition,Qt.margin=Qt.padding,Qt.borderWidth=Qt.padding,Qt.boxShadow=Qt.textShadow,Qt.webkitBoxShadow=Qt.boxShadow,Qt.mozBoxShadow=Qt.boxShadow,Qt.WebkitBoxShadow=Qt.boxShadow,Qt.MozBoxShadow=Qt.boxShadow,Qt.borderStyle=Qt.borderColor,Qt.webkitTransform=Qt.transform,Qt.mozTransform=Qt.transform,Qt.WebkitTransform=Qt.transform,Qt.MozTransform=Qt.transform,Qt.transformOrigin=Qt.backgroundPosition,Qt.webkitTransformOrigin=Qt.transformOrigin,Qt.mozTransformOrigin=Qt.transformOrigin,Qt.WebkitTransformOrigin=Qt.transformOrigin,Qt.MozTransformOrigin=Qt.transformOrigin,Qt.webkitTransition=Qt.transition,Qt.mozTransition=Qt.transition,Qt.WebkitTransition=Qt.transition,Qt.MozTransition=Qt.transition,Qt.webkitTransitionProperty=Qt.transitionProperty,Qt.mozTransitionProperty=Qt.transitionProperty,Qt.WebkitTransitionProperty=Qt.transitionProperty,Qt.MozTransitionProperty=Qt.transitionProperty,Qt["text-shadow"]=Qt.textShadow,Qt["border-color"]=Qt.borderColor,Qt["border-radius"]=Qt.borderRadius,Qt["background-image"]=Qt.backgroundImage,Qt["background-position"]=Qt.backgroundPosition,Qt["background-position-x"]=Qt.backgroundPositionX,Qt["object-position"]=Qt.objectPosition,Qt["border-width"]=Qt.padding,Qt["box-shadow"]=Qt.textShadow,Qt["-webkit-box-shadow"]=Qt.textShadow,Qt["-moz-box-shadow"]=Qt.textShadow,Qt["border-style"]=Qt.borderColor,Qt["-webkit-transform"]=Qt.transform,Qt["-moz-transform"]=Qt.transform,Qt["transform-origin"]=Qt.transformOrigin,Qt["-webkit-transform-origin"]=Qt.transformOrigin,Qt["-moz-transform-origin"]=Qt.transformOrigin,Qt["-webkit-transition"]=Qt.transition,Qt["-moz-transition"]=Qt.transition,Qt["transition-property"]=Qt.transitionProperty,Qt["-webkit-transition-property"]=Qt.transitionProperty,Qt["-moz-transition-property"]=Qt.transitionProperty;var Yt=Ut([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),er=["content"],tr=Ut([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),rr=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),or=new RegExp("(left)|(right)");function nr(e){return Object.keys(e).reduce(function(t,r){var o=e[r];if("string"==typeof o&&(o=o.trim()),Kt(er,r))return t[r]=o,t;var n=ir(r,o),i=n.key,a=n.value;return t[i]=a,t},Array.isArray(e)?[]:{})}function ir(e,t){var r,o=/\/\*\s?@noflip\s?\*\//.test(t),n=o?e:Yt[r=e]||r,i=o?t:function(e,t){if(!function(e){return!("boolean"==typeof e||function(e){return null==e}(e))}(t))return t;if((r=t)&&"object"==typeof r)return nr(t);var r,o,n=Gt(t),i=function(e){return"function"==typeof e}(t),a=n||i?t:t.replace(/ !important.*?$/,""),s=!n&&a.length!==t.length,l=Qt[e];return o=l?l({value:a,valuesToConvert:tr,propertiesToConvert:Yt,isRtl:!0,bgImgDirectionRegex:rr,bgPosDirectionRegex:or}):tr[a]||a,s?o+" !important":o}(n,t);return{key:n,value:i}}const ar=/[A-Z]/g,sr=/^ms-/,lr={};function cr(e){return"-"+e.toLowerCase()}function ur(e){if(Object.prototype.hasOwnProperty.call(lr,e))return lr[e];if("--"===e.substr(0,2))return e;const t=e.replace(ar,cr);return lr[e]=sr.test(t)?"-"+t:t}function dr(e){return"&"===e.charAt(0)?e.slice(1):e}var fr="-moz-",hr="-webkit-",pr="comm",mr="rule",vr="decl",gr="@layer",br=Math.abs,yr=String.fromCharCode,wr=Object.assign;function kr(e){return e.trim()}function xr(e,t){return(e=t.exec(e))?e[0]:e}function _r(e,t,r){return e.replace(t,r)}function Er(e,t,r){return e.indexOf(t,r)}function Cr(e,t){return 0|e.charCodeAt(t)}function Tr(e,t,r){return e.slice(t,r)}function Sr(e){return e.length}function Br(e){return e.length}function Nr(e,t){return t.push(e),e}function Or(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function jr(e,t,r,o){switch(e.type){case gr:if(e.children.length)break;case"@import":case"@namespace":case vr:return e.return=e.return||e.value;case pr:return"";case"@keyframes":return e.return=e.value+"{"+Or(e.children,o)+"}";case mr:if(!Sr(e.value=e.props.join(",")))return""}return Sr(r=Or(e.children,o))?e.return=e.value+"{"+r+"}":""}var Pr=1,Rr=1,zr=0,Dr=0,Fr=0,Ar="";function Ir(e,t,r,o,n,i,a,s){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:Pr,column:Rr,length:a,return:"",siblings:s}}function qr(e,t){return wr(Ir("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Lr(){return Fr=Dr>0?Cr(Ar,--Dr):0,Rr--,10===Fr&&(Rr=1,Pr--),Fr}function Mr(){return Fr=Dr<zr?Cr(Ar,Dr++):0,Rr++,10===Fr&&(Rr=1,Pr++),Fr}function Hr(){return Cr(Ar,Dr)}function Wr(){return Dr}function Vr(e,t){return Tr(Ar,e,t)}function $r(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 Ur(e){return Pr=Rr=1,zr=Sr(Ar=e),Dr=0,[]}function Gr(e){return Ar="",e}function Kr(e){return kr(Vr(Dr-1,Jr(91===e?e+2:40===e?e+1:e)))}function Zr(e){for(;(Fr=Hr())&&Fr<33;)Mr();return $r(e)>2||$r(Fr)>3?"":" "}function Xr(e,t){for(;--t&&Mr()&&!(Fr<48||Fr>102||Fr>57&&Fr<65||Fr>70&&Fr<97););return Vr(e,Wr()+(t<6&&32==Hr()&&32==Mr()))}function Jr(e){for(;Mr();)switch(Fr){case e:return Dr;case 34:case 39:34!==e&&39!==e&&Jr(Fr);break;case 40:41===e&&Jr(e);break;case 92:Mr()}return Dr}function Qr(e,t){for(;Mr()&&e+Fr!==57&&(e+Fr!==84||47!==Hr()););return"/*"+Vr(t,Dr-1)+"*"+yr(47===e?e:Mr())}function Yr(e){for(;!$r(Hr());)Mr();return Vr(e,Dr)}function eo(e){return Gr(to("",null,null,null,[""],e=Ur(e),0,[0],e))}function to(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,v=1,g=1,b=0,y="",w=n,k=i,x=o,_=y;v;)switch(p=b,b=Mr()){case 40:if(108!=p&&58==Cr(_,d-1)){-1!=Er(_+=_r(Kr(b),"&","&\f"),"&\f",br(c?s[c-1]:0))&&(g=-1);break}case 34:case 39:case 91:_+=Kr(b);break;case 9:case 10:case 13:case 32:_+=Zr(p);break;case 92:_+=Xr(Wr()-1,7);continue;case 47:switch(Hr()){case 42:case 47:Nr(oo(Qr(Mr(),Wr()),t,r,l),l),5!=$r(p||1)&&5!=$r(Hr()||1)||!Sr(_)||" "===Tr(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*m:s[c++]=Sr(_)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==g&&(_=_r(_,/\f/g,"")),h>0&&(Sr(_)-d||0===m&&47===p)&&Nr(h>32?no(_+";",o,r,d-1,l):no(_r(_," ","")+";",o,r,d-2,l),l);break;case 59:_+=";";default:if(Nr(x=ro(_,t,r,c,u,n,s,y,w=[],k=[],d,i),i),123===b)if(0===u)to(_,t,x,x,w,i,d,s,k);else{switch(f){case 99:if(110===Cr(_,3))break;case 108:if(97===Cr(_,2))break;default:u=0;case 100:case 109:case 115:}u?to(e,x,x,o&&Nr(ro(e,x,x,0,0,n,s,y,n,w=[],d,k),k),n,k,d,s,o?w:k):to(_,x,x,x,[""],k,0,s,k)}}c=u=h=0,m=g=1,y=_="",d=a;break;case 58:d=1+Sr(_),h=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Lr())continue;switch(_+=yr(b),b*m){case 38:g=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Sr(_)-1)*g,g=1;break;case 64:45===Hr()&&(_+=Kr(Mr())),f=Hr(),u=d=Sr(y=_+=Yr(Wr())),b++;break;case 45:45===p&&2==Sr(_)&&(m=0)}}return i}function ro(e,t,r,o,n,i,a,s,l,c,u,d){for(var f=n-1,h=0===n?i:[""],p=Br(h),m=0,v=0,g=0;m<o;++m)for(var b=0,y=Tr(e,f+1,f=br(v=a[m])),w=e;b<p;++b)(w=kr(v>0?h[b]+" "+y:_r(y,/&\f/g,h[b])))&&(l[g++]=w);return Ir(e,t,r,0===n?mr:s,l,c,u,d)}function oo(e,t,r,o){return Ir(e,t,r,pr,yr(Fr),Tr(e,2,-2),0,o)}function no(e,t,r,o,n){return Ir(e,t,r,vr,Tr(e,0,o),Tr(e,o+1,-1),o,n)}function io(e){var t=Br(e);return function(r,o,n,i){for(var a="",s=0;s<t;s++)a+=e[s](r,o,n,i)||"";return a}}function ao(e){return function(t){t.root||(t=t.return)&&e(t)}}const so=e=>{if(e.type===mr){if("string"==typeof e.props)return;e.props=e.props.map(e=>-1===e.indexOf(":global(")?e:function(e){return Gr(function(e){for(;Mr();)switch($r(Fr)){case 0:Nr(Yr(Dr-1),e);break;case 2:Nr(Kr(Fr),e);break;default:Nr(yr(Fr),e)}return e}(Ur(e)))}(e).reduce((e,t,r,o)=>{if(""===t)return e;if(":"===t&&"global"===o[r+1]){const t=o[r+2].slice(1,-1)+" ";return e.unshift(t),o[r+1]="",o[r+2]="",e}return e.push(t),e},[]).join(""))}};function lo(e,t,r){switch(function(e,t){return 45^Cr(e,0)?(((t<<2^Cr(e,0))<<2^Cr(e,1))<<2^Cr(e,2))<<2^Cr(e,3):0}(e,t)){case 5103:return hr+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return hr+e+e;case 4215:if(102===Cr(e,9))return hr+e+e;if(116===Cr(e,t+1))return hr+e+e;break;case 4789:return fr+e+e;case 5349:case 4246:case 6968:return hr+e+fr+e+e;case 6187:if(!xr(e,/grab/))return _r(_r(_r(e,/(zoom-|grab)/,hr+"$1"),/(image-set)/,hr+"$1"),e,"")+e;case 5495:case 3959:return _r(e,/(image-set\([^]*)/,hr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return _r(e,/(.+)-inline(.+)/,hr+"$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(Sr(e)-1-t>6)switch(Cr(e,t+1)){case 102:if(108===Cr(e,t+3))return _r(e,/(.+:)(.+)-([^]+)/,"$1"+hr+"$2-$3$1"+fr+(108==Cr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Er(e,"stretch")?lo(_r(e,"stretch","fill-available"),t)+e:e}}return e}function co(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case vr:return void(e.return=lo(e.value,e.length));case mr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(xr(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Or([qr(e,{props:[_r(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Or([qr(e,{props:[_r(t,/:(plac\w+)/,":"+hr+"input-$1")]}),qr(e,{props:[_r(t,/:(plac\w+)/,":-moz-$1")]})],o)}return""})}}const uo=e=>{(function(e){switch(e.type){case"@container":case"@media":case"@supports":case gr:return!0}return!1})(e)&&Array.isArray(e.children)&&e.children.sort((e,t)=>e.props[0]>t.props[0]?1:-1)};const fo=/,( *[^ &])/g;function ho(e,t,r){let o=t;return r.length>0&&(o=r.reduceRight((e,t)=>{return`${r=t,"&"+dr(r.replace(fo,",&$1"))} { ${e} }`;var r},t)),`${e}{${o}}`}function po(e,t){const{className:r,selectors:o,property:n,rtlClassName:i,rtlProperty:a,rtlValue:s,value:l}=e,{container:c,layer:u,media:d,supports:f}=t;let h=ho(`.${r}`,Array.isArray(l)?`${l.map(e=>`${ur(n)}: ${e}`).join(";")};`:`${ur(n)}: ${l};`,o);return a&&i&&(h+=ho(`.${i}`,Array.isArray(s)?`${s.map(e=>`${ur(a)}: ${e}`).join(";")};`:`${ur(a)}: ${s};`,o)),d&&(h=`@media ${d} { ${h} }`),u&&(h=`@layer ${u} { ${h} }`),f&&(h=`@supports ${f} { ${h} }`),c&&(h=`@container ${c} { ${h} }`),function(e){const t=[];return Or(eo(e),io([so,uo,co,jr,ao(e=>t.push(e))])),t}(h)}function mo(e){let t="";for(const r in e){const o=e[r];if("string"!=typeof o&&"number"!=typeof o){if(Array.isArray(o))for(const e of o)t+=ur(r)+":"+e+";"}else t+=ur(r)+":"+o+";"}return t}function vo(e){let t="";for(const r in e)t+=`${r}{${mo(e[r])}}`;return t}function go(e,t){const r=[];return Or(eo(`@keyframes ${e} {${t}}`),io([jr,co,ao(e=>r.push(e))])),r}const bo={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function yo(e,t){return 0===e.length?t:`${e} and ${t}`}function wo(e){return"@media"===e.substr(0,6)}function ko(e){return"@layer"===e.substr(0,6)}const xo=/^(:|\[|>|&)/;function _o(e){return xo.test(e)}function Eo(e){return"@supports"===e.substr(0,9)}function Co(e){return"@container"===e.substring(0,10)}function To(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}const So={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Bo(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){const t=e[0].trim();if(58===t.charCodeAt(0))return So[t.slice(4,8)]||So[t.slice(3,5)]||"d"}return"d"}function No(e,t){return e?t+e:e}function Oo(e){return No(e.container,"c")+No(e.media,"m")+No(e.layer,"l")+No(e.supports,"s")}function jo(e,t,r){const o=Ot(e+Oo(r)+t),n=o.charCodeAt(0);return n>=48&&n<=57?String.fromCharCode(n+17)+o.slice(1):o}function Po({property:e,selector:t,salt:r,value:o},n){return"f"+Ot(r+t+Oo(n)+e+o.trim())}function Ro(e){return e===Re}function zo(e){return e.replace(/>\s+/g,">")}function Do(e,t){}function Fo(e,t){}function Ao(e){return bo[e]}function Io(e){var t;return null!==(t=null==e?void 0:e[0])&&void 0!==t?t:0}function qo(e,t,r,o){e[t]=o?[r,o]:r}function Lo(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function Mo(e,t,r,o,n,i){var a;const s=[];0!==i&&s.push(["p",i]),"m"===t&&n&&s.push(["m",n]),null!==(a=e[t])&&void 0!==a||(e[t]=[]),r&&e[t].push(Lo(r,s)),o&&e[t].push(Lo(o,s))}function Ho(e,t="",r=[],o={container:"",layer:"",media:"",supports:""},n={},i={},a){for(const s in e){if(Pe.hasOwnProperty(s)){Fo(0,e[s]);continue}const l=e[s];if(null!=l){if(Ro(l)){qo(n,jo(zo(r.join("")),s,o),0,void 0);continue}if("string"==typeof l||"number"==typeof l){const e=zo(r.join("")),c=Ao(s);if(c){const e=c[1],a=Object.fromEntries(e.map(e=>[e,Re]));Ho(a,t,r,o,n,i)}const u=jo(e,s,o),d=Po({value:l.toString(),salt:t,selector:e,property:s},o),f=a&&{key:s,value:a}||ir(s,l),h=f.key!==s||f.value!==l,p=h?Po({value:f.value.toString(),property:f.key,salt:t,selector:e},o):void 0,m=h?{rtlClassName:p,rtlProperty:f.key,rtlValue:f.value}:void 0,v=Bo(r,o),[g,b]=po(Object.assign({className:d,selectors:r,property:s,value:l},m),o);qo(n,u,d,p),Mo(i,v,g,b,o.media,Io(c))}else if("animationName"===s){const e=Array.isArray(l)?l:[l],a=[],s=[];for(const t of e){const e=vo(t),r=vo(nr(t)),n="f"+Ot(e);let l;const c=go(n,e);let u=[];e===r?l=n:(l="f"+Ot(r),u=go(l,r));for(let e=0;e<c.length;e++)Mo(i,"k",c[e],u[e],o.media,0);a.push(n),s.push(l)}Ho({animationName:a.join(", ")},t,r,o,n,i,s.join(", "))}else if(Array.isArray(l)){if(0===l.length)continue;const e=zo(r.join("")),a=Ao(s);if(a){const e=a[1],s=Object.fromEntries(e.map(e=>[e,Re]));Ho(s,t,r,o,n,i)}const c=jo(e,s,o),u=Po({value:l.map(e=>(null!=e?e:"").toString()).join(";"),salt:t,selector:e,property:s},o),d=l.map(e=>ir(s,e));if(d.some(e=>e.key!==d[0].key))continue;const f=d[0].key!==s||d.some((e,t)=>e.value!==l[t]),h=f?Po({value:d.map(e=>{var t;return(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"").toString()}).join(";"),salt:t,property:d[0].key,selector:e},o):void 0,p=f?{rtlClassName:h,rtlProperty:d[0].key,rtlValue:d.map(e=>e.value)}:void 0,m=Bo(r,o),[v,g]=po(Object.assign({className:u,selectors:r,property:s,value:l},p),o);qo(n,c,u,h),Mo(i,m,v,g,o.media,Io(a))}else if(To(l))if(_o(s))Ho(l,t,r.concat(dr(s)),o,n,i);else if(wo(s)){const e=yo(o.media,s.slice(6).trim());Ho(l,t,r,Object.assign({},o,{media:e}),n,i)}else if(ko(s)){const e=(o.layer?`${o.layer}.`:"")+s.slice(6).trim();Ho(l,t,r,Object.assign({},o,{layer:e}),n,i)}else if(Eo(s)){const e=yo(o.supports,s.slice(9).trim());Ho(l,t,r,Object.assign({},o,{supports:e}),n,i)}else if(Co(s)){const e=s.slice(10).trim();Ho(l,t,r,Object.assign({},o,{container:e}),n,i)}else Do()}}return[n,i]}const Wo=U.useInsertionEffect?U.useInsertionEffect:void 0,Vo=()=>{const e={};return function(t,r){Wo&&"undefined"!=typeof window&&window.document&&window.document.createElement?Wo(()=>{t.insertCSSRules(r)},[t,r]):void 0===e[t.id]&&(t.insertCSSRules(r),e[t.id]=!0)}};function $o(e){const t=function(e,t=Nt){const r=t();let o=null,n=null,i=null,a=null;return function(t){const{dir:s,renderer:l}=t;null===o&&([o,n]=function(e,t=""){const r={},o={};for(const n in e){const i=e[n],[a,s]=Ho(i,t);r[n]=a,Object.keys(s).forEach(e=>{o[e]=(o[e]||[]).concat(s[e])})}return[r,o]}(e,l.classNameHashSalt));const c="ltr"===s;return c?null===i&&(i=Rt(o,s)):null===a&&(a=Rt(o,s)),r(l,n),c?i:a}}(e,Vo);return function(){const e=ae(),r=Me();return t({dir:e,renderer:r})}}const Uo="Enter",Go=" ",Ko="ArrowLeft",Zo="ArrowRight",Xo="Escape",Jo=e=>{const t=$.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Et(()=>{t.current=e},[e]),$.useCallback((...e)=>(0,t.current)(...e),[t])};function Qo(e,t){const{disabled:r,disabledFocusable:o=!1,"aria-disabled":n,onClick:i,onKeyDown:a,onKeyUp:s,...l}=null!=t?t:{},c="string"==typeof n?"true"===n:n,u=r||o||c,d=Jo(e=>{u?(e.preventDefault(),e.stopPropagation()):null==i||i(e)}),f=Jo(e=>{if(null==a||a(e),e.isDefaultPrevented())return;const t=e.key;if(u&&(t===Uo||t===Go))return e.preventDefault(),void e.stopPropagation();t!==Go?t===Uo&&(e.preventDefault(),e.currentTarget.click()):e.preventDefault()}),h=Jo(e=>{if(null==s||s(e),e.isDefaultPrevented())return;const t=e.key;if(u&&(t===Uo||t===Go))return e.preventDefault(),void e.stopPropagation();t===Go&&(e.preventDefault(),e.currentTarget.click())});if("button"===e||void 0===e)return{...l,disabled:r&&!o,"aria-disabled":!!o||c,onClick:o?void 0:d,onKeyUp:o?void 0:s,onKeyDown:o?void 0:a};{const t=!!l.href;let n=t?void 0:"button";!n&&u&&(n="link");const i={role:n,tabIndex:o||!t&&!r?0:void 0,...l,onClick:d,onKeyUp:h,onKeyDown:f,"aria-disabled":u};return"a"===e&&u&&(i.href=void 0),i}}const Yo=$.createContext(void 0),en={},tn=(Yo.Provider,(e,t)=>{const{size:r}=null!==(o=$.useContext(Yo))&&void 0!==o?o:en;var o;const{appearance:n="secondary",as:i="button",disabled:a=!1,disabledFocusable:s=!1,icon:l,iconPosition:c="before",shape:u="rounded",size:d=(null!=r?r:"medium")}=e,f=it(l,{elementType:"span"});return{appearance:n,disabled:a,disabledFocusable:s,iconPosition:c,shape:u,size:d,iconOnly:Boolean((null==f?void 0:f.children)&&!e.children),components:{root:"button",icon:"span"},root:nt(xt(i,Qo(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"===i?"button":void 0}}),icon:f}});function rn(e,t,r){const o=function(e,t,r,o=Nt){const n=o();return function(o){const{dir:i,renderer:a}=o,s="ltr"===i?e:t||e;return n(a,Array.isArray(r)?{r:r}:r),s}}(e,t,r,Vo);return function(){const e=ae(),t=Me();return o({dir:e,renderer:t})}}function on(e,t){const r=zt(e,t,Vo);return function(){const e=ae(),t=Me();return r({dir:e,renderer:t})}}const nn=rn("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),an=rn("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),sn=on({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),ln=on({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",Bm2fdqk:"fuigjrg",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",Bx3q9su:"f4dhi0o",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x",xd2cci:"fequ9m0"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fuigjrg .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4dhi0o:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fequ9m0:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),cn=on({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),un=on({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),dn=on({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),fn=e=>{const t=nn(),r=an(),o=sn(),n=ln(),i=cn(),a=un(),s=dn(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:p,size:m}=e;return e.root.className=Ft("fui-Button",t,l&&o[l],o[m],d&&"small"===m&&o.smallWithIcon,d&&"large"===m&&o.largeWithIcon,o[p],(c||u)&&n.base,(c||u)&&n.highContrast,l&&(c||u)&&n[l],"primary"===l&&i.primary,i[m],i[p],f&&a[m],e.root.className),e.icon&&(e.icon.className=Ft("fui-Button__icon",r,!!e.root.children&&s[h],s[m],e.icon.className)),e},hn=$.forwardRef((e,t)=>{const r=tn(e,t);return fn(r),be("useButtonStyles_unstable")(r),(e=>{const{iconOnly:t,iconPosition:r}=e;return re(e.root,{children:["after"!==r&&e.icon&&te(e.icon,{}),!t&&e.root.children,"after"===r&&e.icon&&te(e.icon,{})]})})(r)});hn.displayName="Button";const pn={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function mn(e){return null==e?{}:"string"==typeof e?pn[e]:e}const vn="data-popper-is-intersecting",gn="data-popper-escaped",bn="data-popper-reference-hidden",yn="fui-positioningend",wn=["top","right","bottom","left"],kn=Math.min,xn=Math.max,_n=Math.round,En=(Math.floor,e=>({x:e,y:e})),Cn={left:"right",right:"left",bottom:"top",top:"bottom"},Tn={start:"end",end:"start"};function Sn(e,t,r){return xn(e,kn(t,r))}function Bn(e,t){return"function"==typeof e?e(t):e}function Nn(e){return e.split("-")[0]}function On(e){return e.split("-")[1]}function jn(e){return"x"===e?"y":"x"}function Pn(e){return"y"===e?"height":"width"}const Rn=new Set(["top","bottom"]);function zn(e){return Rn.has(Nn(e))?"y":"x"}function Dn(e){return jn(zn(e))}function Fn(e){return e.replace(/start|end/g,e=>Tn[e])}const An=["left","right"],In=["right","left"],qn=["top","bottom"],Ln=["bottom","top"];function Mn(e){return e.replace(/left|right|bottom|top/g,e=>Cn[e])}function Hn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Wn(e){const{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function Vn(e,t,r){let{reference:o,floating:n}=e;const i=zn(t),a=Dn(t),s=Pn(a),l=Nn(t),c="y"===i,u=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:o.y-n.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-n.width,y:d};break;default:h={x:o.x,y:o.y}}switch(On(t)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1)}return h}async function $n(e,t){var r;void 0===t&&(t={});const{x:o,y:n,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Bn(t,e),p=Hn(h),m=s[f?"floating"===d?"reference":"floating":d],v=Wn(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:o,y:n,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Wn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-w.top+p.top)/y.y,bottom:(w.bottom-v.bottom+p.bottom)/y.y,left:(v.left-w.left+p.left)/y.x,right:(w.right-v.right+p.right)/y.x}}function Un(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gn(e){return wn.some(t=>e[t]>=0)}const Kn=new Set(["left","top"]);function Zn(){return"undefined"!=typeof window}function Xn(e){return Yn(e)?(e.nodeName||"").toLowerCase():"#document"}function Jn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Qn(e){var t;return null==(t=(Yn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Yn(e){return!!Zn()&&(e instanceof Node||e instanceof Jn(e).Node)}function ei(e){return!!Zn()&&(e instanceof Element||e instanceof Jn(e).Element)}function ti(e){return!!Zn()&&(e instanceof HTMLElement||e instanceof Jn(e).HTMLElement)}function ri(e){return!(!Zn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Jn(e).ShadowRoot)}const oi=new Set(["inline","contents"]);function ni(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=vi(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!oi.has(n)}const ii=new Set(["table","td","th"]);function ai(e){return ii.has(Xn(e))}const si=[":popover-open",":modal"];function li(e){return si.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const ci=["transform","translate","scale","rotate","perspective"],ui=["transform","translate","scale","rotate","perspective","filter"],di=["paint","layout","strict","content"];function fi(e){const t=hi(),r=ei(e)?vi(e):e;return ci.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||ui.some(e=>(r.willChange||"").includes(e))||di.some(e=>(r.contain||"").includes(e))}function hi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pi=new Set(["html","body","#document"]);function mi(e){return pi.has(Xn(e))}function vi(e){return Jn(e).getComputedStyle(e)}function gi(e){return ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bi(e){if("html"===Xn(e))return e;const t=e.assignedSlot||e.parentNode||ri(e)&&e.host||Qn(e);return ri(t)?t.host:t}function yi(e){const t=bi(e);return mi(t)?e.ownerDocument?e.ownerDocument.body:e.body:ti(t)&&ni(t)?t:yi(t)}function wi(e,t,r){var o;void 0===t&&(t=[]),void 0===r&&(r=!0);const n=yi(e),i=n===(null==(o=e.ownerDocument)?void 0:o.body),a=Jn(n);if(i){const e=ki(a);return t.concat(a,a.visualViewport||[],ni(n)?n:[],e&&r?wi(e):[])}return t.concat(n,wi(n,[],r))}function ki(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xi(e){const t=vi(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=ti(e),i=n?e.offsetWidth:r,a=n?e.offsetHeight:o,s=_n(r)!==i||_n(o)!==a;return s&&(r=i,o=a),{width:r,height:o,$:s}}function _i(e){return ei(e)?e:e.contextElement}function Ei(e){const t=_i(e);if(!ti(t))return En(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:i}=xi(t);let a=(i?_n(r.width):r.width)/o,s=(i?_n(r.height):r.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ci=En(0);function Ti(e){const t=Jn(e);return hi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ci}function Si(e,t,r,o){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=e.getBoundingClientRect(),i=_i(e);let a=En(1);t&&(o?ei(o)&&(a=Ei(o)):a=Ei(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Jn(e))&&t}(i,r,o)?Ti(i):En(0);let l=(n.left+s.x)/a.x,c=(n.top+s.y)/a.y,u=n.width/a.x,d=n.height/a.y;if(i){const e=Jn(i),t=o&&ei(o)?Jn(o):o;let r=e,n=ki(r);for(;n&&o&&t!==r;){const e=Ei(n),t=n.getBoundingClientRect(),o=vi(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Jn(n),n=ki(r)}}return Wn({width:u,height:d,x:l,y:c})}function Bi(e,t){const r=gi(e).scrollLeft;return t?t.left+r:Si(Qn(e)).left+r}function Ni(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Bi(e,r),y:r.top+t.scrollTop}}const Oi=new Set(["absolute","fixed"]);function ji(e,t,r){let o;if("viewport"===t)o=function(e,t){const r=Jn(e),o=Qn(e),n=r.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(n){i=n.width,a=n.height;const e=hi();(!e||e&&"fixed"===t)&&(s=n.offsetLeft,l=n.offsetTop)}const c=Bi(o);if(c<=0){const e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-n);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)o=function(e){const t=Qn(e),r=gi(e),o=e.ownerDocument.body,n=xn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=xn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+Bi(e);const s=-r.scrollTop;return"rtl"===vi(o).direction&&(a+=xn(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:a,y:s}}(Qn(e));else if(ei(t))o=function(e,t){const r=Si(e,!0,"fixed"===t),o=r.top+e.clientTop,n=r.left+e.clientLeft,i=ti(e)?Ei(e):En(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:n*i.x,y:o*i.y}}(t,r);else{const r=Ti(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Wn(o)}function Pi(e,t){const r=bi(e);return!(r===t||!ei(r)||mi(r))&&("fixed"===vi(r).position||Pi(r,t))}function Ri(e,t,r){const o=ti(t),n=Qn(t),i="fixed"===r,a=Si(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=En(0);function c(){l.x=Bi(n)}if(o||!o&&!i)if(("body"!==Xn(t)||ni(n))&&(s=gi(t)),o){const e=Si(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&c();i&&!o&&n&&c();const u=!n||o||i?En(0):Ni(n,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function zi(e){return"static"===vi(e).position}function Di(e,t){if(!ti(e)||"fixed"===vi(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Qn(e)===r&&(r=r.ownerDocument.body),r}function Fi(e,t){const r=Jn(e);if(li(e))return r;if(!ti(e)){let t=bi(e);for(;t&&!mi(t);){if(ei(t)&&!zi(t))return t;t=bi(t)}return r}let o=Di(e,t);for(;o&&ai(o)&&zi(o);)o=Di(o,t);return o&&mi(o)&&zi(o)&&!fi(o)?r:o||function(e){let t=bi(e);for(;ti(t)&&!mi(t);){if(fi(t))return t;if(li(t))return null;t=bi(t)}return null}(e)||r}const Ai={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e;const i="fixed"===n,a=Qn(o),s=!!t&&li(t.floating);if(o===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=En(1);const u=En(0),d=ti(o);if((d||!d&&!i)&&(("body"!==Xn(o)||ni(a))&&(l=gi(o)),ti(o))){const e=Si(o);c=Ei(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}const f=!a||d||i?En(0):Ni(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Qn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const i="clippingAncestors"===r?li(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let o=wi(e,[],!1).filter(e=>ei(e)&&"body"!==Xn(e)),n=null;const i="fixed"===vi(e).position;let a=i?bi(e):e;for(;ei(a)&&!mi(a);){const t=vi(a),r=fi(a);r||"fixed"!==t.position||(n=null),(i?!r&&!n:!r&&"static"===t.position&&n&&Oi.has(n.position)||ni(a)&&!r&&Pi(e,a))?o=o.filter(e=>e!==a):n=t,a=bi(a)}return t.set(e,o),o}(t,this._c):[].concat(r),a=[...i,o],s=a[0],l=a.reduce((e,r)=>{const o=ji(t,r,n);return e.top=xn(o.top,e.top),e.right=kn(o.right,e.right),e.bottom=kn(o.bottom,e.bottom),e.left=xn(o.left,e.left),e},ji(t,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Fi,getElementRects:async function(e){const t=this.getOffsetParent||Fi,r=this.getDimensions,o=await r(e.floating);return{reference:Ri(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=xi(e);return{width:t,height:r}},getScale:Ei,isElement:ei,isRTL:function(e){return"rtl"===vi(e).direction}},Ii=$n,qi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:n,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=Bn(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const g=Nn(n),b=zn(s),y=Nn(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),k=f||(y||!m?[Mn(s)]:function(e){const t=Mn(e);return[Fn(e),t,Fn(t)]}(s)),x="none"!==p;!f&&x&&k.push(...function(e,t,r,o){const n=On(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?In:An:t?An:In;case"left":case"right":return t?qn:Ln;default:return[]}}(Nn(e),"start"===r,o);return n&&(i=i.map(e=>e+"-"+n),t&&(i=i.concat(i.map(Fn)))),i}(s,m,p,w));const _=[s,...k],E=await $n(t,v),C=[];let T=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&C.push(E[g]),d){const e=function(e,t,r){void 0===r&&(r=!1);const o=On(e),n=Dn(e),i=Pn(n);let a="x"===n?o===(r?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Mn(a)),[a,Mn(a)]}(n,a,w);C.push(E[e[0]],E[e[1]])}if(T=[...T,{placement:n,overflows:C}],!C.every(e=>e<=0)){var S,B;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=_[e];if(t&&("alignment"!==d||b===zn(t)||T.every(e=>zn(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let r=null==(B=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:B.placement;if(!r)switch(h){case"bestFit":{var N;const e=null==(N=T.filter(e=>{if(x){const t=zn(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(r=e);break}case"initialPlacement":r=s}if(n!==r)return{reset:{placement:r}}}return{}}}},Li=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...n}=Bn(e,t);switch(o){case"referenceHidden":{const e=Un(await $n(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Gn(e)}}}case"escaped":{const e=Un(await $n(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Gn(e)}}}default:return{}}}}},Mi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Bn(e,t)||{};if(null==c)return{};const d=Hn(u),f={x:r,y:o},h=Dn(n),p=Pn(h),m=await a.getDimensions(c),v="y"===h,g=v?"top":"left",b=v?"bottom":"right",y=v?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[h]-f[h]-i.floating[p],k=f[h]-i.reference[h],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=x?x[y]:0;_&&await(null==a.isElement?void 0:a.isElement(x))||(_=s.floating[y]||i.floating[p]);const E=w/2-k/2,C=_/2-m[p]/2-1,T=kn(d[g],C),S=kn(d[b],C),B=T,N=_-m[p]-S,O=_/2-m[p]/2+E,j=Sn(B,O,N),P=!l.arrow&&null!=On(n)&&O!==j&&i.reference[p]/2-(O<B?T:S)-m[p]/2<0,R=P?O<B?O-B:O-N:0;return{[h]:f[h]+R,data:{[h]:j,centerOffset:O-j-R,...P&&{alignmentOffset:R}},reset:P}}}),Hi=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:n,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Bn(e,t),u={x:r,y:o},d=zn(n),f=jn(d);let h=u[f],p=u[d];const m=Bn(s,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,r=i.reference[f]+i.reference[e]-v.mainAxis;h<t?h=t:h>r&&(h=r)}if(c){var g,b;const e="y"===f?"width":"height",t=Kn.has(Nn(n)),r=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);p<r?p=r:p>o&&(p=o)}return{[f]:h,[d]:p}}}};var Wi=r(64583).Promise;const Vi=e=>{const t=e&&(e=>"HTML"===e.nodeName?e:e.parentNode||e.host)(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:o,overflowY:n}=(e=>{var t;if(1!==e.nodeType)return{};const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return r?r.getComputedStyle(e,null):{}})(t);return/(auto|scroll|overlay)/.test(r+n+o)?t:Vi(t)};function $i(e){const t=[];let r=e;for(;r;){const o=Vi(r);if(e.ownerDocument.body===o){t.push(o);break}if("BODY"===o.nodeName&&o!==e.ownerDocument.body)break;t.push(o),r=o}return t}function Ui(e){let t=!1;const{container:r,target:o,arrow:n,strategy:i,middleware:a,placement:s,useTransform:l=!0,disableUpdateOnResize:c=!1}=e,u=r.ownerDocument.defaultView;if(!o||!r||!u)return{updatePosition:()=>{},dispose:()=>{}};const d=c?null:function(e){return new e.ResizeObserver(e=>{e.every(e=>e.contentRect.width>0&&e.contentRect.height>0)&&m()})}(u);let f=!0;const h=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const p=()=>{t||(f&&($i(r).forEach(e=>h.add(e)),He(o)&&$i(o).forEach(e=>h.add(e)),h.forEach(e=>{e.addEventListener("scroll",m,{passive:!0})}),null==d||d.observe(r),He(o)&&(null==d||d.observe(o)),f=!1),Object.assign(r.style,{position:i}),((e,t,r)=>{const o=new Map,n={platform:Ai,...r},i={...n.platform,_c:o};return(async(e,t,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=Vn(c,o,l),f=o,h={},p=0;for(let r=0;r<s.length;r++){const{name:i,fn:m}=s[r],{x:v,y:g,data:b,reset:y}=await m({x:u,y:d,initialPlacement:o,placement:f,strategy:n,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,h={...h,[i]:{...h[i],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:n}):y.rects),({x:u,y:d}=Vn(c,f,l))),r=-1)}return{x:u,y:d,placement:f,strategy:n,middlewareData:h}})(e,t,{...n,platform:i})})(o,r,{placement:s,middleware:a,strategy:i}).then(({x:e,y:o,middlewareData:a,placement:s})=>{t||(function(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:o,y:n}=r.arrow;Object.assign(t.style,{left:null!=o?`${o}px`:"",top:null!=n?`${n}px`:""})}({arrow:n,middlewareData:a}),function(e){var t,r,o;const{container:n,placement:i,middlewareData:a,strategy:s,lowPPI:l,coordinates:c,useTransform:u=!0}=e;if(!n)return;n.setAttribute("data-popper-placement",i),n.removeAttribute(vn),a.intersectionObserver.intersecting&&n.setAttribute(vn,""),n.removeAttribute(gn),(null===(t=a.hide)||void 0===t?void 0:t.escaped)&&n.setAttribute(gn,""),n.removeAttribute(bn),(null===(r=a.hide)||void 0===r?void 0:r.referenceHidden)&&n.setAttribute(bn,"");const d=(null===(o=n.ownerDocument.defaultView)||void 0===o?void 0:o.devicePixelRatio)||1,f=Math.round(c.x*d)/d,h=Math.round(c.y*d)/d;Object.assign(n.style,{position:s}),u?Object.assign(n.style,{transform:l?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`}):Object.assign(n.style,{left:`${f}px`,top:`${h}px`})}({container:r,middlewareData:a,placement:s,coordinates:{x:e,y:o},lowPPI:((null==u?void 0:u.devicePixelRatio)||1)<=1,strategy:i,useTransform:l}),r.dispatchEvent(new CustomEvent(yn)))}).catch(e=>{}))},m=function(){let e;return()=>(e||(e=new Wi(t=>{Wi.resolve().then(()=>{e=void 0,t(p())})})),e)}();return u&&(u.addEventListener("scroll",m,{passive:!0}),u.addEventListener("resize",m)),m(),{updatePosition:m,dispose:()=>{t=!0,u&&(u.removeEventListener("scroll",m),u.removeEventListener("resize",m)),h.forEach(e=>{e.removeEventListener("scroll",m)}),h.clear(),null==d||d.disconnect()}}}function Gi(e,t){if("window"===t)return null==e?void 0:e.ownerDocument.documentElement;if("clippingParents"===t)return"clippingAncestors";if("scrollParent"===t){let t=Vi(e);return"BODY"===t.nodeName&&(t=null==e?void 0:e.ownerDocument.documentElement),t}return t}function Ki(e,t){if("number"==typeof e)return e;const{start:r,end:o,...n}=e,i=n,a=t?"end":"start",s=t?"start":"end";return e[a]&&(i.left=e[a]),e[s]&&(i.right=e[s]),i}const Zi=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var o;if(null===(o=t.resetMaxSize)||void 0===o?void 0:o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=e;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function Xi(e,t){const{container:r,overflowBoundary:o,overflowBoundaryPadding:n,isRtl:i}=t;return function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:n,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Bn(e,t),u=await $n(t,c),d=Nn(n),f=On(n),h="y"===zn(n),{width:p,height:m}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const b=m-u.top-u.bottom,y=p-u.left-u.right,w=kn(m-u[v],b),k=kn(p-u[g],y),x=!t.middlewareData.shift;let _=w,E=k;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(E=y),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(_=b),x&&!f){const e=xn(u.left,0),t=xn(u.right,0),r=xn(u.top,0),o=xn(u.bottom,0);h?E=p-2*(0!==e||0!==t?e+t:xn(u.left,u.right)):_=m-2*(0!==r||0!==o?r+o:xn(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:_});const C=await a.getDimensions(s.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}}({...n&&{padding:Ki(n,i)},...o&&{altBoundary:!0,boundary:Gi(r,o)},apply({availableHeight:t,availableWidth:r,elements:o,rects:n}){const i=(e,t,r)=>{if(e&&(o.floating.style.setProperty("box-sizing","border-box"),o.floating.style.setProperty(`max-${t}`,`${r}px`),n.floating[t]>r)){o.floating.style.setProperty(t,`${r}px`);const e="width"===t?"x":"y";o.floating.style.getPropertyValue(`overflow-${e}`)||o.floating.style.setProperty(`overflow-${e}`,"auto")}},{applyMaxWidth:a,applyMaxHeight:s}=e;i(a,"width",r),i(s,"height",t)}})}const Ji="--fui-match-target-size";function Qi(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}function Yi(e){const t=(r=e)?"number"==typeof r||"object"==typeof r?r:({rects:{floating:e,reference:t},placement:o})=>{const{position:n,alignment:i}=(e=>{const{side:t,alignment:r}=Qi(e),o={top:"above",bottom:"below",right:"after",left:"before"}[t],n=r&&(e=>"above"===e||"below"===e?{start:"start",end:"end"}:{start:"top",end:"bottom"})(o)[r];return{position:o,alignment:n}})(o);return r({positionedRect:e,targetRect:t,position:n,alignment:i})}:r;var r,o;return void 0===(o=t)&&(o=0),{name:"offset",options:o,async fn(e){var t,r;const{x:n,y:i,placement:a,middlewareData:s}=e,l=await async function(e,t){const{placement:r,platform:o,elements:n}=e,i=await(null==o.isRTL?void 0:o.isRTL(n.floating)),a=Nn(r),s=On(r),l="y"===zn(r),c=Kn.has(a)?-1:1,u=i&&l?-1:1,d=Bn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(e,o);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:a}}}}}const ea=(e,t,r)=>{const o=((e,t)=>{const r="above"===e||"below"===e,o="top"===t||"bottom"===t;return r&&o||!r&&!o})(t,e)?"center":e,n=t&&(e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}))(r)[t],i=o&&{start:"start",end:"end",top:"start",bottom:"end",center:void 0}[o];return n&&i?`${n}-${i}`:n};function ta(e){const{hasScrollableElement:t,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=e,a=n.reduce((e,t)=>{const{position:r,align:o}=mn(t),n=ea(o,r,i);return n&&e.push(n),e},[]);return qi({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Gi(o,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}function ra(e){const{hasScrollableElement:t,shiftToCoverTarget:r,disableTether:o,overflowBoundary:n,container:i,overflowBoundaryPadding:a,isRtl:s}=e;return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:n}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Bn(e,t),c={x:r,y:o},u=await $n(t,l),d=zn(Nn(n)),f=jn(d);let h=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";h=Sn(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";p=Sn(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-r,y:m.y-o,enabled:{[f]:i,[d]:a}}}}}}({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:!0,limiter:Hi({crossAxis:!0,mainAxis:!1})},...o&&{crossAxis:"all"===o,limiter:Hi({crossAxis:"all"!==o,mainAxis:!1})},...a&&{padding:Ki(a,s)},...n&&{altBoundary:!0,boundary:Gi(i,n)}})}const oa=({options:e})=>e,na=$.createContext(void 0);function ia(e,t,r){const o=$.useRef(!0),[n]=$.useState(()=>({value:e,callback:t,facade:{get current(){return n.value},set current(e){const t=n.value;if(t!==e){if(n.value=e,r&&o.current)return;n.callback(e,t)}}}}));return Et(()=>{o.current=!1},[]),n.callback=t,n.facade}function aa(e,t){const r=$.useRef(void 0),o=$.useCallback((o,n)=>(void 0!==r.current&&t(r.current),r.current=e(o,n),r.current),[t,e]),n=$.useCallback(()=>{void 0!==r.current&&(t(r.current),r.current=void 0)},[t]);return $.useEffect(()=>n,[n]),[o,n]}na.Provider;const sa=e=>-1,la=e=>{};function ca(){const{targetDocument:e}=ue(),t=null==e?void 0:e.defaultView;return aa(t?t.setTimeout:sa,t?t.clearTimeout:la)}const ua=e=>(e(0),0),da=e=>e;function fa(){let e=!1;const t=[];return{isActive(){return e},toggleActive(r){e!==r&&(e=r,t.forEach(t=>t(e)))},subscribe(e){return t.push(e),()=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)}}}}var ha=r(19888);function pa(e,t){return{topLeft:[e.left-t[0],e.top-t[1]],topRight:[e.right-t[0],e.top-t[1]],bottomRight:[e.right-t[0],e.bottom-t[1]],bottomLeft:[e.left-t[0],e.bottom-t[1]]}}function ma(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function va(e){return`M ${e} z`}const ga=on({wrapper:{mc9l5x:"fjseox",Bqenvij:"fniina8",a9b677:"f3tsq5r",Bkecrkj:"f1aehjj5"},wrapperActive:{mc9l5x:"ftgm304"},svg:{Bkfmm31:"f1au8mb3",Bkecrkj:"f1aehjj5",qhf8xq:"f19dog8a",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"]},triangle:{Bkecrkj:"f1cguypg"},triangleDebug:{Bceei9c:"f7116n6",Bkfmm31:"f1xab38x"},rectDebug:{Bkfmm31:"fyegryc"}},{d:[".fjseox{display:none;}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1aehjj5{pointer-events:none;}",".ftgm304{display:block;}",".f1au8mb3{fill:transparent;}",".f19dog8a{position:fixed;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f1cguypg{pointer-events:auto;}",".f7116n6{cursor:crosshair;}",".f1xab38x{fill:color-mix(in srgb, var(--colorPaletteGreenBackground3) 20%, transparent);}",".fyegryc{fill:color-mix(in srgb, var(--colorPaletteRedBackground3) 20%, transparent);}"]});function ba(e){if(e.width<=0||e.height<=0)return"";let t="";return t+=`M ${e.x},${e.y} `,t+=`V ${e.y+e.height} `,t+=`H ${e.x+e.width} `,t+=`V ${e.y} `,t+=`H ${e.x} `,t+="Z ",t}const ya={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON(){return""}};function wa(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left&&e.width===t.width&&e.height===t.height}const ka=$.memo(e=>{const{debug:t,onMouseEnter:r,onMouseMove:o,onMouseLeave:n,stateStore:i}=e,a=Bt(),s=ga(),l=(0,ha.useSyncExternalStore)(i.subscribe,i.isActive),c=$.useRef(null),[u,d]=$.useState(()=>({containerRect:ya,targetRect:ya,mouseCoordinates:[0,0]}));$.useImperativeHandle(e.imperativeRef,()=>({updateSVG(e){d(t=>{return wa(t.containerRect,e.containerRect)&&wa(t.targetRect,e.targetRect)&&(r=t.mouseCoordinates,o=e.mouseCoordinates,r[0]===o[0]&&r[1]===o[1])?t:e;var r,o})}}),[]);const{containerRect:f,targetRect:h,mouseCoordinates:p}=u,m=Math.min(h.top,f.top),v=Math.min(h.left,f.left),g=Math.max(h.bottom,f.bottom),b=Math.max(h.right,f.right),y=pa(f,[v,m]),w=pa(h,[v,m]),k=[p[0]-v,p[1]-m],x=function(e,t,r){const o=[(e[0]+t[0])/2,(e[1]+t[1])/2],n=function(e,t){const r=ma(e,t);return 0===r?[0,0]:[(e[0]-t[0])/r,(e[1]-t[1])/r]}([r[0],r[1]],[o[0],o[1]]),i=ma([o[0],o[1]],[r[0],r[1]]);return[o[0]+n[0]*(i+20),o[1]+n[1]*(i+20)]}(y.topLeft,y.bottomRight,k),_=[x,y.topLeft,y.topRight],E=[x,y.topRight,y.bottomRight],C=[x,y.bottomRight,y.bottomLeft],T=[x,y.bottomLeft,y.topLeft],S=b-v,B=g-m,N=function(e,t,r,o){let n=`M 0,0 H ${e} V ${t} H 0 Z `;return n+=ba(r),n+=ba(o),n}(S,B,{x:w.topLeft[0],y:w.topLeft[1],width:h.width,height:h.height},{x:y.topLeft[0],y:y.topLeft[1],width:f.width,height:f.height});return $.createElement("div",{className:Ft(s.wrapper,l&&s.wrapperActive),"data-safe-zone":""},l?$.createElement("svg",{"aria-hidden":!0,className:s.svg,xmlns:"http://www.w3.org/2000/svg",ref:c,style:{width:`${S}px`,height:`${B}px`,transform:`translate(${v}px, ${m}px)`}},$.createElement("g",{className:Ft(s.triangle,t&&s.triangleDebug),clipPath:`url(#${a})`,onMouseEnter:r,onMouseMove:o,onMouseLeave:n},$.createElement("path",{d:va(_)}),$.createElement("path",{d:va(E)}),$.createElement("path",{d:va(C)}),$.createElement("path",{d:va(T)})),$.createElement("clipPath",{id:a},$.createElement("path",{d:N})),t&&$.createElement("path",{className:s.rectDebug,d:N})):null)});const xa=e=>{const[t,r]=$.useState(()=>void 0===e.defaultState?e.initialState:"function"==typeof e.defaultState?e.defaultState():e.defaultState),o=$.useRef(e.state);$.useEffect(()=>{o.current=e.state},[e.state]);const n=$.useCallback(e=>{(function(e){return"function"==typeof e})(e)&&e(o.current)},[]);return _a(e.state)?[e.state,n]:[t,r]},_a=e=>{const[t]=$.useState(()=>void 0!==e);return t},Ea=(e,t)=>!!(null==e?void 0:e.contains(t)),Ca="fuiframefocus";function Ta(e,t={}){if(!e)return null;if(!t.skipVirtual){const t=function(e){return(t=e)&&t._virtual&&e._virtual.parent||null;var t}(e);if(t)return t}const r=e.parentNode;return r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r}function Sa(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const o=Ta(t,{skipVirtual:r.has(t)});if(r.add(t),o===e)return!0;t=o}}return!1}const Ba="data-tabster",Na=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),Oa=1,ja=2,Pa=3;function Ra(e,t){var r;return null===(r=e.storageEntry(t))||void 0===r?void 0:r.tabster}function za(e,t,r){var o,n;const i=r||e._noop?void 0:t.getAttribute(Ba);let a,s=e.storageEntry(t);if(i){if(i===(null===(o=null==s?void 0:s.attr)||void 0===o?void 0:o.string))return;try{const e=JSON.parse(i);if("object"!=typeof e)throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:e}}catch(e){}}else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const l=s.tabster||{},c=(null===(n=s.attr)||void 0===n?void 0:n.object)||{},u=(null==a?void 0:a.object)||{};for(const r of Object.keys(c))if(!u[r]){if("root"===r){const t=l[r];t&&e.root.onRoot(t,!0)}switch(r){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const o=l[r];o&&(o.dispose(),delete l[r]);break;case"observed":delete l[r],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[r]}}for(const r of Object.keys(u)){const o=u.sys;switch(r){case"deloser":l.deloser?l.deloser.setProps(u.deloser):e.deloser&&(l.deloser=e.deloser.createDeloser(t,u.deloser));break;case"root":l.root?l.root.setProps(u.root):l.root=e.root.createRoot(t,u.root,o),e.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(u.modalizer):e.modalizer&&(l.modalizer=e.modalizer.createModalizer(t,u.modalizer,o));break;case"restorer":l.restorer?l.restorer.setProps(u.restorer):e.restorer&&u.restorer&&(l.restorer=e.restorer.createRestorer(t,u.restorer));break;case"focusable":l.focusable=u.focusable;break;case"groupper":l.groupper?l.groupper.setProps(u.groupper):e.groupper&&(l.groupper=e.groupper.createGroupper(t,u.groupper,o));break;case"mover":l.mover?l.mover.setProps(u.mover):e.mover&&(l.mover=e.mover.createMover(t,u.mover,o));break;case"observed":e.observedElement&&(l.observed=u.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":l.uncontrolled=u.uncontrolled;break;case"outline":e.outline&&(l.outline=u.outline);break;case"sys":l.sys=u.sys;break;default:console.error(`Unknown key '${r}' in data-tabster attribute value.`)}}a?s.attr=a:(0===Object.keys(l).length&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}const Da="tabster:movefocus",Fa="tabster:mover:movefocus",Aa="tabster:mover:memorized-element",Ia="tabster:restorer:restore-focus",qa="undefined"!=typeof CustomEvent?CustomEvent:function(){};class La extends qa{constructor(e,t){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}}class Ma extends La{constructor(e){super("tabster:focusin",e)}}class Ha extends La{constructor(e){super("tabster:focusout",e)}}class Wa extends La{constructor(e){super(Da,e)}}class Va extends La{constructor(e){super("tabster:mover:state",e)}}class $a extends La{constructor(){super(Ia)}}class Ua extends La{constructor(e){super("tabster:root:focus",e)}}class Ga extends La{constructor(e){super("tabster:root:blur",e)}}const Ka={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,r,o)=>e.createTreeWalker(t,r,o),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!(!t||!(null==e?void 0:e.contains(t))),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>(null==e?void 0:e.firstChild)||null,getLastChild:e=>(null==e?void 0:e.lastChild)||null,getNextSibling:e=>(null==e?void 0:e.nextSibling)||null,getPreviousSibling:e=>(null==e?void 0:e.previousSibling)||null,getFirstElementChild:e=>(null==e?void 0:e.firstElementChild)||null,getLastElementChild:e=>(null==e?void 0:e.lastElementChild)||null,getNextElementSibling:e=>(null==e?void 0:e.nextElementSibling)||null,getPreviousElementSibling:e=>(null==e?void 0:e.previousElementSibling)||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,r)=>e.insertBefore(t,r),getSelection:e=>{var t;return(null===(t=e.ownerDocument)||void 0===t?void 0:t.getSelection())||null},getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};let Za;const Xa="undefined"!=typeof DOMRect?DOMRect:class{constructor(e,t,r,o){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(o||0)}};let Ja=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Za=!1}catch(e){Za=!0}function Qa(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}class Ya{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,t){return!e._target||!(!t&&us(e._target.ownerDocument,e._target))&&(delete e._target,!0)}}class es{constructor(e,t,r){const o=Qa(e);let n;o.WeakRef?n=new o.WeakRef(t):(n=new Ya(t),o.fakeWeakRefs.push(n)),this._ref=n,this._data=r}get(){const e=this._ref;let t;return e&&(t=e.deref(),t||delete this._ref),t}getData(){return this._data}}function ts(e,t){const r=Qa(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(e=>!Ya.cleanup(e,t))}function rs(e){const t=Qa(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=function(e){return e.basics.WeakRef}(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,ts(e),rs(e)},12e4))}function os(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const o=Za?r:{acceptNode:r};return Ka.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,o,!1)}function ns(e,t){let r=t.__tabsterCacheId;const o=Qa(e),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new Xa;let a=0,s=0,l=i.clientWidth,c=i.clientHeight;if(t!==i){const e=t.getBoundingClientRect();a=Math.max(a,e.left),s=Math.max(s,e.top),l=Math.min(l,e.right),c=Math.min(c,e.bottom)}const u=new Xa(a<l?a:-1,s<c?s:-1,a<l?l-a:0,s<c?c-s:0);return r||(r="r-"+ ++o.lastContainerBoundingRectCacheId,t.__tabsterCacheId=r),o.containerBoundingRectCache[r]={rect:u,element:t},o.containerBoundingRectCacheTimer||(o.containerBoundingRectCacheTimer=window.setTimeout(()=>{o.containerBoundingRectCacheTimer=void 0;for(const e of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[e].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),u}function is(e,t,r){const o=as(t);if(!o)return!1;const n=ns(e,o),i=t.getBoundingClientRect(),a=i.height*(1-r),s=Math.max(0,n.top-i.top)+Math.max(0,i.bottom-n.bottom);return 0===s||s<=a}function as(e){const t=e.ownerDocument;if(t){for(let t=Ka.getParentElement(e);t;t=Ka.getParentElement(t))if(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)return t;return t.documentElement}return null}function ss(e){return!!e.__shouldIgnoreFocus}function ls(e,t){const r=Qa(e);let o=t.__tabsterElementUID;return o||(o=t.__tabsterElementUID=function(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let e=0;e<t.length;e++)t[e]=4294967295*Math.random();const r=[];for(let e=0;e<t.length;e++)r.push(t[e].toString(36));return r.push("|"),r.push((++Ja).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}(e())),!r.elementByUId[o]&&us(t.ownerDocument,t)&&(r.elementByUId[o]=new es(e,t)),o}function cs(e,t){const r=Qa(e);for(const e of Object.keys(r.elementByUId)){const o=r.elementByUId[e],n=o&&o.get();n&&t&&!Ka.nodeContains(t,n)||delete r.elementByUId[e]}}function us(e,t){return Ka.nodeContains(null==e?void 0:e.body,t)}function ds(e,t){const r=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return r&&r.call(e,t)}let fs=0;class hs{constructor(e,t,r){const o=e.getWindow;this._tabster=e,this._element=new es(o,t),this._props={...r},this.id="i"+ ++fs}getElement(){return this._element.get()}getProps(){return this._props}setProps(e){this._props={...e}}}class ps{constructor(e,t,r,o,n){var i;this._focusIn=e=>{if(this._fixedTarget){const e=this._fixedTarget.get();return void(e&&Ke(e))}const t=this.input;if(this.onFocusIn&&t){const r=e.relatedTarget;this.onFocusIn(this,this._isBackward(!0,t,r),r)}},this._focusOut=e=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const t=this.input;if(this.onFocusOut&&t){const r=e.relatedTarget;this.onFocusOut(this,this._isBackward(!1,t,r),r)}};const a=e(),s=a.document.createElement("i");s.tabIndex=0,s.setAttribute("role","none"),s.setAttribute("data-tabster-dummy",""),s.setAttribute("aria-hidden","true");const l=s.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),function(e){e.__shouldIgnoreFocus=!0}(s),this.input=s,this.isFirst=r.isFirst,this.isOutside=t,this._isPhantom=null!==(i=r.isPhantom)&&void 0!==i&&i,this._fixedTarget=n,s.addEventListener("focusin",this._focusIn),s.addEventListener("focusout",this._focusOut),s.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,null===(e=Ka.getParentNode(t))||void 0===e||e.removeChild(t))}setTopLeft(e,t){var r;const o=null===(r=this.input)||void 0===r?void 0:r.style;o&&(o.top=`${e}px`,o.left=`${t}px`)}_isBackward(e,t,r){return e&&!r?!this.isFirst:!!(r&&t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)}}class ms{constructor(e,t,r,o,n,i){this._element=t,this._instance=new gs(e,t,this,r,o,n,i)}_setHandlers(e,t){this._onFocusIn=e,this._onFocusOut=t}moveOut(e){var t;null===(t=this._instance)||void 0===t||t.moveOut(e)}moveOutWithDefaultAction(e,t){var r;null===(r=this._instance)||void 0===r||r.moveOutWithDefaultAction(e,t)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var t;null===(t=this._instance)||void 0===t||t.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,t,r,o,n){const i=new ps(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(i){let a,s;if("BODY"===t.tagName)a=t,s=r&&o||!r&&!o?Ka.getFirstElementChild(t):null;else{let n,i;r&&(!o||o&&!e.focusable.isFocusable(t,!1,!0,!0))?(a=t,s=o?t.firstElementChild:null):(a=Ka.getParentElement(t),s=r&&o||!r&&!o?t:Ka.getNextElementSibling(t));do{n=r&&o||!r&&!o?Ka.getPreviousElementSibling(s):s,i=ws(n),i===t?s=r&&o||!r&&!o?n:Ka.getNextElementSibling(n):i=null}while(i)}(null==a?void 0:a.dispatchEvent(new Wa({by:"root",owner:a,next:null,relatedEvent:n})))&&(Ka.insertBefore(a,i,s),Ke(i))}}static addPhantomDummyWithTarget(e,t,r,o){const n=new ps(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new es(e.getWindow,o)).input;if(n){let e,o;t.querySelector(Na)&&!r?(e=t,o=Ka.getFirstElementChild(t)):(e=Ka.getParentElement(t),o=r?t:Ka.getNextElementSibling(t)),e&&Ka.insertBefore(e,n,o)}}}class vs{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=e=>{var t;this._changedParents.has(e)||(this._changedParents.add(e),this._updateDummyInputsTimer||(this._updateDummyInputsTimer=null===(t=this._win)||void 0===t?void 0:t.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const e of this._dummyElements){const t=e.get();if(t){const e=this._dummyCallbacks.get(t);if(e){const r=Ka.getParentNode(t);r&&!this._changedParents.has(r)||e()}}}this._changedParents=new WeakSet},100)))},this._win=e}add(e,t){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new es(this._win,e)),this._dummyCallbacks.set(e,t),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(t=>{const r=t.get();return r&&r!==e}),this._dummyCallbacks.delete(e),0===this._dummyElements.length&&delete this.domChanged}dispose(){var e;const t=null===(e=this._win)||void 0===e?void 0:e.call(this);this._updateTimer&&(null==t||t.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(null==t||t.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=null===(e=this._win)||void 0===e?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+100<=Date.now()){const e=new Map,t=[];for(const r of this._updateQueue)t.push(r(e));this._updateQueue.clear();for(const e of t)e();e.clear()}else this._scheduledUpdatePositions()},100))}}class gs{constructor(e,t,r,o,n,i,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(e,t,r)=>{this._onFocus(!0,e,t,r)},this._onFocusOut=(e,t,r)=>{this._onFocus(!1,e,t,r)},this.moveOut=e=>{var t;const r=this._firstDummy,o=this._lastDummy;if(r&&o){this._ensurePosition();const n=r.input,i=o.input,a=null===(t=this._element)||void 0===t?void 0:t.get();if(n&&i&&a){let t;e?(n.tabIndex=0,t=n):(i.tabIndex=0,t=i),t&&Ke(t)}}},this.moveOutWithDefaultAction=(e,t)=>{var r;const o=this._firstDummy,n=this._lastDummy;if(o&&n){this._ensurePosition();const i=o.input,a=n.input,s=null===(r=this._element)||void 0===r?void 0:r.get();if(i&&a&&s){let r;e?!o.isOutside&&this._tabster.focusable.isFocusable(s,!0,!0,!0)?r=s:(o.useDefaultAction=!0,i.tabIndex=0,r=i):(n.useDefaultAction=!0,a.tabIndex=0,r=a),r&&s.dispatchEvent(new Wa({by:"root",owner:s,next:null,relatedEvent:t}))&&Ke(r)}}},this.setTabbable=(e,t)=>{var r,o;for(const r of this._wrappers)if(r.manager===e){r.tabbable=t;break}const n=this._getCurrent();if(n){const e=n.tabbable?0:-1;let t=null===(r=this._firstDummy)||void 0===r?void 0:r.input;t&&(t.tabIndex=e),t=null===(o=this._lastDummy)||void 0===o?void 0:o.input,t&&(t.tabIndex=e)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=e=>{var t,r;const o=(null===(t=this._firstDummy)||void 0===t?void 0:t.input)||(null===(r=this._lastDummy)||void 0===r?void 0:r.input),n=this._transformElements,i=new Set;let a=0,s=0;const l=this._getWindow();for(let t=o;t&&t.nodeType===Node.ELEMENT_NODE;t=Ka.getParentElement(t)){let r=e.get(t);if(void 0===r){const o=l.getComputedStyle(t).transform;o&&"none"!==o&&(r={scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),e.set(t,r||null)}r&&(i.add(t),n.has(t)||t.addEventListener("scroll",this._addTransformOffsets),a+=r.scrollTop,s+=r.scrollLeft)}for(const e of n)i.has(e)||e.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=i,()=>{var e,t;null===(e=this._firstDummy)||void 0===e||e.setTopLeft(a,s),null===(t=this._lastDummy)||void 0===t||t.setTopLeft(a,s)}};const s=t.get();if(!s)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=a;const l=s.__tabsterDummy;if((l||this)._wrappers.push({manager:r,priority:o,tabbable:!0}),l)return l;s.__tabsterDummy=this;const c=null==n?void 0:n.dummyInputsPosition,u=s.tagName;this._isOutside=c?2===c:(i||"UL"===u||"OL"===u||"TABLE"===u)&&!("LI"===u||"TD"===u||"TH"===u),this._firstDummy=new ps(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new ps(this._getWindow,this._isOutside,{isFirst:!1},t);const d=this._firstDummy.input;d&&e._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=t,this._addDummyInputs()}dispose(e,t){var r,o,n,i;if(0===(this._wrappers=this._wrappers.filter(r=>r.manager!==e&&!t)).length){delete(null===(r=this._element)||void 0===r?void 0:r.get()).__tabsterDummy;for(const e of this._transformElements)e.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const e=this._getWindow();this._addTimer&&(e.clearTimeout(this._addTimer),delete this._addTimer);const t=null===(o=this._firstDummy)||void 0===o?void 0:o.input;t&&this._tabster._dummyObserver.remove(t),null===(n=this._firstDummy)||void 0===n||n.dispose(),null===(i=this._lastDummy)||void 0===i||i.dispose()}}_onFocus(e,t,r,o){var n;const i=this._getCurrent();!i||t.useDefaultAction&&!this._callForDefaultAction||null===(n=i.manager.getHandler(e))||void 0===n||n(t,r,o)}_getCurrent(){return this._wrappers.sort((e,t)=>e.tabbable!==t.tabbable?e.tabbable?-1:1:e.priority-t.priority),this._wrappers[0]}_ensurePosition(){var e,t,r;const o=null===(e=this._element)||void 0===e?void 0:e.get(),n=null===(t=this._firstDummy)||void 0===t?void 0:t.input,i=null===(r=this._lastDummy)||void 0===r?void 0:r.input;if(o&&n&&i)if(this._isOutside){const e=Ka.getParentNode(o);if(e){const t=Ka.getNextSibling(o);t!==i&&Ka.insertBefore(e,i,t),Ka.getPreviousElementSibling(o)!==n&&Ka.insertBefore(e,n,o)}}else{Ka.getLastElementChild(o)!==i&&Ka.appendChild(o,i);const e=Ka.getFirstElementChild(o);e&&e!==n&&e.parentNode&&Ka.insertBefore(e.parentNode,n,e)}}}function bs(e){let t=null;for(let r=Ka.getLastElementChild(e);r;r=Ka.getLastElementChild(r))t=r;return t||void 0}function ys(e){return"INPUT"===e.tagName&&!!e.name&&"radio"===e.type}function ws(e){var t;return(null===(t=null==e?void 0:e.__tabsterDummyContainer)||void 0===t?void 0:t.get())||null}function ks(e,t){const r=JSON.stringify(e);return!0===t?r:{[Ba]:r}}class xs extends ms{constructor(e,t,r,o){super(e,t,1,o,void 0,!0),this._onDummyInputFocus=e=>{var t;if(e.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const r=this._element.get();if(r){this._setFocused(!0);const t=this._tabster.focusedElement.getFirstOrLastTabbable(e.isFirst,{container:r,ignoreAccessibility:!0});if(t)return void Ke(t)}null===(t=e.input)||void 0===t||t.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=r}}class _s extends hs{constructor(e,t,r,o,n){super(e,t,o),this._isFocused=!1,this._setFocused=e=>{var t;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===e)return;const r=this._element.get();r&&(e?(this._isFocused=!0,null===(t=this._dummyManager)||void 0===t||t.setTabbable(!1),r.dispatchEvent(new Ua({element:r}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var e;delete this._setFocusedTimer,this._isFocused=!1,null===(e=this._dummyManager)||void 0===e||e.setTabbable(!0),r.dispatchEvent(new Ga({element:r}))},0))},this._onFocusIn=e=>{const t=this._tabster.getParent,r=this._element.get();let o=e.composedPath()[0];do{if(o===r)return void this._setFocused(!0);o=o&&t(o)}while(o)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=r;const i=e.getWindow;this.uid=ls(i,t),this._sys=n,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const a=i().document;a.addEventListener($e,this._onFocusIn),a.addEventListener(Ue,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new xs(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const t=this._tabster.getWindow(),r=t.document;r.removeEventListener($e,this._onFocusIn),r.removeEventListener(Ue,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),null===(e=this._dummyManager)||void 0===e||e.dispose(),this._remove()}moveOutWithDefaultAction(e,t){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(e,t);else{const r=this.getElement();r&&xs.moveWithPhantomDummy(this._tabster,r,!0,e,t)}}_add(){}_remove(){}}class Es{constructor(e,t){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var e;const t=this._win().document,r=t.body;if(r){this._autoRootUnwait(t);const o=this._autoRoot;if(o)return function(e,t,r){let o;if(r){const t=e.getAttribute(Ba);if(t)try{o=JSON.parse(t)}catch(e){}}o||(o={}),function(e,t){for(const r of Object.keys(t)){const o=t[r];o?e[r]=o:delete e[r]}}(o,t),Object.keys(o).length>0?e.setAttribute(Ba,ks(o,!0)):e.removeAttribute(Ba)}(r,{root:o},!0),za(this._tabster,r),null===(e=Ra(this._tabster,r))||void 0===e?void 0:e.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,t.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=e=>{delete this._roots[e.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=t,e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(e=>{this._roots[e]&&(this._roots[e].dispose(),delete this._roots[e])}),this.rootById={}}createRoot(e,t,r){const o=new _s(this._tabster,e,this._onRootDispose,t,r);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const t of Object.keys(e))e[t].addDummyInputs()}static getRootByUId(e,t){const r=e().__tabsterInstance;return r&&r.root.rootById[t]}static getTabsterContext(e,t,r){var o,n,i,a;if(void 0===r&&(r={}),!t.ownerDocument)return;const{checkRtl:s,referenceElement:l}=r,c=e.getParent;let u,d,f,h;e.drainInitQueue();let p,m,v,g,b=!1,y=l||t;const w={};for(;y&&(!u||s);){const r=Ra(e,y);if(s&&void 0===v){const e=y.dir;e&&(v="rtl"===e.toLowerCase())}if(!r){y=c(y);continue}const a=y.tagName;(r.uncontrolled||"IFRAME"===a||"WEBVIEW"===a)&&e.focusable.isVisible(y)&&(g=y),h||!(null===(o=r.focusable)||void 0===o?void 0:o.excludeFromMover)||f||(b=!0);const l=r.modalizer,k=r.groupper,x=r.mover;!d&&l&&(d=l),f||!k||d&&!l||(d?(!k.isActive()&&k.getProps().tabbability&&d.userId!==(null===(n=e.modalizer)||void 0===n?void 0:n.activeId)&&(d=void 0,f=k),m=k):f=k),h||!x||d&&!l||k&&y===t||!y.contains(t)||(h=x,p=!!f&&f!==k),r.root&&(u=r.root),(null===(i=r.focusable)||void 0===i?void 0:i.ignoreKeydown)&&Object.assign(w,r.focusable.ignoreKeydown),y=c(y)}if(!u){const r=e.root;r._autoRoot&&(null===(a=t.ownerDocument)||void 0===a?void 0:a.body)&&(u=r._autoRootCreate())}return f&&!h&&(p=!0),u?{root:u,modalizer:d,groupper:f,mover:h,groupperBeforeMover:p,modalizerInGroupper:m,rtl:s?!!v:void 0,uncontrolled:g,excludedFromMover:b,ignoreKeydown:e=>!!w[e.key]}:void 0}static getRoot(e,t){var r;const o=e.getParent;for(let n=t;n;n=o(n)){const t=null===(r=Ra(e,n))||void 0===r?void 0:r.root;if(t)return t}}onRoot(e,t){t?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}class Cs{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const t=this._callbacks;t.indexOf(e)<0&&t.push(e)}subscribeFirst(e){const t=this._callbacks,r=t.indexOf(e);r>=0&&t.splice(r,1),t.unshift(e)}unsubscribe(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}setVal(e,t){this._val!==e&&(this._val=e,this._callCallbacks(e,t))}getVal(){return this._val}trigger(e,t){this._callCallbacks(e,t)}_callCallbacks(e,t){this._callbacks.forEach(r=>r(e,t))}}class Ts{constructor(e){this._tabster=e}dispose(){}getProps(e){const t=Ra(this._tabster,e);return t&&t.focusable||{}}isFocusable(e,t,r,o){return!(!ds(e,Na)||!t&&-1===e.tabIndex)&&(r||this.isVisible(e))&&(o||this.isAccessible(e))}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE)return!1;if(function(e){var t,r;const o=e.ownerDocument,n=null===(t=o.defaultView)||void 0===t?void 0:t.getComputedStyle(e);if(null===e.offsetParent&&o.body!==e&&"fixed"!==(null==n?void 0:n.position))return!0;if("hidden"===(null==n?void 0:n.visibility))return!0;if("fixed"===(null==n?void 0:n.position)){if("none"===n.display)return!0;if(null===(null===(r=e.parentElement)||void 0===r?void 0:r.offsetParent)&&o.body!==e.parentElement)return!0}return!1}(e))return!1;const t=e.ownerDocument.body.getBoundingClientRect();return 0!==t.width||0!==t.height}isAccessible(e){var t;for(let r=e;r;r=Ka.getParentElement(r)){const e=Ra(this._tabster,r);if(this._isHidden(r))return!1;if(!(null===(t=null==e?void 0:e.focusable)||void 0===t?void 0:t.ignoreAriaDisabled)&&this._isDisabled(r))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var t;const r=e.getAttribute("aria-hidden");return!(!r||"true"!==r.toLowerCase()||(null===(t=this._tabster.modalizer)||void 0===t?void 0:t.isAugmented(e)))}findFirst(e,t){return this.findElement({...e},t)}findLast(e,t){return this.findElement({isBackward:!0,...e},t)}findNext(e,t){return this.findElement({...e},t)}findPrev(e,t){return this.findElement({...e,isBackward:!0},t)}findDefault(e,t){return this.findElement({...e,acceptCondition:t=>this.isFocusable(t,e.includeProgrammaticallyFocusable)&&!!this.getProps(t).isDefault},t)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,t){const r=this._findElements(!1,e,t);return r?r[0]:r}_findElements(e,t,r){var o,n,i;const{container:a,currentElement:s=null,includeProgrammaticallyFocusable:l,useActiveModalizer:c,ignoreAccessibility:u,modalizerId:d,isBackward:f,onElement:h}=t;r||(r={});const p=[];let{acceptCondition:m}=t;const v=!!m;if(!a)return null;m||(m=e=>this.isFocusable(e,l,!1,u));const g={container:a,modalizerUserId:void 0===d&&c?null===(o=this._tabster.modalizer)||void 0===o?void 0:o.activeId:d||(null===(i=null===(n=Es.getTabsterContext(this._tabster,a))||void 0===n?void 0:n.modalizer)||void 0===i?void 0:i.userId),from:s||a,isBackward:f,isFindAll:e,acceptCondition:m,hasCustomCondition:v,includeProgrammaticallyFocusable:l,ignoreAccessibility:u,cachedGrouppers:{},cachedRadioGroups:{}},b=os(a.ownerDocument,a,e=>this._acceptElement(e,g));if(!b)return null;const y=t=>{var o,n;const i=null!==(o=g.foundElement)&&void 0!==o?o:g.foundBackward;return i&&p.push(i),e?!(i&&(g.found=!1,delete g.foundElement,delete g.foundBackward,delete g.fromCtx,g.from=i,h&&!h(i))||!i&&!t):(i&&r&&(r.uncontrolled=null===(n=Es.getTabsterContext(this._tabster,i))||void 0===n?void 0:n.uncontrolled),!(!t||i))};if(s||(r.outOfDOMOrder=!0),s&&Ka.nodeContains(a,s))b.currentNode=s;else if(f){const e=bs(a);if(!e)return null;if(this._acceptElement(e,g)===NodeFilter.FILTER_ACCEPT&&!y(!0))return g.skippedFocusable&&(r.outOfDOMOrder=!0),p;b.currentNode=e}do{f?b.previousNode():b.nextNode()}while(y());return g.skippedFocusable&&(r.outOfDOMOrder=!0),p.length?p:null}_acceptElement(e,t){var r,o,n;if(t.found)return NodeFilter.FILTER_ACCEPT;const i=t.foundBackward;if(i&&(e===i||!Ka.nodeContains(i,e)))return t.found=!0,t.foundElement=i,NodeFilter.FILTER_ACCEPT;const a=t.container;if(e===a)return NodeFilter.FILTER_SKIP;if(!Ka.nodeContains(a,e))return NodeFilter.FILTER_REJECT;if(ws(e))return NodeFilter.FILTER_REJECT;if(Ka.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;const s=t.currentCtx=Es.getTabsterContext(this._tabster,e);if(!s)return NodeFilter.FILTER_SKIP;if(ss(e))return this.isFocusable(e,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&("IFRAME"===e.tagName||"WEBVIEW"===e.tagName))return this.isVisible(e)&&(null===(r=s.modalizer)||void 0===r?void 0:r.userId)===(null===(o=this._tabster.modalizer)||void 0===o?void 0:o.activeId)?(t.found=!0,t.rejectElementsFrom=t.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let l,c=t.fromCtx;c||(c=t.fromCtx=Es.getTabsterContext(this._tabster,t.from));const u=null==c?void 0:c.mover;let d=s.groupper,f=s.mover;if(l=null===(n=this._tabster.modalizer)||void 0===n?void 0:n.acceptElement(e,t),void 0!==l&&(t.skippedFocusable=!0),void 0===l&&(d||f||u)){const r=null==d?void 0:d.getElement(),o=null==u?void 0:u.getElement();let n=null==f?void 0:f.getElement();if(n&&Ka.nodeContains(o,n)&&Ka.nodeContains(a,o)&&(!r||!f||Ka.nodeContains(o,r))&&(f=u,n=o),r)if(r!==a&&Ka.nodeContains(a,r)){if(!Ka.nodeContains(r,e))return NodeFilter.FILTER_REJECT}else d=void 0;if(n)if(Ka.nodeContains(a,n)){if(!Ka.nodeContains(n,e))return NodeFilter.FILTER_REJECT}else f=void 0;d&&f&&(n&&r&&!Ka.nodeContains(r,n)?f=void 0:d=void 0),d&&(l=d.acceptElement(e,t)),f&&(l=f.acceptElement(e,t))}if(void 0===l&&(l=t.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,l===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0)),l===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&ys(e)&&!e.checked){const r=e.name;let o=t.cachedRadioGroups[r];if(o||(o=function(e){if(!ys(e))return;const t=e.name;let r,o=Array.from(Ka.getElementsByName(e,t));return o=o.filter(e=>!!ys(e)&&(e.checked&&(r=e),!0)),{name:t,buttons:new Set(o),checked:r}}(e),o&&(t.cachedRadioGroups[r]=o)),(null==o?void 0:o.checked)&&o.checked!==e)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=e,l=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=e)}return l}}const Ss="Home",Bs="ArrowLeft",Ns="ArrowUp",Os="ArrowRight",js="ArrowDown",Ps={[ja]:0,[Pa]:1,[Oa]:2};class Rs extends Cs{constructor(e,t){super(),this._init=()=>{const e=this._win(),t=e.document;t.addEventListener($e,this._onFocusIn,!0),t.addEventListener(Ue,this._onFocusOut,!0),e.addEventListener("keydown",this._onKeyDown,!0);const r=Ka.getActiveElement(t);r&&r!==t.body&&this._setFocusedElement(r),this.subscribe(this._onChanged)},this._onFocusIn=e=>{const t=e.composedPath()[0];t&&this._setFocusedElement(t,e.detail.relatedTarget,e.detail.isFocusedProgrammatically)},this._onFocusOut=e=>{var t;this._setFocusedElement(void 0,null===(t=e.detail)||void 0===t?void 0:t.originalEvent.relatedTarget)},this._validateFocusedElement=e=>{},this._onKeyDown=e=>{if("Tab"!==e.key||e.ctrlKey)return;const t=this.getVal();if(!t||!t.ownerDocument||"true"===t.contentEditable)return;const r=this._tabster,o=r.controlTab,n=Es.getTabsterContext(r,t);if(!n||n.ignoreKeydown(e))return;const i=e.shiftKey,a=Rs.findNextTabbable(r,n,void 0,t,void 0,i,!0),s=n.root.getElement();if(!s)return;const l=null==a?void 0:a.element,c=function(e,t){var r;const o=e.getParent;let n=t;do{const t=null===(r=Ra(e,n))||void 0===r?void 0:r.uncontrolled;if(t&&e.uncontrolled.isUncontrolledCompletely(n,!!t.completely))return n;n=o(n)}while(n)}(r,t);if(l){const u=a.uncontrolled;if(n.uncontrolled||Ka.nodeContains(u,t)){if(!a.outOfDOMOrder&&u===n.uncontrolled||c&&!Ka.nodeContains(c,l))return;return void ms.addPhantomDummyWithTarget(r,t,i,l)}if(u&&r.focusable.isVisible(u)||"IFRAME"===l.tagName&&r.focusable.isVisible(l))return void(s.dispatchEvent(new Wa({by:"root",owner:s,next:l,relatedEvent:e}))&&ms.moveWithPhantomDummy(r,null!=u?u:l,!1,i,e));(o||(null==a?void 0:a.outOfDOMOrder))&&s.dispatchEvent(new Wa({by:"root",owner:s,next:l,relatedEvent:e}))&&(e.preventDefault(),e.stopImmediatePropagation(),Ke(l))}else!c&&s.dispatchEvent(new Wa({by:"root",owner:s,next:null,relatedEvent:e}))&&n.root.moveOutWithDefaultAction(i,e)},this._onChanged=(e,t)=>{var r,o;if(e)e.dispatchEvent(new Ma(t));else{const e=null===(r=this._lastVal)||void 0===r?void 0:r.get();if(e){const r={...t},n=Es.getTabsterContext(this._tabster,e),i=null===(o=null==n?void 0:n.modalizer)||void 0===o?void 0:o.userId;i&&(r.modalizerId=i),e.dispatchEvent(new Ha(r))}}},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win(),t=e.document;t.removeEventListener($e,this._onFocusIn,!0),t.removeEventListener(Ue,this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const r=this._asyncFocus;r&&(e.clearTimeout(r.timeout),delete this._asyncFocus),delete Rs._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,t){var r,o;let n=Rs._lastResetElement,i=n&&n.get();i&&Ka.nodeContains(t,i)&&delete Rs._lastResetElement,i=null===(o=null===(r=e._nextVal)||void 0===r?void 0:r.element)||void 0===o?void 0:o.get(),i&&Ka.nodeContains(t,i)&&delete e._nextVal,n=e._lastVal,i=n&&n.get(),i&&Ka.nodeContains(t,i)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let t=null===(e=this._lastVal)||void 0===e?void 0:e.get();return(!t||t&&!us(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}focus(e,t,r,o){return!!this._tabster.focusable.isFocusable(e,t,!1,r)&&(e.focus({preventScroll:o}),!0)}focusDefault(e){const t=this._tabster.focusable.findDefault({container:e});return!!t&&(this._tabster.focusedElement.focus(t),!0)}getFirstOrLastTabbable(e,t){var r;const{container:o,ignoreAccessibility:n}=t;let i;if(o){const t=Es.getTabsterContext(this._tabster,o);t&&(i=null===(r=Rs.findNextTabbable(this._tabster,t,o,void 0,void 0,!e,n))||void 0===r?void 0:r.element)}return i&&!Ka.nodeContains(o,i)&&(i=void 0),i||void 0}_focusFirstOrLast(e,t){const r=this.getFirstOrLastTabbable(e,t);return!!r&&(this.focus(r,!1,!0),!0)}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const t=e.getAttribute("tabindex"),r=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),Rs._lastResetElement=new es(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",t),this._setOrRemoveAttribute(e,"aria-hidden",r)}return!0}requestAsyncFocus(e,t,r){const o=this._tabster.getWindow(),n=this._asyncFocus;if(n){if(Ps[e]>Ps[n.source])return;o.clearTimeout(n.timeout)}this._asyncFocus={source:e,callback:t,timeout:o.setTimeout(()=>{this._asyncFocus=void 0,t()},r)}}cancelAsyncFocus(e){const t=this._asyncFocus;(null==t?void 0:t.source)===e&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(e,t,r){null===r?e.removeAttribute(t):e.setAttribute(t,r)}_setFocusedElement(e,t,r){var o,n;if(this._tabster._noop)return;const i={relatedTarget:t};if(e){const t=null===(o=Rs._lastResetElement)||void 0===o?void 0:o.get();if(Rs._lastResetElement=void 0,t===e||ss(e))return;i.isFocusedProgrammatically=r;const a=Es.getTabsterContext(this._tabster,e),s=null===(n=null==a?void 0:a.modalizer)||void 0===n?void 0:n.userId;s&&(i.modalizerId=s)}const a=this._nextVal={element:e?new es(this._win,e):void 0,detail:i};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===a&&this.setVal(e,i),this._nextVal=void 0}setVal(e,t){super.setVal(e,t),e&&(this._lastVal=new es(this._win,e))}static findNextTabbable(e,t,r,o,n,i,a){const s=r||t.root.getElement();if(!s)return null;let l=null;const c=Rs._isTabbingTimer,u=e.getWindow();c&&u.clearTimeout(c),Rs.isTabbing=!0,Rs._isTabbingTimer=u.setTimeout(()=>{delete Rs._isTabbingTimer,Rs.isTabbing=!1},0);const d=t.modalizer,f=t.groupper,h=t.mover,p=t=>{if(l=t.findNextTabbable(o,n,i,a),o&&!(null==l?void 0:l.element)){const n=t!==d&&Ka.getParentElement(t.getElement());if(n){const s=Es.getTabsterContext(e,o,{referenceElement:n});if(s){const o=t.getElement(),c=i?o:o&&bs(o)||o;c&&(l=Rs.findNextTabbable(e,s,r,c,n,i,a),l&&(l.outOfDOMOrder=!0))}}}};if(f&&h)p(t.groupperBeforeMover?f:h);else if(f)p(f);else if(h)p(h);else if(d)p(d);else{const t={container:s,currentElement:o,referenceElement:n,ignoreAccessibility:a,useActiveModalizer:!0},r={},c=e.focusable[i?"findPrev":"findNext"](t,r);l={element:c,outOfDOMOrder:r.outOfDOMOrder,uncontrolled:r.uncontrolled}}return l}}Rs.isTabbing=!1;class zs extends Cs{constructor(e){super(),this._onChange=e=>{this.setVal(e,void 0)},this._keyborg=Qe(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Ye(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var t;null===(t=this._keyborg)||void 0===t||t.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(null===(e=this._keyborg)||void 0===e?void 0:e.isNavigatingWithKeyboard())}}const Ds=["input","textarea","*[contenteditable]"].join(", ");class Fs extends ms{constructor(e,t,r,o){super(t,e,3,o),this._onFocusDummyInput=e=>{var t,r;const o=this._element.get(),n=e.input;if(o&&n){const i=Es.getTabsterContext(this._tabster,o);let a;i&&(a=null===(t=Rs.findNextTabbable(this._tabster,i,void 0,n,void 0,!e.isFirst,!0))||void 0===t?void 0:t.element);const s=null===(r=this._getMemorized())||void 0===r?void 0:r.get();s&&this._tabster.focusable.isFocusable(s)&&(a=s),a&&Ke(a)}},this._tabster=t,this._getMemorized=r,this._setHandlers(this._onFocusDummyInput)}}class As extends hs{constructor(e,t,r,o,n){var i;super(e,t,o),this._visible={},this._onIntersection=e=>{for(const t of e){const e=t.target,r=ls(this._win,e);let o,n=this._fullyVisible;if(t.intersectionRatio>=.25?(o=t.intersectionRatio>=.75?2:1,2===o&&(n=r)):o=0,this._visible[r]!==o){void 0===o?(delete this._visible[r],n===r&&delete this._fullyVisible):(this._visible[r]=o,this._fullyVisible=n);const t=this.getState(e);t&&e.dispatchEvent(new Va(t))}}},this._win=e.getWindow,this.visibilityTolerance=null!==(i=o.visibilityTolerance)&&void 0!==i?i:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=r;e.controlTab||(this.dummyManager=new Fs(this._element,e,()=>o.memorizeCurrent?this._current:void 0,n))}dispose(){var e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const t=this._win();this._setCurrentTimer&&(t.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),null===(e=this.dummyManager)||void 0===e||e.dispose(),delete this.dummyManager}setCurrent(e){this._current=e?new es(this._win,e):void 0,!this._props.trackState&&!this._props.visibilityAware||this._setCurrentTimer||(this._setCurrentTimer=this._win().setTimeout(()=>{var e;delete this._setCurrentTimer;const t=[];this._current!==this._prevCurrent&&(t.push(this._current),t.push(this._prevCurrent),this._prevCurrent=this._current);for(const r of t){const t=null==r?void 0:r.get();if(t&&(null===(e=this._allElements)||void 0===e?void 0:e.get(t))===this){const e=this._props;if(t&&(void 0!==e.visibilityAware||e.trackState)){const e=this.getState(t);e&&t.dispatchEvent(new Va(e))}}}}))}getCurrent(){var e;return(null===(e=this._current)||void 0===e?void 0:e.get())||null}findNextTabbable(e,t,r,o){const n=this.getElement(),i=n&&ws(e)===n;if(!n)return null;let a,s=null,l=!1;if(this._props.tabbable||i||e&&!Ka.nodeContains(n,e)){const i={currentElement:e,referenceElement:t,container:n,ignoreAccessibility:o,useActiveModalizer:!0},c={};s=this._tabster.focusable[r?"findPrev":"findNext"](i,c),l=!!c.outOfDOMOrder,a=c.uncontrolled}return{element:s,uncontrolled:a,outOfDOMOrder:l}}acceptElement(e,t){var r,o;if(!Rs.isTabbing)return(null===(r=t.currentCtx)||void 0===r?void 0:r.excludedFromMover)?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:n,visibilityAware:i,hasDefault:a=!0}=this._props,s=this.getElement();if(s&&(n||i||a)&&(!Ka.nodeContains(s,t.from)||ws(t.from)===s)){let e;if(n){const r=null===(o=this._current)||void 0===o?void 0:o.get();r&&t.acceptCondition(r)&&(e=r)}if(!e&&a&&(e=this._tabster.focusable.findDefault({container:s,useActiveModalizer:!0})),!e&&i&&(e=this._tabster.focusable.findElement({container:s,useActiveModalizer:!0,isBackward:t.isBackward,acceptCondition:e=>{var r;const o=ls(this._win,e),n=this._visible[o];return s!==e&&!!(null===(r=this._allElements)||void 0===r?void 0:r.get(e))&&t.acceptCondition(e)&&(2===n||1===n&&(1===i||!this._fullyVisible))}})),e)return t.found=!0,t.foundElement=e,t.rejectElementsFrom=s,t.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||"undefined"==typeof MutationObserver)return;const t=this._win(),r=this._allElements=new WeakMap,o=this._tabster.focusable;let n=this._updateQueue=[];const i=Ka.createMutationObserver(e=>{for(const t of e){const e=t.target,r=t.removedNodes,o=t.addedNodes;if("attributes"===t.type)"tabindex"===t.attributeName&&n.push({element:e,type:2});else{for(let e=0;e<r.length;e++)n.push({element:r[e],type:3});for(let e=0;e<o.length;e++)n.push({element:o[e],type:1})}}u()}),a=(e,t)=>{var o,n;const i=r.get(e);i&&t&&(null===(o=this._intersectionObserver)||void 0===o||o.unobserve(e),r.delete(e)),i||t||(r.set(e,this),null===(n=this._intersectionObserver)||void 0===n||n.observe(e))},s=e=>{const t=o.isFocusable(e);r.get(e)?t||a(e,!0):t&&a(e)},l=e=>{const{mover:r}=d(e);if(r&&r!==this){if(r.getElement()!==e||!o.isFocusable(e))return;a(e)}const n=os(t.document,e,e=>{const{mover:t,groupper:r}=d(e);if(t&&t!==this)return NodeFilter.FILTER_REJECT;const n=null==r?void 0:r.getFirst(!0);return r&&r.getElement()!==e&&n&&n!==e?NodeFilter.FILTER_REJECT:(o.isFocusable(e)&&a(e),NodeFilter.FILTER_SKIP)});if(n)for(n.currentNode=e;n.nextNode(););},c=e=>{r.get(e)&&a(e,!0);for(let t=Ka.getFirstElementChild(e);t;t=Ka.getNextElementSibling(t))c(t)},u=()=>{!this._updateTimer&&n.length&&(this._updateTimer=t.setTimeout(()=>{delete this._updateTimer;for(const{element:e,type:t}of n)switch(t){case 2:s(e);break;case 1:l(e);break;case 3:c(e)}n=this._updateQueue=[]},0))},d=e=>{const t={};for(let r=e;r;r=Ka.getParentElement(r)){const e=Ra(this._tabster,r);if(e&&(e.groupper&&!t.groupper&&(t.groupper=e.groupper),e.mover)){t.mover=e.mover;break}}return t};n.push({element:e,type:1}),u(),i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{i.disconnect()}}getState(e){const t=ls(this._win,e);if(t in this._visible){const r=this._visible[t]||0;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:r}}}}class Is{constructor(e,t){this._init=()=>{const e=this._win();e.addEventListener("keydown",this._onKeyDown,!0),e.addEventListener(Fa,this._onMoveFocus),e.addEventListener(Aa,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=e=>{delete this._movers[e.id]},this._onFocus=e=>{var t;let r=e,o=e;for(let n=Ka.getParentElement(e);n;n=Ka.getParentElement(n)){const e=null===(t=Ra(this._tabster,n))||void 0===t?void 0:t.mover;e&&(e.setCurrent(o),r=void 0),!r&&this._tabster.focusable.isFocusable(n)&&(r=o=n)}},this._onKeyDown=async e=>{var t;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),null===(t=this._ignoredInputResolve)||void 0===t||t.call(this,!1),e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)return;const r=e.key;let o;if(r===js?o=2:r===Os?o=4:r===Ns?o=1:r===Bs?o=3:"PageDown"===r?o=6:"PageUp"===r?o=5:r===Ss?o=7:"End"===r&&(o=8),!o)return;const n=this._tabster.focusedElement.getFocusedElement();n&&!await this._isIgnoredInput(n,r)&&this._moveFocus(n,o,e)},this._onMoveFocus=e=>{var t;const r=e.composedPath()[0],o=null===(t=e.detail)||void 0===t?void 0:t.key;r&&void 0!==o&&!e.defaultPrevented&&(this._moveFocus(r,o),e.stopImmediatePropagation())},this._onMemorizedElement=e=>{var t;const r=e.composedPath()[0];let o=null===(t=e.detail)||void 0===t?void 0:t.memorizedElement;if(r){const t=Es.getTabsterContext(this._tabster,r),n=null==t?void 0:t.mover;n&&(o&&!Ka.nodeContains(n.getElement(),o)&&(o=void 0),n.setCurrent(o),e.stopImmediatePropagation())}},this._tabster=e,this._win=t,this._movers={},e.queueInit(this._init)}dispose(){var e;const t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),null===(e=this._ignoredInputResolve)||void 0===e||e.call(this,!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(Fa,this._onMoveFocus),t.removeEventListener(Aa,this._onMemorizedElement),Object.keys(this._movers).forEach(e=>{this._movers[e]&&(this._movers[e].dispose(),delete this._movers[e])})}createMover(e,t,r){const o=new As(this._tabster,e,this._onMoverDispose,t,r);return this._movers[o.id]=o,o}moveFocus(e,t){return this._moveFocus(e,t)}_moveFocus(e,t,r){var o,n;const i=this._tabster,a=Es.getTabsterContext(i,e,{checkRtl:!0});if(!a||!a.mover||a.excludedFromMover||r&&a.ignoreKeydown(r))return null;const s=a.mover,l=s.getElement();if(a.groupperBeforeMover){const e=a.groupper;if(!e||e.isActive(!0))return null;for(let t=Ka.getParentElement(e.getElement());t&&t!==l;t=Ka.getParentElement(t))if(null===(n=null===(o=Ra(i,t))||void 0===o?void 0:o.groupper)||void 0===n?void 0:n.isActive(!0))return null}if(!l)return null;const c=i.focusable,u=s.getProps(),d=u.direction||0,f=0===d,h=f||1===d,p=f||2===d,m=4===d,v=m||3===d,g=u.cyclic;let b,y,w,k=0,x=0;if(v&&(w=e.getBoundingClientRect(),k=Math.ceil(w.left),x=Math.floor(w.right)),a.rtl&&(4===t?t=3:3===t&&(t=4)),2===t&&h||4===t&&(p||v))if(b=c.findNext({currentElement:e,container:l,useActiveModalizer:!0}),b&&v){const e=Math.ceil(b.getBoundingClientRect().left);!m&&x>e&&(b=void 0)}else!b&&g&&(b=c.findFirst({container:l,useActiveModalizer:!0}));else if(1===t&&h||3===t&&(p||v))if(b=c.findPrev({currentElement:e,container:l,useActiveModalizer:!0}),b&&v){const e=Math.floor(b.getBoundingClientRect().right);!m&&e>k&&(b=void 0)}else!b&&g&&(b=c.findLast({container:l,useActiveModalizer:!0}));else if(7===t)v?c.findElement({container:l,currentElement:e,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{var r;if(!c.isFocusable(t))return!1;const o=Math.ceil(null!==(r=t.getBoundingClientRect().left)&&void 0!==r?r:0);return t!==e&&k<=o||(b=t,!1)}}):b=c.findFirst({container:l,useActiveModalizer:!0});else if(8===t)v?c.findElement({container:l,currentElement:e,useActiveModalizer:!0,acceptCondition:t=>{var r;if(!c.isFocusable(t))return!1;const o=Math.ceil(null!==(r=t.getBoundingClientRect().left)&&void 0!==r?r:0);return t!==e&&k>=o||(b=t,!1)}}):b=c.findLast({container:l,useActiveModalizer:!0});else if(5===t){if(c.findElement({currentElement:e,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:e=>!(!c.isFocusable(e)||is(this._win,e,s.visibilityTolerance)&&(b=e,1))}),v&&b){const e=Math.ceil(b.getBoundingClientRect().left);c.findElement({currentElement:b,container:l,useActiveModalizer:!0,acceptCondition:t=>{if(!c.isFocusable(t))return!1;const r=Math.ceil(t.getBoundingClientRect().left);return k<r||e>=r||(b=t,!1)}})}y=!1}else if(6===t){if(c.findElement({currentElement:e,container:l,useActiveModalizer:!0,acceptCondition:e=>!(!c.isFocusable(e)||is(this._win,e,s.visibilityTolerance)&&(b=e,1))}),v&&b){const e=Math.ceil(b.getBoundingClientRect().left);c.findElement({currentElement:b,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{if(!c.isFocusable(t))return!1;const r=Math.ceil(t.getBoundingClientRect().left);return k>r||e<=r||(b=t,!1)}})}y=!0}else if(v){const r=1===t,o=k,n=Math.ceil(w.top),i=x,a=Math.floor(w.bottom);let s,u,d=0;c.findAll({container:l,currentElement:e,isBackward:r,onElement:e=>{const t=e.getBoundingClientRect(),l=Math.ceil(t.left),c=Math.ceil(t.top),f=Math.floor(t.right),h=Math.floor(t.bottom);if(r&&n<h||!r&&a>c)return!0;const p=Math.ceil(Math.min(i,f))-Math.floor(Math.max(o,l)),m=Math.ceil(Math.min(i-o,f-l));if(p>0&&m>=p){const t=p/m;t>d&&(s=e,d=t)}else if(0===d){const t=function(e,t,r,o,n,i,a,s){const l=r<n?n-r:a<e?e-a:0,c=o<i?i-o:s<t?t-s:0;return 0===l?c:0===c?l:Math.sqrt(l*l+c*c)}(o,n,i,a,l,c,f,h);(void 0===u||t<u)&&(u=t,s=e)}else if(d>0)return!1;return!0}}),b=s}return b&&(!r||r&&l.dispatchEvent(new Wa({by:"mover",owner:l,next:b,relatedEvent:r})))?(void 0!==y&&function(e,t,r){const o=as(t);if(o){const n=ns(e,o),i=t.getBoundingClientRect();o.scrollTop+=r?i.top-n.top:i.bottom-n.bottom}}(this._win,b,y),r&&(r.preventDefault(),r.stopImmediatePropagation()),Ke(b),b):null}async _isIgnoredInput(e,t){if("true"===e.getAttribute("aria-expanded")&&e.hasAttribute("aria-activedescendant"))return!0;if(ds(e,Ds)){let r,o=0,n=0,i=0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName){const r=e.type,a=e.value;if(i=(a||"").length,"email"===r||"number"===r){if(i){const r=Ka.getSelection(e);if(r){const e=r.toString().length,o=t===Bs||t===Ns;if(r.modify("extend",o?"backward":"forward","character"),e!==r.toString().length)return r.modify("extend",o?"forward":"backward","character"),!0;i=0}}}else{const t=e.selectionStart;if(null===t)return"hidden"===r;o=t||0,n=e.selectionEnd||0}}else"true"===e.contentEditable&&(r=new(function(e){const t=Qa(e);if(t.basics.Promise)return t.basics.Promise;throw new Error("No Promise defined.")}(this._win))(t=>{this._ignoredInputResolve=e=>{delete this._ignoredInputResolve,t(e)};const r=this._win();this._ignoredInputTimer&&r.clearTimeout(this._ignoredInputTimer);const{anchorNode:a,focusNode:s,anchorOffset:l,focusOffset:c}=Ka.getSelection(e)||{};this._ignoredInputTimer=r.setTimeout(()=>{var t,r,u;delete this._ignoredInputTimer;const{anchorNode:d,focusNode:f,anchorOffset:h,focusOffset:p}=Ka.getSelection(e)||{};if(d===a&&f===s&&h===l&&p===c){if(o=h||0,n=p||0,i=(null===(r=e.textContent)||void 0===r?void 0:r.length)||0,d&&f&&Ka.nodeContains(e,d)&&Ka.nodeContains(e,f)&&d!==e){let t=!1;const r=e=>{if(e===d)t=!0;else if(e===f)return!0;const i=e.textContent;if(i&&!Ka.getFirstChild(e)){const e=i.length;t?f!==d&&(n+=e):(o+=e,n+=e)}let a=!1;for(let t=Ka.getFirstChild(e);t&&!a;t=t.nextSibling)a=r(t);return a};r(e)}null===(u=this._ignoredInputResolve)||void 0===u||u.call(this,!0)}else null===(t=this._ignoredInputResolve)||void 0===t||t.call(this,!1)},0)}));if(r&&!await r)return!0;if(o!==n)return!0;if(o>0&&(t===Bs||t===Ns||t===Ss))return!0;if(o<i&&(t===Os||t===js||"End"===t))return!0}return!1}}class qs{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,t){var r;const o=null===(r=this._isUncontrolledCompletely)||void 0===r?void 0:r.call(this,e,t);return void 0===o?t:o}}class Ls extends hs{constructor(e,t,r){var o;if(super(e,t,r),this._hasFocus=!1,this._onFocusOut=e=>{var t;const r=null===(t=this._element)||void 0===t?void 0:t.get();r&&null===e.relatedTarget&&r.dispatchEvent(new $a),r&&!Ka.nodeContains(r,e.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},0===this._props.type){const e=null===(o=this._element)||void 0===o?void 0:o.get();null==e||e.addEventListener("focusout",this._onFocusOut),null==e||e.addEventListener("focusin",this._onFocusIn),this._hasFocus=Ka.nodeContains(e,e&&Ka.getActiveElement(e.ownerDocument))}}dispose(){var e;if(0===this._props.type){const t=null===(e=this._element)||void 0===e?void 0:e.get();null==t||t.removeEventListener("focusout",this._onFocusOut),null==t||t.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new $a)}}}class Ms{constructor(e){this._stack=[],this._getWindow=e}push(e){var t;(null===(t=this._stack[this._stack.length-1])||void 0===t?void 0:t.get())!==e&&(this._stack.length>Ms.DEPTH&&this._stack.shift(),this._stack.push(new es(this._getWindow,e)))}pop(e){var t;void 0===e&&(e=()=>!0);const r=this._getWindow().document;for(let o=this._stack.length-1;o>=0;o--){const o=null===(t=this._stack.pop())||void 0===t?void 0:t.get();if(o&&Ka.nodeContains(r.body,Ka.getParentElement(o))&&e(o))return o}}}Ms.DEPTH=10;class Hs{constructor(e){this._onRestoreFocus=e=>{var t,r;this._focusedElementState.cancelAsyncFocus(2);const o=e.composedPath()[0];if(o){const e=null===(r=null===(t=Ra(this._tabster,o))||void 0===t?void 0:t.restorer)||void 0===r?void 0:r.getProps().id;this._focusedElementState.requestAsyncFocus(2,()=>this._restoreFocus(o,e),0)}},this._onFocusIn=e=>{var t;if(!e)return;const r=Ra(this._tabster,e);1===(null===(t=null==r?void 0:r.restorer)||void 0===t?void 0:t.getProps().type)&&this._history.push(e)},this._restoreFocus=(e,t)=>{var r;const o=this._getWindow().document;if(Ka.getActiveElement(o)!==o.body)return;if(!this._keyboardNavState.isNavigatingWithKeyboard()&&Ka.nodeContains(o.body,e))return;const n=e=>{var t,r;const o=null===(r=null===(t=Ra(this._tabster,e))||void 0===t?void 0:t.restorer)||void 0===r?void 0:r.getProps();return o?o.id:null};null===(r=this._history.pop(e=>t===n(e)))||void 0===r||r.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(Ia,this._onRestoreFocus),this._history=new Ms(this._getWindow),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(2),e.removeEventListener(Ia,this._onRestoreFocus)}createRestorer(e,t){const r=new Ls(this._tabster,e,t);return 1===t.type&&Ka.getActiveElement(e.ownerDocument)===e&&this._history.push(e),r}}class Ws{static _overrideAttachShadow(e){const t=e.Element.prototype.attachShadow;t.__origAttachShadow||(Element.prototype.attachShadow=function(e){const r=t.call(this,e);for(const e of Ws._shadowObservers)e._addSubObserver(r);return r},Element.prototype.attachShadow.__origAttachShadow=t)}constructor(e){this._isObserving=!1,this._callbackWrapper=(e,t)=>{for(const t of e)if("childList"===t.type){const e=t.removedNodes,r=t.addedNodes;for(let t=0;t<e.length;t++)this._walkShadows(e[t],!0);for(let e=0;e<r.length;e++)this._walkShadows(r[e])}this._callback(e,t)},this._callback=e,this._observer=new MutationObserver(this._callbackWrapper),this._subObservers=new Map}_addSubObserver(e){if(this._options&&this._callback&&!this._subObservers.has(e)&&this._options.subtree&&function(e,t){var r,o;if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n="function"!=typeof n.assignedElements&&(null===(r=n.assignedSlot)||void 0===r?void 0:r.parentNode)?null===(o=n.assignedSlot)||void 0===o?void 0:o.parentNode:n.nodeType===document.DOCUMENT_FRAGMENT_NODE?n.host:n.parentNode}return!1}(this._root,e)){const t=new MutationObserver(this._callbackWrapper);this._subObservers.set(e,t),this._isObserving&&t.observe(e,this._options),this._walkShadows(e)}}disconnect(){this._isObserving=!1,delete this._options,Ws._shadowObservers.delete(this);for(const e of this._subObservers.values())e.disconnect();this._subObservers.clear(),this._observer.disconnect()}observe(e,t){const r=e.nodeType===Node.DOCUMENT_NODE?e:e.ownerDocument,o=null==r?void 0:r.defaultView;r&&o&&(Ws._overrideAttachShadow(o),Ws._shadowObservers.add(this),this._root=e,this._options=t,this._isObserving=!0,this._observer.observe(e,t),this._walkShadows(e))}_walkShadows(e,t){const r=e.nodeType===Node.DOCUMENT_NODE?e:e.ownerDocument;if(!r)return;if(e===r)e=r.body;else{const t=e.shadowRoot;if(t)return void this._addSubObserver(t)}const o=r.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{if(e.nodeType===Node.ELEMENT_NODE)if(t){const t=this._subObservers.get(e);t&&(t.disconnect(),this._subObservers.delete(e))}else{const t=e.shadowRoot;t&&this._addSubObserver(t)}return NodeFilter.FILTER_SKIP}});o.nextNode()}takeRecords(){const e=this._observer.takeRecords();for(const t of this._subObservers.values())e.push(...t.takeRecords());return e}}Ws._shadowObservers=new Set;class Vs{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class $s{constructor(e,t){var r,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.6",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=function(e){const t=e.__tabsterInstanceContext;return new((null==t?void 0:t.basics.WeakMap)||WeakMap)}(e),this._win=e;const n=this.getWindow;(null==t?void 0:t.DOMAPI)&&function(e){for(const t of Object.keys(e))Ka[t]=e[t]}({...t.DOMAPI}),this.keyboardNavigation=new zs(n),this.focusedElement=new Rs(this,n),this.focusable=new Ts(this),this.root=new Es(this,null==t?void 0:t.autoRoot),this.uncontrolled=new qs((null==t?void 0:t.checkUncontrolledCompletely)||(null==t?void 0:t.checkUncontrolledTrappingFocus)),this.controlTab=null===(r=null==t?void 0:t.controlTab)||void 0===r||r,this.rootDummyInputs=!!(null==t?void 0:t.rootDummyInputs),this._dummyObserver=new vs(n),this.getParent=null!==(o=null==t?void 0:t.getParent)&&void 0!==o?o:Ka.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:e=>{if(!this._unobserve){const t=n().document;this._unobserve=function(e,t,r,o){if("undefined"==typeof MutationObserver)return()=>{};const n=t.getWindow;let i;function a(t,r){i||(i=Qa(n).elementByUId),s(t,r);const o=os(e,t,e=>s(e,r));if(o)for(;o.nextNode(););}function s(e,o){var a;if(!e.getAttribute)return NodeFilter.FILTER_SKIP;const s=e.__tabsterElementUID;return s&&i&&(o?delete i[s]:null!==(a=i[s])&&void 0!==a||(i[s]=new es(n,e))),(Ra(t,e)||e.hasAttribute(Ba))&&r(t,e,o),NodeFilter.FILTER_SKIP}const l=Ka.createMutationObserver(e=>{var o,n,i,s,l;const c=new Set;for(const l of e){const e=l.target,u=l.removedNodes,d=l.addedNodes;if("attributes"===l.type)l.attributeName===Ba&&(c.has(e)||r(t,e));else{for(let r=0;r<u.length;r++){const i=u[r];c.add(i),a(i,!0),null===(n=(o=t._dummyObserver).domChanged)||void 0===n||n.call(o,e)}for(let r=0;r<d.length;r++)a(d[r]),null===(s=(i=t._dummyObserver).domChanged)||void 0===s||s.call(i,e)}}c.clear(),null===(l=t.modalizer)||void 0===l||l.hiddenUpdate()});return o&&a(n().document.body),l.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Ba]}),()=>{l.disconnect()}}(t,this,za,e)}}},rs(n),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var t;e&&(this.getParent=null!==(t=e.getParent)&&void 0!==t?t:this.getParent)}createTabster(e,t){const r=new Vs(this);return e||this._wrappers.add(r),this._mergeProps(t),r}disposeTabster(e,t){t?this._wrappers.clear():this._wrappers.delete(e),0===this._wrappers.size&&this.dispose()}dispose(){var e,t,r,o,n,i,a,s;this.internal.stopObserver();const l=this._win;null==l||l.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),null===(e=this.outline)||void 0===e||e.dispose(),null===(t=this.crossOrigin)||void 0===t||t.dispose(),null===(r=this.deloser)||void 0===r||r.dispose(),null===(o=this.groupper)||void 0===o||o.dispose(),null===(n=this.mover)||void 0===n||n.dispose(),null===(i=this.modalizer)||void 0===i||i.dispose(),null===(a=this.observedElement)||void 0===a||a.dispose(),null===(s=this.restorer)||void 0===s||s.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),function(e){const t=Qa(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}(this.getWindow),cs(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(function(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}(l),delete l.__tabsterInstance,delete this._win)}storageEntry(e,t){const r=this._storage;let o=r.get(e);return o?!1===t&&0===Object.keys(o).length&&r.delete(e):!0===t&&(o={},r.set(e,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),this._forgetMemorizedTimer||(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())cs(this.getWindow,e),Rs.forgetMemorized(this.focusedElement,e)},0),ts(this.getWindow,!0)))}queueInit(e){var t;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=null===(t=this._win)||void 0===t?void 0:t.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(e=>e())}}function Us(e){const t=e.core;return t.mover||(t.mover=new Is(t,t.getWindow)),t.mover}function Gs(e){const t=e.core;return t.restorer||(t.restorer=new Hs(t)),t.restorer}const Ks=e=>e;function Zs(e=Ks){const{targetDocument:t}=ue(),r=$.useRef(null);return Et(()=>{const o=function(e){const t=(null==e?void 0:e.defaultView)||void 0,r=null==t?void 0:t.__tabsterShadowDOMAPI;if(t)return function(e,t){let r=function(e){return e.__tabsterInstance}(e);return r?r.createTabster(!1,t):(r=new $s(e,t),e.__tabsterInstance=r,r.createTabster())}(t,{autoRoot:{},controlTab:!1,getParent:Ta,checkUncontrolledCompletely:e=>{var t;return!0===(null===(t=e.firstElementChild)||void 0===t?void 0:t.hasAttribute("data-is-focus-trap-zone-bumper"))||void 0},DOMAPI:r})}(t);if(o)return r.current=e(o),()=>{!function(e){e.core.disposeTabster(e,void 0)}(o),r.current=null}},[t,e]),r}const Xs=()=>{const e=Zs(),{targetDocument:t}=ue();return{findAllFocusable:$.useCallback((t,r)=>{var o;return t&&(null===(o=e.current)||void 0===o?void 0:o.focusable.findAll({container:t,acceptCondition:r}))||[]},[e]),findFirstFocusable:$.useCallback(t=>{var r;return t&&(null===(r=e.current)||void 0===r?void 0:r.focusable.findFirst({container:t}))},[e]),findLastFocusable:$.useCallback(t=>{var r;return t&&(null===(r=e.current)||void 0===r?void 0:r.focusable.findLast({container:t}))},[e]),findNextFocusable:$.useCallback((r,o={})=>{if(!e.current||!t||!r)return null;const{container:n=t.body}=o;return e.current.focusable.findNext({currentElement:r,container:n})},[e,t]),findPrevFocusable:$.useCallback((r,o={})=>{if(!e.current||!t||!r)return null;const{container:n=t.body}=o;return e.current.focusable.findPrev({currentElement:r,container:n})},[e,t])}};var Js=r(69982);const Qs=e=>{const t=$.createContext({value:{current:e},version:{current:-1},listeners:[]});var r;return t.Provider=(r=t.Provider,e=>{const t=$.useRef(e.value),o=$.useRef(0),n=$.useRef();return n.current||(n.current={value:t,version:o,listeners:[]}),Et(()=>{t.current=e.value,o.current+=1,(0,Js.unstable_runWithPriority)(Js.unstable_NormalPriority,()=>{n.current.listeners.forEach(t=>{t([o.current,e.value])})})},[e.value]),$.createElement(r,{value:n.current},e.children)}),delete t.Consumer,t},Ys=(e,t)=>{const r=$.useContext(e),{value:{current:o},version:{current:n},listeners:i}=r,a=t(o),[s,l]=$.useState([o,a]),c=e=>{l(r=>{if(!e)return[o,a];if(e[0]<=n)return Object.is(r[1],a)?r:[o,a];try{if(Object.is(r[0],e[1]))return r;const o=t(e[1]);return Object.is(r[1],o)?r:[e[1],o]}catch(e){}return[r[0],r[1]]})};Object.is(s[1],a)||c(void 0);const u=Jo(c);return Et(()=>(i.push(u),()=>{const e=i.indexOf(u);i.splice(e,1)}),[u,i]),s[1]},el=Qs(void 0),tl={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},rl=el.Provider,ol=e=>Ys(el,(t=tl)=>e(t));function nl(e){const t=$.useContext(e);return!!t.version&&-1!==t.version.current}const il=Qs(void 0),al={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},sl=il.Provider,ll=e=>Ys(il,(t=al)=>e(t));function cl(){const e=ol(e=>e.isSubmenu),t=nl(il);return e||t}const ul="fuimenusafezonetimeout",dl="fuimenuenter",fl=on({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0",Bnnss6s:"fi64zpg"},rootChecked:{Bcdw1i0:"f1022m68",Bnnss6s:"fi64zpg"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".fi64zpg{flex-shrink:0;}",".f1022m68{visibility:visible;}"]}),hl="fui-MenuItem",pl=rn("rfoezjv","r8lt3v0",{r:[".rfoezjv{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".rfoezjv:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rfoezjv:hover .fui-Icon-filled{display:inline;}",".rfoezjv:hover .fui-Icon-regular{display:none;}",".rfoezjv:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rfoezjv:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".rfoezjv:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rfoezjv:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".rfoezjv:focus{outline-style:none;}",".rfoezjv:focus-visible{outline-style:none;}",".rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r8lt3v0{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r8lt3v0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r8lt3v0:hover .fui-Icon-filled{display:inline;}",".r8lt3v0:hover .fui-Icon-regular{display:none;}",".r8lt3v0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r8lt3v0:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r8lt3v0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r8lt3v0:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r8lt3v0:focus{outline-style:none;}",".r8lt3v0:focus-visible{outline-style:none;}",".r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:['@media (forced-colors: active){.rfoezjv:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.rfoezjv:focus{outline-style:none;}.rfoezjv:focus-visible{outline-style:none;}.rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}",'@media (forced-colors: active){.r8lt3v0:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r8lt3v0:focus{outline-style:none;}.r8lt3v0:focus-visible{outline-style:none;}.r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),ml=rn("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),vl=rn("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),gl=rn("ro9koqv",null,[".ro9koqv{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;flex-shrink:0;}"]),bl=rn("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),yl=rn("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),wl=on({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",c7f7en:"ff3wrqt",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",Bumww26:"fszh5vc",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bqrx1nm:"fkavljg",Bctn1xl:"fk56vqo",h5esng:"ff3wi9b",Bsk3rfj:"fduv4kr",pc6evw:"fb3rf2x",g2kj27:"f183y0b2",evg1t5:"f12is0ou",Bh6z0a4:"f1ikwg0d",Bh953qp:"f10l1t5h"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".ff3wrqt:hover .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}",".fszh5vc:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkavljg:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff3wi9b:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fduv4kr:hover .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f183y0b2:hover:active{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12is0ou:hover:active .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10l1t5h:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]]}),kl=on({disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),xl=on({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),_l=["after","after-bottom","before-top","before","before-bottom","above"],El=e=>{const t=cl(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:a=!1,openOnContext:s=!1,persistOnItemClick:l=!1,openOnHover:c=t,defaultCheckedValues:u,mountNode:d=null,safeZone:f}=e,{targetDocument:h}=ue(),p=Bt("menu"),[m,v]=(()=>{const[e,t]=$.useState(void 0);return[e,e=>{if(null==e)return void t(void 0);let r;r=e instanceof MouseEvent?e:e.nativeEvent,MouseEvent;const o=function(e){const t=e.clientX,r=e.clientY,o=t+1,n=r+1;return{getBoundingClientRect:function(){return{left:t,top:r,right:o,bottom:n,x:t,y:r,height:1,width:1}}}}(r);t(o)}]})(),g={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?m:void 0,fallbackPositions:t?_l:void 0,...mn(e.positioning)},b=$.Children.toArray(e.children);let y,w;2===b.length?(y=b[0],w=b[1]):1===b.length&&(w=b[0]);const{targetRef:k,containerRef:x}=function(e){const t=$.useRef(null),r=$.useRef(null),o=$.useRef(null),n=$.useRef(null),i=$.useRef(null),{enabled:a=!0}=e,s=function(e){const{dir:t,targetDocument:r}=ue(),o="rtl"===t,n=function(e,t){const{align:r,arrowPadding:o,autoSize:n,coverTarget:i,disableUpdateOnResize:a,flipBoundary:s,offset:l,overflowBoundary:c,pinned:u,position:d,unstable_disableTether:f,strategy:h,overflowBoundaryPadding:p,fallbackPositions:m,useTransform:v,matchTargetSize:g,shiftToCoverTarget:b}=t;return $.useCallback((t,y)=>e({container:t,arrow:y,options:{autoSize:n,disableUpdateOnResize:a,matchTargetSize:g,offset:l,strategy:h,coverTarget:i,flipBoundary:s,overflowBoundary:c,useTransform:v,overflowBoundaryPadding:p,pinned:u,arrowPadding:o,align:r,fallbackPositions:m,shiftToCoverTarget:b,position:d,unstable_disableTether:f}}),[n,a,g,l,h,i,s,c,v,p,u,o,r,m,b,d,f,e])}(null!==(i=$.useContext(na))&&void 0!==i?i:oa,e);var i;const{positionFixed:a}=e;return $.useCallback((e,t)=>{const r=(e=>{var t;const r=Vi(e);return!!r&&r!==(null===(t=r.ownerDocument)||void 0===t?void 0:t.body)})(e),i=n(e,t),{autoSize:s,disableUpdateOnResize:l,matchTargetSize:c,offset:u,coverTarget:d,flipBoundary:f,overflowBoundary:h,useTransform:p,overflowBoundaryPadding:m,pinned:v,position:g,arrowPadding:b,strategy:y,align:w,fallbackPositions:k,shiftToCoverTarget:x,unstable_disableTether:_}=i,E=(e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}})(s),C=[E&&Zi(E),c&&{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=e;if(t.width===r.width||n)return{};const{width:i}=t;return o.style.setProperty(Ji,`${i}px`),o.style.width||(o.style.width=`var(${Ji})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}},u&&Yi(u),d&&{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:o,y:n}=e,i={x:o,y:n};switch(Qi(t).side){case"bottom":i.y-=r.reference.height;break;case"top":i.y+=r.reference.height;break;case"left":i.x+=r.reference.width;break;case"right":i.x-=r.reference.width}return i}},!v&&ta({container:e,flipBoundary:f,hasScrollableElement:r,isRtl:o,fallbackPositions:k}),ra({container:e,hasScrollableElement:r,overflowBoundary:h,disableTether:_,overflowBoundaryPadding:m,isRtl:o,shiftToCoverTarget:x}),E&&Xi(E,{container:e,overflowBoundary:h,overflowBoundaryPadding:m,isRtl:o}),{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Ii(e,{altBoundary:!0}),o=r.top<t.height&&r.top>0,n=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:o||n}}}},t&&Mi({element:t,padding:b}),Li({strategy:"referenceHidden"}),Li({strategy:"escaped"}),!1].filter(Boolean);return{placement:ea(w,g,o),middleware:C,strategy:(null!=y?y:a)?"fixed":"absolute",disableUpdateOnResize:l,useTransform:p}},[n,o,r,a])}(e),l=$.useCallback(()=>{var e;t.current&&t.current.dispose(),t.current=null;const l=null!==(e=o.current)&&void 0!==e?e:r.current;a&&oe()&&l&&n.current&&(t.current=Ui({container:n.current,target:l,arrow:i.current,...s(n.current,i.current)}))},[a,s]),c=Jo(e=>{o.current=e,l()});$.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.updatePosition()},setTarget:t=>{e.target,c(t)}}),[e.target,c]),Et(()=>{var t;c(null!==(t=e.target)&&void 0!==t?t:null)},[e.target,c]),Et(()=>{l()},[l]);const u=ia(null,e=>{r.current!==e&&(r.current=e,l())}),d=Jo(()=>{var t;return null===(t=e.onPositioningEnd)||void 0===t?void 0:t.call(e)});return{targetRef:u,containerRef:ia(null,e=>{var t;n.current!==e&&(null===(t=n.current)||void 0===t||t.removeEventListener(yn,d),null==e||e.addEventListener(yn,d),n.current=e,l())}),arrowRef:ia(null,e=>{i.current!==e&&(i.current=e,l())})}}(g),_=f&&c,E=$.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),C=function({debug:e=!1,disabled:t=!1,onSafeZoneEnter:r,onSafeZoneMove:o,onSafeZoneLeave:n,onSafeZoneTimeout:i,timeout:a=1500}={}){const[s]=$.useState(fa),l=$.useRef(null),c=$.useRef(null),u=$.useRef(null),[d,f]=ca(),[h,p]=function(){const{targetDocument:e}=ue(),t=null==e?void 0:e.defaultView;return aa(t?t.requestAnimationFrame:ua,t?t.cancelAnimationFrame:da)}(),m=$.useRef({x:0,y:0}),v=$.useMemo(()=>{if(t)return()=>{};let e=null;function r(){f(),s.toggleActive(!1)}return t=>{null===t&&(null==e||e.removeEventListener("mouseenter",r)),e=t,null==t||t.addEventListener("mouseenter",r)}},[f,t,s]),g=$.useMemo(()=>{if(t)return()=>{};let e=null;function r(e){m.current={x:e.clientX,y:e.clientY},s.isActive()||s.toggleActive(!0),d(()=>{s.toggleActive(!1)},2e3)}return t=>{null===t&&(p(),f(),null==e||e.removeEventListener("mousemove",r)),e=t,null==t||t.addEventListener("mousemove",r)}},[p,f,t,s,d]),b=Jo(e=>{null==r||r(e),d(()=>{s.toggleActive(!1),null==i||i()},a)}),y=Jo(e=>{d(()=>{s.toggleActive(!1),null==i||i()},a),null==o||o(e)}),w=Jo(e=>{null==n||n(e)});return $.useEffect(()=>s.subscribe(e=>{if(e){function t(){const e=c.current,r=u.current;var o;e&&r&&(null===(o=l.current)||void 0===o||o.updateSVG({containerRect:e.getBoundingClientRect(),mouseCoordinates:[m.current.x,m.current.y],targetRect:r.getBoundingClientRect()})),h(t)}return void t()}p()}),[p,h,s]),{containerRef:_t(c,v),targetRef:_t(u,g),elementToRender:$.useMemo(()=>t?null:$.createElement(ka,{debug:e,onMouseEnter:b,onMouseMove:y,onMouseLeave:w,imperativeRef:l,stateStore:s}),[t,e,b,y,w,s])}}({disabled:!_,timeout:"object"==typeof f?f.timeout:300,onSafeZoneEnter:e=>{N(e,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:e}),E.current.isInside=!0},onSafeZoneLeave:()=>{E.current.isInside=!1},onSafeZoneMove:e=>{E.current.mouseCoordinates={x:e.clientX,y:e.clientY}},onSafeZoneTimeout:()=>{const e=new CustomEvent(ul);if(N(e,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:e}),E.current.isInside&&h){const t=h.elementsFromPoint(E.current.mouseCoordinates.x,E.current.mouseCoordinates.y).find(e=>e.classList.contains(hl));null==t||t.dispatchEvent(e)}}}),T=_t(k,C.targetRef),S=_t(x,C.containerRef),[B,N]=Tl({hoverDelay:r,isSubmenu:t,setContextTarget:v,closeOnScroll:a,menuPopoverRef:S,triggerRef:T,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:s}),[O,j]=Cl({checkedValues:e.checkedValues,defaultCheckedValues:u,onCheckedValueChange:e.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:p,isSubmenu:t,openOnHover:c,contextTarget:m,setContextTarget:v,hasCheckmarks:n,hasIcons:i,closeOnScroll:a,menuTrigger:y,menuPopover:w,mountNode:d,triggerRef:T,menuPopoverRef:S,components:{},openOnContext:s,open:B,setOpen:N,checkedValues:O,onCheckedValueChange:j,persistOnItemClick:l,safeZone:C.elementToRender}},Cl=e=>{const[t,r]=xa({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}});return[t,Jo((t,{name:o,checkedItems:n})=>{var i;null===(i=e.onCheckedValueChange)||void 0===i||i.call(e,t,{name:o,checkedItems:n}),r(e=>({...e,[o]:n}))})]},Tl=e=>{const{targetDocument:t}=ue(),r=ol(e=>e.setOpen),o=Jo((t,r)=>{var o;return null===(o=e.onOpenChange)||void 0===o?void 0:o.call(e,t,r)}),n=$.useRef(!1),[i,a]=xa({state:e.open,defaultState:e.defaultOpen,initialState:!1}),s=Jo((t,n)=>{const i=t instanceof CustomEvent&&t.type===dl?t.detail.nativeEvent:t;null==o||o(i,{...n}),n.open&&"contextmenu"===t.type&&e.setContextTarget(t),n.open||e.setContextTarget(void 0),n.bubble&&r(t,{...n}),a(n.open)}),[l,c]=ca(),u=Jo((t,r)=>{var o;c(),t instanceof Event||!t.persist||t.persist(),r.ignoreHoverDelay||"mouseleave"!==t.type&&"mouseover"!==t.type&&"mousemove"!==t.type&&t.type!==dl?s(t,r):((null===(o=e.triggerRef.current)||void 0===o?void 0:o.contains(t.target))&&(n.current="mouseover"===t.type||"mousemove"===t.type),l(()=>s(t,r),e.hoverDelay))});(e=>{const{targetDocument:t}=ue(),r=null==t?void 0:t.defaultView,{refs:o,callback:n,element:i,disabled:a,disabledFocusOnIframe:s,contains:l=Ea}=e,c=$.useRef(void 0);(e=>{const{disabled:t,element:r,callback:o,contains:n=Ea,pollDuration:i=100,refs:a}=e,s=$.useRef(),l=Jo(e=>{a.every(t=>!n(t.current||null,e.target))&&!t&&o(e)});$.useEffect(()=>{if(!t)return null==r||r.addEventListener(Ca,l,!0),()=>{null==r||r.removeEventListener(Ca,l,!0)}},[r,t,l]),$.useEffect(()=>{var e;if(!t)return s.current=null==r||null===(e=r.defaultView)||void 0===e?void 0:e.setInterval(()=>{const e=null==r?void 0:r.activeElement;if("IFRAME"===(null==e?void 0:e.tagName)||"WEBVIEW"===(null==e?void 0:e.tagName)){const t=new CustomEvent(Ca,{bubbles:!0});e.dispatchEvent(t)}},i),()=>{var e;null==r||null===(e=r.defaultView)||void 0===e||e.clearTimeout(s.current)}},[r,t,i])})({element:i,disabled:s||a,callback:n,refs:o,contains:l});const u=$.useRef(!1),d=Jo(e=>{if(u.current)return void(u.current=!1);const t=e.composedPath()[0];o.every(e=>!l(e.current||null,t))&&!a&&n(e)}),f=Jo(e=>{u.current=o.some(t=>l(t.current||null,e.target))});$.useEffect(()=>{if(a)return;let e=(e=>{var t,r,o;if(e)return"object"==typeof e.window&&e.window===e?e.event:null!==(o=null===(r=e.ownerDocument)||void 0===r||null===(t=r.defaultView)||void 0===t?void 0:t.event)&&void 0!==o?o:void 0})(r);const t=t=>{t!==e?d(t):e=void 0};return null==i||i.addEventListener("click",t,!0),null==i||i.addEventListener("touchstart",t,!0),null==i||i.addEventListener("contextmenu",t,!0),null==i||i.addEventListener("mousedown",f,!0),c.current=null==r?void 0:r.setTimeout(()=>{e=void 0},1),()=>{null==i||i.removeEventListener("click",t,!0),null==i||i.removeEventListener("touchstart",t,!0),null==i||i.removeEventListener("contextmenu",t,!0),null==i||i.removeEventListener("mousedown",f,!0),null==r||r.clearTimeout(c.current),e=void 0}},[d,i,a,f,r])})({contains:Sa,disabled:!i,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:e=>u(e,{open:!1,type:"clickOutside",event:e})});const d=e.openOnContext||e.closeOnScroll;(e=>{const{refs:t,callback:r,element:o,disabled:n,contains:i}=e,a=Jo(e=>{const o=i||((e,t)=>!!(null==e?void 0:e.contains(t))),a=e.composedPath()[0];t.every(e=>!o(e.current||null,a))&&!n&&r(e)});$.useEffect(()=>{if(!n)return null==o||o.addEventListener("wheel",a),null==o||o.addEventListener("touchmove",a),()=>{null==o||o.removeEventListener("wheel",a),null==o||o.removeEventListener("touchmove",a)}},[a,o,n])})({contains:Sa,element:t,callback:e=>u(e,{open:!1,type:"scrollOutside",event:e}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!i||!d}),(e=>{const{refs:t,callback:r,element:o,disabled:n}=e,i=Jo(e=>{const o=t[0],i=e.target;var a;!Sa(null!==(a=o.current)&&void 0!==a?a:null,i)&&!n&&r(e)});$.useEffect(()=>{if(null!=o)return n||o.addEventListener(dl,i),()=>{o.removeEventListener(dl,i)}},[i,o,n])})({element:t,callback:e=>{n.current||u(e,{open:!1,type:"menuMouseEnter",event:e})},disabled:!i,refs:[e.menuPopoverRef]});const{findFirstFocusable:f}=Xs(),h=$.useCallback(()=>{const t=f(e.menuPopoverRef.current);null==t||t.focus()},[f,e.menuPopoverRef]),p=function(){const e=$.useRef(!0);return $.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}();return $.useEffect(()=>{var r;i?h():p||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&(null===(r=e.triggerRef.current)||void 0===r||r.focus())},[e.triggerRef,e.isSubmenu,i,h,t,e.menuPopoverRef]),[i,u]},Sl=e=>{const t=El(e),r=function(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,safeZone:h,setOpen:p,triggerId:m,triggerRef:v}=e;return{menu:{checkedValues:t,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,safeZone:h,setOpen:p,triggerId:m,triggerRef:v}}}(t);return((e,t)=>$.createElement(rl,{value:t.menu},e.menuTrigger,e.open&&e.menuPopover))(t,r)};function Bl(e){return Boolean(e.type.isFluentTriggerComponent)}function Nl(e){return $.isValidElement(e)?Bl(e)?Nl(e.props.children):e:null}Sl.displayName="Menu";const Ol=parseInt($.version,10)>=19;function jl(e){if(e)return Ol?e.props.ref:e.ref}function Pl(e,t){return(...r)=>{null==e||e(...r),null==t||t(...r)}}function Rl(e,t){return"function"==typeof e?e(t):e?zl(e,t):e||null}function zl(e,t){if(!$.isValidElement(e)||e.type===$.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Bl(e)){const r=zl(e.props.children,t);return $.cloneElement(e,void 0,r)}return $.cloneElement(e,t)}function Dl(){}const Fl=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,o=ol(e=>e.triggerRef),n=ol(e=>e.menuPopoverRef),i=ol(e=>e.setOpen),a=ol(e=>e.open),s=ol(e=>e.triggerId),l=ol(e=>e.openOnHover),c=ol(e=>e.openOnContext),u=cl(),{findFirstFocusable:d}=Xs(),f=$.useCallback(()=>{const e=d(n.current);null==e||e.focus()},[d,n]),h=$.useRef(!1),p=$.useRef(!1),m=$.useRef(!1),{dir:v}=ue(),g="ltr"===v?Zo:Ko,b=Nl(t),y=(e=>{const t=$.useRef(null);return $.useCallback(r=>{var o;null===(o=t.current)||void 0===o||o.removeEventListener(ul,e),null==r||r.addEventListener(ul,e),t.current=r},[e])})(Jo(()=>{u&&(p.current=!0)}));var w;const k={id:s,...null==b?void 0:b.props,ref:_t(o,jl(b),y),onMouseEnter:Jo(null!==(w=null==b?void 0:b.props.onMouseEnter)&&void 0!==w?w:Dl),onMouseLeave:Jo(Pl(null==b?void 0:b.props.onMouseLeave,e=>{Al(e)||l&&i(e,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:e})})),onContextMenu:Jo(Pl(null==b?void 0:b.props.onContextMenu,e=>{Al(e)||e.isDefaultPrevented()||c&&(e.preventDefault(),i(e,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:e}))})),onMouseMove:Jo(Pl(null==b?void 0:b.props.onMouseMove,e=>{Al(e)||l&&!m.current&&(i(e,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:e}),m.current=!0)})),onMouseOver:Jo(Pl(null==b?void 0:b.props.onMouseOver,e=>{Al(e)||l&&(m.current?i(e,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:e}):p.current&&(i(e,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:e}),p.current=!1))}))},x={"aria-haspopup":"menu","aria-expanded":a||u?a:void 0,...k,onClick:Jo(Pl(null==b?void 0:b.props.onClick,e=>{Al(e)||c||(i(e,{open:!a,keyboard:h.current,type:"menuTriggerClick",event:e}),h.current=!1)})),onKeyDown:Jo(Pl(null==b?void 0:b.props.onKeyDown,e=>{if(Al(e)||e.isDefaultPrevented())return;const t=e.key;!c&&(u&&t===g||!u&&"ArrowDown"===t)&&i(e,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:e}),t!==Xo||u||i(e,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:e}),a&&t===g&&u&&f()}))},_=Qo("button"===(null==b?void 0:b.type)||"a"===(null==b?void 0:b.type)?b.type:"div",x);return{isSubmenu:u,children:Rl(t,c?k:r?x:_)}},Al=e=>{const t=e=>e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&"true"===e.getAttribute("aria-disabled");return!(!He(e.target)||!t(e.target))||He(e.currentTarget)&&t(e.currentTarget)},Il=$.createContext(void 0),ql=Il.Provider,Ll=e=>{return t=Fl(e),$.createElement(ql,{value:t.isSubmenu},t.children);var t};Ll.displayName="MenuTrigger",Ll.isFluentTriggerComponent=!0;const Ml=on({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),Hl=on({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),Wl=(e,t,r,o)=>{const n="1em"===t?"20":t,i=$.forwardRef((e,i)=>{const a=Hl(),s=((e,t)=>{const{title:r,primaryFill:o="currentColor",...n}=e,i={...n,title:void 0,fill:o},a=Ml(),s=(()=>{const e=$.useContext(_e);return null!=e?e:Ee})();return i.className=Ft(a.root,(null==t?void 0:t.flipInRtl)&&"rtl"===(null==s?void 0:s.textDirection)&&a.rtl,i.className),r&&(i["aria-label"]=r),i["aria-label"]||i["aria-labelledby"]?i.role="img":i["aria-hidden"]=!0,i})(e,{flipInRtl:null==o?void 0:o.flipInRtl}),l={...s,className:Ft(s.className,a.root),ref:i,width:t,height:t,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return"string"==typeof r?$.createElement("svg",{...l,dangerouslySetInnerHTML:{__html:r}}):$.createElement("svg",l,...r.map(e=>$.createElement("path",{d:e,fill:l.fill})))});return i.displayName=e,i},Vl=Wl("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),$l=Wl("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),Ul=Wl("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),Gl=Wl("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),Kl=Wl("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Zl=Wl("CircleHintHalfVerticalRegular","1em",["M8.44 2.15a7.95 7.95 0 0 0-6.34 6.6 8.06 8.06 0 0 0 3.46 7.9 8.08 8.08 0 0 0 6 1.19.5.5 0 0 0-.2-.97 7 7 0 1 1 0-13.73.5.5 0 0 0 .2-.99 8.04 8.04 0 0 0-3.12 0Zm6 1.2a.5.5 0 0 0-.55.83 7.04 7.04 0 0 1 1.93 1.93.5.5 0 1 0 .83-.56 8.04 8.04 0 0 0-2.2-2.2Zm3.4 5.09a.5.5 0 1 0-.97.2 7.2 7.2 0 0 1 0 2.73.5.5 0 1 0 .98.2 8.2 8.2 0 0 0 0-3.13Zm-1.19 6a.5.5 0 1 0-.83-.55 7.04 7.04 0 0 1-1.93 1.93.5.5 0 1 0 .55.83 8.04 8.04 0 0 0 2.21-2.2Z"]),Xl=on({base:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"},outline:{g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],sj55zd:"f14nttnl"},primary:{De3pzq:"f8w4g0q"},secondary:{De3pzq:"f1nfm20t",g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],sj55zd:"f14nttnl"},subtle:{De3pzq:"fq5gl1p",sj55zd:"f1eryozh"},transparent:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59"}},{d:[".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1ly1fcm{border-top-color:var(--colorNeutralStroke1Selected);}",".fi8bssc{border-right-color:var(--colorNeutralStroke1Selected);}",".fj6btzu{border-left-color:var(--colorNeutralStroke1Selected);}",".f1s9tnsa{border-bottom-color:var(--colorNeutralStroke1Selected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]}),Jl=on({outline:{sj55zd:"f14nttnl"},primary:{},secondary:{sj55zd:"f14nttnl"},subtle:{sj55zd:"f1qj7y59"},transparent:{sj55zd:"f1qj7y59"},highContrast:{ze5xyy:"f4xjyn1"}},{d:[".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}]]}),Ql=on({base:{Bg96gwp:"fez10in"},small:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},medium:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},large:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",Bg96gwp:"faaz57k",a9b677:"fjw5fx7"},notIconOnly:{Frg6f3:["fbyavb5","fm0x6gh"]}},{d:[".fez10in{line-height:0;}",".f1ugzwwg{font-size:12px;}",".fvblgha{height:12px;}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".frx94fk{width:12px;}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".faaz57k{line-height:var(--lineHeightBase400);}",".fjw5fx7{width:16px;}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}"]}),Yl=$.forwardRef((e,t)=>{const r=(({menuIcon:e,...t},r)=>{const o=tn(t,r);return o.root["aria-expanded"]=!!t["aria-expanded"]&&("true"===t["aria-expanded"]||!0===t["aria-expanded"]),{...o,iconOnly:Boolean(!t.children),components:{root:"button",icon:"span",menuIcon:"span"},menuIcon:it(e,{defaultProps:{children:$.createElement(Vl,null)},renderByDefault:!0,elementType:"span"})}})(e,t);return(e=>{const t=Xl(),r=Jl(),o=Ql();e.root.className=Ft("fui-MenuButton",e.root["aria-expanded"]&&t.base,e.root["aria-expanded"]&&t[e.appearance],e.root.className),e.icon&&(e.icon.className=Ft("fui-MenuButton__icon",e.root["aria-expanded"]&&r[e.appearance]&&r.highContrast,e.icon.className)),e.menuIcon&&(e.menuIcon.className=Ft("fui-MenuButton__menuIcon",o.base,o[e.size],!e.iconOnly&&o.notIconOnly,e.menuIcon.className)),fn({...e,iconPosition:"before"})})(r),be("useMenuButtonStyles_unstable")(r),(e=>{const{icon:t,iconOnly:r}=e;return re(e.root,{children:[e.icon&&te(e.icon,{}),!r&&e.root.children,(!r||!(null==t?void 0:t.children))&&e.menuIcon&&te(e.menuIcon,{})]})})(r)});Yl.displayName="MenuButton";const ec=on({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"f1noc5he",z0t1cu:"fi19xcv",Bks05zx:"f1mxk9aa",Bvtglag:"ffzg62k"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".f1noc5he{animation-name:f1m0q9mo,f79suad;}"],k:["@keyframes f1m0q9mo{from{opacity:-1;}to{opacity:0;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mxk9aa[data-popper-placement]{animation-name:f1m0q9mo;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.ffzg62k[data-popper-placement]{animation-name:f1m0q9mo;}}"]});function tc(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}const rc=$.createContext(void 0);rc.Provider;const oc=on({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),nc=U.useInsertionEffect,ic=()=>{let e;return{get:function(t,r){return e||(r&&(e=t.ownerDocument.createElement("div"),t.appendChild(e)),e)},dispose:function(){e&&(e.remove(),e=void 0)}}},ac=nc?e=>{const{className:t,dir:r,focusVisibleRef:o,targetNode:n}=e,[i]=$.useState(ic),a=$.useMemo(()=>void 0===n||e.disabled?null:new Proxy({},{get(e,t){if("nodeType"===t)return Node.ELEMENT_NODE;if("remove"===t){const e=i.get(n,!1);return e&&0===e.childNodes.length&&i.dispose(),()=>{}}const r=i.get(n,!0),o=r?r[t]:void 0;return"function"==typeof o?o.bind(r):o},set(e,t,r){const o="_virtual"===t||"focusVisible"===t,a=o?i.get(n,!1):i.get(n,!0);return!(!o||a)||!!a&&(Object.assign(a,{[t]:r}),!0)}}),[i,n,e.disabled]);return nc(()=>{if(!a)return;const e=t.split(" ").filter(Boolean);return a.classList.add(...e),a.setAttribute("dir",r),a.setAttribute("data-portal-node","true"),o.current=a,()=>{a.classList.remove(...e),a.removeAttribute("dir")}},[t,r,a,o]),$.useEffect(()=>()=>{null==a||a.remove()},[a]),a}:e=>{const{className:t,dir:r,focusVisibleRef:o,targetNode:n}=e,i=$.useMemo(()=>{if(void 0===n||e.disabled)return null;const t=n.ownerDocument.createElement("div");return n.appendChild(t),t},[n,e.disabled]);return $.useMemo(()=>{i&&(i.className=t,i.setAttribute("dir",r),i.setAttribute("data-portal-node","true"),o.current=i)},[t,r,i,o]),$.useEffect(()=>()=>{null==i||i.remove()},[i]),i},sc=e=>{const{element:t,className:r}=function(e){return He(e)?{element:e}:"object"==typeof e?null===e?{element:null}:e:{}}(e.mountNode),o=$.useRef(null),n=(e=>{const{targetDocument:t,dir:r}=ue(),o=$.useContext(rc),n=ot(),i=oc(),a=null!==(s=$.useContext(he))&&void 0!==s?s:"";var s;const l={dir:r,disabled:e.disabled,focusVisibleRef:n,className:Ft(a,i.root,e.className),targetNode:null!=o?o:null==t?void 0:t.body};return ac(l)})({disabled:!!t,className:r}),i=null!=t?t:n,a={children:e.children,mountNode:i,virtualParentRootRef:o};return $.useEffect(()=>{if(!i)return;const e=o.current,t=i.contains(e);return e&&!t?(tc(i,e),()=>{tc(i,void 0)}):void 0},[o,i]),a};var lc=r(40961);const cc=e=>{return t=sc(e),$.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&lc.createPortal($.createElement($.Fragment,null,t.children,$.createElement("span",{hidden:!0})),t.mountNode));var t};cc.displayName="Portal";const uc=$.forwardRef((e,t)=>{const r=((e,t)=>{const r=ol(e=>e.safeZone),o=ol(e=>e.menuPopoverRef),n=ol(e=>e.setOpen),i=ol(e=>e.open),a=ol(e=>e.openOnHover),s=ol(e=>e.triggerRef),l=cl(),c=$.useRef(!0),u=(Zs(Gs),ks({restorer:{type:0}})),[d,f]=ca(),{dir:h}=ue(),p="ltr"===h?Ko:Zo,m=$.useCallback(e=>{e&&e.addEventListener("mouseover",e=>{var t;c.current&&(c.current=!1,t=e,o.current.dispatchEvent(new CustomEvent(dl,{bubbles:!0,detail:{nativeEvent:t}})),d(()=>{c.current=!0},250))})},[o,d]);var v;$.useEffect(()=>()=>f(),[f]);const g=null!==(v=ol(e=>e.inline))&&void 0!==v&&v,b=ol(e=>e.mountNode),y=nt(xt("div",{role:"presentation",...u,...e,ref:_t(t,o,m)}),{elementType:"div"}),{onMouseEnter:w,onKeyDown:k}=y;return y.onMouseEnter=Jo(e=>{(a||l)&&n(e,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:e}),null==w||w(e)}),y.onKeyDown=Jo(e=>{const t=e.key;var r,a;(t===Xo||l&&t===p)&&i&&(null===(r=o.current)||void 0===r?void 0:r.contains(e.target))&&!e.isDefaultPrevented()&&(n(e,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:e}),e.preventDefault()),"Tab"===t&&(n(e,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:e}),l||null===(a=s.current)||void 0===a||a.focus()),null==k||k(e)}),{inline:g,mountNode:b,safeZone:r,components:{root:"div"},root:y}})(e,t);return(e=>{const t=ec();e.root.className=Ft("fui-MenuPopover",t.root,e.root.className)})(r),be("useMenuPopoverStyles_unstable")(r),(e=>e.inline?re($.Fragment,{children:[te(e.root,{}),e.safeZone]}):re(cc,{mountNode:e.mountNode,children:[te(e.root,{}),e.safeZone]}))(r)});uc.displayName="MenuPopover";function dc(e){switch(e){case"horizontal":return 2;case"grid":return 3;case"grid-linear":return 4;case"both":return 0;default:return 1}}const fc=e=>{const{targetDocument:t}=ue();return ol(e=>e.triggerRef),ol(e=>e.inline),$.useRef(null)},hc=on({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),pc=$.forwardRef((e,t)=>{const r=((e,t)=>{const{findAllFocusable:r}=Xs(),{targetDocument:o}=ue(),n={checkedValues:ol(e=>e.checkedValues),onCheckedValueChange:ol(e=>e.onCheckedValueChange),triggerId:ol(e=>e.triggerId),hasIcons:ol(e=>e.hasIcons),hasCheckmarks:ol(e=>e.hasCheckmarks)},i=nl(el),a=((e={})=>{const{circular:t,axis:r,memorizeCurrent:o=!0,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:a}=e;return Zs(Us),(e=>{Zs();const t=ks(e,!0);return $.useMemo(()=>({[Ba]:t}),[t])})({mover:{cyclic:!!t,direction:dc(null!=r?r:"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})})({circular:!0});((e,t,r)=>{let o=!1;for(const r in t)e[r]&&(o=!0);return r&&o})(e,n,i)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const s=$.useRef(null),l=fc();$.useEffect(()=>{const e=s.current;if(i&&o&&e){const t=t=>{const r=t.detail.next;r&&e.contains(o.activeElement)&&!e.contains(r)&&t.preventDefault()};return o.addEventListener(Da,t),()=>{o.removeEventListener(Da,t)}}},[s,o,i]);const c=$.useCallback((e,t)=>{const o=["menuitem","menuitemcheckbox","menuitemradio"];if(!s.current)return;const n=r(s.current,e=>e.hasAttribute("role")&&-1!==o.indexOf(e.getAttribute("role")));let i=n.indexOf(t)+1;i===n.length&&(i=0);const a=n.map(e=>{var t;return null===(t=e.textContent)||void 0===t?void 0:t.charAt(0).toLowerCase()}),l=e.key.toLowerCase(),c=(e,t)=>{for(let t=e;t<a.length;t++)if(l===a[t])return t;return-1};let u=c(i);-1===u&&(u=c(0)),u>-1&&n[u].focus()},[r]);var u;const[d,f]=xa({state:null!==(u=e.checkedValues)&&void 0!==u?u:i?n.checkedValues:void 0,defaultState:e.defaultCheckedValues,initialState:{}});var h;const p=null!==(h=e.onCheckedValueChange)&&void 0!==h?h:i?n.onCheckedValueChange:void 0,m=Jo((e,t,r,o)=>{const n=[...(null==d?void 0:d[t])||[]];o?n.splice(n.indexOf(r),1):n.push(r),null==p||p(e,{name:t,checkedItems:n}),f(e=>({...e,[t]:n}))}),v=Jo((e,t,r)=>{const o=[r];f(e=>({...e,[t]:o})),null==p||p(e,{name:t,checkedItems:o})});return{components:{root:"div"},root:nt(xt("div",{ref:_t(t,s,l),role:"menu","aria-labelledby":n.triggerId,...a,...e}),{elementType:"div"}),hasIcons:n.hasIcons||!1,hasCheckmarks:n.hasCheckmarks||!1,checkedValues:d,hasMenuContext:i,setFocusByFirstCharacter:c,selectRadio:v,toggleCheckbox:m}})(e,t),o=function(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}=e;return{menuList:{checkedValues:t,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}}}(r);return(e=>{const t=hc();e.root.className=Ft("fui-MenuList",t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className)})(r),be("useMenuListStyles_unstable")(r),((e,t)=>te(sl,{value:t.menuList,children:te(e.root,{})}))(r,o)});pc.displayName="MenuList";const mc=on({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]});var vc=(e,t)=>{const r=r=>{const{className:o,filled:n,...i}=r,a=mc();return $.createElement($.Fragment,null,$.createElement(e,Object.assign({},i,{className:Ft(a.root,n&&a.visible,"fui-Icon-filled",o)})),$.createElement(t,Object.assign({},i,{className:Ft(a.root,!n&&a.visible,"fui-Icon-regular",o)})))};return r.displayName="CompoundIcon",r};const gc=$.createContext(void 0),bc={setMultiline:()=>null},yc=(gc.Provider,()=>{var e;return null!==(e=$.useContext(gc))&&void 0!==e?e:bc}),wc=()=>yc()!==bc,kc=vc(Gl,Kl),xc=vc($l,Ul),_c=e=>{const{hasSubmenu:t,multiline:r}=e,o=wc()&&t,{setMultiline:n}=yc();Et(()=>{o||n(r)},[n,r,o])},Ec=e=>{const{hasSubmenu:t}=e,r=ll(e=>e.hasIcons),o=ll(e=>e.hasCheckmarks),n=wc()&&t;return{hasIcons:r&&!n,hasCheckmarks:o&&!n}},Cc=e=>{switch(e){case"menuitemcheckbox":return"MenuItemCheckbox";case"menuitemradio":return"MenuItemRadio"}return"MenuItem"},Tc=$.forwardRef((e,t)=>{const r=((e,t)=>{const r=null!==(o=$.useContext(Il))&&void 0!==o&&o;var o;const n=ol(e=>e.persistOnItemClick),{as:i="div",disabled:a=!1,hasSubmenu:s=r,persistOnClick:l=n,content:c,...u}=e,{hasIcons:d,hasCheckmarks:f}=Ec({hasSubmenu:s}),h=ol(e=>e.setOpen);_c({multiline:!!e.subText,hasSubmenu:s});const{dir:p}=ue(),m=$.useRef(null),v=$.useRef(!1),g=fc(Cc(e.role)),b={hasSubmenu:s,disabled:a,persistOnClick:l,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:nt(xt(i,Qo(i,{role:"menuitem",...u,disabled:!1,disabledFocusable:a,ref:_t(t,m,g),onKeyDown:Jo(t=>{var r;null===(r=e.onKeyDown)||void 0===r||r.call(e,t),t.isDefaultPrevented()||t.key!==Go&&t.key!==Uo||(v.current=!0)}),onMouseMove:Jo(t=>{var r,o;t.currentTarget.ownerDocument.activeElement!==t.currentTarget&&(null===(o=m.current)||void 0===o||o.focus()),null===(r=e.onMouseMove)||void 0===r||r.call(e,t)}),onClick:Jo(t=>{var r;s||l||(h(t,{open:!1,keyboard:v.current,bubble:!0,type:"menuItemClick",event:t}),v.current=!1),null===(r=e.onClick)||void 0===r||r.call(e,t)})})),{elementType:"div"}),icon:it(e.icon,{renderByDefault:d,elementType:"span"}),checkmark:it(e.checkmark,{renderByDefault:f,elementType:"span"}),submenuIndicator:it(e.submenuIndicator,{renderByDefault:s,defaultProps:{children:"ltr"===p?$.createElement(kc,null):$.createElement(xc,null)},elementType:"span"}),content:it(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:it(e.secondaryContent,{elementType:"span"}),subText:it(e.subText,{elementType:"span"})};return((e,t)=>{const r=ll(e=>e.setFocusByFirstCharacter),{onKeyDown:o}=e.root;e.root.onKeyDown=e=>{var n;null==o||o(e),(null===(n=e.key)||void 0===n?void 0:n.length)>1||t.current&&(null==r||r(e,t.current))}})(b,m),b})(e,t);return(e=>{const t=wl(),r=pl(),o=ml(),n=vl(),i=gl(),a=bl(),s=xl(),l=yl(),c=kl(),u=!!e.subText;e.root.className=Ft(hl,r,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=Ft("fui-MenuItem__content",o,e.content.className,u&&s.content)),e.checkmark&&(e.checkmark.className=Ft("fui-MenuItem__checkmark",t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=Ft("fui-MenuItem__secondaryContent",n,e.disabled&&t.disabled,e.secondaryContent.className,u&&s.secondaryContent)),e.icon&&(e.icon.className=Ft("fui-MenuItem__icon",i,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=Ft("fui-MenuItem__submenuIndicator",a,e.submenuIndicator.className,u&&s.submenuIndicator)),e.subText&&(e.subText.className=Ft("fui-MenuItem__subText",e.disabled&&c.disabled,e.subText.className,l)),(e=>{const t=fl();e.checkmark&&(e.checkmark.className=Ft(t.root,e.checked&&t.rootChecked,e.checkmark.className))})(e)})(r),be("useMenuItemStyles_unstable")(r),(e=>re(e.root,{children:[e.checkmark&&te(e.checkmark,{}),e.icon&&te(e.icon,{}),e.content&&re(e.content,{children:[e.content.children,e.subText&&te(e.subText,{})]}),e.secondaryContent&&te(e.secondaryContent,{}),e.submenuIndicator&&te(e.submenuIndicator,{})]}))(r)});Tc.displayName="MenuItem";const Sc=Wl("AddRegular","1em",["M10 2.5c.28 0 .5.22.5.5v6.5H17a.5.5 0 0 1 0 1h-6.5V17a.5.5 0 0 1-1 0v-6.5H3a.5.5 0 0 1 0-1h6.5V3c0-.28.22-.5.5-.5Z"]),Bc=Wl("ArrowClockwiseRegular","1em",["M4 10a6 6 0 0 1 10.47-4H12.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.6a7 7 0 1 0 1.98 4.36.5.5 0 1 0-1 .08L16 10a6 6 0 0 1-12 0Z"]),Nc=Wl("ArrowLeftRegular","1em",["M9.16 16.87a.5.5 0 1 0 .67-.74L3.67 10.5H17.5a.5.5 0 0 0 0-1H3.67l6.16-5.63a.5.5 0 0 0-.67-.74L2.24 9.44a.75.75 0 0 0 0 1.11l6.92 6.32Z"]),Oc=Wl("BuildingRegular","1em",["M6.75 6.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75 2.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-.75 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm3.75-6.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM9.75 9.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75 2.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm2.25.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM4.5 18a.5.5 0 0 1-.5-.5v-14C4 2.67 4.67 2 5.5 2h6c.83 0 1.5.67 1.5 1.5V8h1.5c.83 0 1.5.67 1.5 1.5v8a.5.5 0 0 1-.5.5h-11ZM5 3.5V17h2v-2.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5V17h2V9.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0-.5.5ZM12 15h-1.5v2H12v-2Zm-2.5 0H8v2h1.5v-2Z"]),jc=Wl("MoreVerticalRegular","1em",["M10 6a1.25 1.25 0 1 1 0-2.5A1.25 1.25 0 0 1 10 6Zm0 5.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm-1.25 4a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0Z"]),Pc=Wl("PhoneRegular","1em",["M9 14a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1H9ZM7 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H7ZM6 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4Z"]),Rc=Wl("SearchRegular","1em",["M12.73 13.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 14 8.5a5.5 5.5 0 1 0-1.98 4.23Z"]),zc=Wl("SignOutRegular","1em",["M8.5 11.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM11 3.5a.5.5 0 0 0-.58-.5l-7 1.08a.5.5 0 0 0-.42.49v10.86c0 .25.18.46.42.5l7 1.07a.5.5 0 0 0 .58-.5V10h5.17l-1 .87a.5.5 0 0 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.65.76l1 .87H11V3.5Zm-1 .58v11.84L4 15V5l6-.92ZM12.5 16H12v-5h1v4.5a.5.5 0 0 1-.5.5ZM12 8V4h.5c.28 0 .5.22.5.5V8h-1Z"]);var Dc="/mail_plugin/get_translations",Fc="/mail_plugin/log_mail_content",Ac="/mail_plugin/search_records",Ic="/mail_plugin/partner/get",qc="/mail_plugin/search_records/res.partner",Lc="/mail_plugin/partner/create",Mc="/mail_plugin/lead/create",Hc="/mail_plugin/ticket/create",Wc="/mail_plugin/search_records/project.project",Vc="/mail_plugin/project/create",$c="/mail_plugin/task/create",Uc="/web/login",Gc="/mail_plugin/auth",Kc="/mail_plugin/auth/access_token",Zc="/mail_plugin/auth/check_version",Xc="outlook",Jc="Outlook",Qc=r(64583).Promise;function Yc(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return eu(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(eu(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,eu(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,eu(d,"constructor",c),eu(c,"constructor",l),l.displayName="GeneratorFunction",eu(c,n,"GeneratorFunction"),eu(d),eu(d,n,"Generator"),eu(d,o,function(){return this}),eu(d,"toString",function(){return"[object Generator]"}),(Yc=function(){return{w:i,m:f}})()}function eu(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}eu=function(e,t,r,o){function i(t,r){eu(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},eu(e,t,r,o)}function tu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ru(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ru(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var ou,nu,iu=function(e,t,r,o){return new(r||(r=Qc))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};function au(e,t,r,o,n,i){var a;return{promise:new Qc(function(s,l){var c=new XMLHttpRequest;if(c.open(e,t),r&&c.setRequestHeader("Content-Type",r),o&&c.setRequestHeader("Authorization",o),c.setRequestHeader("Accept-Language","*"),c.onload=function(){c.status>=200&&c.status<300?s(i?JSON.parse(c.response).result:c.response):l(new Error(c.status.toString()))},c.onerror=function(){console.error(c),l(new Error(c.status.toString()))},r==nu.Json)if(i){var u={jsonrpc:"2.0",id:0,method:"call",params:n||{}};c.send(JSON.stringify(u))}else c.send(JSON.stringify(n||{}));else if(r==nu.Http){for(var d=new FormData,f=0,h=Object.entries(n);f<h.length;f++){var p=tu(h[f],2),m=p[0],v=p[1];d.append(m,v)}c.send(d)}a=function(){c.abort(),l()}}),cancel:a}}function su(e,t){return iu(this,void 0,void 0,Yc().m(function r(){var o,n,i,a,s;return Yc().w(function(r){for(;;)switch(r.p=r.n){case 0:for(o in t)void 0!==t[o]&&null!==t[o]||(t[o]=!1);if(n=localStorage.getItem("odoo_access_token"),i=localStorage.getItem("odoo_url"),(null==n?void 0:n.length)&&(null==i?void 0:i.length)){r.n=1;break}return r.a(2,null);case 1:return a=au(ou.POST,i+e,nu.Json,n,t,!0),r.p=2,r.n=3,a.promise;case 3:return r.a(2,r.v);case 4:return r.p=4,s=r.v,console.error(s),r.a(2,null)}},r,null,[[2,4]])}))}function lu(e,t){return localStorage.getItem("odoo_url")+"/mail_plugin/redirect_to_record/".concat(e,"/?record_id=").concat(t)}!function(e){e.GET="GET",e.POST="POST"}(ou||(ou={})),function(e){e.Json="application/json",e.Http="multipart/form-data"}(nu||(nu={}));var cu=r(64583).Promise;function uu(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return du(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(du(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,du(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,du(d,"constructor",c),du(c,"constructor",l),l.displayName="GeneratorFunction",du(c,n,"GeneratorFunction"),du(d),du(d,n,"Generator"),du(d,o,function(){return this}),du(d,"toString",function(){return"[object Generator]"}),(uu=function(){return{w:i,m:f}})()}function du(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}du=function(e,t,r,o){function i(t,r){du(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},du(e,t,r,o)}function fu(){try{return JSON.parse(localStorage.getItem("translations"))}catch(e){return null}}function hu(){if(null==fu())return!0;var e=new Date(Number(localStorage.getItem("translationsTimestamp")));return Date.now()-e.getTime()>=864e5}function pu(e){localStorage.setItem("translations",JSON.stringify(e)),localStorage.setItem("translationsTimestamp",JSON.stringify(Date.now()))}function mu(e,t){var r=fu(),o=r?r[e]:e;if(o||(o=e),void 0===t)return o;if("string"==typeof t||"number"==typeof t)return o.replace(/%s/i,""+t);var n=new RegExp(Object.keys(t).map(function(e){return"%\\(".concat(e,"\\)s")}).join("|"),"gi");return o.replace(n,function(e){return t[e.substring(2,e.length-2)]||""})}var vu=r(64583).Promise;const gu=new TextEncoder,bu=new Uint8Array(256);for(var yu=0;yu<64;yu++)bu["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(yu)]=yu;function wu(e){let t=3*Math.ceil(e.length/4);const r=e.length;let o=0;e.length%4==3?t--:e.length%4==2?t-=2:"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);const n=new ArrayBuffer(t),i=new Uint8Array(n);for(let t=0;t<r;t+=4){let r=bu[e.charCodeAt(t)],n=bu[e.charCodeAt(t+1)],a=bu[e.charCodeAt(t+2)],s=bu[e.charCodeAt(t+3)];i[o++]=r<<2|n>>4,i[o++]=(15&n)<<4|a>>2,i[o++]=(3&a)<<6|63&s}return n}function ku(e){let t;e=e||"utf8";try{t=new TextDecoder(e)}catch(e){t=new TextDecoder("windows-1252")}return t}async function xu(e){if("arrayBuffer"in e)return await e.arrayBuffer();const t=new FileReader;return new vu((r,o)=>{t.onload=function(e){r(e.target.result)},t.onerror=function(e){o(t.error)},t.readAsArrayBuffer(e)})}function _u(e){return(e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70)&&String.fromCharCode(e)}function Eu(e,t,r){let o,n=e.indexOf("*");if(n>=0&&(e=e.substr(0,n)),"Q"===(t=t.toUpperCase())){r=r.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let e=gu.encode(r),t=[];for(let r=0,o=e.length;r<o;r++){let n=e[r];if(r<=o-2&&61===n){let o=_u(e[r+1]),n=_u(e[r+2]);if(o&&n){let e=parseInt(o+n,16);t.push(e),r+=2;continue}}t.push(n)}o=new ArrayBuffer(t.length);let n=new DataView(o);for(let e=0,r=t.length;e<r;e++)n.setUint8(e,t[e])}else o="B"===t?wu(r.replace(/[^a-zA-Z0-9\+\/=]+/g,"")):gu.encode(r);return ku(e).decode(o)}function Cu(e){let t=!0;for(;;){let r=(e||"").toString().replace(/(=\?([^?]+)\?[Bb]\?([^?]*)\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g,(e,r,o,n,i)=>t?o!==i||n.length%4!=0||/=$/.test(n)?e:r+"__\0JOIN\0__":e).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g,(e,r,o,n)=>t&&o===n?r+"__\0JOIN\0__":e).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g,"").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g,"$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g,(e,t,r,o)=>Eu(t,r,o));if(!(t&&r.indexOf("�")>=0))return r;t=!1}}class Tu{constructor(){this.chunks=[]}update(e){this.chunks.push(e),this.chunks.push("\n")}finalize(){return xu(new Blob(this.chunks,{type:"application/octet-stream"}))}}class Su{constructor(e){e=e||{},this.decoder=e.decoder||new TextDecoder,this.maxChunkSize=102400,this.chunks=[],this.remainder=""}update(e){let t=this.decoder.decode(e);if(/[^a-zA-Z0-9+\/]/.test(t)&&(t=t.replace(/[^a-zA-Z0-9+\/]+/g,"")),this.remainder+=t,this.remainder.length>=this.maxChunkSize){let e,t=4*Math.floor(this.remainder.length/4);t===this.remainder.length?(e=this.remainder,this.remainder=""):(e=this.remainder.substr(0,t),this.remainder=this.remainder.substr(t)),e.length&&this.chunks.push(wu(e))}}finalize(){return this.remainder&&!/^=+$/.test(this.remainder)&&this.chunks.push(wu(this.remainder)),xu(new Blob(this.chunks,{type:"application/octet-stream"}))}}const Bu=/^=[a-f0-9]{2}$/i,Nu=/(?==[a-f0-9]{2})/i,Ou=/=\r?\n/g,ju=/=[a-fA-F0-9]?$/;class Pu{constructor(e){e=e||{},this.decoder=e.decoder||new TextDecoder,this.maxChunkSize=102400,this.remainder="",this.chunks=[]}decodeQPBytes(e){let t=new ArrayBuffer(e.length),r=new DataView(t);for(let t=0,o=e.length;t<o;t++)r.setUint8(t,parseInt(e[t],16));return t}decodeChunks(e){let t=(e=e.replace(Ou,"")).split(Nu),r=[];for(let e of t)if("="===e.charAt(0))if(3!==e.length){if(e.length>3){const t=e.substr(0,3);Bu.test(t)?(r.push(e.substr(1,2)),this.chunks.push(this.decodeQPBytes(r)),r=[],e=e.substr(3),this.chunks.push(e)):(r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[]),this.chunks.push(e))}}else Bu.test(e)?r.push(e.substr(1)):(r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[]),this.chunks.push(e));else r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[]),this.chunks.push(e);r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[])}update(e){let t=this.decoder.decode(e)+"\n";if(t=this.remainder+t,t.length<this.maxChunkSize)return void(this.remainder=t);this.remainder="";let r=t.match(ju);if(r){if(0===r.index)return void(this.remainder=t);this.remainder=t.substr(r.index),t=t.substr(0,r.index)}this.decodeChunks(t)}finalize(){return this.remainder.length&&(this.decodeChunks(this.remainder),this.remainder=""),xu(new Blob(this.chunks,{type:"application/octet-stream"}))}}class Ru{constructor(e){if(this.options=e||{},this.postalMime=this.options.postalMime,this.root=!!this.options.parentNode,this.childNodes=[],this.options.parentNode){if(this.parentNode=this.options.parentNode,this.depth=this.parentNode.depth+1,this.depth>this.options.maxNestingDepth)throw new Error(`Maximum MIME nesting depth of ${this.options.maxNestingDepth} levels exceeded`);this.options.parentNode.childNodes.push(this)}else this.depth=0;this.state="header",this.headerLines=[],this.headerSize=0,this.contentType={value:"text/plain",default:!0},this.contentTransferEncoding={value:"8bit"},this.contentDisposition={value:""},this.headers=[],this.contentDecoder=!1}setupContentDecoder(e){/base64/i.test(e)?this.contentDecoder=new Su:/quoted-printable/i.test(e)?this.contentDecoder=new Pu({decoder:ku(this.contentType.parsed.params.charset)}):this.contentDecoder=new Tu}async finalize(){if("finished"===this.state)return;"header"===this.state&&this.processHeaders();let e=this.postalMime.boundaries;for(let t=e.length-1;t>=0;t--)if(e[t].node===this){e.splice(t,1);break}await this.finalizeChildNodes(),this.content=this.contentDecoder?await this.contentDecoder.finalize():null,this.state="finished"}async finalizeChildNodes(){for(let e of this.childNodes)await e.finalize()}parseStructuredHeader(e){let t,r={value:!1,params:{}},o=!1,n="",i="value",a=!1,s=!1;for(let l=0,c=e.length;l<c;l++)switch(t=e.charAt(l),i){case"key":if("="===t){o=n.trim().toLowerCase(),i="value",n="";break}n+=t;break;case"value":if(s)n+=t;else{if("\\"===t){s=!0;continue}a&&t===a?a=!1:a||'"'!==t?a||";"!==t?n+=t:(!1===o?r.value=n.trim():r.params[o]=n.trim(),i="key",n=""):a=t}s=!1}return n=n.trim(),"value"===i?!1===o?r.value=n:r.params[o]=n:n&&(r.params[n.toLowerCase()]=""),r.value&&(r.value=r.value.toLowerCase()),function(e){let t=new Map;Object.keys(e.params).forEach(r=>{let o=r.match(/\*((\d+)\*?)?$/);if(!o)return;let n,i=r.substr(0,o.index).toLowerCase(),a=Number(o[2])||0;t.has(i)?n=t.get(i):(n={charset:!1,values:[]},t.set(i,n));let s=e.params[r];0===a&&"*"===o[0].charAt(o[0].length-1)&&(o=s.match(/^([^']*)'[^']*'(.*)$/))&&(n.charset=o[1]||"utf-8",s=o[2]),n.values.push({nr:a,value:s}),delete e.params[r]}),t.forEach((t,r)=>{e.params[r]=function(e,t){t=t||"utf-8";let r=[];for(let t=0;t<e.length;t++){let o=e.charAt(t);if("%"===o&&/^[a-f0-9]{2}/i.test(e.substr(t+1,2))){let o=e.substr(t+1,2);t+=2,r.push(parseInt(o,16))}else if(o.charCodeAt(0)>126){o=gu.encode(o);for(let e=0;e<o.length;e++)r.push(o[e])}else r.push(o.charCodeAt(0))}const o=new ArrayBuffer(r.length),n=new DataView(o);for(let e=0,t=r.length;e<t;e++)n.setUint8(e,r[e]);return ku(t).decode(o)}(t.values.sort((e,t)=>e.nr-t.nr).map(e=>e.value).join(""),t.charset)})}(r),r}decodeFlowedText(e,t){return e.split(/\r?\n/).reduce((e,r)=>/ $/.test(e)&&!/(^|\n)-- $/.test(e)?t?e.slice(0,-1)+r:e+r:e+"\n"+r).replace(/^ /gm,"")}getTextContent(){if(!this.content)return"";let e=ku(this.contentType.parsed.params.charset).decode(this.content);return/^flowed$/i.test(this.contentType.parsed.params.format)&&(e=this.decodeFlowedText(e,/^yes$/i.test(this.contentType.parsed.params.delsp))),e}processHeaders(){for(let e=this.headerLines.length-1;e>=0;e--){let t=this.headerLines[e];if(e&&/^\s/.test(t))this.headerLines[e-1]+="\n"+t,this.headerLines.splice(e,1);else{t=t.replace(/\s+/g," ");let e=t.indexOf(":"),r=e<0?t.trim():t.substr(0,e).trim(),o=e<0?"":t.substr(e+1).trim();switch(this.headers.push({key:r.toLowerCase(),originalKey:r,value:o}),r.toLowerCase()){case"content-type":this.contentType.default&&(this.contentType={value:o,parsed:{}});break;case"content-transfer-encoding":this.contentTransferEncoding={value:o,parsed:{}};break;case"content-disposition":this.contentDisposition={value:o,parsed:{}};break;case"content-id":this.contentId=o;break;case"content-description":this.contentDescription=o}}}this.contentType.parsed=this.parseStructuredHeader(this.contentType.value),this.contentType.multipart=!!/^multipart\//i.test(this.contentType.parsed.value)&&this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/")+1),this.contentType.multipart&&this.contentType.parsed.params.boundary&&this.postalMime.boundaries.push({value:gu.encode(this.contentType.parsed.params.boundary),node:this}),this.contentDisposition.parsed=this.parseStructuredHeader(this.contentDisposition.value),this.contentTransferEncoding.encoding=this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(),this.setupContentDecoder(this.contentTransferEncoding.encoding)}feed(e){switch(this.state){case"header":if(!e.length)return this.state="body",this.processHeaders();if(this.headerSize+=e.length,this.headerSize>this.options.maxHeadersSize)throw new Error(`Maximum header size of ${this.options.maxHeadersSize} bytes exceeded`);this.headerLines.push(ku().decode(e));break;case"body":this.contentDecoder.update(e)}}}var zu={"Æ":"Æ","Æ":"Æ","&":"&","&":"&","Á":"Á","Á":"Á","Ă":"Ă","Â":"Â","Â":"Â","А":"А","𝔄":"𝔄","À":"À","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"","Å":"Å","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","ℬ":"ℬ","≎":"≎","Ч":"Ч","©":"©","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","ℭ":"ℭ","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","ⅅ":"ⅅ","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","∯":"∯","¨":"¨","⇓":"⇓","⇐":"⇐","⇔":"⇔","⫤":"⫤","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","⇓":"⇓","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","Ð":"Ð","É":"É","É":"É","Ě":"Ě","Ê":"Ê","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","ℱ":"ℱ","Ѓ":"Ѓ",">":">",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","ℋ":"ℋ","Ħ":"Ħ","≎":"≎","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Í":"Í","Î":"Î","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ì":"Ì","ℑ":"ℑ","Ī":"Ī","ⅈ":"ⅈ","⇒":"⇒","∬":"∬","∫":"∫","⋂":"⋂","⁣":"","⁢":"","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⇐":"⇐","⇔":"⇔","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","⟸":"⟸","⟺":"⟺","⟹":"⟹","𝕃":"𝕃","↙":"↙","↘":"↘","ℒ":"ℒ","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","ℳ":"ℳ","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"","​":"","​":"","​":"","≫":"≫","≪":"≪","
":"\n","𝔑":"𝔑","⁠":""," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Ø":"Ø","Õ":"Õ","Õ":"Õ","⨷":"⨷","Ö":"Ö","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℌ":"ℌ","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∷":"∷","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",""":'"',""":'"',"𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","ℜ":"ℜ","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","⇒":"⇒","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↓":"↓","←":"←","→":"→","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∋":"∋","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","⋑":"⋑","Þ":"Þ","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","	":"\t","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":" "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ù":"Ù","Ū":"Ū","_":"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","↑":"↑","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","⇑":"⇑","⇕":"⇕","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","​":"","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"","𝔞":"𝔞","à":"à","à":"à","ℵ":"ℵ","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","&":"&","&":"&","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∠":"∠","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","Å":"Å","⍼":"⍼","ą":"ą","𝕒":"𝕒","≈":"≈","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","≈":"≈","≊":"≊","å":"å","å":"å","𝒶":"𝒶","*":"*","≈":"≈","≍":"≍","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"∳","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⌅":"⌅","⎵":"⎵","⎶":"⎶","≌":"≌","б":"б","„":"„","∵":"∵","∵":"∵","⦰":"⦰","϶":"϶","ℬ":"ℬ","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","⋂":"⋂","◯":"◯","⋃":"⋃","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⋁":"⋁","⋀":"⋀","⤍":"⤍","⧫":"⧫","▪":"▪","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⊥":"⊥","⊥":"⊥","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","─":"─","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","‵":"‵","˘":"˘","¦":"¦","¦":"¦","𝒷":"𝒷","⁏":"⁏","∽":"∽","⋍":"⋍","\":"\\","⧅":"⧅","⟈":"⟈","•":"•","•":"•","≎":"≎","⪮":"⪮","≏":"≏","≏":"≏","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","ˇ":"ˇ","⩍":"⩍","č":"č","ç":"ç","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"𝔠","ч":"ч","✓":"✓","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","®":"®","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","≗":"≗","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣","♣":"♣",":":":","≔":"≔","≔":"≔",",":",","@":"@","∁":"∁","∘":"∘","∁":"∁","ℂ":"ℂ","≅":"≅","⩭":"⩭","∮":"∮","𝕔":"𝕔","∐":"∐","©":"©","©":"©","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋞":"⋞","⋟":"⋟","⋎":"⋎","⋏":"⋏","¤":"¤","¤":"¤","↶":"↶","↷":"↷","⋎":"⋎","⋏":"⋏","∲":"∲","∱":"∱","⌭":"⌭","⇓":"⇓","⥥":"⥥","†":"†","ℸ":"ℸ","↓":"↓","‐":"‐","⊣":"⊣","⤏":"⤏","˝":"˝","ď":"ď","д":"д","ⅆ":"ⅆ","‡":"‡","⇊":"⇊","⩷":"⩷","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","⇃":"⇃","⇂":"⇂","⋄":"⋄","⋄":"⋄","♦":"♦","♦":"♦","¨":"¨","ϝ":"ϝ","⋲":"⋲","÷":"÷","÷":"÷","÷":"÷","⋇":"⋇","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍","$":"$","𝕕":"𝕕","˙":"˙","≐":"≐","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌆":"⌆","↓":"↓","⇊":"⇊","⇃":"⇃","⇂":"⇂","⤐":"⤐","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","▾":"▾","⇵":"⇵","⥯":"⥯","⦦":"⦦","џ":"џ","⟿":"⟿","⩷":"⩷","≑":"≑","é":"é","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","ê":"ê","≕":"≕","э":"э","ė":"ė","ⅇ":"ⅇ","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅","∅":"∅","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"≖","≕":"≕","≂":"≂","⪖":"⪖","⪕":"⪕","=":"=","≟":"≟","≡":"≡","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","≐":"≐","≂":"≂","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"€","!":"!","∃":"∃","ℰ":"ℰ","ⅇ":"ⅇ","≒":"≒","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi","fj":"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","∀":"∀","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","½":"½","⅓":"⅓","¼":"¼","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","≧":"≧","⪌":"⪌","ǵ":"ǵ","γ":"γ","ϝ":"ϝ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","≥":"≥","⋛":"⋛","≥":"≥","≧":"≧","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","≫":"≫","⋙":"⋙","ℷ":"ℷ","ѓ":"ѓ","≷":"≷","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪊":"⪊","⪈":"⪈","⪈":"⪈","≩":"≩","⋧":"⋧","𝕘":"𝕘","`":"`","ℊ":"ℊ","≳":"≳","⪎":"⪎","⪐":"⪐",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⪆":"⪆","⥸":"⥸","⋗":"⋗","⋛":"⋛","⪌":"⪌","≷":"≷","≳":"≳","≩︀":"≩︀","≩︀":"≩︀","⇔":"⇔"," ":" ","½":"½","ℋ":"ℋ","ъ":"ъ","↔":"↔","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ℏ":"ℏ","ħ":"ħ","⁃":"⁃","‐":"‐","í":"í","í":"í","⁣":"","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"⇔","𝔦":"𝔦","ì":"ì","ì":"ì","ⅈ":"ⅈ","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ℑ":"ℑ","ℐ":"ℐ","ℑ":"ℑ","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","∈":"∈","℅":"℅","∞":"∞","⧝":"⧝","ı":"ı","∫":"∫","⊺":"⊺","ℤ":"ℤ","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"𝒾","∈":"∈","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","∈":"∈","⁢":"","ĩ":"ĩ","і":"і","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⇚":"⇚","⇐":"⇐","⤛":"⤛","⤎":"⤎","≦":"≦","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"ℒ","λ":"λ","⟨":"⟨","⦑":"⦑","⟨":"⟨","⪅":"⪅","«":"«","«":"«","←":"←","⇤":"⇤","⤟":"⤟","⤝":"⤝","↩":"↩","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","⌈":"⌈","{":"{","л":"л","⤶":"⤶","“":"“","„":"„","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","←":"←","↢":"↢","↽":"↽","↼":"↼","⇇":"⇇","↔":"↔","⇆":"⇆","⇋":"⇋","↭":"↭","⋋":"⋋","⋚":"⋚","≤":"≤","≦":"≦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⪅":"⪅","⋖":"⋖","⋚":"⋚","⪋":"⪋","≶":"≶","≲":"≲","⥼":"⥼","⌊":"⌊","𝔩":"𝔩","≶":"≶","⪑":"⪑","↽":"↽","↼":"↼","⥪":"⥪","▄":"▄","љ":"љ","≪":"≪","⇇":"⇇","⌞":"⌞","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","⎰":"⎰","≨":"≨","⪉":"⪉","⪉":"⪉","⪇":"⪇","⪇":"⪇","≨":"≨","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟦":"⟦","⟵":"⟵","⟷":"⟷","⟼":"⟼","⟶":"⟶","↫":"↫","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","_":"_","◊":"◊","◊":"◊","⧫":"⧫","(":"(","⦓":"⦓","⇆":"⇆","⌟":"⌟","⇋":"⇋","⥭":"⥭","‎":"","⊿":"⊿","‹":"‹","𝓁":"𝓁","↰":"↰","≲":"≲","⪍":"⪍","⪏":"⪏","[":"[","‘":"‘","‚":"‚","ł":"ł","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"⋖","⋋":"⋋","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⊴":"⊴","◂":"◂","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","≨︀":"≨︀","∺":"∺","¯":"¯","¯":"¯","♂":"♂","✠":"✠","✠":"✠","↦":"↦","↦":"↦","↧":"↧","↤":"↤","↥":"↥","▮":"▮","⨩":"⨩","м":"м","—":"—","∡":"∡","𝔪":"𝔪","℧":"℧","µ":"µ","µ":"µ","∣":"∣","*":"*","⫰":"⫰","·":"·","·":"·","−":"−","⊟":"⊟","∸":"∸","⨪":"⨪","⫛":"⫛","…":"…","∓":"∓","⊧":"⊧","𝕞":"𝕞","∓":"∓","𝓂":"𝓂","∾":"∾","μ":"μ","⊸":"⊸","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","≫̸":"≫̸","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","≪̸":"≪̸","⇏":"⇏","⊯":"⊯","⊮":"⊮","∇":"∇","ń":"ń","∠⃒":"∠⃒","≉":"≉","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","≉":"≉","♮":"♮","♮":"♮","ℕ":"ℕ"," ":" "," ":" ","≎̸":"≎̸","≏̸":"≏̸","⩃":"⩃","ň":"ň","ņ":"ņ","≇":"≇","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","≠":"≠","⇗":"⇗","⤤":"⤤","↗":"↗","↗":"↗","≐̸":"≐̸","≢":"≢","⤨":"⤨","≂̸":"≂̸","∄":"∄","∄":"∄","𝔫":"𝔫","≧̸":"≧̸","≱":"≱","≱":"≱","≧̸":"≧̸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"≵","≯":"≯","≯":"≯","⇎":"⇎","↮":"↮","⫲":"⫲","∋":"∋","⋼":"⋼","⋺":"⋺","∋":"∋","њ":"њ","⇍":"⇍","≦̸":"≦̸","↚":"↚","‥":"‥","≰":"≰","↚":"↚","↮":"↮","≰":"≰","≦̸":"≦̸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"≮","≴":"≴","≮":"≮","⋪":"⋪","⋬":"⋬","∤":"∤","𝕟":"𝕟","¬":"¬","¬":"¬","∉":"∉","⋹̸":"⋹̸","⋵̸":"⋵̸","∉":"∉","⋷":"⋷","⋶":"⋶","∌":"∌","∌":"∌","⋾":"⋾","⋽":"⋽","∦":"∦","∦":"∦","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","⊀":"⊀","⋠":"⋠","⪯̸":"⪯̸","⊀":"⊀","⪯̸":"⪯̸","⇏":"⇏","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","↛":"↛","⋫":"⋫","⋭":"⋭","⊁":"⊁","⋡":"⋡","⪰̸":"⪰̸","𝓃":"𝓃","∤":"∤","∦":"∦","≁":"≁","≄":"≄","≄":"≄","∤":"∤","∦":"∦","⋢":"⋢","⋣":"⋣","⊄":"⊄","⫅̸":"⫅̸","⊈":"⊈","⊂⃒":"⊂⃒","⊈":"⊈","⫅̸":"⫅̸","⊁":"⊁","⪰̸":"⪰̸","⊅":"⊅","⫆̸":"⫆̸","⊉":"⊉","⊃⃒":"⊃⃒","⊉":"⊉","⫆̸":"⫆̸","≹":"≹","ñ":"ñ","ñ":"ñ","≸":"≸","⋪":"⋪","⋬":"⋬","⋫":"⋫","⋭":"⋭","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","↖":"↖","↖":"↖","⤧":"⤧","Ⓢ":"Ⓢ","ó":"ó","ó":"ó","⊛":"⊛","⊚":"⊚","ô":"ô","ô":"ô","о":"о","⊝":"⊝","ő":"ő","⨸":"⨸","⊙":"⊙","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","ò":"ò","⧁":"⧁","⦵":"⦵","Ω":"Ω","∮":"∮","↺":"↺","⦾":"⦾","⦻":"⦻","‾":"‾","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","⊖":"⊖","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","⊕":"⊕","∨":"∨","↻":"↻","⩝":"⩝","ℴ":"ℴ","ℴ":"ℴ","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ℴ":"ℴ","ø":"ø","ø":"ø","⊘":"⊘","õ":"õ","õ":"õ","⊗":"⊗","⨶":"⨶","ö":"ö","ö":"ö","⌽":"⌽","∥":"∥","¶":"¶","¶":"¶","∥":"∥","⫳":"⫳","⫽":"⫽","∂":"∂","п":"п","%":"%",".":".","‰":"‰","⊥":"⊥","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","ℳ":"ℳ","☎":"☎","π":"π","⋔":"⋔","ϖ":"ϖ","ℏ":"ℏ","ℎ":"ℎ","ℏ":"ℏ","+":"+","⨣":"⨣","⊞":"⊞","⨢":"⨢","∔":"∔","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"⨕","𝕡":"𝕡","£":"£","£":"£","≺":"≺","⪳":"⪳","⪷":"⪷","≼":"≼","⪯":"⪯","≺":"≺","⪷":"⪷","≼":"≼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"⋨","≾":"≾","′":"′","ℙ":"ℙ","⪵":"⪵","⪹":"⪹","⋨":"⋨","∏":"∏","⌮":"⌮","⌒":"⌒","⌓":"⌓","∝":"∝","∝":"∝","≾":"≾","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","⨌":"⨌","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","ℍ":"ℍ","⨖":"⨖","?":"?","≟":"≟",""":'"',""":'"',"⇛":"⇛","⇒":"⇒","⤜":"⤜","⤏":"⤏","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","√":"√","⦳":"⦳","⟩":"⟩","⦒":"⦒","⦥":"⦥","⟩":"⟩","»":"»","»":"»","→":"→","⥵":"⥵","⇥":"⇥","⤠":"⤠","⤳":"⤳","⤞":"⤞","↪":"↪","↬":"↬","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","ℚ":"ℚ","⤍":"⤍","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","⌉":"⌉","}":"}","р":"р","⤷":"⤷","⥩":"⥩","”":"”","”":"”","↳":"↳","ℜ":"ℜ","ℛ":"ℛ","ℜ":"ℜ","ℝ":"ℝ","▭":"▭","®":"®","®":"®","⥽":"⥽","⌋":"⌋","𝔯":"𝔯","⇁":"⇁","⇀":"⇀","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","→":"→","↣":"↣","⇁":"⇁","⇀":"⇀","⇄":"⇄","⇌":"⇌","⇉":"⇉","↝":"↝","⋌":"⋌","˚":"˚","≓":"≓","⇄":"⇄","⇌":"⇌","‏":"","⎱":"⎱","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⟧":"⟧","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","⇉":"⇉","›":"›","𝓇":"𝓇","↱":"↱","]":"]","’":"’","’":"’","⋌":"⋌","⋊":"⋊","▹":"▹","⊵":"⊵","▸":"▸","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","‚":"‚","≻":"≻","⪴":"⪴","⪸":"⪸","š":"š","≽":"≽","⪰":"⪰","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","≿":"≿","с":"с","⋅":"⋅","⊡":"⊡","⩦":"⩦","⇘":"⇘","⤥":"⤥","↘":"↘","↘":"↘","§":"§","§":"§",";":";","⤩":"⤩","∖":"∖","∖":"∖","✶":"✶","𝔰":"𝔰","⌢":"⌢","♯":"♯","щ":"щ","ш":"ш","∣":"∣","∥":"∥","­":"","­":"","σ":"σ","ς":"ς","ς":"ς","∼":"∼","⩪":"⩪","≃":"≃","≃":"≃","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","←":"←","∖":"∖","⨳":"⨳","⧤":"⧤","∣":"∣","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","♠":"♠","∥":"∥","⊓":"⊓","⊓︀":"⊓︀","⊔":"⊔","⊔︀":"⊔︀","⊏":"⊏","⊑":"⊑","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊐":"⊐","⊒":"⊒","□":"□","□":"□","▪":"▪","▪":"▪","→":"→","𝓈":"𝓈","∖":"∖","⌣":"⌣","⋆":"⋆","☆":"☆","★":"★","ϵ":"ϵ","ϕ":"ϕ","¯":"¯","⊂":"⊂","⫅":"⫅","⪽":"⪽","⊆":"⊆","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⊂":"⊂","⊆":"⊆","⫅":"⫅","⊊":"⊊","⫋":"⫋","⫇":"⫇","⫕":"⫕","⫓":"⫓","≻":"≻","⪸":"⪸","≽":"≽","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"⋩","≿":"≿","∑":"∑","♪":"♪","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"⊃","⫆":"⫆","⪾":"⪾","⫘":"⫘","⊇":"⊇","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⊃":"⊃","⊇":"⊇","⫆":"⫆","⊋":"⊋","⫌":"⫌","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤦":"⤦","↙":"↙","↙":"↙","⤪":"⤪","ß":"ß","ß":"ß","⌖":"⌖","τ":"τ","⎴":"⎴","ť":"ť","ţ":"ţ","т":"т","⃛":"⃛","⌕":"⌕","𝔱":"𝔱","∴":"∴","∴":"∴","θ":"θ","ϑ":"ϑ","ϑ":"ϑ","≈":"≈","∼":"∼"," ":" ","≈":"≈","∼":"∼","þ":"þ","þ":"þ","˜":"˜","×":"×","×":"×","⊠":"⊠","⨱":"⨱","⨰":"⨰","∭":"∭","⤨":"⤨","⊤":"⊤","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","⤩":"⤩","‴":"‴","™":"™","▵":"▵","▿":"▿","◃":"◃","⊴":"⊴","≜":"≜","▹":"▹","⊵":"⊵","◬":"◬","≜":"≜","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","≬":"≬","↞":"↞","↠":"↠","⇑":"⇑","⥣":"⥣","ú":"ú","ú":"ú","↑":"↑","ў":"ў","ŭ":"ŭ","û":"û","û":"û","у":"у","⇅":"⇅","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"𝔲","ù":"ù","ù":"ù","↿":"↿","↾":"↾","▀":"▀","⌜":"⌜","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","¨":"¨","¨":"¨","ų":"ų","𝕦":"𝕦","↑":"↑","↕":"↕","↿":"↿","↾":"↾","⊎":"⊎","υ":"υ","ϒ":"ϒ","υ":"υ","⇈":"⇈","⌝":"⌝","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","▵":"▵","▴":"▴","⇈":"⇈","ü":"ü","ü":"ü","⦧":"⦧","⇕":"⇕","⫨":"⫨","⫩":"⫩","⊨":"⊨","⦜":"⦜","ϵ":"ϵ","ϰ":"ϰ","∅":"∅","ϕ":"ϕ","ϖ":"ϖ","∝":"∝","↕":"↕","ϱ":"ϱ","ς":"ς","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","ϑ":"ϑ","⊲":"⊲","⊳":"⊳","в":"в","⊢":"⊢","∨":"∨","⊻":"⊻","≚":"≚","⋮":"⋮","|":"|","|":"|","𝔳":"𝔳","⊲":"⊲","⊂⃒":"⊂⃒","⊃⃒":"⊃⃒","𝕧":"𝕧","∝":"∝","⊳":"⊳","𝓋":"𝓋","⫋︀":"⫋︀","⊊︀":"⊊︀","⫌︀":"⫌︀","⊋︀":"⊋︀","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","∧":"∧","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","℘":"℘","≀":"≀","≀":"≀","𝓌":"𝓌","⋂":"⋂","◯":"◯","⋃":"⋃","▽":"▽","𝔵":"𝔵","⟺":"⟺","⟷":"⟷","ξ":"ξ","⟸":"⟸","⟵":"⟵","⟼":"⟼","⋻":"⋻","⨀":"⨀","𝕩":"𝕩","⨁":"⨁","⨂":"⨂","⟹":"⟹","⟶":"⟶","𝓍":"𝓍","⨆":"⨆","⨄":"⨄","△":"△","⋁":"⋁","⋀":"⋀","ý":"ý","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"ℨ","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"","‌":""};function Du(e){return e.trim().replace(/[<>"'?&]/g,e=>{let t=e.charCodeAt(0).toString(16);return t.length<2&&(t="0"+t),"&#x"+t.toUpperCase()+";"})}function Fu(e){return[].concat(e.name||[]).concat(e.name?`<${e.address}>`:e.address).join(" ")}function Au(e){let t=[],r=(e,o)=>{if(o&&t.push(", "),e.group){let o=`${e.name}:`,n=";";t.push(o),e.group.forEach(r),t.push(n)}else t.push(Fu(e))};return e.forEach(r),t.join("")}function Iu(e){return`<a href="mailto:${Du(e.address)}" class="postal-email-address">${Du(e.name||`<${e.address}>`)}</a>`}function qu(e){let t=[],r=(e,o)=>{if(o&&t.push('<span class="postal-email-address-separator">, </span>'),e.group){let o=`<span class="postal-email-address-group">${Du(e.name)}:</span>`,n='<span class="postal-email-address-group">;</span>';t.push(o),e.group.forEach(r),t.push(n)}else t.push(Iu(e))};return e.forEach(r),t.join(" ")}function Lu(e){let t=[];if(e.from&&t.push({key:"From",val:Fu(e.from)}),e.subject&&t.push({key:"Subject",val:e.subject}),e.date){let r={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},o="undefined"==typeof Intl?e.date:new Intl.DateTimeFormat("default",r).format(new Date(e.date));t.push({key:"Date",val:o})}e.to&&e.to.length&&t.push({key:"To",val:Au(e.to)}),e.cc&&e.cc.length&&t.push({key:"Cc",val:Au(e.cc)}),e.bcc&&e.bcc.length&&t.push({key:"Bcc",val:Au(e.bcc)});let r=t.map(e=>e.key.length).reduce((e,t)=>t>e?t:e,0);t=t.flatMap(e=>{let t=r-e.key.length,o=`${e.key}: ${" ".repeat(t)}`,n=`${" ".repeat(e.key.length+1)} ${" ".repeat(t)}`,i=function(e,t){t=t||76;let r,o,n=0,i=(e=(e||"").toString()).length,a="";for(;n<i;){if(r=e.substr(n,t),r.length<t){a+=r;break}(o=r.match(/^[^\n\r]*(\r?\n|\r)/))?(r=o[0],a+=r,n+=r.length):((o=r.match(/(\s+)[^\s]*$/))&&o[0].length-(o[1]||"").length<r.length?r=r.substr(0,r.length-(o[0].length-(o[1]||"").length)):(o=e.substr(n+r.length).match(/^[^\s]+(\s*)/))&&(r+=o[0].substr(0,o[0].length-0)),a+=r,n+=r.length,n<i&&(a+="\r\n"))}return a}(e.val,80).split(/\r?\n/).map(e=>e.trim());return i.map((e,t)=>`${t?n:o}${e}`)});let o=t.map(e=>e.length).reduce((e,t)=>t>e?t:e,0),n="-".repeat(o);return`\n${n}\n${t.join("\n")}\n${n}\n`}function Mu(e){let t=[];if(e.from&&t.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${Iu(e.from)}</div>`),e.subject&&t.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${Du(e.subject)}</div>`),e.date){let r={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},o="undefined"==typeof Intl?e.date:new Intl.DateTimeFormat("default",r).format(new Date(e.date));t.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${Du(e.date)}">${Du(o)}</div>`)}return e.to&&e.to.length&&t.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${qu(e.to)}</div>`),e.cc&&e.cc.length&&t.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${qu(e.cc)}</div>`),e.bcc&&e.bcc.length&&t.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${qu(e.bcc)}</div>`),`<div class="postal-email-header">${t.length?'<div class="postal-email-header-row">':""}${t.join('</div>\n<div class="postal-email-header-row">')}${t.length?"</div>":""}</div>`}class Hu{constructor(e){this.str=(e||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let e=[];for(let e=0,t=this.str.length;e<t;e++){let r=this.str.charAt(e),o=e<t-1?this.str.charAt(e+1):null;this.checkChar(r,o)}return this.list.forEach(t=>{t.value=(t.value||"").toString().trim(),t.value&&e.push(t)}),e}checkChar(e,t){if(this.escaped);else{if(e===this.operatorExpecting)return this.node={type:"operator",value:e},t&&![" ","\t","\r","\n",",",";"].includes(t)&&(this.node.noBreak=!0),this.list.push(this.node),this.node=null,this.operatorExpecting="",void(this.escaped=!1);if(!this.operatorExpecting&&e in this.operators)return this.node={type:"operator",value:e},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[e],void(this.escaped=!1);if(['"',"'"].includes(this.operatorExpecting)&&"\\"===e)return void(this.escaped=!0)}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),"\n"===e&&(e=" "),(e.charCodeAt(0)>=33||[" ","\t"].includes(e))&&(this.node.value+=e),this.escaped=!1}}var Wu=function e(t,r){r=r||{};let o=new Hu(t).tokenize(),n=[],i=[],a=[];if(o.forEach(e=>{"operator"!==e.type||","!==e.value&&";"!==e.value?i.push(e):(i.length&&n.push(i),i=[])}),i.length&&n.push(i),n.forEach(t=>{t=function(t){let r,o,n,i=!1,a="text",s=[],l={address:[],comment:[],group:[],text:[],textWasQuoted:[]},c=!1;for(o=0,n=t.length;o<n;o++){let e=t[o],r=o?t[o-1]:null;if("operator"===e.type)switch(e.value){case"<":a="address",c=!1;break;case"(":a="comment",c=!1;break;case":":a="group",i=!0,c=!1;break;case'"':c=!c,a="text";break;default:a="text",c=!1}else e.value&&("address"===a&&(e.value=e.value.replace(/^[^<]*<\s*/,"")),r&&r.noBreak&&l[a].length?(l[a][l[a].length-1]+=e.value,"text"===a&&c&&(l.textWasQuoted[l.textWasQuoted.length-1]=!0)):(l[a].push(e.value),"text"===a&&l.textWasQuoted.push(c)))}if(!l.text.length&&l.comment.length&&(l.text=l.comment,l.comment=[]),i){l.text=l.text.join(" ");let t=[];l.group.length&&e(l.group.join(",")).forEach(e=>{e.group?t=t.concat(e.group):t.push(e)}),s.push({name:Cu(l.text||r&&r.name),group:t})}else{if(!l.address.length&&l.text.length){for(o=l.text.length-1;o>=0;o--)if(!l.textWasQuoted[o]&&l.text[o].match(/^[^@\s]+@[^@\s]+$/)){l.address=l.text.splice(o,1),l.textWasQuoted.splice(o,1);break}let e=function(e){return l.address.length?e:(l.address=[e.trim()]," ")};if(!l.address.length)for(o=l.text.length-1;o>=0&&(l.textWasQuoted[o]||(l.text[o]=l.text[o].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,e).trim(),!l.address.length));o--);}if(!l.text.length&&l.comment.length&&(l.text=l.comment,l.comment=[]),l.address.length>1&&(l.text=l.text.concat(l.address.splice(1))),l.text=l.text.join(" "),l.address=l.address.join(" "),!l.address&&/^=\?[^=]+?=$/.test(l.text.trim())){const t=e(Cu(l.text));if(t&&t.length)return t}if(!l.address&&i)return[];r={address:l.address||l.text||"",name:Cu(l.text||l.address||"")},r.address===r.name&&((r.address||"").match(/@/)?r.name="":r.address=""),s.push(r)}return s}(t),t.length&&(a=a.concat(t))}),r.flatten){let e=[],t=r=>{r.forEach(r=>{if(r.group)return t(r.group);e.push(r)})};return t(a),e}return a};function Vu(e){for(var t,r="",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(e),i=n.byteLength,a=i%3,s=i-a,l=0;l<s;l+=3)r+=o[(16515072&(t=n[l]<<16|n[l+1]<<8|n[l+2]))>>18]+o[(258048&t)>>12]+o[(4032&t)>>6]+o[63&t];return 1==a?r+=o[(252&(t=n[s]))>>2]+o[(3&t)<<4]+"==":2==a&&(r+=o[(64512&(t=n[s]<<8|n[s+1]))>>10]+o[(1008&t)>>4]+o[(15&t)<<2]+"="),r}class $u{static parse(e,t){return new $u(t).parse(e)}constructor(e){this.options=e||{},this.mimeOptions={maxNestingDepth:this.options.maxNestingDepth||256,maxHeadersSize:this.options.maxHeadersSize||2097152},this.root=this.currentNode=new Ru({postalMime:this,...this.mimeOptions}),this.boundaries=[],this.textContent={},this.attachments=[],this.attachmentEncoding=(this.options.attachmentEncoding||"").toString().replace(/[-_\s]/g,"").trim().toLowerCase()||"arraybuffer",this.started=!1}async finalize(){await this.root.finalize()}async processLine(e,t){let r=this.boundaries;if(r.length&&e.length>2&&45===e[0]&&45===e[1])for(let o=r.length-1;o>=0;o--){let n=r[o];if(e.length!==n.value.length+2&&e.length!==n.value.length+4)continue;let i=e.length===n.value.length+4;if(i&&(45!==e[e.length-2]||45!==e[e.length-1]))continue;let a=!0;for(let t=0;t<n.value.length;t++)if(e[t+2]!==n.value[t]){a=!1;break}if(a)return i?(await n.node.finalize(),this.currentNode=n.node.parentNode||this.root):(await n.node.finalizeChildNodes(),this.currentNode=new Ru({postalMime:this,parentNode:n.node,...this.mimeOptions})),t?this.finalize():void 0}if(this.currentNode.feed(e),t)return this.finalize()}readLine(){let e=this.readPos,t=this.readPos,r=()=>({bytes:new Uint8Array(this.buf,e,t-e),done:this.readPos>=this.av.length});for(;this.readPos<this.av.length;){const e=this.av[this.readPos++];if(13!==e&&10!==e&&(t=this.readPos),10===e)return r()}return r()}async processNodeTree(){let e={},t=new Set,r=this.textMap=new Map,o=this.forceRfc822Attachments(),n=async(e,i,a)=>{if(i=i||!1,a=a||!1,e.contentType.multipart)"alternative"===e.contentType.multipart?i=e:"related"===e.contentType.multipart&&(a=e);else if(this.isInlineMessageRfc822(e)&&!o){const o=new $u;e.subMessage=await o.parse(e.content),r.has(e)||r.set(e,{});let n=r.get(e);!e.subMessage.text&&e.subMessage.html||(n.plain=n.plain||[],n.plain.push({type:"subMessage",value:e.subMessage}),t.add("plain")),e.subMessage.html&&(n.html=n.html||[],n.html.push({type:"subMessage",value:e.subMessage}),t.add("html")),o.textMap&&o.textMap.forEach((e,t)=>{r.set(t,e)});for(let t of e.subMessage.attachments||[])this.attachments.push(t)}else if(this.isInlineTextNode(e)){let o=e.contentType.parsed.value.substr(e.contentType.parsed.value.indexOf("/")+1),n=i||e;r.has(n)||r.set(n,{});let a=r.get(n);a[o]=a[o]||[],a[o].push({type:"text",value:e.getTextContent()}),t.add(o)}else if(e.content){const t=e.contentDisposition.parsed.params.filename||e.contentType.parsed.params.name||null,r={filename:t?Cu(t):null,mimeType:e.contentType.parsed.value,disposition:e.contentDisposition.parsed.value||null};switch(a&&e.contentId&&(r.related=!0),e.contentDescription&&(r.description=e.contentDescription),e.contentId&&(r.contentId=e.contentId),e.contentType.parsed.value){case"text/calendar":case"application/ics":{e.contentType.parsed.params.method&&(r.method=e.contentType.parsed.params.method.toString().toUpperCase().trim());const t=e.getTextContent().replace(/\r?\n/g,"\n").replace(/\n*$/,"\n");r.content=gu.encode(t);break}default:r.content=e.content}this.attachments.push(r)}for(let t of e.childNodes)await n(t,i,a)};await n(this.root,!1,[]),r.forEach(r=>{t.forEach(t=>{if(e[t]||(e[t]=[]),r[t])r[t].forEach(r=>{switch(r.type){case"text":e[t].push(r.value);break;case"subMessage":switch(t){case"html":e[t].push(Mu(r.value));break;case"plain":e[t].push(Lu(r.value))}}});else{let o;switch(t){case"html":o="plain";break;case"plain":o="html"}(r[o]||[]).forEach(r=>{switch(r.type){case"text":switch(t){case"html":e[t].push("<div>"+Du(r.value).replace(/\n/g,"<br />")+"</div>");break;case"plain":e[t].push(function(e){return e.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,(e,t)=>{if("string"==typeof zu[e])return zu[e];if("#"!==t.charAt(0)||";"!==e.charAt(e.length-1))return e;let r;r="x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10);var o="";return r>=55296&&r<=57343||r>1114111?"�":(r>65535&&(r-=65536,o+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),o+=String.fromCharCode(r))})}(r.value.replace(/\r?\n/g,"").replace(/<\!\-\-.*?\-\->/gi," ").replace(/<br\b[^>]*>/gi,"\n").replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi,"\n\n").replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi," ").replace(/^.*<body\b[^>]*>/i,"").replace(/^.*<\/head\b[^>]*>/i,"").replace(/^.*<\!doctype\b[^>]*>/i,"").replace(/<\/body\b[^>]*>.*$/i,"").replace(/<\/html\b[^>]*>.*$/i,"").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi," ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi,"").replace(/<li\b[^>]*>[\n\u0001\s]*/gi,"* ").replace(/<hr\b[^>]*>/g,"\n-------------\n").replace(/<[^>]*>/g," ").replace(/\u0001/g,"\n").replace(/[ \t]+/g," ").replace(/^\s+$/gm,"").replace(/\n\n+/g,"\n\n").replace(/^\n+/,"\n").replace(/\n+$/,"\n")))}break;case"subMessage":switch(t){case"html":e[t].push(Mu(r.value));break;case"plain":e[t].push(Lu(r.value))}}})}})}),Object.keys(e).forEach(t=>{e[t]=e[t].join("\n")}),this.textContent=e}isInlineTextNode(e){if("attachment"===e.contentDisposition.parsed.value)return!1;switch(e.contentType.parsed.value){case"text/html":case"text/plain":return!0;default:return!1}}isInlineMessageRfc822(e){return"message/rfc822"===e.contentType.parsed.value&&"inline"===(e.contentDisposition.parsed.value||(this.options.rfc822Attachments?"attachment":"inline"))}forceRfc822Attachments(){if(this.options.forceRfc822Attachments)return!0;let e=!1,t=r=>{r.contentType.multipart||["message/delivery-status","message/feedback-report"].includes(r.contentType.parsed.value)&&(e=!0);for(let e of r.childNodes)t(e)};return t(this.root),e}async resolveStream(e){let t=0,r=[];const o=e.getReader();for(;;){const{done:e,value:n}=await o.read();if(e)break;r.push(n),t+=n.length}const n=new Uint8Array(t);let i=0;for(let e of r)n.set(e,i),i+=e.length;return n}async parse(e){if(this.started)throw new Error("Can not reuse parser, create a new PostalMime object");for(this.started=!0,e&&"function"==typeof e.getReader&&(e=await this.resolveStream(e)),"string"==typeof(e=e||new ArrayBuffer(0))&&(e=gu.encode(e)),(e instanceof Blob||"[object Blob]"===Object.prototype.toString.call(e))&&(e=await xu(e)),e.buffer instanceof ArrayBuffer&&(e=new Uint8Array(e).buffer),this.buf=e,this.av=new Uint8Array(e),this.readPos=0;this.readPos<this.av.length;){const e=this.readLine();await this.processLine(e.bytes,e.done)}await this.processNodeTree();const t={headers:this.root.headers.map(e=>({key:e.key,value:e.value})).reverse()};for(const e of["from","sender"]){const r=this.root.headers.find(t=>t.key===e);if(r&&r.value){const o=Wu(r.value);o&&o.length&&(t[e]=o[0])}}for(const e of["delivered-to","return-path"]){const r=this.root.headers.find(t=>t.key===e);if(r&&r.value){const o=Wu(r.value);o&&o.length&&o[0].address&&(t[e.replace(/\-(.)/g,(e,t)=>t.toUpperCase())]=o[0].address)}}for(const e of["to","cc","bcc","reply-to"]){const r=this.root.headers.filter(t=>t.key===e);let o=[];r.filter(e=>e&&e.value).map(e=>Wu(e.value)).forEach(e=>o=o.concat(e||[])),o&&o.length&&(t[e.replace(/\-(.)/g,(e,t)=>t.toUpperCase())]=o)}for(const e of["subject","message-id","in-reply-to","references"]){const r=this.root.headers.find(t=>t.key===e);r&&r.value&&(t[e.replace(/\-(.)/g,(e,t)=>t.toUpperCase())]=Cu(r.value))}let r=this.root.headers.find(e=>"date"===e.key);if(r){let e=new Date(r.value);e=e&&"Invalid Date"!==e.toString()?e.toISOString():r.value,t.date=e}switch(this.textContent?.html&&(t.html=this.textContent.html),this.textContent?.plain&&(t.text=this.textContent.plain),t.attachments=this.attachments,this.attachmentEncoding){case"arraybuffer":break;case"base64":for(let e of t.attachments||[])e?.content&&(e.content=Vu(e.content),e.encoding="base64");break;case"utf8":let e=new TextDecoder("utf8");for(let r of t.attachments||[])r?.content&&(r.content=e.decode(r.content),r.encoding="utf8");break;default:throw new Error("Unknwon attachment encoding")}return t}}var Uu=r(64583).Promise;function Gu(e){return Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu(e)}function Ku(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Qu(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Zu(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return Xu(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Xu(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Xu(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Xu(d,"constructor",c),Xu(c,"constructor",l),l.displayName="GeneratorFunction",Xu(c,n,"GeneratorFunction"),Xu(d),Xu(d,n,"Generator"),Xu(d,o,function(){return this}),Xu(d,"toString",function(){return"[object Generator]"}),(Zu=function(){return{w:i,m:f}})()}function Xu(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Xu=function(e,t,r,o){function i(t,r){Xu(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Xu(e,t,r,o)}function Ju(e){return function(e){if(Array.isArray(e))return Yu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qu(e,t){if(e){if("string"==typeof e)return Yu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yu(e,t):void 0}}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function ed(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function td(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,od(o.key),o)}}function rd(e,t,r){return t&&td(e.prototype,t),r&&td(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function od(e){var t=function(e){if("object"!=Gu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gu(t)?t:t+""}var nd=function(e,t,r,o){return new(r||(r=Uu))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})},id=function(){return rd(function e(){ed(this,e);var t=Office.context.mailbox.userProfile.emailAddress,r=Office.context.mailbox.item,o=[[r.from.displayName,r.from.emailAddress]].concat(Ju(r.to.map(function(e){return[e.displayName,e.emailAddress]})),Ju(r.cc.map(function(e){return[e.displayName,e.emailAddress]})));this.subject=r.subject,this.timestamp=r.dateTimeCreated.getTime(),this.messageId=r.internetMessageId;var n=function(e){return e.displayName!=e.emailAddress?'"'.concat(e.displayName,'" <').concat(e.emailAddress,">"):e.emailAddress};this.emailFrom=n(r.from),this.emailTo=r.to.map(n).join(", "),this.emailCC=r.cc.map(n).join(", "),this.contacts=o.filter(function(e){return e[1]!==t}).map(function(e){return new ad(e[0],e[1])})},[{key:"getBody",value:function(){return nd(this,void 0,void 0,Zu().m(function e(){var t,r,o,n,i,a,s,l,c,u,d,f=this;return Zu().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,new Uu(function(e){Office.context.mailbox.item.body.getAsync(Office.CoercionType.Html,function(t){return nd(f,void 0,void 0,Zu().m(function r(){return Zu().w(function(r){for(;;)switch(r.n){case 0:e(t.value);case 1:return r.a(2)}},r)}))})});case 1:return t=e.v,e.n=2,new Uu(function(e){Office.context.mailbox.item.getAsFileAsync(function(t){e(t.value)})});case 2:return r=e.v,e.n=3,$u.parse(atob(r));case 3:o=e.v,n=function(e){for(var t="",r=new Uint8Array(e),o=0;o<r.byteLength;o++)t+=String.fromCharCode(r[o]);return btoa(t)},i=Ku(o.attachments),e.p=4,i.s();case 5:if((a=i.n()).done){e.n=8;break}if((s=a.value).contentId&&"inline"===s.disposition){e.n=6;break}return e.a(3,7);case 6:l=s.contentId.replace("<","").replace(">",""),c=s.content,u="data:".concat(s.mimeType,";base64,").concat(n(c)),t=t.replace("cid:".concat(l),u);case 7:e.n=5;break;case 8:e.n=10;break;case 9:e.p=9,d=e.v,i.e(d);case 10:return e.p=10,i.f(),e.f(10);case 11:return e.a(2,t)}},e,null,[[4,9,10,11]])}))}},{key:"getAttachments",value:function(){return nd(this,void 0,void 0,Zu().m(function e(){var t,r,o=this;return Zu().w(function(e){for(;;)switch(e.n){case 0:if(t=Office.context.mailbox.item.attachments,!(t.map(function(e){return e.size}).reduce(function(e,t){return e+t},0)>41943040)){e.n=1;break}return e.a(2,null);case 1:return r=t.filter(function(e){return!e.isInline}).map(function(e){return o.fetchAttachmentContent(e)}),e.a(2,Uu.all(r))}},e)}))}},{key:"fetchAttachmentContent",value:function(e){return new Uu(function(t){Office.context.mailbox.item.getAttachmentContentAsync(e.id,function(r){return t([e.name,r.value.content])})})}}])}(),ad=rd(function e(t,r){ed(this,e),this.name=t,this.email=r});function sd(e){return sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sd(e)}function ld(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,cd(o.key),o)}}function cd(e){var t=function(e){if("object"!=sd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=sd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sd(t)?t:t+""}var ud={odoo:null,http_error_odoo:"Could not connect to database. Try to log out and in.",unknown:"Something bad happened. Please, try again later."},dd=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&this.setError(t,r)},(t=[{key:"setError",value:function(e,t){"no_data"===e&&(e="missing_data",t=null),this.code=e,this.information=t,this.message=t||mu(ud[this.code])}}])&&ld(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function fd(e){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(e)}function hd(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,md(o.key),o)}}function pd(e,t,r){return t&&hd(e.prototype,t),r&&hd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function md(e){var t=function(e){if("object"!=fd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=fd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fd(t)?t:t+""}var vd=pd(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),gd=r(64583).Promise;function bd(e){return bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bd(e)}function yd(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return wd(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(wd(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,wd(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,wd(d,"constructor",c),wd(c,"constructor",l),l.displayName="GeneratorFunction",wd(c,n,"GeneratorFunction"),wd(d),wd(d,n,"Generator"),wd(d,o,function(){return this}),wd(d,"toString",function(){return"[object Generator]"}),(yd=function(){return{w:i,m:f}})()}function wd(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}wd=function(e,t,r,o){function i(t,r){wd(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},wd(e,t,r,o)}function kd(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xd(o.key),o)}}function xd(e){var t=function(e){if("object"!=bd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bd(t)?t:t+""}function _d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_d=function(){return!!e})()}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ed(e)}function Cd(e,t){return Cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cd(e,t)}var Td=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=Ed(t),function(e,t){if(t&&("object"==bd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_d()?Reflect.construct(t,r||[],Ed(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cd(e,t)}(t,e),r=t,o=[{key:"createLead",value:function(e,r){return o=this,n=void 0,i=void 0,a=yd().m(function o(){var n,i,a,s,l,c,u,d,f,h;return yd().w(function(o){for(;;)switch(o.n){case 0:return a=su,s=Mc,o.n=1,r.getBody();case 1:return l=o.v,c=r.subject,o.n=2,r.getAttachments();case 2:return u=o.v,d=e.id,f=e.email,h=e.name,o.n=3,a(s,{email_body:l,email_subject:c,attachments:u,partner_id:d,partner_email:f,partner_name:h});case 3:if(null==(n=o.v)?void 0:n.id){o.n=4;break}return o.a(2,null);case 4:return i=e.clone(),e.id||(i.id=n.partner_id,i.image=n.partner_image,i.isWritable=!0),o.a(2,[t.fromOdooResponse(n),i])}},o)}),new(i||(i=gd))(function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i(function(e){e(o)})).then(r,s)}l((a=a.apply(o,n||[])).next())});var o,n,i,a}},{key:"fromOdooResponse",value:function(e){var r=new t;return r.id=e.id,r.name=e.name,r.revenuesDescription=e.revenues_description,r}}],null&&kd(r.prototype,null),o&&kd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(vd),Sd=r(64583).Promise;function Bd(e){return Bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bd(e)}function Nd(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return Od(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Od(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Od(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Od(d,"constructor",c),Od(c,"constructor",l),l.displayName="GeneratorFunction",Od(c,n,"GeneratorFunction"),Od(d),Od(d,n,"Generator"),Od(d,o,function(){return this}),Od(d,"toString",function(){return"[object Generator]"}),(Nd=function(){return{w:i,m:f}})()}function Od(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Od=function(e,t,r,o){function i(t,r){Od(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Od(e,t,r,o)}function jd(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Pd(o.key),o)}}function Pd(e){var t=function(e){if("object"!=Bd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bd(t)?t:t+""}function Rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rd=function(){return!!e})()}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zd(e)}function Dd(e,t){return Dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dd(e,t)}var Fd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=zd(t),function(e,t){if(t&&("object"==Bd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rd()?Reflect.construct(t,r||[],zd(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dd(e,t)}(t,e),r=t,o=[{key:"fromOdooResponse",value:function(e){var r=new t;return r.id=e.id,r.name=e.name,r.projectName=e.project_name,r}},{key:"createTask",value:function(e,r,o){return n=this,i=void 0,a=void 0,s=Nd().m(function n(){var i,a,s,l,c,u,d,f,h,p,m;return Nd().w(function(n){for(;;)switch(n.n){case 0:return s=su,l=$c,n.n=1,o.getBody();case 1:return c=n.v,u=o.subject,n.n=2,o.getAttachments();case 2:return d=n.v,f=e.email,h=e.id,p=e.name,m=r,n.n=3,s(l,{email_body:c,email_subject:u,attachments:d,partner_email:f,partner_id:h,partner_name:p,project_id:m});case 3:if(null==(i=n.v)?void 0:i.id){n.n=4;break}return n.a(2,null);case 4:return a=e.clone(),e.id||(a.id=i.partner_id,a.image=i.partner_image,a.isWritable=!0),n.a(2,[t.fromOdooResponse(i),a])}},n)}),new(a||(a=Sd))(function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a(function(e){e(n)})).then(r,o)}l((s=s.apply(n,i||[])).next())});var n,i,a,s}}],null&&jd(r.prototype,null),o&&jd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(vd),Ad=r(64583).Promise;function Id(e){return Id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Id(e)}function qd(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return Ld(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Ld(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ld(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ld(d,"constructor",c),Ld(c,"constructor",l),l.displayName="GeneratorFunction",Ld(c,n,"GeneratorFunction"),Ld(d),Ld(d,n,"Generator"),Ld(d,o,function(){return this}),Ld(d,"toString",function(){return"[object Generator]"}),(qd=function(){return{w:i,m:f}})()}function Ld(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Ld=function(e,t,r,o){function i(t,r){Ld(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Ld(e,t,r,o)}function Md(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Hd(o.key),o)}}function Hd(e){var t=function(e){if("object"!=Id(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Id(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Id(t)?t:t+""}function Wd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wd=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vd(e)}function $d(e,t){return $d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$d(e,t)}var Ud=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=Vd(t),function(e,t){if(t&&("object"==Id(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wd()?Reflect.construct(t,r||[],Vd(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$d(e,t)}(t,e),r=t,o=[{key:"createTicket",value:function(e,r){return o=this,n=void 0,i=void 0,a=qd().m(function o(){var n,i,a,s,l,c,u,d,f,h;return qd().w(function(o){for(;;)switch(o.n){case 0:return a=su,s=Hc,o.n=1,r.getBody();case 1:return l=o.v,c=r.subject,o.n=2,r.getAttachments();case 2:return u=o.v,d=e.email,f=e.id,h=e.name,o.n=3,a(s,{email_body:l,email_subject:c,attachments:u,partner_email:d,partner_id:f,partner_name:h});case 3:if(null==(n=o.v)?void 0:n.id){o.n=4;break}return o.a(2,null);case 4:return i=e.clone(),e.id||(i.id=n.partner_id,i.image=n.partner_image,i.isWritable=!0),o.a(2,[t.fromOdooResponse(n),i])}},o)}),new(i||(i=Ad))(function(e,t){function r(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i(function(e){e(o)})).then(r,s)}l((a=a.apply(o,n||[])).next())});var o,n,i,a}},{key:"fromOdooResponse",value:function(e){var r=new t;return r.id=e.id,r.name=e.name,r.stageName=e.stage_name,r}}],null&&Md(r.prototype,null),o&&Md(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(vd),Gd=r(64583).Promise;function Kd(e){return Kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kd(e)}function Zd(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return Xd(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Xd(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Xd(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Xd(d,"constructor",c),Xd(c,"constructor",l),l.displayName="GeneratorFunction",Xd(c,n,"GeneratorFunction"),Xd(d),Xd(d,n,"Generator"),Xd(d,o,function(){return this}),Xd(d,"toString",function(){return"[object Generator]"}),(Zd=function(){return{w:i,m:f}})()}function Xd(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Xd=function(e,t,r,o){function i(t,r){Xd(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Xd(e,t,r,o)}function Jd(e){return function(e){if(Array.isArray(e))return Qd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Qd(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qd(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function Yd(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ef(o.key),o)}}function ef(e){var t=function(e){if("object"!=Kd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Kd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kd(t)?t:t+""}function tf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tf=function(){return!!e})()}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rf(e)}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},of(e,t)}var nf=function(e,t,r,o){return new(r||(r=Gd))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})},af=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=rf(t),function(e,t){if(t&&("object"==Kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tf()?Reflect.construct(t,r||[],rf(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&of(e,t)}(t,e),r=t,n=[{key:"fromOdooResponse",value:function(e){var r=new t;return r.id=e.id,r.name=e.name,r.email=e.email,r.image=e.image||"assets/person.png",r.parentName=e.parent_name,r.phone=e.phone,r.mobile=e.mobile,r.isWritable=e.can_write_on_partner,r}},{key:"savePartner",value:function(e){return nf(this,void 0,void 0,Zd().m(function t(){var r,o,n;return Zd().w(function(t){for(;;)switch(t.n){case 0:return r={name:e.name,email:e.email},t.n=1,su(Lc,r);case 1:if(null==(o=t.v)?void 0:o.id){t.n=2;break}return t.a(2,null);case 2:return(n=e.clone()).id=o.id,n.image=o.image,n.isWritable=!0,t.a(2,n)}},t)}))}},{key:"getPartner",value:function(e,r){return nf(this,arguments,void 0,function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Zd().m(function n(){var i,a,s,l,c,u,d;return Zd().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,su(Ic,{email:r,partner_id:o});case 1:if(!(i=n.v)||!i.error){n.n=2;break}return a=new dd("odoo",i.error),s=t.fromOdooResponse({name:e,email:r}),n.a(2,[s,a]);case 2:if(i&&i.partner){n.n=3;break}return l=new dd("http_error_odoo"),c=t.fromOdooResponse({name:e,email:r}),n.a(2,[c,l]);case 3:return u=new dd,d=t.fromOdooResponse(Object.assign({name:e,email:r},i.partner)),i.leads&&(d.leadCount=i.lead_count,d.leads=i.leads.map(function(e){return Td.fromOdooResponse(e)})),i.tickets&&(d.ticketCount=i.ticket_count,d.tickets=i.tickets.map(function(e){return Ud.fromOdooResponse(e)})),i.tasks&&(d.taskCount=i.task_count,d.tasks=i.tasks.map(function(e){return Fd.fromOdooResponse(e)})),d.canCreateProject=!1!==i.can_create_project,d.canCreatePartner=!1!==i.can_create_partner,n.a(2,[d,u])}},n)})()})}},{key:"searchPartner",value:function(e){return nf(this,void 0,void 0,Zd().m(function r(){var o;return Zd().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,su(qc,{query:e});case 1:if(null==(o=r.v)?void 0:o.length){r.n=2;break}return r.a(2,[[],new dd("http_error_odoo")]);case 2:return r.a(2,[o[0].map(function(e){return t.fromOdooResponse(e)}),new dd])}},r)}))}}],(o=[{key:"description",get:function(){return this.id?this.email:mu("New Person")}},{key:"key",get:function(){var e,t,r;return"partner-".concat(this.id,"-").concat(null===(e=this.leads)||void 0===e?void 0:e.length,"-").concat(null===(t=this.tickets)||void 0===t?void 0:t.length,"-").concat(null===(r=this.tasks)||void 0===r?void 0:r.length)}},{key:"clone",value:function(){var e={};for(var r in this)this.hasOwnProperty(r)&&(Array.isArray(this[r])?e[r]=Jd(this[r]):e[r]=this[r]);return Object.assign(new t,e)}}])&&Yd(r.prototype,o),n&&Yd(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,n}(vd);const sf=$o({container:{position:"absolute",zIndex:"999",bottom:"0",padding:"5px 10px",borderRadius:"2px",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"#fafafa",boxShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)",minWidth:"200px",textAlign:"center"},progress:{width:"100%",backgroundColor:"#e74c3c",height:"2px",position:"absolute",left:"0",bottom:"0",animationName:{"0%":{width:"100%"},"100%":{width:"0%"}},animationDuration:"2s",animationTimingFunction:"linear"}}),lf=$.createContext(null),cf=({children:e})=>{const t=sf(),[r,o]=$.useState(null),n=$.useRef(null);return $.createElement(lf.Provider,{value:{showError:e=>{n.current&&clearTimeout(n.current),o(null),requestAnimationFrame(()=>{o(e)}),n.current=setTimeout(()=>{o(null),n.current=null},2e3)}}},r&&$.createElement("div",{className:t.container},r,$.createElement("div",{className:t.progress})),e)};var uf=lf;const df=on({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw",B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"]},fitFill:{Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}"]}),ff=$.forwardRef((e,t)=>{const r=((e,t)=>{const{bordered:r=!1,fit:o="default",block:n=!1,shape:i="square",shadow:a=!1}=e;return{bordered:r,fit:o,block:n,shape:i,shadow:a,components:{root:"img"},root:nt(xt("img",{ref:t,...e}),{elementType:"img"})}})(e,t);return(e=>{const t=df(),{height:r,width:o}=e.root,n=null!=r||null!=o,i="default"!==e.fit&&!n;e.root.className=Ft("fui-Image",t.base,e.block&&t.block,e.bordered&&t.bordered,e.shadow&&t.shadow,t[e.fit],i&&t.fitFill,t[e.shape],e.root.className)})(r),be("useImageStyles_unstable")(r),(e=>te(e.root,{}))(r)});ff.displayName="Image";const hf=$o({loading:{float:"right"}}),pf=()=>{const e=new CustomEvent("showGlobalLoading");window.dispatchEvent(e)},mf=()=>{const e=new CustomEvent("hideGlobalLoading");window.dispatchEvent(e)};var vf=e=>{const t=hf(),[r,o]=$.useState(!1),n=()=>{o(!0)},i=()=>{o(!1)};return $.useEffect(()=>(window.addEventListener("showGlobalLoading",n),window.addEventListener("hideGlobalLoading",i),()=>{window.removeEventListener("showGlobalLoading",n),window.removeEventListener("hideGlobalLoading",i)}),[]),r&&$.createElement(ff,{className:t.loading,width:"20px",src:"assets/spinner.gif",alt:mu("Loading")})};const gf=$o({loading:{margin:"auto",display:"block"}});var bf=e=>{const t=gf();return $.createElement(ff,{className:t.loading,width:"32px",src:"assets/spinner.gif",alt:mu("Loading")})};const yf=$.createContext(void 0);yf.Provider;const wf=(e,t)=>{e=function(e,t){return function(e,t,r){if(!e)return t;t={...t};const{generatedControlId:o,hintId:n,labelFor:i,labelId:a,required:s,validationMessageId:l,validationState:c}=e;var u,d,f,h,p,m,v,g,b,y,w,k,x;return o&&(null!==(d=(u=t).id)&&void 0!==d||(u.id=o)),!a||(null==r?void 0:r.supportsLabelFor)&&i===t.id||null!==(p=(f=t)[h="aria-labelledby"])&&void 0!==p||(f[h]=a),(l||n)&&(t["aria-describedby"]=[l,n,null==t?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),"error"===c&&(null!==(v=(m=t)["aria-invalid"])&&void 0!==v||(m["aria-invalid"]=!0)),s&&((null==r?void 0:r.supportsRequired)?null!==(w=(y=t).required)&&void 0!==w||(y.required=!0):null!==(x=(k=t)["aria-required"])&&void 0!==x||(k["aria-required"]=!0)),(null==r?void 0:r.supportsSize)&&(null!==(b=(g=t).size)&&void 0!==b||(g.size=e.size)),t}($.useContext(yf),e,t)}(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=xe();var o;const{size:n="medium",appearance:i=(null!==(o=r.inputDefaultAppearance)&&void 0!==o?o:"outline"),onChange:a}=e,[s,l]=xa({state:e.value,defaultState:e.defaultValue,initialState:""}),c=(({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:kt(e,t,[...r||[],"style","className"])}))({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:nt(e.input,{defaultProps:{type:"text",ref:t,...c.primary},elementType:"input"}),contentAfter:it(e.contentAfter,{elementType:"span"}),contentBefore:it(e.contentBefore,{elementType:"span"}),root:nt(e.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=s,u.input.onChange=Jo(e=>{const t=e.target.value;null==a||a(e,{value:t}),l(t)}),u},kf=rn("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),xf=on({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),_f=rn("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),Ef=on({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),Cf=rn("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),Tf=on({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),Sf=$.forwardRef((e,t)=>{const r=wf(e,t);return(e=>{const{size:t,appearance:r}=e,o=e.input.disabled,n="true"==`${e.input["aria-invalid"]}`,i=r.startsWith("filled"),a=xf(),s=Ef(),l=Tf();e.root.className=Ft("fui-Input",kf(),a[t],e.contentBefore&&a[`${t}WithContentBefore`],e.contentAfter&&a[`${t}WithContentAfter`],a[r],!o&&"outline"===r&&a.outlineInteractive,!o&&"underline"===r&&a.underlineInteractive,!o&&i&&a.filledInteractive,i&&a.filled,!o&&n&&a.invalid,o&&a.disabled,e.root.className),e.input.className=Ft("fui-Input__input",_f(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],o&&s.disabled,e.input.className);const c=[Cf(),o&&l.disabled,l[t]];e.contentBefore&&(e.contentBefore.className=Ft("fui-Input__contentBefore",...c,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Ft("fui-Input__contentAfter",...c,e.contentAfter.className))})(r),be("useInputStyles_unstable")(r),(e=>re(e.root,{children:[e.contentBefore&&te(e.contentBefore,{}),te(e.input,{}),e.contentAfter&&te(e.contentAfter,{})]}))(r)});Sf.displayName="Input";var Bf=r(64583).Promise;const Nf=$o({loginSection:{display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",paddingBottom:"30px",paddingTop:"10px",height:"100%"},url:{width:"100%",marginTop:"10px"},button:{width:"100%",marginTop:"10px"},loading:{animation:"spin 4s linear infinite"}});var Of=e=>{var t;const r=Nf(),o=Bt("input"),n=null===(t=(0,$.useContext)(uf))||void 0===t?void 0:t.showError,[i,a]=$.useState(()=>localStorage.getItem("odoo_url")||""),[s,l]=$.useState(!1),c=()=>{return t=void 0,r=void 0,i=function*(){l(!0);const t=localStorage.getItem("odoo_url"),r=yield function(e){return iu(this,void 0,void 0,Yc().m(function t(){var r;return Yc().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e){t.n=1;break}return t.a(2,null);case 1:return r=au(ou.POST,e+Zc,nu.Json,null,{},!0),t.p=2,t.n=3,r.promise;case 3:return t.a(2,t.v);case 4:return t.p=4,t.v,t.a(2,null)}},t,null,[[2,4]])}))}(t);if(l(!1),!r)return void n("Could not connect to your database.");if(2!==r)return void n("This addin version required Odoo 19.2 or a newer version, please install an older addin version.");const o=yield function(e){return iu(this,void 0,void 0,Yc().m(function t(){var r,o,n,i,a,s;return Yc().w(function(t){for(;;)if(0===t.n)return r=document.location.origin,o={height:65,width:30,promptBeforeOpen:!0},n=encodeURIComponent(r+"/login_success.html"),i=encodeURIComponent(Gc+"?scope="+Xc+"&friendlyname="+Jc+"&redirect="+n),a=e+Uc+"?redirect="+i,s="".concat(r,"/login_redirect.html?dialogredir=").concat(a),t.a(2,new Qc(function(e,t){Office.context.ui.displayDialogAsync(s,o,function(t){t.value.addEventHandler(Office.EventType.DialogMessageReceived,function(t){if("error"in t)e(null);else{var r=JSON.parse(t.message||"");if(r.success){var o=r.auth_code;e((null==o?void 0:o.length)?o:null)}else e(null)}})})}))},t)}))}(t);if(!o)return void n("Authentication failed");const i=yield function(e,t){return iu(this,void 0,void 0,Yc().m(function r(){var o,n,i;return Yc().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,r.n=1,au(ou.POST,e+Kc,nu.Json,null,{auth_code:t},!0).promise;case 1:return o=r.v,n=o.access_token,r.a(2,n&&n.length?n:null);case 2:return r.p=2,i=r.v,console.error(i),r.a(2,null)}},r,null,[[0,2]])}))}(t,o);i?(localStorage.setItem("odoo_access_token",i),e.onLogin()):n("Could not connect get the access token.")},new((o=void 0)||(o=Bf))(function(e,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o(function(e){e(r)})).then(a,s)}l((i=i.apply(t,r||[])).next())});var t,r,o,i};return $.createElement("section",{className:r.loginSection},$.createElement(ff,{width:"100%",src:"assets/login.svg",alt:"Login"}),$.createElement(Sf,{className:r.url,id:o,value:i,placeholder:"e.g. mycompany.odoo.com",onChange:e=>{let t=e.target.value;!t.length||t.startsWith("http://")||t.startsWith("https://")||(t="https://"+t),a(t),t.endsWith("/odoo")?t=t.slice(0,-5):t.endsWith("/odoo/web")?t=t.slice(0,-9):t.endsWith("/web")&&(t=t.slice(0,-4)),localStorage.setItem("odoo_url",t)},onKeyUp:e=>{"Enter"===e.key&&c()}}),$.createElement(hn,{className:r.button,appearance:"primary",onClick:c,icon:s?$.createElement(Zl,{className:r.loading}):void 0},"Login"),$.createElement(hn,{className:r.button,appearance:"outline",onClick:()=>{window.open("https://www.odoo.com/trial?selected_app=mail_plugin:crm:helpdesk:project","_blank")}},"Sign Up"),$.createElement(hn,{className:r.button,appearance:"transparent",onClick:()=>{window.open("https://www.odoo.com/documentation/master/applications/productivity/mail_plugins.html","_blank")}},"FAQ"))};const jf=Wl("MailRegular","1em",["M15.5 4A2.5 2.5 0 0 1 18 6.5v8a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 14.5v-8A2.5 2.5 0 0 1 4.5 4h11ZM17 7.96l-6.75 3.97a.5.5 0 0 1-.42.04l-.08-.04L3 7.96v6.54c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5V7.96ZM15.5 5h-11C3.67 5 3 5.67 3 6.5v.3l7 4.12 7-4.12v-.3c0-.83-.67-1.5-1.5-1.5Z"]),Pf=Wl("MailCheckmarkRegular","1em",["M17 14.5v-4.1c.36-.18.7-.4 1-.66v4.76a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 14.5v-8A2.5 2.5 0 0 1 4.5 4h4.7c-.08.32-.15.66-.18 1H4.5C3.67 5 3 5.67 3 6.5v.3l7 4.12 1.44-.85c.33.22.68.4 1.04.55l-2.23 1.31a.5.5 0 0 1-.42.04l-.08-.04L3 7.96v6.54c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5ZM14.5 10a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm2.35-5.65-3 3a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 2.65-2.64a.5.5 0 0 1 .7.7Z"]);var Rf=r(64583).Promise;function zf(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return Df(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Df(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Df(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Df(d,"constructor",c),Df(c,"constructor",l),l.displayName="GeneratorFunction",Df(c,n,"GeneratorFunction"),Df(d),Df(d,n,"Generator"),Df(d,o,function(){return this}),Df(d,"toString",function(){return"[object Generator]"}),(zf=function(){return{w:i,m:f}})()}function Df(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Df=function(e,t,r,o){function i(t,r){Df(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Df(e,t,r,o)}var Ff=function(e,t,r,o){return new(r||(r=Rf))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};function Af(e,t){return Ff(this,void 0,void 0,zf().m(function r(){var o;return zf().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,e.getBody();case 1:return o=r.v,t&&(o+="<br/><i>".concat(mu("Attachments could not be logged in Odoo because their total size exceeded the allowed maximum."),"</i>")),r.a(2,o)}},r)}))}function If(e,t,r){var o=new URL(localStorage.getItem("odoo_url")).host,n=JSON.parse(localStorage.getItem("logged_state")||"[]"),i="".concat(o,"-").concat(e,"-").concat(t,"-").concat(r.messageId);n.push(i),n.length>5e3&&(n=n.slice(n.length-5e3,n.length)),localStorage.setItem("logged_state",JSON.stringify(n))}var qf=r(64583).Promise;const Lf=$o({spinner:{padding:"4px"}});var Mf=e=>{var t;const{recordId:r,model:o,email:n,logEmailTitle:i,logEmailAlreadyLogged:a}=e,s=null===(t=(0,$.useContext)(uf))||void 0===t?void 0:t.showError,l=Lf(),[c,u]=$.useState(()=>function(e,t,r){var o=new URL(localStorage.getItem("odoo_url")).host,n=JSON.parse(localStorage.getItem("logged_state")||"[]"),i="".concat(o,"-").concat(e,"-").concat(t,"-").concat(r.messageId);return n.includes(i)}(r,o,n)),[d,f]=$.useState(()=>!1);return d?$.createElement(ff,{className:l.spinner,width:"24px",src:"assets/spinner.gif",alt:mu("Loading")}):c?$.createElement(hn,{icon:$.createElement(Pf,null),title:a,size:"small",shape:"circular",appearance:"subtle",disabled:!0}):$.createElement(hn,{icon:$.createElement(jf,null),title:i,size:"small",shape:"circular",appearance:"subtle",onClick:()=>{return e=void 0,t=void 0,a=function*(){f(!0);const e=yield function(e,t,r){return Ff(this,void 0,void 0,zf().m(function o(){var n,i,a,s;return zf().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,r.getAttachments();case 1:return n=o.v,o.n=2,Af(r,null===n);case 2:return i=o.v,o.n=3,su(Fc,{body:i,subject:r.subject,email_from:r.emailFrom,email_to:r.emailTo,email_cc:r.emailCC,timestamp:r.timestamp,res_id:e,model:t,attachments:n,application_name:mu("Odoo for Outlook")});case 3:return a=o.v,s=new dd,a?If(e,t,r):s.setError("unknown"),o.a(2,s)}},o)}))}(r,o,n);f(!1),e.code?s(e.message):u(!0)},new((i=void 0)||(i=qf))(function(r,o){function n(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(n,s)}l((a=a.apply(e,t||[])).next())});var e,t,i,a}})};const Hf=$o({container:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},record:{overflow:"hidden",userSelect:"none",display:"flex",borderRadius:"5px",padding:"5px",width:"100%","&.clickable":{cursor:"pointer"},"&.clickable:hover":{background:"#f5f5f5"},"&.clickable:active":{background:"#e0e0e1"}},recordInfo:{width:"100%;",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"center"},info:{maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},icon:{width:"40px",height:"40px",borderRadius:"50%",marginRight:"5px"},description:{fontSize:"0.8rem",display:"flex",flexDirection:"column","& > span, &":{maxWidth:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"block"}}});var Wf=e=>{const{description:t,icon:r,model:o,name:n,onClick:i,record:a,logEmail:s,logEmailTitle:l,logEmailAlreadyLogged:c,email:u}=e,d=Hf();return $.createElement("div",{className:d.container},$.createElement("div",{className:d.record+(i&&" clickable"),onClick:i&&(()=>i(a))},!!r&&$.createElement("img",{className:d.icon,src:r}),$.createElement("div",{className:d.recordInfo},$.createElement("span",{className:d.info,title:"string"==typeof n?n:""},n),$.createElement("div",{className:d.description,title:"string"==typeof t?t:""},t))),s&&$.createElement(Mf,{recordId:a.id,model:o,email:u,logEmailTitle:l,logEmailAlreadyLogged:c}))},Vf=r(64583).Promise;function $f(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return Uf(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Uf(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Uf(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Uf(d,"constructor",c),Uf(c,"constructor",l),l.displayName="GeneratorFunction",Uf(c,n,"GeneratorFunction"),Uf(d),Uf(d,n,"Generator"),Uf(d,o,function(){return this}),Uf(d,"toString",function(){return"[object Generator]"}),($f=function(){return{w:i,m:f}})()}function Uf(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Uf=function(e,t,r,o){function i(t,r){Uf(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Uf(e,t,r,o)}function Gf(e,t){return r=this,o=void 0,n=void 0,i=$f().m(function r(){var o,n;return $f().w(function(r){for(;;)switch(r.n){case 0:return o=Ac+"/"+e,r.n=1,su(o,{query:t});case 1:if(null==(n=r.v)?void 0:n.length){r.n=2;break}return r.a(2,[[],0,new dd("unknown",n.error)]);case 2:return r.a(2,[n[0],n[1],new dd(null)])}},r)}),new(n||(n=Vf))(function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function s(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n(function(e){e(r)})).then(a,s)}l((i=i.apply(r,o||[])).next())});var r,o,n,i}var Kf=r(64583).Promise;const Zf=$o({section:{marginTop:"10px"},header:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},title:{margin:"5px"},buttons:{display:"flex"},button:{marginLeft:"5px"},recordsContainer:{display:"flex",flexDirection:"column",justifyContent:"space-between"},spinner:{padding:"4px"},showAll:{textAlign:"left",display:"block",width:"fit-content",marginLeft:"calc(5px - var(--spacingHorizontalM))"}});var Xf=function(e){const t=Zf(),{email:r,model:o,logEmailTitle:n,logEmailAlreadyLogged:i,searchTitle:a,sectionTitle:s,records:l,recordCount:c,createRecord:u,onSearch:d,descriptionAttribute:f}=e,[h,p]=$.useState(!1),m=h?l:[...l].splice(0,5),[v,g]=$.useState(!1),b=m.map((e,t)=>$.createElement(Wf,{key:`${e.id}-${o}`,model:o,onClick:()=>(e=>{window.open(lu(o,e.id))})(e),record:e,description:e[f],name:e.name,logEmail:!0,logEmailTitle:n,logEmailAlreadyLogged:i,email:r}));return $.createElement("section",{className:t.section},$.createElement("div",{className:t.header},$.createElement("h4",{className:t.title},s),$.createElement("div",{className:t.buttons},v?$.createElement(ff,{className:t.spinner,width:"24px",src:"assets/spinner.gif",alt:mu("Loading")}):$.createElement(hn,{className:t.button,icon:$.createElement(Sc,null),title:mu("New"),size:"small",appearance:"subtle",shape:"circular",onClick:()=>{return e=this,t=void 0,o=function*(){g(!0),yield u(),g(!1)},new((r=void 0)||(r=Kf))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())});var e,t,r,o}}),$.createElement(hn,{className:t.button,icon:$.createElement(Rc,null),title:a,size:"small",appearance:"subtle",shape:"circular",onClick:()=>d()}))),$.createElement("div",{className:t.recordsContainer},b,m.length<c&&$.createElement(hn,{className:t.showAll,appearance:"subtle",onClick:()=>{p(!0)}},mu("Show all"))))};const Jf=$o({image:{margin:"auto",display:"block",width:"52%",overflow:"visible",paddingTop:"10px"},text:{stroke:"none",strokeWidth:"1",strokeDasharray:"none",strokeLinecap:"butt",strokeDashoffset:"0",strokeLinejoin:"miter",strokeMiterlimit:"4",fill:"rgb(0,0,0)",fillRule:"nonzero",opacity:"1",whiteSpace:"pre"}});var Qf=e=>{const t=Jf();return $.createElement("svg",{className:t.image,viewBox:"0 0 64 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$.createElement("path",{d:"M28.0366 42.2322C20.6151 38.6959 18.865 26.8759 24.1276 15.8314C29.3902 4.78687 39.6727 -1.29978 47.0941 2.23647L51.5832 3.95535L33.2484 44.9615L28.0366 42.2322Z",fill:"#FBDBD0"}),$.createElement("path",{d:"M9.64901 62.4278C9.60872 62.4278 9.56821 62.4144 9.5345 62.3872L5.2556 58.9236C5.21731 58.8926 5.19322 58.8475 5.18885 58.7983C5.1844 58.7492 5.20012 58.7006 5.23226 58.6633C5.83002 57.9691 19.8784 41.6597 20.266 41.3283C20.5278 41.1041 20.8226 40.9738 21.1429 40.9405C21.155 40.9267 21.1694 40.9146 21.1858 40.905C21.2153 40.8874 21.2481 40.8789 21.2807 40.8789C21.2935 40.8789 21.3064 40.8803 21.319 40.8829C21.3766 40.8901 21.4343 40.8961 21.4921 40.9021C21.6347 40.9173 21.7824 40.9329 21.929 40.9622C22.7737 41.1314 23.5268 41.5619 24.2314 42.2782L24.2705 42.318C24.7498 42.8043 25.3463 43.4097 25.3463 44.6202C25.3463 44.6367 25.344 44.6532 25.3395 44.6693C25.2674 44.9273 15.5633 55.868 9.78515 62.3666C9.74933 62.407 9.69935 62.4278 9.64901 62.4278Z",fill:"white"}),$.createElement("path",{d:"M21.2829 41.0591H21.2841H21.2829ZM21.2829 41.0591L21.2804 41.0616C21.2799 41.0615 21.2793 41.0614 21.2788 41.0614L21.2829 41.0591ZM21.2804 41.0616C21.4848 41.0872 21.6917 41.1004 21.8932 41.1408C22.7689 41.3163 23.4861 41.7803 24.1015 42.4059C24.5909 42.9034 25.1641 43.4532 25.1641 44.6202C25.0926 44.8762 9.64904 62.2457 9.64904 62.2457L5.37009 58.782C5.37009 58.782 20.0027 41.793 20.3843 41.4665C20.6249 41.2606 20.9041 41.1351 21.2252 41.1163C21.2436 41.098 21.262 41.0798 21.2804 41.0616ZM21.284 40.6948H21.2829C21.2065 40.6948 21.1355 40.7184 21.0769 40.7586C21.0734 40.7611 21.0699 40.7635 21.0664 40.7661C20.7312 40.8122 20.4226 40.9544 20.1474 41.1898C19.7643 41.5177 7.54063 55.7038 5.09411 58.5443C5.02982 58.6189 4.9985 58.7165 5.00732 58.8146C5.01615 58.9127 5.06433 59.0031 5.14092 59.0651L9.41987 62.5288C9.48716 62.5833 9.56824 62.61 9.64888 62.61C9.7495 62.61 9.84945 62.5684 9.92122 62.4877C9.95983 62.4443 13.8267 58.095 17.6525 53.7703C25.4476 44.9589 25.4788 44.8473 25.5149 44.7182C25.5238 44.6863 25.5283 44.6534 25.5283 44.6202C25.5283 43.3348 24.9028 42.7001 24.4001 42.19L24.3612 42.1505C23.6302 41.4074 22.8463 40.9603 21.9648 40.7837C21.8101 40.7527 21.6586 40.7366 21.512 40.7211C21.4659 40.7162 21.4197 40.7113 21.3737 40.7059C21.345 40.6987 21.315 40.6948 21.284 40.6948Z",fill:"#374874"}),$.createElement("path",{d:"M24.9639 44.2055C24.9595 43.4702 24.5909 42.9034 24.1015 42.4059C23.4861 41.7803 22.769 41.3163 21.8932 41.1408C21.6912 41.1004 21.4838 41.0872 21.2788 41.0614C21.2788 41.0614 21.3544 40.9156 21.4064 40.8554C22.1554 39.9876 22.9073 39.1223 23.6585 38.2564C23.9294 38.0431 24.2235 37.9061 24.5804 37.8942C25.2398 37.8722 25.8027 38.1052 26.3023 38.5094C26.7534 38.8744 27.1514 39.2928 27.4025 39.8233C27.7043 40.461 27.6866 41.0831 27.2506 41.6652C27.2506 41.6652 27.1161 41.7659 27.0616 41.8274C26.361 42.6188 25.6628 43.4124 24.9639 44.2055Z",fill:"white"}),$.createElement("path",{d:"M37.4795 45.6182C35.8306 45.618 34.2721 45.2736 32.8473 44.5945C29.2015 42.8575 26.7819 39.1204 26.0345 34.0722C25.2909 29.0503 26.2916 23.3251 28.8522 17.9512C33.0431 9.15591 40.5085 3.24677 47.4292 3.24677C49.0777 3.24677 50.6362 3.59097 52.0614 4.27019C59.5616 7.84386 61.3538 19.7963 56.0565 30.9137C51.8658 39.7086 44.4004 45.6182 37.481 45.6182L37.4795 45.6182Z",fill:"white"}),$.createElement("path",{d:"M47.4292 3.42893C49.0153 3.42893 50.553 3.7532 51.9831 4.43462C59.4046 7.97082 61.1547 19.7909 55.8921 30.8354C51.6435 39.7518 44.1247 45.436 37.4794 45.436C35.8933 45.436 34.3556 45.1117 32.9255 44.4303C25.5041 40.8941 23.754 29.074 29.0165 18.0295C33.2651 9.11313 40.7839 3.42893 47.4292 3.42893ZM47.4292 3.0647C44.0453 3.0647 40.4734 4.45962 37.0997 7.09869C33.6807 9.77318 30.7719 13.4988 28.6877 17.8729C26.1117 23.2791 25.1054 29.0416 25.8542 34.0989C26.6109 39.2091 29.0665 42.995 32.7689 44.7591C34.2187 45.45 35.8036 45.8003 37.4794 45.8003C40.8633 45.8003 44.4352 44.4053 47.8089 41.7662C51.2279 39.0918 54.1367 35.3661 56.2209 30.9921C58.7969 25.5858 59.8032 19.8233 59.0544 14.766C58.2977 9.65583 55.8421 5.86995 52.1397 4.10584C50.6899 3.41498 49.105 3.0647 47.4292 3.0647Z",fill:"#374874"}),$.createElement("path",{d:"M52.7395 29.3333C56.7675 20.8798 55.428 11.8328 49.7476 9.12618C44.0673 6.41955 36.1971 11.0782 32.1691 19.5317C28.1412 27.9851 29.4807 37.0321 35.1611 39.7387C40.8414 42.4454 48.7116 37.7867 52.7395 29.3333Z",fill:"#FBDBD0"}),$.createElement("path",{d:"M49.6846 27.4203C53.1243 20.2014 52.6469 12.5531 48.8975 8.78652C43.305 6.8897 36 11.4918 32.1691 19.5316C28.7294 26.7505 29.2068 34.3988 32.9562 38.1654C38.5487 40.0623 45.8537 35.4601 49.6846 27.4203Z",fill:"#C1DBF6"}),$.createElement("path",{d:"M35.8058 20.1909C35.7993 19.7398 35.9842 19.4638 36.1241 19.1844C36.7114 18.0116 37.3878 16.8925 38.1908 15.8509C39.2979 14.4146 40.5435 13.1251 42.0587 12.1124C42.3592 11.9116 42.6456 11.6878 42.9777 11.5385C43.2834 11.401 43.6486 11.5135 43.789 11.7823C43.9398 12.0714 43.8458 12.4019 43.5555 12.5913C43.4472 12.6619 43.3343 12.7252 43.2237 12.7922C41.9884 13.542 40.9426 14.5082 39.9832 15.5821C38.9012 16.7932 38.0283 18.1401 37.2919 19.5808C37.1706 19.8182 37.0665 20.0645 36.9603 20.3092C36.8445 20.576 36.5527 20.7579 36.3048 20.7099C36.0046 20.6518 35.8051 20.3984 35.8058 20.1909Z",fill:"white"}),$.createElement("path",{d:"M9.64911 62.2458C10.295 61.4479 9.8607 60.0257 8.67911 59.0692C7.49751 58.1127 6.01604 57.9842 5.37016 58.7821C4.72428 59.58 5.15856 61.0022 6.34016 61.9587C7.52175 62.9151 9.00322 63.0437 9.64911 62.2458Z",fill:"#FBDBD0"}),$.createElement("path",{d:"M42.5404 1.23075C44.1265 1.23075 45.6641 1.55507 47.0942 2.23644L51.4698 4.20911C51.6421 4.2798 51.8136 4.35382 51.9831 4.43455C59.4045 7.97082 61.1546 19.7908 55.8921 30.8354C51.6439 39.7508 44.1251 45.4346 37.4804 45.4346C36.0651 45.4346 34.6894 45.1767 33.3934 44.6373L28.0367 42.2321C27.7238 42.0831 27.4249 41.9141 27.1323 41.7363C27.1076 41.7659 27.0865 41.7993 27.0616 41.8275C26.4099 42.5636 25.7604 43.3017 25.1104 44.0394C25.1447 44.2148 25.1642 44.4071 25.1642 44.6203C25.0926 44.8763 9.64909 62.2457 9.64909 62.2457C9.36427 62.5975 8.917 62.7692 8.40459 62.7692C7.75499 62.7692 7.0007 62.4933 6.34015 61.9586C5.15855 61.0022 4.72427 59.58 5.37017 58.782C5.37017 58.782 20.0028 41.793 20.3843 41.4665C20.625 41.2606 20.9042 41.1351 21.2253 41.1163C21.2437 41.098 21.2621 41.0798 21.2805 41.0615C21.2799 41.0615 21.2794 41.0614 21.2789 41.0614C21.2594 40.9549 21.3545 40.9156 21.4064 40.8553C22.1472 39.9971 22.8909 39.1412 23.6339 38.2849C20.1812 32.9623 20.1512 24.1767 24.1277 15.8313C28.3762 6.91496 35.895 1.23075 42.5404 1.23075ZM42.5404 0.316467C35.3432 0.316467 27.612 6.39336 23.3023 15.438C19.4287 23.5675 19.1392 32.3996 22.5041 38.1917C21.9162 38.8692 21.3283 39.5467 20.7422 40.2257C20.7201 40.2457 20.6992 40.2659 20.6794 40.2862C20.3591 40.3773 20.0612 40.5397 19.7899 40.7718C19.4119 41.0952 10.1592 51.8208 4.67739 58.1854C4.67133 58.1924 4.66534 58.1995 4.65949 58.2068C4.15739 58.8271 4.02468 59.6913 4.2954 60.5779C4.53131 61.3504 5.05318 62.0931 5.76489 62.6692C6.56121 63.3138 7.52333 63.6835 8.40454 63.6835C9.20607 63.6835 9.89396 63.384 10.3446 62.8394C10.5885 62.565 14.3459 58.3383 18.0645 54.1348C20.3124 51.5939 22.1066 49.5583 23.3975 48.0846C25.9642 45.1544 25.9703 45.1326 26.0447 44.8663C26.0671 44.7862 26.0784 44.7034 26.0784 44.6203C26.0784 44.524 26.0752 44.4286 26.0688 44.3346L26.1079 44.2902C26.5157 43.8272 26.9236 43.3642 27.3321 42.9017C27.4377 42.9571 27.5409 43.0088 27.6435 43.0576C27.6497 43.0605 27.6559 43.0634 27.6621 43.0662L33.0189 45.4714C33.0266 45.4748 33.0343 45.4781 33.0421 45.4814C34.425 46.057 35.9182 46.3489 37.4804 46.3489C44.6773 46.3489 52.4081 40.2725 56.7174 31.2286C59.3399 25.7248 60.3631 19.8497 59.5985 14.6854C58.8141 9.38822 56.2493 5.45457 52.3763 3.60915C52.2112 3.53052 52.0377 3.45414 51.8314 3.36924L47.4786 1.40687C45.9567 0.68337 44.2952 0.316467 42.5404 0.316467Z",fill:"#374874"}),$.createElement("text",{x:"32",y:"75","font-size":"8",className:t.text,"text-anchor":"middle","font-family":"Caveat","font-style":"normal","font-weight":"400"},mu("No record found.")),$.createElement("text",{x:"32",y:"85","font-size":"8",className:t.text,"text-anchor":"middle","font-family":"Caveat","font-style":"normal","font-weight":"400"},mu("Try using different keywords.")))},Yf=r(64583).Promise;const eh=$o({container:{display:"flex",flexDirection:"column",paddingTop:"5px"},title:{marginBottom:"5px",marginTop:"5px"},input:{width:"calc(100% - 40px)",marginBottom:"5px"},searchContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},spinner:{padding:"8px"}});var th=function(e){const{descriptionAttribute:t,iconAttribute:r,model:o,nameAttribute:n,onClick:i,search:a,records:s,searchPlaceholder:l,title:c,bottom:u,email:d,logEmail:f,logEmailTitle:h,logEmailAlreadyLogged:p,loading:m}=e,v=eh(),[g,b]=$.useState(s),[y,w]=$.useState(""),[k,x]=$.useState(m),[_,E]=$.useState(!0),C=()=>{return e=this,t=void 0,o=function*(){x(!0),b((yield a(y))||[]),x(!1),E(!1)},new((r=void 0)||(r=Yf))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())});var e,t,r,o},T=g.map((e,a)=>$.createElement(Wf,{key:`${e.id}-${o}-${null==e?void 0:e.email}-${e.name}`,model:o,onClick:i,record:e,description:e[t],icon:e[r],name:e[n],email:d,logEmail:f,logEmailTitle:h,logEmailAlreadyLogged:p}));return $.createElement("div",{className:v.container},c&&$.createElement("h4",{className:v.title},c),$.createElement("div",{className:v.searchContainer},$.createElement(Sf,{className:v.input,value:y,placeholder:l,onChange:e=>w(e.target.value),onKeyUp:e=>{"Enter"===e.key&&C()}}),k?$.createElement(ff,{className:v.spinner,width:"32px",src:"assets/spinner.gif",alt:mu("Loading")}):$.createElement(hn,{icon:$.createElement(Rc,null),onClick:C})),_&&u,T.length||_?$.createElement("div",null,T):$.createElement(Qf,null))},rh=r(64583).Promise;function oh(e){return oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oh(e)}function nh(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function i(r,o,n,i){var l=o&&o.prototype instanceof s?o:s,c=Object.create(l.prototype);return ih(c,"_invoke",function(r,o,n){var i,s,l,c=0,u=n||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,s=0,l=e,f.n=r,a}};function h(r,o){for(s=r,l=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,i=u[t],h=f.p,p=i[2];r>3?(n=p===o)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=h&&((n=r<2&&h<i[1])?(s=0,f.v=o,f.n=i[1]):h<p&&(n=r<3||i[0]>o||o>p)&&(i[4]=r,i[5]=o,f.n=p,s=0))}if(n||r>1)return a;throw d=!0,o}return function(n,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),s=u,l=p;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),h(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(n="next"),t=i[n]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:r.call(o,f))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(ih(t={},o,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ih(e,n,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ih(d,"constructor",c),ih(c,"constructor",l),l.displayName="GeneratorFunction",ih(c,n,"GeneratorFunction"),ih(d),ih(d,n,"Generator"),ih(d,o,function(){return this}),ih(d,"toString",function(){return"[object Generator]"}),(nh=function(){return{w:i,m:f}})()}function ih(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}ih=function(e,t,r,o){function i(t,r){ih(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},ih(e,t,r,o)}function ah(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,sh(o.key),o)}}function sh(e){var t=function(e){if("object"!=oh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=oh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oh(t)?t:t+""}function lh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lh=function(){return!!e})()}function ch(e){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ch(e)}function uh(e,t){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uh(e,t)}var dh=function(e,t,r,o){return new(r||(r=rh))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})},fh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=ch(t),function(e,t){if(t&&("object"==oh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lh()?Reflect.construct(t,r||[],ch(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uh(e,t)}(t,e),r=t,o=[{key:"fromOdooResponse",value:function(e){var r=new t;r.id=e.id,r.name=e.name,r.partnerName=e.partner_name,r.stageName=e.stage_name,r.companyName=e.company_name;var o=[r.companyName,r.partnerName,r.stageName];return r.description=o.filter(function(e){return e}).join(" - "),r}},{key:"searchProject",value:function(e){return dh(this,void 0,void 0,nh().m(function r(){var o;return nh().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,su(Wc,{query:e});case 1:if(null==(o=r.v)?void 0:o.length){r.n=2;break}return r.a(2,[[],new dd("http_error_odoo")]);case 2:return r.a(2,[o[0].map(function(e){return t.fromOdooResponse(e)}),new dd])}},r)}))}},{key:"createProject",value:function(e){return dh(this,void 0,void 0,nh().m(function r(){var o,n;return nh().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,su(Vc,{name:e});case 1:if(o=r.v,n=o&&o.id||null){r.n=2;break}return r.a(2,null);case 2:return r.a(2,t.fromOdooResponse({id:n,name:o.name}))}},r)}))}}],null&&ah(r.prototype,null),o&&ah(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(vd),hh=r(64583).Promise;const ph=$o({input:{width:"100%",marginBottom:"5px"}});var mh=e=>{var t;const{onCreate:r}=e,o=null===(t=(0,$.useContext)(uf))||void 0===t?void 0:t.showError,n=ph(),[i,a]=$.useState("");return $.createElement("div",null,$.createElement("h4",null,mu("Create a Task in a new Project")),$.createElement(Sf,{className:n.input,value:i,placeholder:mu("Project Name"),onChange:e=>a(e.target.value)}),$.createElement(hn,{onClick:()=>{return e=void 0,t=void 0,a=function*(){if(!i.length)return void o(mu("The project name is required"));pf();const e=yield fh.createProject(i);mf(),e?r(e):o(mu("Could not create the project"))},new((n=void 0)||(n=hh))(function(r,o){function i(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}l((a=a.apply(e,t||[])).next())});var e,t,n,a}},mu("Create Project & Task")))},vh=r(64583).Promise,gh=function(e,t,r,o){return new(r||(r=vh))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};const bh=$o({});var yh=e=>{var t;const{canCreateProject:r,onSelectProject:o,pushPage:n}=e,i=null===(t=(0,$.useContext)(uf))||void 0===t?void 0:t.showError,[a,s]=(bh(),$.useState(!0)),[l,c]=$.useState(!1),[u,d]=$.useState(null),f=e=>gh(void 0,void 0,void 0,function*(){const[t,r]=yield fh.searchProject(e);return r.code?(i(r.message),[]):t});if($.useEffect(()=>{gh(void 0,void 0,void 0,function*(){const e=yield f("");c(!e.length),d(e),s(!1)})},[]),l)return r?$.createElement(mh,{onCreate:o}):$.createElement("div",null,$.createElement("h4",null,mu("No project")),$.createElement("span",null,mu("There are no project in your database. Please ask your project manager to create one.")));const h=r&&$.createElement(hn,{onClick:()=>{n($.createElement(mh,{onCreate:e=>{o(e,2)}}))}},mu("Create Project"));return $.createElement(th,{key:a.toString(),bottom:h,loading:a,onClick:o,search:f,model:"project.project",searchPlaceholder:mu("Search a Project"),records:u||[],nameAttribute:"name",descriptionAttribute:"description",title:mu("Create a Task in an existing Project")})},wh=r(64583).Promise,kh=function(e,t,r,o){return new(r||(r=wh))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};const xh=$o({title:{marginLeft:"5px",marginTop:"5px",marginBottom:"5px"},buttonsContainer:{display:"flex","& > *":{marginLeft:"5px"},"& .fui-Button__icon, & .fui-Button__icon svg":{height:"22px",width:"22px"}},info:{display:"flex",flexDirection:"row",alignItems:"center","& > *":{verticalAlign:"middle"}}});var _h=e=>{var t;const{partner:r,email:o,onSearch:n,pushPage:i,goBack:a,updatePartner:s}=e,l=null===(t=(0,$.useContext)(uf))||void 0===t?void 0:t.showError,c=xh();let u=[];return r.parentName&&u.push($.createElement("span",{className:c.info,key:`companyName-${r.parentName}`,title:r.parentName},$.createElement(Oc,null)," ",r.parentName)),r.email&&u.push($.createElement("span",{className:c.info,key:`email-${r.email}`,title:r.email},$.createElement(jf,null)," ",r.email)),r.phone&&u.push($.createElement("span",{className:c.info,key:`phone-${r.phone}`,title:r.phone},$.createElement(Pc,null)," ",r.phone)),$.createElement("div",null,$.createElement("h4",{className:c.title},mu("Contact Details")),$.createElement(Wf,{model:"res.partner",record:r,description:u,icon:r.image,name:r.name,email:o}),$.createElement("div",{className:c.buttonsContainer},!r.id&&r.canCreatePartner&&$.createElement(hn,{appearance:"primary",size:"small",shape:"circular",onClick:()=>kh(void 0,void 0,void 0,function*(){pf();const e=yield af.savePartner(r);mf(),e?s(e):l(mu("Can not save the contact"))})},mu("Add to Odoo")),r.id&&$.createElement(hn,{appearance:"primary",size:"small",shape:"circular",onClick:()=>{window.open(lu("res.partner",r.id))}},mu("View in Odoo")),r.id&&r.isWritable&&$.createElement(Mf,{recordId:r.id,model:"res.partner",email:o,logEmailTitle:mu("Log email"),logEmailAlreadyLogged:mu("Email already logged on the contact")}),$.createElement(hn,{icon:$.createElement(Rc,null),title:mu("Search contact"),size:"small",shape:"circular",appearance:"subtle",onClick:()=>n()})),!!r.leads&&$.createElement(Xf,{email:o,model:"crm.lead",descriptionAttribute:"revenuesDescription",logEmailTitle:mu("Log the email on the opportunity"),logEmailAlreadyLogged:mu("Email already logged on the opportunity"),searchTitle:mu("Search Opportunities"),sectionTitle:r.leadCount?mu("Opportunities (%s)",r.leadCount):mu("Opportunities"),records:r.leads,recordCount:r.leadCount,createRecord:()=>kh(void 0,void 0,void 0,function*(){const e=yield Td.createLead(r,o);if(!e)return void l(mu("Could not create the opportunity"));const[t,n]=e;n.leads.push(t),n.leadCount+=1,s(n)}),onSearch:()=>kh(void 0,void 0,void 0,function*(){i($.createElement(th,{onClick:e=>{window.open(lu("crm.lead",e.id))},search:e=>kh(void 0,void 0,void 0,function*(){const[t,r,o]=yield Gf("crm.lead",e);return o.code?l(o.message):t.map(Td.fromOdooResponse)}),model:"crm.lead",searchPlaceholder:mu("Search Opportunities"),records:r.leads,nameAttribute:"name",descriptionAttribute:"revenuesDescription",email:o,logEmail:!0,logEmailTitle:mu("Log the email on the opportunity"),logEmailAlreadyLogged:mu("Email already logged on the opportunity")}))})}),!!r.tickets&&$.createElement(Xf,{email:o,model:"helpdesk.ticket",descriptionAttribute:"stageName",logEmailTitle:mu("Log the email on the ticket"),logEmailAlreadyLogged:mu("Email already logged on the ticket"),searchTitle:mu("Search Tickets"),sectionTitle:r.ticketCount?mu("Tickets (%s)",r.ticketCount):mu("Tickets"),records:r.tickets,recordCount:r.ticketCount,createRecord:()=>kh(void 0,void 0,void 0,function*(){const e=yield Ud.createTicket(r,o);if(!e)return void l(mu("Could not create the ticket"));const[t,n]=e;n.tickets.push(t),n.ticketCount+=1,s(n)}),onSearch:()=>kh(void 0,void 0,void 0,function*(){i($.createElement(th,{onClick:e=>{window.open(lu("helpdesk.ticket",e.id))},search:e=>kh(void 0,void 0,void 0,function*(){const[t,r,o]=yield Gf("helpdesk.ticket",e);return o.code?l(o.message):t.map(Ud.fromOdooResponse)}),model:"helpdesk.ticket",searchPlaceholder:mu("Search Tickets"),records:r.tickets,nameAttribute:"name",descriptionAttribute:"stageName",email:o,logEmail:!0,logEmailTitle:mu("Log the email on the ticket"),logEmailAlreadyLogged:mu("Email already logged on the ticket")}))})}),!!r.tasks&&$.createElement(Xf,{email:o,model:"project.task",descriptionAttribute:"projectName",logEmailTitle:mu("Log the email on the task"),logEmailAlreadyLogged:mu("Email already logged on the task"),searchTitle:mu("Search Tasks"),sectionTitle:r.taskCount?mu("Tasks (%s)",r.taskCount):mu("Tasks"),records:r.tasks,recordCount:r.taskCount,createRecord:()=>kh(void 0,void 0,void 0,function*(){i($.createElement(yh,{canCreateProject:r.canCreateProject,onSelectProject:(e,...t)=>kh(void 0,[e,...t],void 0,function*(e,t=1){pf();const n=yield Fd.createTask(r,e.id,o);if(mf(),!n)return void l(mu("Could not create the task"));const[i,c]=n;c.tasks.push(i),c.taskCount+=1,a(t),s(c)}),pushPage:i}))}),onSearch:()=>kh(void 0,void 0,void 0,function*(){i($.createElement(th,{onClick:e=>{window.open(lu("project.task",e.id))},search:e=>kh(void 0,void 0,void 0,function*(){const[t,r,o]=yield Gf("project.task",e);return o.code?l(o.message):t.map(Fd.fromOdooResponse)}),model:"project.task",searchPlaceholder:mu("Search Tasks"),records:r.tasks,nameAttribute:"name",descriptionAttribute:"projectName",email:o,logEmail:!0,logEmailTitle:mu("Log the email on the task"),logEmailAlreadyLogged:mu("Email already logged on the task")}))})}))},Eh=r(64583).Promise,Ch=function(e,t,r,o){return new(r||(r=Eh))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};const Th=$o({root:{minHeight:"100vh",padding:"0 10px"},header:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},goBack:{marginTop:"5px"},subTitle:{marginBottom:"5px",marginTop:"5px",marginLeft:"10px"},spinner:{padding:"4px"},kebab:{minWidth:"0"},kebabButton:{"& div":{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between","& > span":{marginRight:"5px"}}}});var Sh=e=>{var t;const r=Th(),o=null===(t=(0,$.useContext)(uf))||void 0===t?void 0:t.showError,[n,i]=$.useState(!!localStorage.getItem("odoo_access_token")),[a,s]=$.useState(!1),[l,c]=$.useState(null),[u,d]=$.useState();let f=new id;const h=(e,t=null)=>{d(r=>[...r,[e,t]]),c(e)},p=e=>Ch(void 0,void 0,void 0,function*(){const[t,r]=yield af.searchPartner(e);return r.code?(o(r.message),[]):t}),m=()=>{h($.createElement(th,{onClick:g,search:p,model:"res.partner",searchPlaceholder:mu("Search contact"),iconAttribute:"image",records:[],nameAttribute:"name",descriptionAttribute:"description",email:f}))},v=()=>{i(!1),s(!1),localStorage.removeItem("odoo_access_token"),d([]),c($.createElement(Of,{onLogin:w}))},g=e=>Ch(void 0,void 0,void 0,function*(){h($.createElement(_h,{key:`partner-${e.key}`,partner:e,email:f,onSearch:m,pushPage:h,goBack:k,updatePartner:b}),e),pf();const[t,r]=yield af.getPartner(e.name,e.email,e.id);mf(),r.code&&o(r.message),b(t)}),b=e=>{const t=$.createElement(_h,{key:`partner-${e.key}`,partner:e,email:f,onSearch:m,pushPage:h,goBack:k,updatePartner:b});d(r=>[...r.slice(0,-1),[t,e]]),c(t)},y=$.createElement("h4",{className:r.subTitle},mu("In this conversation")),w=(...e)=>Ch(void 0,[...e],void 0,function*(e=!0){const t=localStorage.getItem("odoo_access_token");if(!(null==t?void 0:t.length))return void v();const[r,o]=yield af.searchPartner(f.contacts.map(e=>e.email));if(o.code)return void v();const n=r.map(e=>e.email);for(const e of f.contacts)n.includes(e.email)||r.push(af.fromOdooResponse({name:e.name,email:e.email}));!function(){var e,t,r,o;e=this,t=void 0,r=void 0,o=uu().m(function e(){var t;return uu().w(function(e){for(;;)switch(e.n){case 0:if(hu()){e.n=1;break}return e.a(2);case 1:return e.n=2,su(Dc,{plugin:"outlook"});case 2:(t=e.v)&&pu(t);case 3:return e.a(2)}},e)}),new(r||(r=cu))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})}(),(e=>{const t=$.createElement(th,{onClick:g,search:p,model:"res.partner",bottom:y,searchPlaceholder:mu("Search contact"),iconAttribute:"image",records:e,nameAttribute:"name",descriptionAttribute:"description",email:f});d([[t,null]]),c(t)})(r),1===r.length&&e&&g(r[0]),s(!0),i(!1)}),k=(e=1)=>{d(t=>{if(2===t.length)return setTimeout(()=>w(!1)),[];const[r,o]=t[t.length-1-e];return c(r),t.slice(0,t.length-e)})};function x(){f=new id,w()}return $.useEffect(()=>{w()},[]),$.useEffect(()=>(window.addEventListener("newEmailOpened",x),()=>{window.removeEventListener("newEmailOpened",x)}),[]),$.createElement("div",{className:r.root},a&&$.createElement("div",{className:r.header},$.createElement(hn,{disabled:u.length<=1,className:r.goBack,icon:$.createElement(Nc,null),title:mu("Go back"),size:"small",shape:"circular",appearance:"subtle",onClick:()=>k()}),$.createElement(vf,null),$.createElement(Sl,null,$.createElement(Ll,{disableButtonEnhancement:!0},$.createElement(Yl,{appearance:"subtle",icon:$.createElement(jc,null),size:"medium"})),$.createElement(uc,{className:r.kebab},$.createElement(pc,null,$.createElement(Tc,{className:r.kebabButton,onClick:()=>Ch(void 0,void 0,void 0,function*(){const e=u[u.length-1][1],[t,r]=yield af.getPartner(e.name,e.email,e.id);r.code?o(r.message):b(t)}),disabled:!u.length||!u[u.length-1][1]},$.createElement("div",null,$.createElement("span",null,mu("Refresh")),$.createElement(Bc,null))),$.createElement(Tc,{className:r.kebabButton,onClick:()=>v()},$.createElement("div",null,$.createElement("span",null,mu("Log out")),$.createElement(zc,null))))))),n?$.createElement(bf,null):l)};const Bh=document.getElementById("container"),Nh=Bh?(0,$t.H)(Bh):void 0,Oh=(()=>{const e=(e=>({colorNeutralForeground1:o,colorNeutralForeground1Hover:o,colorNeutralForeground1Pressed:o,colorNeutralForeground1Selected:o,colorNeutralForeground2:n,colorNeutralForeground2Hover:o,colorNeutralForeground2Pressed:o,colorNeutralForeground2Selected:o,colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:i,colorNeutralForeground3Hover:n,colorNeutralForeground3Pressed:n,colorNeutralForeground3Selected:n,colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:"#707070",colorNeutralForegroundDisabled:a,colorNeutralForegroundInvertedDisabled:h,colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:n,colorNeutralForeground2LinkHover:o,colorNeutralForeground2LinkPressed:o,colorNeutralForeground2LinkSelected:o,colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:o,colorNeutralForegroundStaticInverted:g,colorNeutralForegroundInverted:g,colorNeutralForegroundInvertedHover:g,colorNeutralForegroundInvertedPressed:g,colorNeutralForegroundInvertedSelected:g,colorNeutralForegroundInverted2:g,colorNeutralForegroundOnBrand:g,colorNeutralForegroundInvertedLink:g,colorNeutralForegroundInvertedLinkHover:g,colorNeutralForegroundInvertedLinkPressed:g,colorNeutralForegroundInvertedLinkSelected:g,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:g,colorNeutralBackground1Hover:d,colorNeutralBackground1Pressed:s,colorNeutralBackground1Selected:c,colorNeutralBackground2:f,colorNeutralBackground2Hover:u,colorNeutralBackground2Pressed:"#dbdbdb",colorNeutralBackground2Selected:l,colorNeutralBackground3:d,colorNeutralBackground3Hover:c,colorNeutralBackground3Pressed:"#d6d6d6",colorNeutralBackground3Selected:s,colorNeutralBackground4:u,colorNeutralBackground4Hover:f,colorNeutralBackground4Pressed:d,colorNeutralBackground4Selected:g,colorNeutralBackground5:c,colorNeutralBackground5Hover:d,colorNeutralBackground5Pressed:u,colorNeutralBackground5Selected:f,colorNeutralBackground6:l,colorNeutralBackgroundInverted:"#292929",colorNeutralBackgroundStatic:"#333333",colorNeutralBackgroundAlpha:p,colorNeutralBackgroundAlpha2:"rgba(255, 255, 255, 0.8)",colorSubtleBackground:"transparent",colorSubtleBackgroundHover:d,colorSubtleBackgroundPressed:s,colorSubtleBackgroundSelected:c,colorSubtleBackgroundLightAlphaHover:"rgba(255, 255, 255, 0.7)",colorSubtleBackgroundLightAlphaPressed:p,colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:v,colorSubtleBackgroundInvertedPressed:"rgba(0, 0, 0, 0.3)",colorSubtleBackgroundInvertedSelected:"rgba(0, 0, 0, 0.2)",colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:u,colorNeutralBackgroundInvertedDisabled:"rgba(255, 255, 255, 0.1)",colorNeutralStencil1:l,colorNeutralStencil2:f,colorNeutralStencil1Alpha:v,colorNeutralStencil2Alpha:m,colorBackgroundOverlay:"rgba(0, 0, 0, 0.4)",colorScrollbarOverlay:"rgba(0, 0, 0, 0.5)",colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:g,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:f,colorNeutralCardBackgroundHover:g,colorNeutralCardBackgroundPressed:d,colorNeutralCardBackgroundSelected:c,colorNeutralCardBackgroundDisabled:u,colorNeutralStrokeAccessible:i,colorNeutralStrokeAccessibleHover:"#575757",colorNeutralStrokeAccessiblePressed:"#4d4d4d",colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:"#d1d1d1",colorNeutralStroke1Hover:"#c7c7c7",colorNeutralStroke1Pressed:"#b3b3b3",colorNeutralStroke1Selected:a,colorNeutralStroke2:s,colorNeutralStroke3:u,colorNeutralStrokeSubtle:s,colorNeutralStrokeOnBrand:g,colorNeutralStrokeOnBrand2:g,colorNeutralStrokeOnBrand2Hover:g,colorNeutralStrokeOnBrand2Pressed:g,colorNeutralStrokeOnBrand2Selected:g,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:s,colorNeutralStrokeInvertedDisabled:h,colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:m,colorNeutralStrokeAlpha2:"rgba(255, 255, 255, 0.2)",colorStrokeFocus1:g,colorStrokeFocus2:"#000000",colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}))({10:"#000000",20:"#181216",30:"#281D25",40:"#392835",50:"#4C3445",60:"#5F3F56",70:"#724C68",80:"#825B78",90:"#926B87",100:"#A17C97",110:"#B08DA6",120:"#BF9FB5",130:"#CDB1C5",140:"#DAC4D4",150:"#E7D7E2",160:"#F4EBF1"});return{...B,...N,...O,...P,...j,...R,...W,...V,...D,...F,...e,...T,...S,...z(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...z(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}})();Office.onReady(()=>{Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged,()=>{window.dispatchEvent(new CustomEvent("newEmailOpened"))}),null==Nh||Nh.render($.createElement(Vt,{theme:Oh},$.createElement(cf,null,$.createElement(Sh,null))))})},39046:function(){},44363:function(e,t,r){r(22799)},58493:function(e,t,r){var o=r(96540),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useState,a=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=i({inst:{value:r,getSnapshot:t}}),n=o[0].inst,u=o[1];return s(function(){n.value=r,n.getSnapshot=t,c(n)&&u({inst:n})},[e,r,t]),a(function(){return c(n)&&u({inst:n}),e(function(){c(n)&&u({inst:n})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:u},69982:function(e,t,r){e.exports=r(7463)},74848:function(e,t,r){e.exports=r(21020)}},function(e){var t=function(t){return e(e.s=t)};t(36451),t(39046)}]);
//# sourceMappingURL=taskpane.js.map