@ohif/app 3.13.0-beta.126 → 3.13.0-beta.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{1206.bundle.7a21a6529153cd92.js → 1206.bundle.786e5b556f903028.js} +1 -1
  2. package/dist/{1602.bundle.e7e1071ebf848675.js → 1602.bundle.51881d73264fe759.js} +2 -2
  3. package/dist/{2623.bundle.8c4c253865020062.js → 2623.bundle.44c0c8ec6fa40d03.js} +2 -2
  4. package/dist/{2779.bundle.887e61b9eaedd06b.js → 2779.bundle.9d5eff36fd8139e0.js} +2 -2
  5. package/dist/{3760.bundle.3951ba2b351285d2.js → 3760.bundle.8957f13c55d7299d.js} +4 -4
  6. package/dist/{5189.bundle.84584748945c30ec.js → 5189.bundle.ae2e6c3b91f526f7.js} +2 -2
  7. package/dist/{5448.bundle.2f95037652efed71.js → 5448.bundle.ac180bf858959dd5.js} +1 -1
  8. package/dist/{5910.bundle.c7e18d6fa8052576.js → 5910.bundle.f969465957013c3e.js} +2 -2
  9. package/dist/{7499.bundle.7077a3142f794c5a.js → 7499.bundle.2733d87480fe06ea.js} +2 -2
  10. package/dist/{781.bundle.82d6ee2e345d45bc.js → 781.bundle.8382ede8d63fca00.js} +2 -2
  11. package/dist/{8832.bundle.0abaf55f27d60f6d.js → 8832.bundle.af14d9822a84e02d.js} +2 -2
  12. package/dist/{89.bundle.dc6cb01735226553.js → 89.bundle.8fe0723d41613b34.js} +16 -29
  13. package/dist/{899.bundle.ba3210c3df4f2185.js → 899.bundle.3ea5c8d021b1e60d.js} +2 -2
  14. package/dist/{9068.bundle.a54a83cf310fed3f.js → 9068.bundle.e1d5946c370fd4ee.js} +2 -2
  15. package/dist/{app.bundle.79077af0d1a2c66a.js → app.bundle.1261531161f7f3f5.js} +18 -3252
  16. package/dist/app.bundle.css +1 -1
  17. package/dist/index.html +1 -1
  18. package/dist/sw.js +1 -1
  19. package/package.json +6 -7
  20. /package/dist/{100.bundle.7003cb1a09c80db2.js → 100.bundle.6f630ef3da7e4091.js} +0 -0
  21. /package/dist/{1180.bundle.bf0da5909ec1bf8d.js → 1180.bundle.9a814aa4f1bfdd03.js} +0 -0
  22. /package/dist/{1483.bundle.a97cb8e0e19ee6a8.js → 1483.bundle.fb532d7ced8184dd.js} +0 -0
  23. /package/dist/{3500.bundle.edf66a4b1839dc9e.js → 3500.bundle.17a25a8fdfdd52c0.js} +0 -0
  24. /package/dist/{4556.bundle.17598479895167ce.js → 4556.bundle.a9dc8f699053693d.js} +0 -0
  25. /package/dist/{4683.bundle.2405919bd8ace331.js → 4683.bundle.66a729ff538fe200.js} +0 -0
  26. /package/dist/{5696.bundle.272dc2c5437185ad.js → 5696.bundle.9f654cb445f620e9.js} +0 -0
  27. /package/dist/{6749.bundle.56c6f6af824bd38e.js → 6749.bundle.fb6d182dd48c7b28.js} +0 -0
  28. /package/dist/{7248.bundle.d5236ec63fa8c2e8.js → 7248.bundle.733800f738588ff0.js} +0 -0
  29. /package/dist/{8423.bundle.17d92db728bb8cf4.js → 8423.bundle.737712bcde2af2fe.js} +0 -0
  30. /package/dist/{8492.bundle.7f69ac8594893526.js → 8492.bundle.8075ec1ac2714daf.js} +0 -0
  31. /package/dist/{9116.bundle.236505794a3d44a1.js → 9116.bundle.80437767f5e2f8b4.js} +0 -0
  32. /package/dist/{9290.bundle.4ef745b76b6bba71.js → 9290.bundle.db532bebdc2c2d29.js} +0 -0
  33. /package/dist/{9415.bundle.b975bf39c0ca0895.js → 9415.bundle.501f2d2522499df2.js} +0 -0
  34. /package/dist/{9437.bundle.37fc1f69324c3e2a.js → 9437.bundle.c225f807752f30e7.js} +0 -0
@@ -38741,8 +38741,8 @@ Compose.propTypes = {
38741
38741
  };
38742
38742
  // EXTERNAL MODULE: ../../core/src/index.ts + 75 modules
38743
38743
  var core_src = __webpack_require__(50679);
38744
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3684 modules
38745
- var ui_next_src = __webpack_require__(42255);
38744
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3685 modules
38745
+ var ui_next_src = __webpack_require__(85505);
38746
38746
  // EXTERNAL MODULE: ./state/index.js + 1 modules
38747
38747
  var state_0 = __webpack_require__(55461);
38748
38748
  ;// CONCATENATED MODULE: ./utils/preserveQueryParameters.ts
@@ -55705,8 +55705,6 @@ function OpenIdConnectRoutes({
55705
55705
  }));
55706
55706
  }
55707
55707
  /* export default */ const utils_OpenIdConnectRoutes = (OpenIdConnectRoutes);
55708
- // EXTERNAL MODULE: ../../../node_modules/react-shepherd/dist/index.js
55709
- var react_shepherd_dist = __webpack_require__(93854);
55710
55708
  ;// CONCATENATED MODULE: ./App.css
55711
55709
  // extracted by css-extract-rspack-plugin
55712
55710
 
@@ -55728,7 +55726,6 @@ var react_shepherd_dist = __webpack_require__(93854);
55728
55726
 
55729
55727
 
55730
55728
 
55731
-
55732
55729
  let App_commandsManager, App_extensionManager, App_servicesManager, App_serviceProvidersManager, App_hotkeysManager;
55733
55730
  const routerFutureFlags = {
55734
55731
  v7_startTransition: true,
@@ -55824,7 +55821,7 @@ function App({
55824
55821
  }], [ui_next_src/* .ModalProvider */.Znq, {
55825
55822
  service: uiModalService,
55826
55823
  modal: ui_next_src/* .Modal */.aFV
55827
- }], [react_shepherd_dist/* .ShepherdJourneyProvider */.pf]];
55824
+ }]];
55828
55825
 
55829
55826
  // Providers registered with the ServiceProvidersManager are inserted ahead of
55830
55827
  // the dialog/modal providers: dialog and modal content renders at those
@@ -74092,7 +74089,7 @@ const detectionOptions = {
74092
74089
  }
74093
74090
  });
74094
74091
  ;// CONCATENATED MODULE: ../../i18n/package.json
74095
- var package_namespaceObject = JSON.parse('{"rE":"3.13.0-beta.125"}')
74092
+ var package_namespaceObject = JSON.parse('{"rE":"3.13.0-beta.126"}')
74096
74093
  ;// CONCATENATED MODULE: ../../i18n/src/utils.js
74097
74094
  const languagesMap = {
74098
74095
  ar: 'Arabic',
@@ -75465,7 +75462,7 @@ esm_i18next/* ["default"].currentLanguage */.A.currentLanguage = () => ({
75465
75462
  /* export default */ const src = (esm_i18next/* ["default"] */.A);
75466
75463
 
75467
75464
  },
75468
- 42255(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
75465
+ 85505(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
75469
75466
  "use strict";
75470
75467
 
75471
75468
  // EXPORTS
@@ -236554,10 +236551,13 @@ const ViewportDialog = ({
236554
236551
  ;// CONCATENATED MODULE: ../../ui-next/src/components/DropdownMenu/index.ts
236555
236552
 
236556
236553
 
236557
- // EXTERNAL MODULE: ../../../node_modules/react-shepherd/dist/index.js
236558
- var dist = __webpack_require__(93854);
236554
+ ;// CONCATENATED MODULE: ../../../node_modules/shepherd.js/dist/js/shepherd.mjs
236555
+ /*! shepherd.js 15.2.2 */
236556
+ function shepherd_t(t){return t instanceof HTMLElement}function shepherd_e(t){return"function"==typeof t}function shepherd_n(t){return"string"==typeof t}function shepherd_o(t){return void 0===t}class shepherd_i{on(t,e,n,i=!1){var s;return shepherd_o(this.bindings)&&(this.bindings={}),shepherd_o(this.bindings[t])&&(this.bindings[t]=[]),null==(s=this.bindings[t])||s.push({handler:e,ctx:n,once:i}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){if(shepherd_o(this.bindings)||shepherd_o(this.bindings[t]))return this;var n;shepherd_o(e)?delete this.bindings[t]:null==(n=this.bindings[t])||n.forEach((n,o)=>{var i;n.handler===e&&(null==(i=this.bindings[t])||i.splice(o,1))});return this}trigger(t,...e){var n;!shepherd_o(this.bindings)&&this.bindings[t]&&(null==(n=this.bindings[t])||n.forEach((n,o)=>{const{ctx:i,handler:s,once:r}=n,l=i||this;var c;(s.apply(l,e),r)&&(null==(c=this.bindings[t])||c.splice(o,1))}));return this}}function shepherd_s(){return shepherd_s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},shepherd_s.apply(null,arguments)}function shepherd_r(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}const shepherd_l={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function shepherd_c(t,e){return e}function shepherd_a(t,e){return t.filter(t=>void 0!==t)}var shepherd_u;function shepherd_h(t){return"object"!=typeof t||null===t?0:Array.isArray(t)?2:function(t){if(!shepherd_p.includes(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(void 0===e)return!0;const n=e.prototype;if(null===n||"object"!=typeof n||!shepherd_p.includes(Object.prototype.toString.call(n)))return!1;if(!n.hasOwnProperty("isPrototypeOf"))return!1;return!0}(t)?1:t instanceof Set?3:t instanceof Map?4:5}function shepherd_d(t,e){return"object"==typeof t&&Object.prototype.propertyIsEnumerable.call(t,e)}function shepherd_f(t){var e;let n=0,o=null==(e=t[0])?void 0:e[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(;;){if(void 0===o)return{done:!0,value:void 0};const i=o.next();if(!0!==i.done)return{done:!1,value:i.value};var e;n+=1,o=null==(e=t[n])?void 0:e[Symbol.iterator]()}}})}}!function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"}(shepherd_u||(shepherd_u={}));const shepherd_p=["[object Object]","[object Module]"];const shepherd_g={mergeRecords:function(t,e,n){const o={};for(const i of function(t){const e=new Set;for(const n of t)for(const t of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(t);return e}(t)){const s=[];for(const e of t)shepherd_d(e,i)&&s.push(e[i]);if(0===s.length)continue;const r=e.metaDataUpdater(n,{key:i,parents:t}),c=shepherd_v(s,e,r);c!==shepherd_l.skip&&("__proto__"===i?Object.defineProperty(o,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[i]=c)}return o},mergeArrays:function(t){return t.flat()},mergeSets:function(t){return new Set(shepherd_f(t))},mergeMaps:function(t){return new Map(shepherd_f(t))},mergeOthers:function(t){return t.at(-1)}};function shepherd_m(...t){return function(t,e){const n=function(t,e){var n,o,i;return{defaultMergeFunctions:shepherd_g,mergeFunctions:shepherd_s({},shepherd_g,Object.fromEntries(Object.entries(t).filter(([t,e])=>Object.hasOwn(shepherd_g,t)).map(([t,e])=>!1===e?[t,shepherd_g.mergeOthers]:[t,e]))),metaDataUpdater:null!=(n=t.metaDataUpdater)?n:shepherd_c,deepmerge:e,useImplicitDefaultMerging:null!=(o=t.enableImplicitDefaultMerging)&&o,filterValues:!1===t.filterValues?void 0:null!=(i=t.filterValues)?i:shepherd_a,actions:shepherd_l}}(t,o);function o(...t){return shepherd_v(t,n,e)}return o}({})(...t)}function shepherd_v(t,e,n){var o;const i=null!=(o=null==e.filterValues?void 0:e.filterValues(t,n))?o:t;if(0===i.length)return;if(1===i.length)return shepherd_y(i,e,n);const s=shepherd_h(i[0]);if(0!==s&&5!==s)for(let t=1;t<i.length;t++)if(shepherd_h(i[t])!==s)return shepherd_y(i,e,n);switch(s){case 1:return function(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords)return e.defaultMergeFunctions.mergeRecords(t,e,n);return o}(i,e,n);case 2:return function(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays)return e.defaultMergeFunctions.mergeArrays(t);return o}(i,e,n);case 3:return function(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets)return e.defaultMergeFunctions.mergeSets(t);return o}(i,e,n);case 4:return function(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps)return e.defaultMergeFunctions.mergeMaps(t);return o}(i,e,n);default:return shepherd_y(i,e,n)}}function shepherd_y(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function shepherd_x(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function shepherd_b(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const i=function(t,e){return n=>{if(t.isOpen()){const i=t.el&&n.currentTarget===t.el;(!shepherd_o(e)&&n.currentTarget.matches(e)||i)&&t.tour.next()}}}(t,n);let s=null;if(!shepherd_o(n)&&(s=document.querySelector(n),!s))return;s?(s.addEventListener(e,i),t.on("destroy",()=>s.removeEventListener(e,i))):(document.body.addEventListener(e,i,!0),t.on("destroy",()=>document.body.removeEventListener(e,i,!0)))}}function shepherd_w(t){return shepherd_n(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function shepherd_E(t){return null==t||(!t.element||!t.on)}function shepherd_O(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}const shepherd_T=["start","end"],shepherd_S=["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-"+shepherd_T[0],e+"-"+shepherd_T[1]),[]),shepherd_A=Math.min,shepherd_L=Math.max,shepherd_=Math.round,shepherd_R=Math.floor,shepherd_M=t=>({x:t,y:t}),shepherd_P={left:"right",right:"left",bottom:"top",top:"bottom"},shepherd_C={start:"end",end:"start"};function shepherd_k(t,e,n){return shepherd_L(t,shepherd_A(e,n))}function shepherd_D(t,e){return"function"==typeof t?t(e):t}function shepherd_$(t){return t.split("-")[0]}function shepherd_F(t){return t.split("-")[1]}function shepherd_I(t){return"x"===t?"y":"x"}function shepherd_H(t){return"y"===t?"height":"width"}const shepherd_j=new Set(["top","bottom"]);function shepherd_B(t){return shepherd_j.has(shepherd_$(t))?"y":"x"}function shepherd_V(t){return shepherd_I(shepherd_B(t))}function shepherd_N(t,e,n){void 0===n&&(n=!1);const o=shepherd_F(t),i=shepherd_V(t),s=shepherd_H(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=shepherd_Z(r)),[r,shepherd_Z(r)]}function shepherd_W(t){return t.replace(/start|end/g,t=>shepherd_C[t])}const shepherd_q=["left","right"],shepherd_U=["right","left"],shepherd_z=["top","bottom"],shepherd_Y=["bottom","top"];function shepherd_X(t,e,n,o){const i=shepherd_F(t);let s=function(t,e,n){switch(t){case"top":case"bottom":return n?e?shepherd_U:shepherd_q:e?shepherd_q:shepherd_U;case"left":case"right":return e?shepherd_z:shepherd_Y;default:return[]}}(shepherd_$(t),"start"===n,o);return i&&(s=s.map(t=>t+"-"+i),e&&(s=s.concat(s.map(shepherd_W)))),s}function shepherd_Z(t){return t.replace(/left|right|bottom|top/g,t=>shepherd_P[t])}function shepherd_K(t){return"number"!=typeof t?function(t){return shepherd_s({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function shepherd_G(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}const shepherd_J=["crossAxis","alignment","allowedPlacements","autoAlignment"],shepherd_Q=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],tt=["mainAxis","crossAxis","limiter"];function shepherd_et(t,e,n){let{reference:o,floating:i}=t;const s=shepherd_B(e),r=shepherd_V(e),l=shepherd_H(r),c=shepherd_$(e),a="y"===s,u=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;let f;switch(c){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:h};break;case"left":f={x:o.x-i.width,y:h};break;default:f={x:o.x,y:o.y}}switch(shepherd_F(e)){case"start":f[r]-=d*(n&&a?-1:1);break;case"end":f[r]+=d*(n&&a?-1:1)}return f}async function shepherd_nt(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=shepherd_D(e,t),p=shepherd_K(f),g=l[d?"floating"===h?"reference":"floating":h],m=shepherd_G(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(g)))||n?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),v="floating"===h?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),x=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},b=shepherd_G(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-b.top+p.top)/x.y,bottom:(b.bottom-m.bottom+p.bottom)/x.y,left:(m.left-b.left+p.left)/x.x,right:(b.right-m.right+p.right)/x.x}}const shepherd_ot=new Set(["left","top"]);function shepherd_it(){return"undefined"!=typeof window}function shepherd_st(t){return shepherd_ct(t)?(t.nodeName||"").toLowerCase():"#document"}function shepherd_rt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function shepherd_lt(t){var e;return null==(e=(shepherd_ct(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function shepherd_ct(t){return!!shepherd_it()&&(t instanceof Node||t instanceof shepherd_rt(t).Node)}function shepherd_at(t){return!!shepherd_it()&&(t instanceof Element||t instanceof shepherd_rt(t).Element)}function shepherd_ut(t){return!!shepherd_it()&&(t instanceof HTMLElement||t instanceof shepherd_rt(t).HTMLElement)}function shepherd_ht(t){return!(!shepherd_it()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof shepherd_rt(t).ShadowRoot)}const shepherd_dt=new Set(["inline","contents"]);function shepherd_ft(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=shepherd_St(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!shepherd_dt.has(i)}const shepherd_pt=new Set(["table","td","th"]);function shepherd_gt(t){return shepherd_pt.has(shepherd_st(t))}const shepherd_mt=[":popover-open",":modal"];function shepherd_vt(t){return shepherd_mt.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const yt=["transform","translate","scale","rotate","perspective"],xt=["transform","translate","scale","rotate","perspective","filter"],bt=["paint","layout","strict","content"];function wt(t){const e=shepherd_Et(),n=shepherd_at(t)?shepherd_St(t):t;return yt.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||xt.some(t=>(n.willChange||"").includes(t))||bt.some(t=>(n.contain||"").includes(t))}function shepherd_Et(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ot=new Set(["html","body","#document"]);function shepherd_Tt(t){return Ot.has(shepherd_st(t))}function shepherd_St(t){return shepherd_rt(t).getComputedStyle(t)}function shepherd_At(t){return shepherd_at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function shepherd_Lt(t){if("html"===shepherd_st(t))return t;const e=t.assignedSlot||t.parentNode||shepherd_ht(t)&&t.host||shepherd_lt(t);return shepherd_ht(e)?e.host:e}function _t(t){const e=shepherd_Lt(t);return shepherd_Tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:shepherd_ut(e)&&shepherd_ft(e)?e:_t(e)}function shepherd_Rt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=_t(t),s=i===(null==(o=t.ownerDocument)?void 0:o.body),r=shepherd_rt(i);if(s){const t=shepherd_Mt(r);return e.concat(r,r.visualViewport||[],shepherd_ft(i)?i:[],t&&n?shepherd_Rt(t):[])}return e.concat(i,shepherd_Rt(i,[],n))}function shepherd_Mt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function shepherd_Pt(t){const e=shepherd_St(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=shepherd_ut(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=shepherd_(n)!==s||shepherd_(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function shepherd_Ct(t){return shepherd_at(t)?t:t.contextElement}function shepherd_kt(t){const e=shepherd_Ct(t);if(!shepherd_ut(e))return shepherd_M(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=shepherd_Pt(e);let r=(s?shepherd_(n.width):n.width)/o,l=(s?shepherd_(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}const shepherd_Dt=shepherd_M(0);function $t(t){const e=shepherd_rt(t);return shepherd_Et()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:shepherd_Dt}function Ft(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),s=shepherd_Ct(t);let r=shepherd_M(1);e&&(o?shepherd_at(o)&&(r=shepherd_kt(o)):r=shepherd_kt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==shepherd_rt(t))&&e}(s,n,o)?$t(s):shepherd_M(0);let c=(i.left+l.x)/r.x,a=(i.top+l.y)/r.y,u=i.width/r.x,h=i.height/r.y;if(s){const t=shepherd_rt(s),e=o&&shepherd_at(o)?shepherd_rt(o):o;let n=t,i=shepherd_Mt(n);for(;i&&o&&e!==n;){const t=shepherd_kt(i),e=i.getBoundingClientRect(),o=shepherd_St(i),s=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,a*=t.y,u*=t.x,h*=t.y,c+=s,a+=r,n=shepherd_rt(i),i=shepherd_Mt(n)}}return shepherd_G({width:u,height:h,x:c,y:a})}function shepherd_It(t,e){const n=shepherd_At(t).scrollLeft;return e?e.left+n:Ft(shepherd_lt(t)).left+n}function shepherd_Ht(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-shepherd_It(t,n),y:n.top+e.scrollTop}}const jt=new Set(["absolute","fixed"]);function shepherd_Bt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=shepherd_rt(t),o=shepherd_lt(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;const t=shepherd_Et();(!t||t&&"fixed"===e)&&(l=i.offsetLeft,c=i.offsetTop)}const a=shepherd_It(o);if(a<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(o.clientWidth-e.clientWidth-i);r<=25&&(s-=r)}else a<=25&&(s+=a);return{width:s,height:r,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=shepherd_lt(t),n=shepherd_At(t),o=t.ownerDocument.body,i=shepherd_L(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=shepherd_L(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+shepherd_It(t);const l=-n.scrollTop;return"rtl"===shepherd_St(o).direction&&(r+=shepherd_L(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}(shepherd_lt(t));else if(shepherd_at(e))o=function(t,e){const n=Ft(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=shepherd_ut(t)?shepherd_kt(t):shepherd_M(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:i*s.x,y:o*s.y}}(e,n);else{const n=$t(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return shepherd_G(o)}function shepherd_Vt(t,e){const n=shepherd_Lt(t);return!(n===e||!shepherd_at(n)||shepherd_Tt(n))&&("fixed"===shepherd_St(n).position||shepherd_Vt(n,e))}function shepherd_Nt(t,e,n){const o=shepherd_ut(e),i=shepherd_lt(e),s="fixed"===n,r=Ft(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=shepherd_M(0);function a(){c.x=shepherd_It(i)}if(o||!o&&!s)if(("body"!==shepherd_st(e)||shepherd_ft(i))&&(l=shepherd_At(e)),o){const t=Ft(e,!0,s,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&a();s&&!o&&i&&a();const u=!i||o||s?shepherd_M(0):shepherd_Ht(i,l);return{x:r.left+l.scrollLeft-c.x-u.x,y:r.top+l.scrollTop-c.y-u.y,width:r.width,height:r.height}}function Wt(t){return"static"===shepherd_St(t).position}function shepherd_qt(t,e){if(!shepherd_ut(t)||"fixed"===shepherd_St(t).position)return null;if(e)return e(t);let n=t.offsetParent;return shepherd_lt(t)===n&&(n=n.ownerDocument.body),n}function shepherd_Ut(t,e){const n=shepherd_rt(t);if(shepherd_vt(t))return n;if(!shepherd_ut(t)){let e=shepherd_Lt(t);for(;e&&!shepherd_Tt(e);){if(shepherd_at(e)&&!Wt(e))return e;e=shepherd_Lt(e)}return n}let o=shepherd_qt(t,e);for(;o&&shepherd_gt(o)&&Wt(o);)o=shepherd_qt(o,e);return o&&shepherd_Tt(o)&&Wt(o)&&!wt(o)?n:o||function(t){let e=shepherd_Lt(t);for(;shepherd_ut(e)&&!shepherd_Tt(e);){if(wt(e))return e;if(shepherd_vt(e))return null;e=shepherd_Lt(e)}return null}(t)||n}const shepherd_zt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s="fixed"===i,r=shepherd_lt(o),l=!!e&&shepherd_vt(e.floating);if(o===r||l&&s)return n;let c={scrollLeft:0,scrollTop:0},a=shepherd_M(1);const u=shepherd_M(0),h=shepherd_ut(o);if((h||!h&&!s)&&(("body"!==shepherd_st(o)||shepherd_ft(r))&&(c=shepherd_At(o)),shepherd_ut(o))){const t=Ft(o);a=shepherd_kt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const d=!r||h||s?shepherd_M(0):shepherd_Ht(r,c);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+d.x,y:n.y*a.y-c.scrollTop*a.y+u.y+d.y}},getDocumentElement:shepherd_lt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[..."clippingAncestors"===n?shepherd_vt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=shepherd_Rt(t,[],!1).filter(t=>shepherd_at(t)&&"body"!==shepherd_st(t)),i=null;const s="fixed"===shepherd_St(t).position;let r=s?shepherd_Lt(t):t;for(;shepherd_at(r)&&!shepherd_Tt(r);){const e=shepherd_St(r),n=wt(r);n||"fixed"!==e.position||(i=null),(s?!n&&!i:!n&&"static"===e.position&&i&&jt.has(i.position)||shepherd_ft(r)&&!n&&shepherd_Vt(t,r))?o=o.filter(t=>t!==r):i=e,r=shepherd_Lt(r)}return e.set(t,o),o}(e,this._c):[].concat(n),o],r=s[0],l=s.reduce((t,n)=>{const o=shepherd_Bt(e,n,i);return t.top=shepherd_L(o.top,t.top),t.right=shepherd_A(o.right,t.right),t.bottom=shepherd_A(o.bottom,t.bottom),t.left=shepherd_L(o.left,t.left),t},shepherd_Bt(e,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:shepherd_Ut,getElementRects:async function(t){const e=this.getOffsetParent||shepherd_Ut,n=this.getDimensions,o=await n(t.floating);return{reference:shepherd_Nt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=shepherd_Pt(t);return{width:e,height:n}},getScale:shepherd_kt,isElement:shepherd_at,isRTL:function(t){return"rtl"===shepherd_St(t).direction}};function Yt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function shepherd_Xt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,u=shepherd_Ct(t),h=i||r?[...u?shepherd_Rt(u):[],...shepherd_Rt(e)]:[];h.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)});const d=u&&c?function(t,e){let n,o=null;const i=shepherd_lt(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(c,a){void 0===c&&(c=!1),void 0===a&&(a=1),r();const u=t.getBoundingClientRect(),{left:h,top:d,width:f,height:p}=u;if(c||e(),!f||!p)return;const g={rootMargin:-shepherd_R(d)+"px "+-shepherd_R(i.clientWidth-(h+f))+"px "+-shepherd_R(i.clientHeight-(d+p))+"px "+-shepherd_R(h)+"px",threshold:shepherd_L(0,shepherd_A(1,a))||1};let m=!0;function v(e){const o=e[0].intersectionRatio;if(o!==a){if(!m)return l();o?l(!1,o):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==o||Yt(u,t.getBoundingClientRect())||l(),m=!1}try{o=new IntersectionObserver(v,shepherd_s({},g,{root:i.ownerDocument}))}catch(t){o=new IntersectionObserver(v,g)}o.observe(t)}(!0),r}(u,n):null;let f,p=-1,g=null;l&&(g=new ResizeObserver(t=>{let[o]=t;o&&o.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=g)||t.observe(e)})),n()}),u&&!a&&g.observe(u),g.observe(e));let m=a?Ft(t):null;return a&&function e(){const o=Ft(t);m&&!Yt(m,o)&&n();m=o,f=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),null==d||d(),null==(t=g)||t.disconnect(),g=null,a&&cancelAnimationFrame(f)}}const shepherd_Zt=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:s,middlewareData:l,placement:c,platform:a,elements:u}=e,h=shepherd_D(t,e),{crossAxis:d=!1,alignment:f,allowedPlacements:p=shepherd_S,autoAlignment:g=!0}=h,m=shepherd_r(h,shepherd_J),v=void 0!==f||p===shepherd_S?function(t,e,n){return(t?[...n.filter(e=>shepherd_F(e)===t),...n.filter(e=>shepherd_F(e)!==t)]:n.filter(t=>shepherd_$(t)===t)).filter(n=>!t||shepherd_F(n)===t||!!e&&shepherd_W(n)!==n)}(f||null,g,p):p,y=await a.detectOverflow(e,m),x=(null==(n=l.autoPlacement)?void 0:n.index)||0,b=v[x];if(null==b)return{};const w=shepherd_N(b,s,await(null==a.isRTL?void 0:a.isRTL(u.floating)));if(c!==b)return{reset:{placement:v[0]}};const E=[y[shepherd_$(b)],y[w[0]],y[w[1]]],O=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:b,overflows:E}],T=v[x+1];if(T)return{data:{index:x+1,overflows:O},reset:{placement:T}};const A=O.map(t=>{const e=shepherd_F(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),L=(null==(i=A.filter(t=>t[2].slice(0,shepherd_F(t[0])?2:3).every(t=>t<=0))[0])?void 0:i[0])||A[0][0];return L!==c?{data:{index:x+1,overflows:O},reset:{placement:L}}:{}}}},shepherd_Kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:l}=e,c=shepherd_D(t,e),{mainAxis:a=!0,crossAxis:u=!1,limiter:h={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=c,d=shepherd_r(c,tt),f={x:n,y:o},p=await l.detectOverflow(e,d),g=shepherd_B(shepherd_$(i)),m=shepherd_I(g);let v=f[m],y=f[g];if(a){const t="y"===m?"bottom":"right";v=shepherd_k(v+p["y"===m?"top":"left"],v,v-p[t])}if(u){const t="y"===g?"bottom":"right";y=shepherd_k(y+p["y"===g?"top":"left"],y,y-p[t])}const x=h.fn(shepherd_s({},e,{[m]:v,[g]:y}));return shepherd_s({},x,{data:{x:x.x-n,y:x.y-o,enabled:{[m]:a,[g]:u}}})}}},shepherd_Gt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:u}=e,h=shepherd_D(t,e),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0}=h,y=shepherd_r(h,shepherd_Q);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const x=shepherd_$(i),b=shepherd_B(c),w=shepherd_$(c)===c,E=await(null==a.isRTL?void 0:a.isRTL(u.floating)),O=p||(w||!v?[shepherd_Z(c)]:function(t){const e=shepherd_Z(t);return[shepherd_W(t),e,shepherd_W(e)]}(c)),T="none"!==m;!p&&T&&O.push(...shepherd_X(c,v,m,E));const S=[c,...O],A=await a.detectOverflow(e,y),L=[];let _=(null==(o=s.flip)?void 0:o.overflows)||[];if(d&&L.push(A[x]),f){const t=shepherd_N(i,l,E);L.push(A[t[0]],A[t[1]])}if(_=[..._,{placement:i,overflows:L}],!L.every(t=>t<=0)){var R,M;const t=((null==(R=s.flip)?void 0:R.index)||0)+1,e=S[t];if(e){if(!("alignment"===f&&b!==shepherd_B(e))||_.every(t=>shepherd_B(t.placement)!==b||t.overflows[0]>0))return{data:{index:t,overflows:_},reset:{placement:e}}}let n=null==(M=_.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:M.placement;if(!n)switch(g){case"bestFit":{var P;const t=null==(P=_.filter(t=>{if(T){const e=shepherd_B(t.placement);return e===b||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},shepherd_Jt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:a}=e,{element:u,padding:h=0}=shepherd_D(t,e)||{};if(null==u)return{};const d=shepherd_K(h),f={x:n,y:o},p=shepherd_V(i),g=shepherd_H(p),m=await l.getDimensions(u),v="y"===p,y=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=r.reference[g]+r.reference[p]-f[p]-r.floating[g],E=f[p]-r.reference[p],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let T=O?O[b]:0;T&&await(null==l.isElement?void 0:l.isElement(O))||(T=c.floating[b]||r.floating[g]);const S=w/2-E/2,L=T/2-m[g]/2-1,_=shepherd_A(d[y],L),R=shepherd_A(d[x],L),M=_,P=T-m[g]-R,C=T/2-m[g]/2+S,$=shepherd_k(M,C,P),I=!a.arrow&&null!=shepherd_F(i)&&C!==$&&r.reference[g]/2-(C<M?_:R)-m[g]/2<0,j=I?C<M?C-M:C-P:0;return{[p]:f[p]+j,data:shepherd_s({[p]:$,centerOffset:C-$-j},I&&{alignmentOffset:j}),reset:I}}}),shepherd_Qt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=e,{offset:c=0,mainAxis:a=!0,crossAxis:u=!0}=shepherd_D(t,e),h={x:n,y:o},d=shepherd_B(i),f=shepherd_I(d);let p=h[f],g=h[d];const m=shepherd_D(c,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:shepherd_s({mainAxis:0,crossAxis:0},m);if(a){const t="y"===f?"height":"width",e=r.reference[f]-r.floating[t]+v.mainAxis,n=r.reference[f]+r.reference[t]-v.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var y,x;const t="y"===f?"width":"height",e=shepherd_ot.has(shepherd_$(i)),n=r.reference[d]-r.floating[t]+(e&&(null==(y=l.offset)?void 0:y[d])||0)+(e?0:v.crossAxis),o=r.reference[d]+r.reference[t]+(e?0:(null==(x=l.offset)?void 0:x[d])||0)-(e?v.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[f]:p,[d]:g}}}},shepherd_te=(t,e,n)=>{const o=new Map,i=shepherd_s({platform:shepherd_zt},n),r=shepherd_s({},i.platform,{_c:o});return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:d}=shepherd_et(u,o,a),f=o,p={},g=0;for(let n=0;n<c.length;n++){var m;const{name:r,fn:v}=c[n],{x:y,y:x,data:b,reset:w}=await v({x:h,y:d,initialPlacement:o,placement:f,strategy:i,middlewareData:p,rects:u,platform:shepherd_s({},l,{detectOverflow:null!=(m=l.detectOverflow)?m:shepherd_nt}),elements:{reference:t,floating:e}});h=null!=y?y:h,d=null!=x?x:d,p=shepherd_s({},p,{[r]:shepherd_s({},p[r],b)}),w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:h,y:d}=shepherd_et(u,f,a))),n=-1)}return{x:h,y:d,placement:f,strategy:i,middlewareData:p}})(t,e,shepherd_s({},i,{platform:r}))};function shepherd_ee(e){e.cleanup&&e.cleanup();const n=e._getResolvedAttachToOptions();let o=n.element;const i=function(t,e){var n,o,i;const s={strategy:"absolute",middleware:[]},r=function(t){if(t.options.arrow&&t.el)return t.el.querySelector(".shepherd-arrow");return!1}(e),l=shepherd_E(t),c=null==(n=t.on)?void 0:n.includes("auto"),a=(null==t||null==(o=t.on)?void 0:o.includes("-start"))||(null==t||null==(i=t.on)?void 0:i.includes("-end"));if(!l){var u;if(c)s.middleware.push(shepherd_Zt({crossAxis:!0,alignment:a?null==t||null==(u=t.on)?void 0:u.split("-").pop():null}));else s.middleware.push(shepherd_Gt());if(s.middleware.push(shepherd_Kt({limiter:shepherd_Qt(),crossAxis:!0})),r){const t="object"==typeof e.options.arrow?e.options.arrow:{padding:4};s.middleware.push(shepherd_Jt({element:r,padding:a?t.padding:0}))}c||(s.placement=t.on)}return shepherd_m(s,e.options.floatingUIOptions||{})}(n,e),s=shepherd_E(n);if(s){var r;o=document.body;const t=null==(r=e.shepherdElementComponent)?void 0:r.element;null==t||t.classList.add("shepherd-centered")}return e.cleanup=shepherd_Xt(o,e.el,()=>{e.el?function(e,n,o,i){shepherd_te(e,n.el,o).then(function(e,n){return({x:o,y:i,placement:s,middlewareData:r})=>e.el?(n?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${o}px`,top:`${i}px`}),e.el.dataset.popperPlacement=s,function(e,n){const o=e.querySelector(".shepherd-arrow");if(shepherd_t(o)&&n.arrow){const{x:t,y:e}=n.arrow;Object.assign(o.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:""})}}(e.el,r),e):e}(n,i)).then(t=>new Promise(e=>{setTimeout(()=>e(t),300)})).then(t=>{null!=t&&t.el&&(t.el.tabIndex=0,t.el.focus({preventScroll:!0}))})}(o,e,i,s):null==e.cleanup||e.cleanup()}),e.target=n.element,i}function shepherd_ne(t,e,...n){const o=document.createElement(t);return shepherd_ie(o,e),shepherd_se(o,n),o}function shepherd_oe(t,e,...n){const o=document.createElementNS("http://www.w3.org/2000/svg",t);return shepherd_ie(o,e),shepherd_se(o,n),o}function shepherd_ie(t,e){if(e)for(const[n,o]of Object.entries(e))null!=o&&!1!==o&&(n.startsWith("on")&&"function"==typeof o?t.addEventListener(n.slice(2).toLowerCase(),o):"disabled"===n&&!0===o?t.disabled=!0:t.setAttribute(n,String(o)))}function shepherd_se(t,e){for(const n of e)null!=n&&!1!==n&&t.append("string"==typeof n?document.createTextNode(n):n)}function shepherd_re(t,n){return shepherd_e(t)?t.call(n):t}function shepherd_le(t,e){const n=t.action?t.action.bind(e.tour):null,o=!!t.disabled&&shepherd_re(t.disabled,e),i=t.label?shepherd_re(t.label,e):null,r=t.text?shepherd_re(t.text,e):null,l=shepherd_ne("button",shepherd_s({},t.attrs||{},{"aria-label":i||null,class:`${t.classes||""} shepherd-button ${t.secondary?"shepherd-button-secondary":""}`,disabled:o||null,onclick:n,tabindex:"0",type:"button"}));return r&&(l.innerHTML=r),l}function shepherd_ce(t,n){const o=shepherd_ne("header",{class:"shepherd-header"});return n.options.title&&o.append(function(t,n){const o=shepherd_ne("h3",{id:t,class:"shepherd-title"}),i=shepherd_e(n)?n():n;return o.innerHTML=i,o}(t,n.options.title)),n.options.cancelIcon&&n.options.cancelIcon.enabled&&o.append(function(t,e){return shepherd_ne("button",shepherd_s({},t.attrs||{},{"aria-label":t.label?t.label:"Close Tour",class:"shepherd-cancel-icon",onclick:t=>{t.preventDefault(),e.cancel()},type:"button"}),shepherd_ne("span",{"aria-hidden":"true"},"×"))}(n.options.cancelIcon,n)),o}function ae(n,i,s){const r=shepherd_ne("div",{class:"shepherd-content"});return(!shepherd_o(s.options.title)||s.options.cancelIcon&&s.options.cancelIcon.enabled)&&r.append(shepherd_ce(i,s)),shepherd_o(s.options.text)||r.append(function(n,o){const i=shepherd_ne("div",{class:"shepherd-text",id:n});let s=o.options.text;return shepherd_e(s)&&(s=s.call(o)),shepherd_t(s)?i.appendChild(s):i.innerHTML=s,i}(n,s)),Array.isArray(s.options.buttons)&&s.options.buttons.length&&r.append(function(t){const e=shepherd_ne("footer",{class:"shepherd-footer"});if(t.options.buttons)for(const n of t.options.buttons)e.append(shepherd_le(n,t));return e}(s)),r}class shepherd_ue extends shepherd_i{constructor(t,e={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?shepherd_w(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,shepherd_x(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){var e;(e=this).cleanup&&e.cleanup(),e.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),shepherd_t(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var t;null==(t=this.tour.modal)||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){var t;return this._resolvedExtraHighlightElements=(t=this).options.extraHighlights?t.options.extraHighlights.flatMap(t=>Array.from(document.querySelectorAll(t))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(t){const o=t.options.attachTo||{},i=Object.assign({},o);if(shepherd_e(i.element)&&(i.element=i.element.call(t)),shepherd_n(i.element)){try{i.element=document.querySelector(i.element)}catch(t){}i.element}return i}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return shepherd_e(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(t){const e=t.getAttribute("tabindex");null!==e&&this._originalTabIndexes.set(t,e)}_restoreOriginalTabIndexes(){const t=this.target;t&&(this._originalTabIndexes.has(t)?t.setAttribute("tabindex",this._originalTabIndexes.get(t)):t.removeAttribute("tabindex"))}_createTooltipContent(){const t=`${this.id}-description`,e=`${this.id}-label`;this.shepherdElementComponent=function(t){var e,i,s,r;const{classPrefix:l,descriptionId:c,labelId:a,step:u}=t;let h,d,f,p,g,m,v;const y=null!=(e=null==(i=u.options)||null==(i=i.cancelIcon)?void 0:i.enabled)&&e,x=null!=(s=null==(r=u.options)?void 0:r.title)&&s,b=t=>{const{tour:e}=u;switch(t.keyCode){case 9:if((!d||0===d.length)&&m&&0===m.length){t.preventDefault();break}var n,o,i;if(t.shiftKey){if(document.activeElement===g||null!=(n=document.activeElement)&&n.classList.contains("shepherd-element"))t.preventDefault(),null==(o=null!=p?p:v)||o.focus();else if(document.activeElement===f){var s;t.preventDefault(),null==(s=v)||s.focus()}}else if(document.activeElement===v)t.preventDefault(),null==(i=null!=f?f:g)||i.focus();else if(document.activeElement===p){var r;t.preventDefault(),null==(r=g)||r.focus()}break;case 27:e.options.exitOnEsc&&(t.preventDefault(),t.stopPropagation(),u.cancel());break;case 37:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.back());break;case 39:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.next())}},w=shepherd_ne("dialog",{"aria-describedby":shepherd_o(u.options.text)?null:c,"aria-labelledby":u.options.title?a:null,class:["shepherd-element",y?"shepherd-has-cancel-icon":"",x?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${l}shepherd-step-id`]:u.id,onkeydown:b,open:"true"});if(u.options.arrow&&u.options.attachTo&&u.options.attachTo.element&&u.options.attachTo.on&&w.append(shepherd_ne("div",{class:"shepherd-arrow","data-popper-arrow":""})),w.append(ae(c,a,u)),shepherd_n(u.options.classes)){const t=u.options.classes.split(" ").filter(t=>!!t.length);t.length&&w.classList.add(...t)}const E='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';m=[...w.querySelectorAll(E)],g=m[0],v=m[m.length-1];const O=u._getResolvedAttachToOptions();return null!=O&&O.element&&(h=O.element,u._storeOriginalTabIndex(h),h.tabIndex=0,d=[h,...h.querySelectorAll(E)],f=d[0],p=d[d.length-1],h.addEventListener("keydown",b)),{element:w,cleanup:()=>{var t;null==(t=h)||t.removeEventListener("keydown",b)}}}({classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this});return(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();shepherd_e(this.options.scrollToHandler)?this.options.scrollToHandler(n):n instanceof Element&&"function"==typeof n.scrollIntoView&&n.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[...n.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(t={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=shepherd_m({},e||{}),this.options=Object.assign({arrow:!0},e,t,function(t,e){return{floatingUIOptions:shepherd_m(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(e,t));const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${shepherd_O()}`,n&&Object.keys(n).forEach(t=>{this.on(t,n[t],this)})}_setupElements(){shepherd_o(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&shepherd_b(this),shepherd_ee(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),null==(t=this.tour.modal)||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const e=this.shepherdElementComponent.element,n=this.target||document.body,o=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),e.classList.add("shepherd-enabled"),null==o||o.forEach(t=>{t.classList.add(`${this.classPrefix}shepherd-enabled`),t.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const e=t.target,n=t._resolvedExtraHighlightElements;if(!e)return;const o=t.options.highlightClass;o&&(e.classList.add(o),null==n||n.forEach(t=>t.classList.add(o))),e.classList.remove("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.remove("shepherd-target-click-disabled")),!1===t.options.canClickTarget&&(e.classList.add("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,e=this._resolvedExtraHighlightElements,n=this.options.highlightClass;n&&(t.classList.remove(n),null==e||e.forEach(t=>t.classList.remove(n))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),null==e||e.forEach(t=>{t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}function shepherd_he(t){let e,n=[{width:0,height:0,x:0,y:0,r:0}];const o=shepherd_oe("path"),i=shepherd_oe("svg",{class:"shepherd-modal-overlay-container"},o);function s(){o.setAttribute("d",function(t){let e="";const{innerWidth:n,innerHeight:o}=window;return t.forEach(t=>{const{width:n,height:o,x:i=0,y:s=0,r:r=0}=t,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:u=0}="number"==typeof r?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;e+=`M${i+l},${s}a${l},${l},0,0,0-${l},${l}V`+(o+s-u)+`a${u},${u},0,0,0,${u},${u}H`+(n+i-a)+`a${a},${a},0,0,0,${a}-${a}`+`V${s+c}`+`a${c},${c},0,0,0-${c}-${c}Z`}),`M${n},${o}H0V0H${n}V${o}Z${e}`.replace(/\s/g,"")}(n))}function r(){n=[{width:0,height:0,x:0,y:0,r:0}],s()}function l(){i.classList.remove("shepherd-modal-is-visible"),d()}function c(){i.classList.add("shepherd-modal-is-visible")}function a(t=0,e=0,o=0,i=0,l,c,a){if(c){{const s=[c,...a||[]],r=[];for(const n of s){if(!n)continue;if(s.indexOf(n)!==s.lastIndexOf(n))continue;const{y:c,height:a}=p(n,l),{x:u,width:h,left:d}=n.getBoundingClientRect();s.some(t=>{if(t===n)return!1;const e=t.getBoundingClientRect(),{y:o,height:i}=p(t,l);return u>=e.left&&u+h<=e.left+e.width&&c>=o&&c+a<=o+i})||r.push({width:h+2*t,height:a+2*t,x:(u||d)+o-t,y:c+i-t,r:e})}n=r}s()}else r()}function u(t){t.stopPropagation()}i.addEventListener("touchmove",u),s(),t.append(i);const h=t=>{t.preventDefault()};function d(){e&&(cancelAnimationFrame(e),e=void 0),window.removeEventListener("touchmove",h,{passive:!1})}function f(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:f(t.parentElement)}function p(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;if(e){const t=e.getBoundingClientRect(),n=t.y||t.top,s=t.bottom||n+t.height;o=Math.max(o,n),i=Math.min(i,s)}return{y:o,height:Math.max(i-o,0)}}return{closeModalOpening:r,destroy:function(){d(),i.removeEventListener("touchmove",u),i.remove()},hide:l,positionModal:a,setupForStep:function(t){d(),t.tour.options.useModalOverlay?(!function(t){const{modalOverlayOpeningPadding:n,modalOverlayOpeningRadius:o,modalOverlayOpeningXOffset:i=0,modalOverlayOpeningYOffset:s=0}=t.options,r=function(t){const e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;try{for(;n&&n!==window.top;){var o;const t=null==(o=n)?void 0:o.frameElement;if(t){const n=t.getBoundingClientRect();e.top+=n.top+t.scrollTop,e.left+=n.left+t.scrollLeft}n=n.parent}}catch(t){}return e}(t.target),l=f(t.target),c=()=>{e=void 0,a(n,o,i+r.left,s+r.top,l,t.target,t._resolvedExtraHighlightElements),e=requestAnimationFrame(c)};c(),window.addEventListener("touchmove",h,{passive:!1})}(t),c()):l()},show:c,getElement:function(){return i}}}class shepherd_de extends shepherd_i{constructor(){super(),this.activeTour=void 0,shepherd_x(this)}}const shepherd_fe=new shepherd_de,shepherd_pe="undefined"==typeof window;shepherd_fe.Step=shepherd_pe?class{constructor(t){}}:shepherd_ue,shepherd_fe.Tour=shepherd_pe?class{constructor(t,e){}}:class extends shepherd_i{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,shepherd_x(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=shepherd_w(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(t=>{(t=>{this.on(t,e=>{(e=e||{}).tour=this,shepherd_fe.trigger(t,e)})})(t)}),this._setTourID(t.id),this}addStep(t,e){let n=t;return n instanceof shepherd_ue?n.tour=this:n=new shepherd_ue(this,n),shepherd_o(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach(t=>{this.addStep(t)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;n=shepherd_e(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(e=>e.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return shepherd_fe.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const e=this.getCurrentStep();this.steps.some((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0}),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,o=!0){const i=shepherd_n(t)?this.getById(t):this.steps[t];if(i){this._updateStateBeforeShow();shepherd_e(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,o):(this.currentStep=i,this.trigger("show",{step:i,previous:this.currentStep}),i.show())}}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(t=>t.destroy()),function(e){if(e){const{steps:n}=e;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&(shepherd_t(e.target)&&e.target.classList.remove("shepherd-target-click-disabled"),e._resolvedExtraHighlightElements&&e._resolvedExtraHighlightElements.forEach(e=>{shepherd_t(e)&&e.classList.remove("shepherd-target-click-disabled")}))})}}(this),this.trigger(e,{index:n}),shepherd_fe.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),"cancel"!==e&&"complete"!==e||this.modal&&(this.modal.destroy(),this.modal=null),shepherd_t(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),shepherd_fe.activeTour=this}setupModal(){const t=this.options.modalContainer||document.body;this.modal=shepherd_he(t)}_skipStep(t,e){const n=this.steps.indexOf(t),o=e?n+1:n-1;o<0?this.cancel():o>=this.steps.length?this.complete():this.show(o,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const e=this.options.tourName||"tour",n=t||shepherd_O();this.id=`${e}--${n}`}};
236557
+ //# sourceMappingURL=shepherd.mjs.map
236558
+
236559
236559
  // EXTERNAL MODULE: ../../../node_modules/react-router/dist/index.js
236560
- var react_router_dist = __webpack_require__(42277);
236560
+ var dist = __webpack_require__(42277);
236561
236561
  ;// CONCATENATED MODULE: ../../../node_modules/shepherd.js/dist/css/shepherd.css
236562
236562
  // extracted by css-extract-rspack-plugin
236563
236563
 
@@ -236659,8 +236659,7 @@ const utilities_middleware = [(0,floating_ui_dom/* .offset */.cY)(15), (0,floati
236659
236659
  const Onboarding = ({
236660
236660
  tours = []
236661
236661
  }) => {
236662
- const Shepherd = (0,dist/* .useShepherd */.jI)();
236663
- const location = (0,react_router_dist/* .useLocation */.zy)();
236662
+ const location = (0,dist/* .useLocation */.zy)();
236664
236663
 
236665
236664
  /**
236666
236665
  * Show the tour if it hasn't been shown yet based on the current route.
@@ -236674,7 +236673,7 @@ const Onboarding = ({
236674
236673
  if (!matchingTour || hasTourBeenShown(matchingTour.id)) {
236675
236674
  return;
236676
236675
  }
236677
- const tourInstance = new Shepherd.Tour({
236676
+ const tourInstance = new shepherd_fe.Tour({
236678
236677
  ...matchingTour.tourOptions,
236679
236678
  defaultStepOptions: {
236680
236679
  ...matchingTour.tourOptions?.defaultStepOptions,
@@ -236683,14 +236682,14 @@ const Onboarding = ({
236683
236682
  },
236684
236683
  when: {
236685
236684
  ...matchingTour.tourOptions?.defaultStepOptions?.when,
236686
- show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(Shepherd))
236685
+ show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(shepherd_fe))
236687
236686
  }
236688
236687
  }
236689
236688
  });
236690
236689
  matchingTour.steps.forEach(step => tourInstance.addStep(step));
236691
236690
  tourInstance.start();
236692
236691
  markTourAsShown(matchingTour.id);
236693
- }, [Shepherd, tours, location.pathname]);
236692
+ }, [tours, location.pathname]);
236694
236693
  return null;
236695
236694
  };
236696
236695
 
@@ -238132,8 +238131,8 @@ SegmentationTable.AddSegmentRow = AddSegmentRow;
238132
238131
  SegmentationTable.AddSegmentationRow = AddSegmentationRow;
238133
238132
 
238134
238133
  ;// CONCATENATED MODULE: ../../../node_modules/sonner/dist/index.mjs
238135
- "use client";var jt=n=>{switch(n){case"success":return dist_ee;case"info":return ae;case"warning":return dist_oe;case"error":return dist_se;default:return null}},dist_te=Array(12).fill(0),Yt=({visible:n,className:e})=>react.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":n},react.createElement("div",{className:"sonner-spinner"},dist_te.map((t,a)=>react.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),dist_ee=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),dist_oe=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ae=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dist_se=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ot=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},react.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),react.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));var Ft=()=>{let[n,e]=react.useState(document.hidden);return react.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),n};var bt=1,yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});this.publish=e=>{this.subscribers.forEach(t=>t(e))};this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};this.create=e=>{var S;let{message:t,...a}=e,u=typeof(e==null?void 0:e.id)=="number"||((S=e.id)==null?void 0:S.length)>0?e.id:bt++,f=this.toasts.find(g=>g.id===u),w=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(g=>g.id===u?(this.publish({...g,...e,id:u,title:t}),{...g,...e,id:u,dismissible:w,title:t}):g):this.addToast({title:t,...a,dismissible:w,id:u}),u};this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);this.message=(e,t)=>this.create({...t,message:e});this.error=(e,t)=>this.create({...t,message:e,type:"error"});this.success=(e,t)=>this.create({...t,type:"success",message:e});this.info=(e,t)=>this.create({...t,type:"info",message:e});this.warning=(e,t)=>this.create({...t,type:"warning",message:e});this.loading=(e,t)=>this.create({...t,type:"loading",message:e});this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let u=e instanceof Promise?e:e(),f=a!==void 0,w,S=u.then(async i=>{if(w=["resolve",i],react.isValidElement(i))f=!1,this.create({id:a,type:"default",message:i});else if(dist_ie(i)&&!i.ok){f=!1;let T=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,F=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:a,type:"error",message:T,description:F})}else if(t.success!==void 0){f=!1;let T=typeof t.success=="function"?await t.success(i):t.success,F=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"success",message:T,description:F})}}).catch(async i=>{if(w=["reject",i],t.error!==void 0){f=!1;let D=typeof t.error=="function"?await t.error(i):t.error,T=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"error",message:D,description:T})}}).finally(()=>{var i;f&&(this.dismiss(a),a=void 0),(i=t.finally)==null||i.call(t)}),g=()=>new Promise((i,D)=>S.then(()=>w[0]==="reject"?D(w[1]):i(w[1])).catch(D));return typeof a!="string"&&typeof a!="number"?{unwrap:g}:Object.assign(a,{unwrap:g})};this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||bt++;return this.create({jsx:e(a),id:a,...t}),a};this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},dist_v=new yt,dist_ne=(n,e)=>{let t=(e==null?void 0:e.id)||bt++;return dist_v.addToast({title:n,...e,id:t}),t},dist_ie=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",dist_le=dist_ne,dist_ce=()=>dist_v.toasts,dist_de=()=>dist_v.getActiveToasts(),dist_ue=Object.assign(dist_le,{success:dist_v.success,info:dist_v.info,warning:dist_v.warning,error:dist_v.error,custom:dist_v.custom,message:dist_v.message,promise:dist_v.promise,dismiss:dist_v.dismiss,loading:dist_v.loading},{getHistory:dist_ce,getToasts:dist_de});function wt(n,{insertAt:e}={}){if(!n||typeof document=="undefined")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
238136
- `);function tt(n){return n.label!==void 0}var dist_pe=3,dist_me="32px",dist_ge="16px",Wt=4e3,dist_he=356,dist_be=14,dist_ye=20,dist_we=200;function dist_M(...n){return n.filter(Boolean).join(" ")}function dist_xe(n){let[e,t]=n.split("-"),a=[];return e&&a.push(e),t&&a.push(t),a}var dist_ve=n=>{var Dt,Pt,Nt,Bt,Ct,kt,It,Mt,Ht,At,Lt;let{invert:e,toast:t,unstyled:a,interacting:u,setHeights:f,visibleToasts:w,heights:S,index:g,toasts:i,expanded:D,removeToast:T,defaultRichColors:F,closeButton:et,style:ut,cancelButtonStyle:ft,actionButtonStyle:l,className:ot="",descriptionClassName:at="",duration:X,position:st,gap:pt,loadingIcon:rt,expandByDefault:B,classNames:s,icons:P,closeButtonAriaLabel:nt="Close toast",pauseWhenPageIsHidden:it}=n,[Y,C]=react.useState(null),[lt,J]=react.useState(null),[W,H]=react.useState(!1),[A,mt]=react.useState(!1),[L,z]=react.useState(!1),[ct,d]=react.useState(!1),[h,y]=react.useState(!1),[R,j]=react.useState(0),[p,_]=react.useState(0),O=react.useRef(t.duration||X||Wt),G=react.useRef(null),k=react.useRef(null),Vt=g===0,Ut=g+1<=w,N=t.type,V=t.dismissible!==!1,Kt=t.className||"",Xt=t.descriptionClassName||"",dt=react.useMemo(()=>S.findIndex(r=>r.toastId===t.id)||0,[S,t.id]),Jt=react.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:et},[t.closeButton,et]),Tt=react.useMemo(()=>t.duration||X||Wt,[t.duration,X]),gt=react.useRef(0),U=react.useRef(0),St=react.useRef(0),K=react.useRef(null),[Gt,Qt]=st.split("-"),Rt=react.useMemo(()=>S.reduce((r,m,c)=>c>=dt?r:r+m.height,0),[S,dt]),Et=Ft(),qt=t.invert||e,ht=N==="loading";U.current=react.useMemo(()=>dt*pt+Rt,[dt,Rt]),react.useEffect(()=>{O.current=Tt},[Tt]),react.useEffect(()=>{H(!0)},[]),react.useEffect(()=>{let r=k.current;if(r){let m=r.getBoundingClientRect().height;return _(m),f(c=>[{toastId:t.id,height:m,position:t.position},...c]),()=>f(c=>c.filter(b=>b.toastId!==t.id))}},[f,t.id]),react.useLayoutEffect(()=>{if(!W)return;let r=k.current,m=r.style.height;r.style.height="auto";let c=r.getBoundingClientRect().height;r.style.height=m,_(c),f(b=>b.find(x=>x.toastId===t.id)?b.map(x=>x.toastId===t.id?{...x,height:c}:x):[{toastId:t.id,height:c,position:t.position},...b])},[W,t.title,t.description,f,t.id]);let $=react.useCallback(()=>{mt(!0),j(U.current),f(r=>r.filter(m=>m.toastId!==t.id)),setTimeout(()=>{T(t)},dist_we)},[t,T,f,U]);react.useEffect(()=>{if(t.promise&&N==="loading"||t.duration===1/0||t.type==="loading")return;let r;return D||u||it&&Et?(()=>{if(St.current<gt.current){let b=new Date().getTime()-gt.current;O.current=O.current-b}St.current=new Date().getTime()})():(()=>{O.current!==1/0&&(gt.current=new Date().getTime(),r=setTimeout(()=>{var b;(b=t.onAutoClose)==null||b.call(t,t),$()},O.current))})(),()=>clearTimeout(r)},[D,u,t,N,it,Et,$]),react.useEffect(()=>{t.delete&&$()},[$,t.delete]);function Zt(){var r,m,c;return P!=null&&P.loading?react.createElement("div",{className:dist_M(s==null?void 0:s.loader,(r=t==null?void 0:t.classNames)==null?void 0:r.loader,"sonner-loader"),"data-visible":N==="loading"},P.loading):rt?react.createElement("div",{className:dist_M(s==null?void 0:s.loader,(m=t==null?void 0:t.classNames)==null?void 0:m.loader,"sonner-loader"),"data-visible":N==="loading"},rt):react.createElement(Yt,{className:dist_M(s==null?void 0:s.loader,(c=t==null?void 0:t.classNames)==null?void 0:c.loader),visible:N==="loading"})}return react.createElement("li",{tabIndex:0,ref:k,className:dist_M(ot,Kt,s==null?void 0:s.toast,(Dt=t==null?void 0:t.classNames)==null?void 0:Dt.toast,s==null?void 0:s.default,s==null?void 0:s[N],(Pt=t==null?void 0:t.classNames)==null?void 0:Pt[N]),"data-sonner-toast":"","data-rich-colors":(Nt=t.richColors)!=null?Nt:F,"data-styled":!(t.jsx||t.unstyled||a),"data-mounted":W,"data-promise":!!t.promise,"data-swiped":h,"data-removed":A,"data-visible":Ut,"data-y-position":Gt,"data-x-position":Qt,"data-index":g,"data-front":Vt,"data-swiping":L,"data-dismissible":V,"data-type":N,"data-invert":qt,"data-swipe-out":ct,"data-swipe-direction":lt,"data-expanded":!!(D||B&&W),style:{"--index":g,"--toasts-before":g,"--z-index":i.length-g,"--offset":`${A?R:U.current}px`,"--initial-height":B?"auto":`${p}px`,...ut,...t.style},onDragEnd:()=>{z(!1),C(null),K.current=null},onPointerDown:r=>{ht||!V||(G.current=new Date,j(U.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!=="BUTTON"&&(z(!0),K.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var x,Q,q,Z;if(ct||!V)return;K.current=null;let r=Number(((x=k.current)==null?void 0:x.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),m=Number(((Q=k.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),c=new Date().getTime()-((q=G.current)==null?void 0:q.getTime()),b=Y==="x"?r:m,I=Math.abs(b)/c;if(Math.abs(b)>=dist_ye||I>.11){j(U.current),(Z=t.onDismiss)==null||Z.call(t,t),J(Y==="x"?r>0?"right":"left":m>0?"down":"up"),$(),d(!0),y(!1);return}z(!1),C(null)},onPointerMove:r=>{var Q,q,Z,zt;if(!K.current||!V||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;let c=r.clientY-K.current.y,b=r.clientX-K.current.x,I=(q=n.swipeDirections)!=null?q:dist_xe(st);!Y&&(Math.abs(b)>1||Math.abs(c)>1)&&C(Math.abs(b)>Math.abs(c)?"x":"y");let x={x:0,y:0};Y==="y"?(I.includes("top")||I.includes("bottom"))&&(I.includes("top")&&c<0||I.includes("bottom")&&c>0)&&(x.y=c):Y==="x"&&(I.includes("left")||I.includes("right"))&&(I.includes("left")&&b<0||I.includes("right")&&b>0)&&(x.x=b),(Math.abs(x.x)>0||Math.abs(x.y)>0)&&y(!0),(Z=k.current)==null||Z.style.setProperty("--swipe-amount-x",`${x.x}px`),(zt=k.current)==null||zt.style.setProperty("--swipe-amount-y",`${x.y}px`)}},Jt&&!t.jsx?react.createElement("button",{"aria-label":nt,"data-disabled":ht,"data-close-button":!0,onClick:ht||!V?()=>{}:()=>{var r;$(),(r=t.onDismiss)==null||r.call(t,t)},className:dist_M(s==null?void 0:s.closeButton,(Bt=t==null?void 0:t.classNames)==null?void 0:Bt.closeButton)},(Ct=P==null?void 0:P.close)!=null?Ct:Ot):null,t.jsx||(0,react.isValidElement)(t.title)?t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title:react.createElement(react.Fragment,null,N||t.icon||t.promise?react.createElement("div",{"data-icon":"",className:dist_M(s==null?void 0:s.icon,(kt=t==null?void 0:t.classNames)==null?void 0:kt.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Zt():null,t.type!=="loading"?t.icon||(P==null?void 0:P[N])||jt(N):null):null,react.createElement("div",{"data-content":"",className:dist_M(s==null?void 0:s.content,(It=t==null?void 0:t.classNames)==null?void 0:It.content)},react.createElement("div",{"data-title":"",className:dist_M(s==null?void 0:s.title,(Mt=t==null?void 0:t.classNames)==null?void 0:Mt.title)},typeof t.title=="function"?t.title():t.title),t.description?react.createElement("div",{"data-description":"",className:dist_M(at,Xt,s==null?void 0:s.description,(Ht=t==null?void 0:t.classNames)==null?void 0:Ht.description)},typeof t.description=="function"?t.description():t.description):null),(0,react.isValidElement)(t.cancel)?t.cancel:t.cancel&&tt(t.cancel)?react.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||ft,onClick:r=>{var m,c;tt(t.cancel)&&V&&((c=(m=t.cancel).onClick)==null||c.call(m,r),$())},className:dist_M(s==null?void 0:s.cancelButton,(At=t==null?void 0:t.classNames)==null?void 0:At.cancelButton)},t.cancel.label):null,(0,react.isValidElement)(t.action)?t.action:t.action&&tt(t.action)?react.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||l,onClick:r=>{var m,c;tt(t.action)&&((c=(m=t.action).onClick)==null||c.call(m,r),!r.defaultPrevented&&$())},className:dist_M(s==null?void 0:s.actionButton,(Lt=t==null?void 0:t.classNames)==null?void 0:Lt.actionButton)},t.action.label):null))};function _t(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function dist_Te(n,e){let t={};return[n,e].forEach((a,u)=>{let f=u===1,w=f?"--mobile-offset":"--offset",S=f?dist_ge:dist_me;function g(i){["top","right","bottom","left"].forEach(D=>{t[`${w}-${D}`]=typeof i=="number"?`${i}px`:i})}typeof a=="number"||typeof a=="string"?g(a):typeof a=="object"?["top","right","bottom","left"].forEach(i=>{a[i]===void 0?t[`${w}-${i}`]=S:t[`${w}-${i}`]=typeof a[i]=="number"?`${a[i]}px`:a[i]}):g(S)}),t}function Oe(){let[n,e]=o.useState([]);return o.useEffect(()=>dist_v.subscribe(t=>{if(t.dismiss){setTimeout(()=>{vt.flushSync(()=>{e(a=>a.filter(u=>u.id!==t.id))})});return}setTimeout(()=>{vt.flushSync(()=>{e(a=>{let u=a.findIndex(f=>f.id===t.id);return u!==-1?[...a.slice(0,u),{...a[u],...t},...a.slice(u+1)]:[t,...a]})})})}),[]),{toasts:n}}var $e=(0,react.forwardRef)(function(e,t){let{invert:a,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:w,closeButton:S,className:g,offset:i,mobileOffset:D,theme:T="light",richColors:F,duration:et,style:ut,visibleToasts:ft=dist_pe,toastOptions:l,dir:ot=_t(),gap:at=dist_be,loadingIcon:X,icons:st,containerAriaLabel:pt="Notifications",pauseWhenPageIsHidden:rt}=e,[B,s]=react.useState([]),P=react.useMemo(()=>Array.from(new Set([u].concat(B.filter(d=>d.position).map(d=>d.position)))),[B,u]),[nt,it]=react.useState([]),[Y,C]=react.useState(!1),[lt,J]=react.useState(!1),[W,H]=react.useState(T!=="system"?T:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=react.useRef(null),mt=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=react.useRef(null),z=react.useRef(!1),ct=react.useCallback(d=>{s(h=>{var y;return(y=h.find(R=>R.id===d.id))!=null&&y.delete||dist_v.dismiss(d.id),h.filter(({id:R})=>R!==d.id)})},[]);return react.useEffect(()=>dist_v.subscribe(d=>{if(d.dismiss){s(h=>h.map(y=>y.id===d.id?{...y,delete:!0}:y));return}setTimeout(()=>{react_dom.flushSync(()=>{s(h=>{let y=h.findIndex(R=>R.id===d.id);return y!==-1?[...h.slice(0,y),{...h[y],...d},...h.slice(y+1)]:[d,...h]})})})}),[]),react.useEffect(()=>{if(T!=="system"){H(T);return}if(T==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window=="undefined")return;let d=window.matchMedia("(prefers-color-scheme: dark)");try{d.addEventListener("change",({matches:h})=>{H(h?"dark":"light")})}catch(h){d.addListener(({matches:y})=>{try{H(y?"dark":"light")}catch(R){console.error(R)}})}},[T]),react.useEffect(()=>{B.length<=1&&C(!1)},[B]),react.useEffect(()=>{let d=h=>{var R,j;f.every(p=>h[p]||h.code===p)&&(C(!0),(R=A.current)==null||R.focus()),h.code==="Escape"&&(document.activeElement===A.current||(j=A.current)!=null&&j.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[f]),react.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,z.current=!1)}},[A.current]),react.createElement("section",{ref:t,"aria-label":`${pt} ${mt}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((d,h)=>{var j;let[y,R]=d.split("-");return B.length?react.createElement("ol",{key:d,dir:ot==="auto"?_t():ot,tabIndex:-1,ref:A,className:g,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":y,"data-lifted":Y&&B.length>1&&!w,"data-x-position":R,style:{"--front-toast-height":`${((j=nt[0])==null?void 0:j.height)||0}px`,"--width":`${dist_he}px`,"--gap":`${at}px`,...ut,...dist_Te(i,D)},onBlur:p=>{z.current&&!p.currentTarget.contains(p.relatedTarget)&&(z.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||z.current||(z.current=!0,L.current=p.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{lt||C(!1)},onDragEnd:()=>C(!1),onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},B.filter(p=>!p.position&&h===0||p.position===d).map((p,_)=>{var O,G;return react.createElement(dist_ve,{key:p.id,icons:st,index:_,toast:p,defaultRichColors:F,duration:(O=l==null?void 0:l.duration)!=null?O:et,className:l==null?void 0:l.className,descriptionClassName:l==null?void 0:l.descriptionClassName,invert:a,visibleToasts:ft,closeButton:(G=l==null?void 0:l.closeButton)!=null?G:S,interacting:lt,position:d,style:l==null?void 0:l.style,unstyled:l==null?void 0:l.unstyled,classNames:l==null?void 0:l.classNames,cancelButtonStyle:l==null?void 0:l.cancelButtonStyle,actionButtonStyle:l==null?void 0:l.actionButtonStyle,removeToast:ct,toasts:B.filter(k=>k.position==p.position),heights:nt.filter(k=>k.position==p.position),setHeights:it,expandByDefault:w,gap:at,loadingIcon:X,expanded:Y,pauseWhenPageIsHidden:rt,swipeDirections:e.swipeDirections})})):null}))});
238134
+ "use client";var dist_jt=n=>{switch(n){case"success":return dist_ee;case"info":return dist_ae;case"warning":return dist_oe;case"error":return dist_se;default:return null}},dist_te=Array(12).fill(0),dist_Yt=({visible:n,className:e})=>react.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":n},react.createElement("div",{className:"sonner-spinner"},dist_te.map((t,a)=>react.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),dist_ee=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),dist_oe=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),dist_ae=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),dist_se=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},react.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),dist_Ot=react.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},react.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),react.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));var dist_Ft=()=>{let[n,e]=react.useState(document.hidden);return react.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),n};var dist_bt=1,dist_yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});this.publish=e=>{this.subscribers.forEach(t=>t(e))};this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};this.create=e=>{var S;let{message:t,...a}=e,u=typeof(e==null?void 0:e.id)=="number"||((S=e.id)==null?void 0:S.length)>0?e.id:dist_bt++,f=this.toasts.find(g=>g.id===u),w=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(g=>g.id===u?(this.publish({...g,...e,id:u,title:t}),{...g,...e,id:u,dismissible:w,title:t}):g):this.addToast({title:t,...a,dismissible:w,id:u}),u};this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);this.message=(e,t)=>this.create({...t,message:e});this.error=(e,t)=>this.create({...t,message:e,type:"error"});this.success=(e,t)=>this.create({...t,type:"success",message:e});this.info=(e,t)=>this.create({...t,type:"info",message:e});this.warning=(e,t)=>this.create({...t,type:"warning",message:e});this.loading=(e,t)=>this.create({...t,type:"loading",message:e});this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let u=e instanceof Promise?e:e(),f=a!==void 0,w,S=u.then(async i=>{if(w=["resolve",i],react.isValidElement(i))f=!1,this.create({id:a,type:"default",message:i});else if(dist_ie(i)&&!i.ok){f=!1;let T=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,F=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:a,type:"error",message:T,description:F})}else if(t.success!==void 0){f=!1;let T=typeof t.success=="function"?await t.success(i):t.success,F=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"success",message:T,description:F})}}).catch(async i=>{if(w=["reject",i],t.error!==void 0){f=!1;let D=typeof t.error=="function"?await t.error(i):t.error,T=typeof t.description=="function"?await t.description(i):t.description;this.create({id:a,type:"error",message:D,description:T})}}).finally(()=>{var i;f&&(this.dismiss(a),a=void 0),(i=t.finally)==null||i.call(t)}),g=()=>new Promise((i,D)=>S.then(()=>w[0]==="reject"?D(w[1]):i(w[1])).catch(D));return typeof a!="string"&&typeof a!="number"?{unwrap:g}:Object.assign(a,{unwrap:g})};this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||dist_bt++;return this.create({jsx:e(a),id:a,...t}),a};this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},dist_v=new dist_yt,dist_ne=(n,e)=>{let t=(e==null?void 0:e.id)||dist_bt++;return dist_v.addToast({title:n,...e,id:t}),t},dist_ie=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",dist_le=dist_ne,dist_ce=()=>dist_v.toasts,dist_de=()=>dist_v.getActiveToasts(),dist_ue=Object.assign(dist_le,{success:dist_v.success,info:dist_v.info,warning:dist_v.warning,error:dist_v.error,custom:dist_v.custom,message:dist_v.message,promise:dist_v.promise,dismiss:dist_v.dismiss,loading:dist_v.loading},{getHistory:dist_ce,getToasts:dist_de});function dist_wt(n,{insertAt:e}={}){if(!n||typeof document=="undefined")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e==="top"&&t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}dist_wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
238135
+ `);function dist_tt(n){return n.label!==void 0}var dist_pe=3,dist_me="32px",dist_ge="16px",dist_Wt=4e3,dist_he=356,dist_be=14,dist_ye=20,dist_we=200;function dist_M(...n){return n.filter(Boolean).join(" ")}function dist_xe(n){let[e,t]=n.split("-"),a=[];return e&&a.push(e),t&&a.push(t),a}var dist_ve=n=>{var Dt,Pt,Nt,Bt,Ct,kt,It,Mt,Ht,At,Lt;let{invert:e,toast:t,unstyled:a,interacting:u,setHeights:f,visibleToasts:w,heights:S,index:g,toasts:i,expanded:D,removeToast:T,defaultRichColors:F,closeButton:et,style:ut,cancelButtonStyle:ft,actionButtonStyle:l,className:ot="",descriptionClassName:at="",duration:X,position:st,gap:pt,loadingIcon:rt,expandByDefault:B,classNames:s,icons:P,closeButtonAriaLabel:nt="Close toast",pauseWhenPageIsHidden:it}=n,[Y,C]=react.useState(null),[lt,J]=react.useState(null),[W,H]=react.useState(!1),[A,mt]=react.useState(!1),[L,z]=react.useState(!1),[ct,d]=react.useState(!1),[h,y]=react.useState(!1),[R,j]=react.useState(0),[p,_]=react.useState(0),O=react.useRef(t.duration||X||dist_Wt),G=react.useRef(null),k=react.useRef(null),Vt=g===0,Ut=g+1<=w,N=t.type,V=t.dismissible!==!1,Kt=t.className||"",Xt=t.descriptionClassName||"",dt=react.useMemo(()=>S.findIndex(r=>r.toastId===t.id)||0,[S,t.id]),Jt=react.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:et},[t.closeButton,et]),Tt=react.useMemo(()=>t.duration||X||dist_Wt,[t.duration,X]),gt=react.useRef(0),U=react.useRef(0),St=react.useRef(0),K=react.useRef(null),[Gt,Qt]=st.split("-"),Rt=react.useMemo(()=>S.reduce((r,m,c)=>c>=dt?r:r+m.height,0),[S,dt]),Et=dist_Ft(),qt=t.invert||e,ht=N==="loading";U.current=react.useMemo(()=>dt*pt+Rt,[dt,Rt]),react.useEffect(()=>{O.current=Tt},[Tt]),react.useEffect(()=>{H(!0)},[]),react.useEffect(()=>{let r=k.current;if(r){let m=r.getBoundingClientRect().height;return _(m),f(c=>[{toastId:t.id,height:m,position:t.position},...c]),()=>f(c=>c.filter(b=>b.toastId!==t.id))}},[f,t.id]),react.useLayoutEffect(()=>{if(!W)return;let r=k.current,m=r.style.height;r.style.height="auto";let c=r.getBoundingClientRect().height;r.style.height=m,_(c),f(b=>b.find(x=>x.toastId===t.id)?b.map(x=>x.toastId===t.id?{...x,height:c}:x):[{toastId:t.id,height:c,position:t.position},...b])},[W,t.title,t.description,f,t.id]);let $=react.useCallback(()=>{mt(!0),j(U.current),f(r=>r.filter(m=>m.toastId!==t.id)),setTimeout(()=>{T(t)},dist_we)},[t,T,f,U]);react.useEffect(()=>{if(t.promise&&N==="loading"||t.duration===1/0||t.type==="loading")return;let r;return D||u||it&&Et?(()=>{if(St.current<gt.current){let b=new Date().getTime()-gt.current;O.current=O.current-b}St.current=new Date().getTime()})():(()=>{O.current!==1/0&&(gt.current=new Date().getTime(),r=setTimeout(()=>{var b;(b=t.onAutoClose)==null||b.call(t,t),$()},O.current))})(),()=>clearTimeout(r)},[D,u,t,N,it,Et,$]),react.useEffect(()=>{t.delete&&$()},[$,t.delete]);function Zt(){var r,m,c;return P!=null&&P.loading?react.createElement("div",{className:dist_M(s==null?void 0:s.loader,(r=t==null?void 0:t.classNames)==null?void 0:r.loader,"sonner-loader"),"data-visible":N==="loading"},P.loading):rt?react.createElement("div",{className:dist_M(s==null?void 0:s.loader,(m=t==null?void 0:t.classNames)==null?void 0:m.loader,"sonner-loader"),"data-visible":N==="loading"},rt):react.createElement(dist_Yt,{className:dist_M(s==null?void 0:s.loader,(c=t==null?void 0:t.classNames)==null?void 0:c.loader),visible:N==="loading"})}return react.createElement("li",{tabIndex:0,ref:k,className:dist_M(ot,Kt,s==null?void 0:s.toast,(Dt=t==null?void 0:t.classNames)==null?void 0:Dt.toast,s==null?void 0:s.default,s==null?void 0:s[N],(Pt=t==null?void 0:t.classNames)==null?void 0:Pt[N]),"data-sonner-toast":"","data-rich-colors":(Nt=t.richColors)!=null?Nt:F,"data-styled":!(t.jsx||t.unstyled||a),"data-mounted":W,"data-promise":!!t.promise,"data-swiped":h,"data-removed":A,"data-visible":Ut,"data-y-position":Gt,"data-x-position":Qt,"data-index":g,"data-front":Vt,"data-swiping":L,"data-dismissible":V,"data-type":N,"data-invert":qt,"data-swipe-out":ct,"data-swipe-direction":lt,"data-expanded":!!(D||B&&W),style:{"--index":g,"--toasts-before":g,"--z-index":i.length-g,"--offset":`${A?R:U.current}px`,"--initial-height":B?"auto":`${p}px`,...ut,...t.style},onDragEnd:()=>{z(!1),C(null),K.current=null},onPointerDown:r=>{ht||!V||(G.current=new Date,j(U.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!=="BUTTON"&&(z(!0),K.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var x,Q,q,Z;if(ct||!V)return;K.current=null;let r=Number(((x=k.current)==null?void 0:x.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),m=Number(((Q=k.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),c=new Date().getTime()-((q=G.current)==null?void 0:q.getTime()),b=Y==="x"?r:m,I=Math.abs(b)/c;if(Math.abs(b)>=dist_ye||I>.11){j(U.current),(Z=t.onDismiss)==null||Z.call(t,t),J(Y==="x"?r>0?"right":"left":m>0?"down":"up"),$(),d(!0),y(!1);return}z(!1),C(null)},onPointerMove:r=>{var Q,q,Z,zt;if(!K.current||!V||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;let c=r.clientY-K.current.y,b=r.clientX-K.current.x,I=(q=n.swipeDirections)!=null?q:dist_xe(st);!Y&&(Math.abs(b)>1||Math.abs(c)>1)&&C(Math.abs(b)>Math.abs(c)?"x":"y");let x={x:0,y:0};Y==="y"?(I.includes("top")||I.includes("bottom"))&&(I.includes("top")&&c<0||I.includes("bottom")&&c>0)&&(x.y=c):Y==="x"&&(I.includes("left")||I.includes("right"))&&(I.includes("left")&&b<0||I.includes("right")&&b>0)&&(x.x=b),(Math.abs(x.x)>0||Math.abs(x.y)>0)&&y(!0),(Z=k.current)==null||Z.style.setProperty("--swipe-amount-x",`${x.x}px`),(zt=k.current)==null||zt.style.setProperty("--swipe-amount-y",`${x.y}px`)}},Jt&&!t.jsx?react.createElement("button",{"aria-label":nt,"data-disabled":ht,"data-close-button":!0,onClick:ht||!V?()=>{}:()=>{var r;$(),(r=t.onDismiss)==null||r.call(t,t)},className:dist_M(s==null?void 0:s.closeButton,(Bt=t==null?void 0:t.classNames)==null?void 0:Bt.closeButton)},(Ct=P==null?void 0:P.close)!=null?Ct:dist_Ot):null,t.jsx||(0,react.isValidElement)(t.title)?t.jsx?t.jsx:typeof t.title=="function"?t.title():t.title:react.createElement(react.Fragment,null,N||t.icon||t.promise?react.createElement("div",{"data-icon":"",className:dist_M(s==null?void 0:s.icon,(kt=t==null?void 0:t.classNames)==null?void 0:kt.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||Zt():null,t.type!=="loading"?t.icon||(P==null?void 0:P[N])||dist_jt(N):null):null,react.createElement("div",{"data-content":"",className:dist_M(s==null?void 0:s.content,(It=t==null?void 0:t.classNames)==null?void 0:It.content)},react.createElement("div",{"data-title":"",className:dist_M(s==null?void 0:s.title,(Mt=t==null?void 0:t.classNames)==null?void 0:Mt.title)},typeof t.title=="function"?t.title():t.title),t.description?react.createElement("div",{"data-description":"",className:dist_M(at,Xt,s==null?void 0:s.description,(Ht=t==null?void 0:t.classNames)==null?void 0:Ht.description)},typeof t.description=="function"?t.description():t.description):null),(0,react.isValidElement)(t.cancel)?t.cancel:t.cancel&&dist_tt(t.cancel)?react.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||ft,onClick:r=>{var m,c;dist_tt(t.cancel)&&V&&((c=(m=t.cancel).onClick)==null||c.call(m,r),$())},className:dist_M(s==null?void 0:s.cancelButton,(At=t==null?void 0:t.classNames)==null?void 0:At.cancelButton)},t.cancel.label):null,(0,react.isValidElement)(t.action)?t.action:t.action&&dist_tt(t.action)?react.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||l,onClick:r=>{var m,c;dist_tt(t.action)&&((c=(m=t.action).onClick)==null||c.call(m,r),!r.defaultPrevented&&$())},className:dist_M(s==null?void 0:s.actionButton,(Lt=t==null?void 0:t.classNames)==null?void 0:Lt.actionButton)},t.action.label):null))};function dist_t(){if(typeof window=="undefined"||typeof document=="undefined")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function dist_Te(n,e){let t={};return[n,e].forEach((a,u)=>{let f=u===1,w=f?"--mobile-offset":"--offset",S=f?dist_ge:dist_me;function g(i){["top","right","bottom","left"].forEach(D=>{t[`${w}-${D}`]=typeof i=="number"?`${i}px`:i})}typeof a=="number"||typeof a=="string"?g(a):typeof a=="object"?["top","right","bottom","left"].forEach(i=>{a[i]===void 0?t[`${w}-${i}`]=S:t[`${w}-${i}`]=typeof a[i]=="number"?`${a[i]}px`:a[i]}):g(S)}),t}function Oe(){let[n,e]=o.useState([]);return o.useEffect(()=>dist_v.subscribe(t=>{if(t.dismiss){setTimeout(()=>{vt.flushSync(()=>{e(a=>a.filter(u=>u.id!==t.id))})});return}setTimeout(()=>{vt.flushSync(()=>{e(a=>{let u=a.findIndex(f=>f.id===t.id);return u!==-1?[...a.slice(0,u),{...a[u],...t},...a.slice(u+1)]:[t,...a]})})})}),[]),{toasts:n}}var $e=(0,react.forwardRef)(function(e,t){let{invert:a,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:w,closeButton:S,className:g,offset:i,mobileOffset:D,theme:T="light",richColors:F,duration:et,style:ut,visibleToasts:ft=dist_pe,toastOptions:l,dir:ot=dist_t(),gap:at=dist_be,loadingIcon:X,icons:st,containerAriaLabel:pt="Notifications",pauseWhenPageIsHidden:rt}=e,[B,s]=react.useState([]),P=react.useMemo(()=>Array.from(new Set([u].concat(B.filter(d=>d.position).map(d=>d.position)))),[B,u]),[nt,it]=react.useState([]),[Y,C]=react.useState(!1),[lt,J]=react.useState(!1),[W,H]=react.useState(T!=="system"?T:typeof window!="undefined"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=react.useRef(null),mt=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=react.useRef(null),z=react.useRef(!1),ct=react.useCallback(d=>{s(h=>{var y;return(y=h.find(R=>R.id===d.id))!=null&&y.delete||dist_v.dismiss(d.id),h.filter(({id:R})=>R!==d.id)})},[]);return react.useEffect(()=>dist_v.subscribe(d=>{if(d.dismiss){s(h=>h.map(y=>y.id===d.id?{...y,delete:!0}:y));return}setTimeout(()=>{react_dom.flushSync(()=>{s(h=>{let y=h.findIndex(R=>R.id===d.id);return y!==-1?[...h.slice(0,y),{...h[y],...d},...h.slice(y+1)]:[d,...h]})})})}),[]),react.useEffect(()=>{if(T!=="system"){H(T);return}if(T==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window=="undefined")return;let d=window.matchMedia("(prefers-color-scheme: dark)");try{d.addEventListener("change",({matches:h})=>{H(h?"dark":"light")})}catch(h){d.addListener(({matches:y})=>{try{H(y?"dark":"light")}catch(R){console.error(R)}})}},[T]),react.useEffect(()=>{B.length<=1&&C(!1)},[B]),react.useEffect(()=>{let d=h=>{var R,j;f.every(p=>h[p]||h.code===p)&&(C(!0),(R=A.current)==null||R.focus()),h.code==="Escape"&&(document.activeElement===A.current||(j=A.current)!=null&&j.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[f]),react.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,z.current=!1)}},[A.current]),react.createElement("section",{ref:t,"aria-label":`${pt} ${mt}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((d,h)=>{var j;let[y,R]=d.split("-");return B.length?react.createElement("ol",{key:d,dir:ot==="auto"?dist_t():ot,tabIndex:-1,ref:A,className:g,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":y,"data-lifted":Y&&B.length>1&&!w,"data-x-position":R,style:{"--front-toast-height":`${((j=nt[0])==null?void 0:j.height)||0}px`,"--width":`${dist_he}px`,"--gap":`${at}px`,...ut,...dist_Te(i,D)},onBlur:p=>{z.current&&!p.currentTarget.contains(p.relatedTarget)&&(z.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||z.current||(z.current=!0,L.current=p.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{lt||C(!1)},onDragEnd:()=>C(!1),onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},B.filter(p=>!p.position&&h===0||p.position===d).map((p,_)=>{var O,G;return react.createElement(dist_ve,{key:p.id,icons:st,index:_,toast:p,defaultRichColors:F,duration:(O=l==null?void 0:l.duration)!=null?O:et,className:l==null?void 0:l.className,descriptionClassName:l==null?void 0:l.descriptionClassName,invert:a,visibleToasts:ft,closeButton:(G=l==null?void 0:l.closeButton)!=null?G:S,interacting:lt,position:d,style:l==null?void 0:l.style,unstyled:l==null?void 0:l.unstyled,classNames:l==null?void 0:l.classNames,cancelButtonStyle:l==null?void 0:l.cancelButtonStyle,actionButtonStyle:l==null?void 0:l.actionButtonStyle,removeToast:ct,toasts:B.filter(k=>k.position==p.position),heights:nt.filter(k=>k.position==p.position),setHeights:it,expandByDefault:w,gap:at,loadingIcon:X,expanded:Y,pauseWhenPageIsHidden:rt,swipeDirections:e.swipeDirections})})):null}))});
238137
238136
  //# sourceMappingURL=index.mjs.map
238138
238137
  ;// CONCATENATED MODULE: ../../ui-next/src/components/Sonner/Sonner.tsx
238139
238138
  function Sonner_extends() { return Sonner_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, Sonner_extends.apply(null, arguments); }
@@ -457730,3239 +457729,6 @@ var es_selectOrdinal = function selectOrdinal() {
457730
457729
  return '';
457731
457730
  };
457732
457731
 
457733
- },
457734
- 93854(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
457735
- "use strict";
457736
- __webpack_require__.d(__webpack_exports__, {
457737
- jI: () => (Ho),
457738
- pf: () => (Uo)
457739
- });
457740
- /* import */ var react__rspack_import_0 = __webpack_require__(86326);
457741
-
457742
- var Ct = { exports: {} }, Ye = {};
457743
- /**
457744
- * @license React
457745
- * react-jsx-runtime.production.min.js
457746
- *
457747
- * Copyright (c) Facebook, Inc. and its affiliates.
457748
- *
457749
- * This source code is licensed under the MIT license found in the
457750
- * LICENSE file in the root directory of this source tree.
457751
- */
457752
- var cn;
457753
- function Ar() {
457754
- if (cn) return Ye;
457755
- cn = 1;
457756
- var e = react__rspack_import_0, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
457757
- function o(c, a, u) {
457758
- var f, h = {}, d = null, g = null;
457759
- u !== void 0 && (d = "" + u), a.key !== void 0 && (d = "" + a.key), a.ref !== void 0 && (g = a.ref);
457760
- for (f in a) r.call(a, f) && !s.hasOwnProperty(f) && (h[f] = a[f]);
457761
- if (c && c.defaultProps) for (f in a = c.defaultProps, a) h[f] === void 0 && (h[f] = a[f]);
457762
- return { $$typeof: t, type: c, key: d, ref: g, props: h, _owner: i.current };
457763
- }
457764
- return Ye.Fragment = n, Ye.jsx = o, Ye.jsxs = o, Ye;
457765
- }
457766
- var ze = (/* unused pure expression or super */ null && ({}));
457767
- /**
457768
- * @license React
457769
- * react-jsx-runtime.development.js
457770
- *
457771
- * Copyright (c) Facebook, Inc. and its affiliates.
457772
- *
457773
- * This source code is licensed under the MIT license found in the
457774
- * LICENSE file in the root directory of this source tree.
457775
- */
457776
- var an;
457777
- function Pr() {
457778
- return an || (an = 1, false && 0), ze;
457779
- }
457780
- true ? Ct.exports = Ar() : 0;
457781
- var kr = Ct.exports;
457782
- /*! shepherd.js 13.0.3 */
457783
- function Ir(e) {
457784
- return e instanceof Element;
457785
- }
457786
- function Ge(e) {
457787
- return e instanceof HTMLElement;
457788
- }
457789
- function pe(e) {
457790
- return typeof e == "function";
457791
- }
457792
- function Je(e) {
457793
- return typeof e == "string";
457794
- }
457795
- function N(e) {
457796
- return e === void 0;
457797
- }
457798
- class Ft {
457799
- /**
457800
- * Adds an event listener for the given event string.
457801
- *
457802
- * @param {string} event
457803
- * @param {Function} handler
457804
- * @param ctx
457805
- * @param {boolean} once
457806
- * @returns
457807
- */
457808
- on(t, n, r, i = !1) {
457809
- var s;
457810
- return N(this.bindings) && (this.bindings = {}), N(this.bindings[t]) && (this.bindings[t] = []), (s = this.bindings[t]) == null || s.push({
457811
- handler: n,
457812
- ctx: r,
457813
- once: i
457814
- }), this;
457815
- }
457816
- /**
457817
- * Adds an event listener that only fires once for the given event string.
457818
- *
457819
- * @param {string} event
457820
- * @param {Function} handler
457821
- * @param ctx
457822
- * @returns
457823
- */
457824
- once(t, n, r) {
457825
- return this.on(t, n, r, !0);
457826
- }
457827
- /**
457828
- * Removes an event listener for the given event string.
457829
- *
457830
- * @param {string} event
457831
- * @param {Function} handler
457832
- * @returns
457833
- */
457834
- off(t, n) {
457835
- if (N(this.bindings) || N(this.bindings[t]))
457836
- return this;
457837
- if (N(n))
457838
- delete this.bindings[t];
457839
- else {
457840
- var r;
457841
- (r = this.bindings[t]) == null || r.forEach((i, s) => {
457842
- if (i.handler === n) {
457843
- var o;
457844
- (o = this.bindings[t]) == null || o.splice(s, 1);
457845
- }
457846
- });
457847
- }
457848
- return this;
457849
- }
457850
- /**
457851
- * Triggers an event listener for the given event string.
457852
- *
457853
- * @param {string} event
457854
- * @returns
457855
- */
457856
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
457857
- trigger(t, ...n) {
457858
- if (!N(this.bindings) && this.bindings[t]) {
457859
- var r;
457860
- (r = this.bindings[t]) == null || r.forEach((i, s) => {
457861
- const {
457862
- ctx: o,
457863
- handler: c,
457864
- once: a
457865
- } = i, u = o || this;
457866
- if (c.apply(u, n), a) {
457867
- var f;
457868
- (f = this.bindings[t]) == null || f.splice(s, 1);
457869
- }
457870
- });
457871
- }
457872
- return this;
457873
- }
457874
- }
457875
- function V() {
457876
- return V = Object.assign ? Object.assign.bind() : function(e) {
457877
- for (var t = 1; t < arguments.length; t++) {
457878
- var n = arguments[t];
457879
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
457880
- }
457881
- return e;
457882
- }, V.apply(null, arguments);
457883
- }
457884
- function In(e, t) {
457885
- if (e == null) return {};
457886
- var n = {};
457887
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
457888
- if (t.includes(r)) continue;
457889
- n[r] = e[r];
457890
- }
457891
- return n;
457892
- }
457893
- const be = {
457894
- defaultMerge: Symbol("deepmerge-ts: default merge"),
457895
- skip: Symbol("deepmerge-ts: skip")
457896
- };
457897
- be.defaultMerge;
457898
- function Mr(e, t) {
457899
- return t;
457900
- }
457901
- function un(e) {
457902
- return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : Dr(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
457903
- }
457904
- function Fr(e) {
457905
- const t = /* @__PURE__ */ new Set();
457906
- for (const n of e)
457907
- for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
457908
- t.add(r);
457909
- return t;
457910
- }
457911
- function Lr(e, t) {
457912
- return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
457913
- }
457914
- function Mn(e) {
457915
- return {
457916
- // eslint-disable-next-line functional/functional-parameters
457917
- *[Symbol.iterator]() {
457918
- for (const t of e)
457919
- for (const n of t)
457920
- yield n;
457921
- }
457922
- };
457923
- }
457924
- const fn = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
457925
- function Dr(e) {
457926
- if (!fn.has(Object.prototype.toString.call(e)))
457927
- return !1;
457928
- const {
457929
- constructor: t
457930
- } = e;
457931
- if (t === void 0)
457932
- return !0;
457933
- const n = t.prototype;
457934
- return !(n === null || typeof n != "object" || !fn.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
457935
- }
457936
- function jr(e, t, n) {
457937
- const r = {};
457938
- for (const i of Fr(e)) {
457939
- const s = [];
457940
- for (const a of e)
457941
- Lr(a, i) && s.push(a[i]);
457942
- if (s.length === 0)
457943
- continue;
457944
- const o = t.metaDataUpdater(n, {
457945
- key: i,
457946
- parents: e
457947
- }), c = Ln(s, t, o);
457948
- c !== be.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
457949
- value: c,
457950
- configurable: !0,
457951
- enumerable: !0,
457952
- writable: !0
457953
- }) : r[i] = c);
457954
- }
457955
- return r;
457956
- }
457957
- function Br(e) {
457958
- return e.flat();
457959
- }
457960
- function Nr(e) {
457961
- return new Set(Mn(e));
457962
- }
457963
- function Wr(e) {
457964
- return new Map(Mn(e));
457965
- }
457966
- function Fn(e) {
457967
- return e.at(-1);
457968
- }
457969
- var St = /* @__PURE__ */ Object.freeze({
457970
- __proto__: null,
457971
- mergeArrays: Br,
457972
- mergeMaps: Wr,
457973
- mergeOthers: Fn,
457974
- mergeRecords: jr,
457975
- mergeSets: Nr
457976
- });
457977
- function Lt(...e) {
457978
- return $r({})(...e);
457979
- }
457980
- function $r(e, t) {
457981
- const n = Vr(e, r);
457982
- function r(...i) {
457983
- return Ln(i, n, t);
457984
- }
457985
- return r;
457986
- }
457987
- function Vr(e, t) {
457988
- var n, r;
457989
- return {
457990
- defaultMergeFunctions: St,
457991
- mergeFunctions: V({}, St, Object.fromEntries(Object.entries(e).filter(([i, s]) => Object.hasOwn(St, i)).map(([i, s]) => s === !1 ? [i, Fn] : [i, s]))),
457992
- metaDataUpdater: (n = e.metaDataUpdater) != null ? n : Mr,
457993
- deepmerge: t,
457994
- useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
457995
- actions: be
457996
- };
457997
- }
457998
- function Ln(e, t, n) {
457999
- if (e.length === 0)
458000
- return;
458001
- if (e.length === 1)
458002
- return Ot(e, t, n);
458003
- const r = un(e[0]);
458004
- if (r !== 0 && r !== 5) {
458005
- for (let i = 1; i < e.length; i++)
458006
- if (un(e[i]) !== r)
458007
- return Ot(e, t, n);
458008
- }
458009
- switch (r) {
458010
- case 1:
458011
- return Hr(e, t, n);
458012
- case 2:
458013
- return Ur(e, t, n);
458014
- case 3:
458015
- return Yr(e, t, n);
458016
- case 4:
458017
- return zr(e, t, n);
458018
- default:
458019
- return Ot(e, t, n);
458020
- }
458021
- }
458022
- function Hr(e, t, n) {
458023
- const r = t.mergeFunctions.mergeRecords(e, t, n);
458024
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
458025
- }
458026
- function Ur(e, t, n) {
458027
- const r = t.mergeFunctions.mergeArrays(e, t, n);
458028
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
458029
- }
458030
- function Yr(e, t, n) {
458031
- const r = t.mergeFunctions.mergeSets(e, t, n);
458032
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
458033
- }
458034
- function zr(e, t, n) {
458035
- const r = t.mergeFunctions.mergeMaps(e, t, n);
458036
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
458037
- }
458038
- function Ot(e, t, n) {
458039
- const r = t.mergeFunctions.mergeOthers(e, t, n);
458040
- return r === be.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeOthers !== t.defaultMergeFunctions.mergeOthers ? t.defaultMergeFunctions.mergeOthers(e) : r;
458041
- }
458042
- function Dt(e) {
458043
- const t = Object.getOwnPropertyNames(e.constructor.prototype);
458044
- for (let n = 0; n < t.length; n++) {
458045
- const r = t[n], i = e[r];
458046
- r !== "constructor" && typeof i == "function" && (e[r] = i.bind(e));
458047
- }
458048
- return e;
458049
- }
458050
- function qr(e, t) {
458051
- return (n) => {
458052
- if (e.isOpen()) {
458053
- const r = e.el && n.currentTarget === e.el;
458054
- (!N(t) && n.currentTarget.matches(t) || r) && e.tour.next();
458055
- }
458056
- };
458057
- }
458058
- function Jr(e) {
458059
- const {
458060
- event: t,
458061
- selector: n
458062
- } = e.options.advanceOn || {};
458063
- if (t) {
458064
- const r = qr(e, n);
458065
- let i = null;
458066
- if (!N(n) && (i = document.querySelector(n), !i))
458067
- return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
458068
- i ? (i.addEventListener(t, r), e.on("destroy", () => i.removeEventListener(t, r))) : (document.body.addEventListener(t, r, !0), e.on("destroy", () => document.body.removeEventListener(t, r, !0)));
458069
- } else
458070
- return console.error("advanceOn was defined, but no event name was passed.");
458071
- }
458072
- class Kr {
458073
- constructor(t) {
458074
- }
458075
- }
458076
- class Xr {
458077
- constructor(t, n) {
458078
- }
458079
- }
458080
- function Dn(e) {
458081
- return !Je(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
458082
- }
458083
- function Gr(e) {
458084
- const t = e.options.attachTo || {}, n = Object.assign({}, t);
458085
- if (pe(n.element) && (n.element = n.element.call(e)), Je(n.element)) {
458086
- try {
458087
- n.element = document.querySelector(n.element);
458088
- } catch {
458089
- }
458090
- n.element || console.error(`The element for this Shepherd step was not found ${t.element}`);
458091
- }
458092
- return n;
458093
- }
458094
- function jn(e) {
458095
- return e == null ? !0 : !e.element || !e.on;
458096
- }
458097
- function Bn() {
458098
- let e = Date.now();
458099
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
458100
- const n = (e + Math.random() * 16) % 16 | 0;
458101
- return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
458102
- });
458103
- }
458104
- const De = Math.min, Ee = Math.max, lt = Math.round, ot = Math.floor, ge = (e) => ({
458105
- x: e,
458106
- y: e
458107
- }), Zr = {
458108
- left: "right",
458109
- right: "left",
458110
- bottom: "top",
458111
- top: "bottom"
458112
- }, Qr = {
458113
- start: "end",
458114
- end: "start"
458115
- };
458116
- function At(e, t, n) {
458117
- return Ee(e, De(t, n));
458118
- }
458119
- function je(e, t) {
458120
- return typeof e == "function" ? e(t) : e;
458121
- }
458122
- function Re(e) {
458123
- return e.split("-")[0];
458124
- }
458125
- function ft(e) {
458126
- return e.split("-")[1];
458127
- }
458128
- function jt(e) {
458129
- return e === "x" ? "y" : "x";
458130
- }
458131
- function Bt(e) {
458132
- return e === "y" ? "height" : "width";
458133
- }
458134
- function Be(e) {
458135
- return ["top", "bottom"].includes(Re(e)) ? "y" : "x";
458136
- }
458137
- function Nt(e) {
458138
- return jt(Be(e));
458139
- }
458140
- function ei(e, t, n) {
458141
- n === void 0 && (n = !1);
458142
- const r = ft(e), i = Nt(e), s = Bt(i);
458143
- let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
458144
- return t.reference[s] > t.floating[s] && (o = ct(o)), [o, ct(o)];
458145
- }
458146
- function ti(e) {
458147
- const t = ct(e);
458148
- return [Pt(e), t, Pt(t)];
458149
- }
458150
- function Pt(e) {
458151
- return e.replace(/start|end/g, (t) => Qr[t]);
458152
- }
458153
- function ni(e, t, n) {
458154
- const r = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], o = ["bottom", "top"];
458155
- switch (e) {
458156
- case "top":
458157
- case "bottom":
458158
- return n ? t ? i : r : t ? r : i;
458159
- case "left":
458160
- case "right":
458161
- return t ? s : o;
458162
- default:
458163
- return [];
458164
- }
458165
- }
458166
- function ri(e, t, n, r) {
458167
- const i = ft(e);
458168
- let s = ni(Re(e), n === "start", r);
458169
- return i && (s = s.map((o) => o + "-" + i), t && (s = s.concat(s.map(Pt)))), s;
458170
- }
458171
- function ct(e) {
458172
- return e.replace(/left|right|bottom|top/g, (t) => Zr[t]);
458173
- }
458174
- function ii(e) {
458175
- return V({
458176
- top: 0,
458177
- right: 0,
458178
- bottom: 0,
458179
- left: 0
458180
- }, e);
458181
- }
458182
- function Nn(e) {
458183
- return typeof e != "number" ? ii(e) : {
458184
- top: e,
458185
- right: e,
458186
- bottom: e,
458187
- left: e
458188
- };
458189
- }
458190
- function at(e) {
458191
- const {
458192
- x: t,
458193
- y: n,
458194
- width: r,
458195
- height: i
458196
- } = e;
458197
- return {
458198
- width: r,
458199
- height: i,
458200
- top: n,
458201
- left: t,
458202
- right: t + r,
458203
- bottom: n + i,
458204
- x: t,
458205
- y: n
458206
- };
458207
- }
458208
- const oi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], si = ["mainAxis", "crossAxis", "limiter"];
458209
- function dn(e, t, n) {
458210
- let {
458211
- reference: r,
458212
- floating: i
458213
- } = e;
458214
- const s = Be(t), o = Nt(t), c = Bt(o), a = Re(t), u = s === "y", f = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, d = r[c] / 2 - i[c] / 2;
458215
- let g;
458216
- switch (a) {
458217
- case "top":
458218
- g = {
458219
- x: f,
458220
- y: r.y - i.height
458221
- };
458222
- break;
458223
- case "bottom":
458224
- g = {
458225
- x: f,
458226
- y: r.y + r.height
458227
- };
458228
- break;
458229
- case "right":
458230
- g = {
458231
- x: r.x + r.width,
458232
- y: h
458233
- };
458234
- break;
458235
- case "left":
458236
- g = {
458237
- x: r.x - i.width,
458238
- y: h
458239
- };
458240
- break;
458241
- default:
458242
- g = {
458243
- x: r.x,
458244
- y: r.y
458245
- };
458246
- }
458247
- switch (ft(t)) {
458248
- case "start":
458249
- g[o] -= d * (n && u ? -1 : 1);
458250
- break;
458251
- case "end":
458252
- g[o] += d * (n && u ? -1 : 1);
458253
- break;
458254
- }
458255
- return g;
458256
- }
458257
- const li = async (e, t, n) => {
458258
- const {
458259
- placement: r = "bottom",
458260
- strategy: i = "absolute",
458261
- middleware: s = [],
458262
- platform: o
458263
- } = n, c = s.filter(Boolean), a = await (o.isRTL == null ? void 0 : o.isRTL(t));
458264
- let u = await o.getElementRects({
458265
- reference: e,
458266
- floating: t,
458267
- strategy: i
458268
- }), {
458269
- x: f,
458270
- y: h
458271
- } = dn(u, r, a), d = r, g = {}, v = 0;
458272
- for (let x = 0; x < c.length; x++) {
458273
- const {
458274
- name: S,
458275
- fn: w
458276
- } = c[x], {
458277
- x: _,
458278
- y: R,
458279
- data: y,
458280
- reset: m
458281
- } = await w({
458282
- x: f,
458283
- y: h,
458284
- initialPlacement: r,
458285
- placement: d,
458286
- strategy: i,
458287
- middlewareData: g,
458288
- rects: u,
458289
- platform: o,
458290
- elements: {
458291
- reference: e,
458292
- floating: t
458293
- }
458294
- });
458295
- f = _ ?? f, h = R ?? h, g = V({}, g, {
458296
- [S]: V({}, g[S], y)
458297
- }), m && v <= 50 && (v++, typeof m == "object" && (m.placement && (d = m.placement), m.rects && (u = m.rects === !0 ? await o.getElementRects({
458298
- reference: e,
458299
- floating: t,
458300
- strategy: i
458301
- }) : m.rects), {
458302
- x: f,
458303
- y: h
458304
- } = dn(u, d, a)), x = -1);
458305
- }
458306
- return {
458307
- x: f,
458308
- y: h,
458309
- placement: d,
458310
- strategy: i,
458311
- middlewareData: g
458312
- };
458313
- };
458314
- async function Wn(e, t) {
458315
- var n;
458316
- t === void 0 && (t = {});
458317
- const {
458318
- x: r,
458319
- y: i,
458320
- platform: s,
458321
- rects: o,
458322
- elements: c,
458323
- strategy: a
458324
- } = e, {
458325
- boundary: u = "clippingAncestors",
458326
- rootBoundary: f = "viewport",
458327
- elementContext: h = "floating",
458328
- altBoundary: d = !1,
458329
- padding: g = 0
458330
- } = je(t, e), v = Nn(g), S = c[d ? h === "floating" ? "reference" : "floating" : h], w = at(await s.getClippingRect({
458331
- element: (n = await (s.isElement == null ? void 0 : s.isElement(S))) == null || n ? S : S.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
458332
- boundary: u,
458333
- rootBoundary: f,
458334
- strategy: a
458335
- })), _ = h === "floating" ? {
458336
- x: r,
458337
- y: i,
458338
- width: o.floating.width,
458339
- height: o.floating.height
458340
- } : o.reference, R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), y = await (s.isElement == null ? void 0 : s.isElement(R)) ? await (s.getScale == null ? void 0 : s.getScale(R)) || {
458341
- x: 1,
458342
- y: 1
458343
- } : {
458344
- x: 1,
458345
- y: 1
458346
- }, m = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
458347
- elements: c,
458348
- rect: _,
458349
- offsetParent: R,
458350
- strategy: a
458351
- }) : _);
458352
- return {
458353
- top: (w.top - m.top + v.top) / y.y,
458354
- bottom: (m.bottom - w.bottom + v.bottom) / y.y,
458355
- left: (w.left - m.left + v.left) / y.x,
458356
- right: (m.right - w.right + v.right) / y.x
458357
- };
458358
- }
458359
- const ci = (e) => ({
458360
- name: "arrow",
458361
- options: e,
458362
- async fn(t) {
458363
- const {
458364
- x: n,
458365
- y: r,
458366
- placement: i,
458367
- rects: s,
458368
- platform: o,
458369
- elements: c,
458370
- middlewareData: a
458371
- } = t, {
458372
- element: u,
458373
- padding: f = 0
458374
- } = je(e, t) || {};
458375
- if (u == null)
458376
- return {};
458377
- const h = Nn(f), d = {
458378
- x: n,
458379
- y: r
458380
- }, g = Nt(i), v = Bt(g), x = await o.getDimensions(u), S = g === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", R = S ? "clientHeight" : "clientWidth", y = s.reference[v] + s.reference[g] - d[g] - s.floating[v], m = d[g] - s.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
458381
- let B = T ? T[R] : 0;
458382
- (!B || !await (o.isElement == null ? void 0 : o.isElement(T))) && (B = c.floating[R] || s.floating[v]);
458383
- const ie = y / 2 - m / 2, H = B / 2 - x[v] / 2 - 1, K = De(h[w], H), U = De(h[_], H), W = K, j = B - x[v] - U, L = B / 2 - x[v] / 2 + ie, X = At(W, L, j), Y = !a.arrow && ft(i) != null && L !== X && s.reference[v] / 2 - (L < W ? K : U) - x[v] / 2 < 0, le = Y ? L < W ? L - W : L - j : 0;
458384
- return {
458385
- [g]: d[g] + le,
458386
- data: V({
458387
- [g]: X,
458388
- centerOffset: L - X - le
458389
- }, Y && {
458390
- alignmentOffset: le
458391
- }),
458392
- reset: Y
458393
- };
458394
- }
458395
- }), ai = function(t) {
458396
- return t === void 0 && (t = {}), {
458397
- name: "flip",
458398
- options: t,
458399
- async fn(n) {
458400
- var r, i;
458401
- const {
458402
- placement: s,
458403
- middlewareData: o,
458404
- rects: c,
458405
- initialPlacement: a,
458406
- platform: u,
458407
- elements: f
458408
- } = n, h = je(t, n), {
458409
- mainAxis: d = !0,
458410
- crossAxis: g = !0,
458411
- fallbackPlacements: v,
458412
- fallbackStrategy: x = "bestFit",
458413
- fallbackAxisSideDirection: S = "none",
458414
- flipAlignment: w = !0
458415
- } = h, _ = In(h, oi);
458416
- if ((r = o.arrow) != null && r.alignmentOffset)
458417
- return {};
458418
- const R = Re(s), y = Be(a), m = Re(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), B = v || (m || !w ? [ct(a)] : ti(a)), ie = S !== "none";
458419
- !v && ie && B.push(...ri(a, w, S, T));
458420
- const H = [a, ...B], K = await Wn(n, _), U = [];
458421
- let W = ((i = o.flip) == null ? void 0 : i.overflows) || [];
458422
- if (d && U.push(K[R]), g) {
458423
- const Y = ei(s, c, T);
458424
- U.push(K[Y[0]], K[Y[1]]);
458425
- }
458426
- if (W = [...W, {
458427
- placement: s,
458428
- overflows: U
458429
- }], !U.every((Y) => Y <= 0)) {
458430
- var j, L;
458431
- const Y = (((j = o.flip) == null ? void 0 : j.index) || 0) + 1, le = H[Y];
458432
- if (le)
458433
- return {
458434
- data: {
458435
- index: Y,
458436
- overflows: W
458437
- },
458438
- reset: {
458439
- placement: le
458440
- }
458441
- };
458442
- let he = (L = W.filter((ce) => ce.overflows[0] <= 0).sort((ce, Q) => ce.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : L.placement;
458443
- if (!he)
458444
- switch (x) {
458445
- case "bestFit": {
458446
- var X;
458447
- const ce = (X = W.filter((Q) => {
458448
- if (ie) {
458449
- const ee = Be(Q.placement);
458450
- return ee === y || // Create a bias to the `y` side axis due to horizontal
458451
- // reading directions favoring greater width.
458452
- ee === "y";
458453
- }
458454
- return !0;
458455
- }).map((Q) => [Q.placement, Q.overflows.filter((ee) => ee > 0).reduce((ee, et) => ee + et, 0)]).sort((Q, ee) => Q[1] - ee[1])[0]) == null ? void 0 : X[0];
458456
- ce && (he = ce);
458457
- break;
458458
- }
458459
- case "initialPlacement":
458460
- he = a;
458461
- break;
458462
- }
458463
- if (s !== he)
458464
- return {
458465
- reset: {
458466
- placement: he
458467
- }
458468
- };
458469
- }
458470
- return {};
458471
- }
458472
- };
458473
- }, ui = function(t) {
458474
- return t === void 0 && (t = {}), {
458475
- name: "shift",
458476
- options: t,
458477
- async fn(n) {
458478
- const {
458479
- x: r,
458480
- y: i,
458481
- placement: s
458482
- } = n, o = je(t, n), {
458483
- mainAxis: c = !0,
458484
- crossAxis: a = !1,
458485
- limiter: u = {
458486
- fn: (_) => {
458487
- let {
458488
- x: R,
458489
- y
458490
- } = _;
458491
- return {
458492
- x: R,
458493
- y
458494
- };
458495
- }
458496
- }
458497
- } = o, f = In(o, si), h = {
458498
- x: r,
458499
- y: i
458500
- }, d = await Wn(n, f), g = Be(Re(s)), v = jt(g);
458501
- let x = h[v], S = h[g];
458502
- if (c) {
458503
- const _ = v === "y" ? "top" : "left", R = v === "y" ? "bottom" : "right", y = x + d[_], m = x - d[R];
458504
- x = At(y, x, m);
458505
- }
458506
- if (a) {
458507
- const _ = g === "y" ? "top" : "left", R = g === "y" ? "bottom" : "right", y = S + d[_], m = S - d[R];
458508
- S = At(y, S, m);
458509
- }
458510
- const w = u.fn(V({}, n, {
458511
- [v]: x,
458512
- [g]: S
458513
- }));
458514
- return V({}, w, {
458515
- data: {
458516
- x: w.x - r,
458517
- y: w.y - i
458518
- }
458519
- });
458520
- }
458521
- };
458522
- }, fi = function(t) {
458523
- return t === void 0 && (t = {}), {
458524
- options: t,
458525
- fn(n) {
458526
- const {
458527
- x: r,
458528
- y: i,
458529
- placement: s,
458530
- rects: o,
458531
- middlewareData: c
458532
- } = n, {
458533
- offset: a = 0,
458534
- mainAxis: u = !0,
458535
- crossAxis: f = !0
458536
- } = je(t, n), h = {
458537
- x: r,
458538
- y: i
458539
- }, d = Be(s), g = jt(d);
458540
- let v = h[g], x = h[d];
458541
- const S = je(a, n), w = typeof S == "number" ? {
458542
- mainAxis: S,
458543
- crossAxis: 0
458544
- } : V({
458545
- mainAxis: 0,
458546
- crossAxis: 0
458547
- }, S);
458548
- if (u) {
458549
- const y = g === "y" ? "height" : "width", m = o.reference[g] - o.floating[y] + w.mainAxis, T = o.reference[g] + o.reference[y] - w.mainAxis;
458550
- v < m ? v = m : v > T && (v = T);
458551
- }
458552
- if (f) {
458553
- var _, R;
458554
- const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(Re(s)), T = o.reference[d] - o.floating[y] + (m && ((_ = c.offset) == null ? void 0 : _[d]) || 0) + (m ? 0 : w.crossAxis), B = o.reference[d] + o.reference[y] + (m ? 0 : ((R = c.offset) == null ? void 0 : R[d]) || 0) - (m ? w.crossAxis : 0);
458555
- x < T ? x = T : x > B && (x = B);
458556
- }
458557
- return {
458558
- [g]: v,
458559
- [d]: x
458560
- };
458561
- }
458562
- };
458563
- };
458564
- function Ve(e) {
458565
- return $n(e) ? (e.nodeName || "").toLowerCase() : "#document";
458566
- }
458567
- function q(e) {
458568
- var t;
458569
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
458570
- }
458571
- function ae(e) {
458572
- var t;
458573
- return (t = ($n(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
458574
- }
458575
- function $n(e) {
458576
- return e instanceof Node || e instanceof q(e).Node;
458577
- }
458578
- function te(e) {
458579
- return e instanceof Element || e instanceof q(e).Element;
458580
- }
458581
- function oe(e) {
458582
- return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
458583
- }
458584
- function hn(e) {
458585
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
458586
- }
458587
- function Ze(e) {
458588
- const {
458589
- overflow: t,
458590
- overflowX: n,
458591
- overflowY: r,
458592
- display: i
458593
- } = ne(e);
458594
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
458595
- }
458596
- function di(e) {
458597
- return ["table", "td", "th"].includes(Ve(e));
458598
- }
458599
- function dt(e) {
458600
- return [":popover-open", ":modal"].some((t) => {
458601
- try {
458602
- return e.matches(t);
458603
- } catch {
458604
- return !1;
458605
- }
458606
- });
458607
- }
458608
- function Wt(e) {
458609
- const t = $t(), n = te(e) ? ne(e) : e;
458610
- return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
458611
- }
458612
- function hi(e) {
458613
- let t = me(e);
458614
- for (; oe(t) && !Ne(t); ) {
458615
- if (Wt(t))
458616
- return t;
458617
- if (dt(t))
458618
- return null;
458619
- t = me(t);
458620
- }
458621
- return null;
458622
- }
458623
- function $t() {
458624
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
458625
- }
458626
- function Ne(e) {
458627
- return ["html", "body", "#document"].includes(Ve(e));
458628
- }
458629
- function ne(e) {
458630
- return q(e).getComputedStyle(e);
458631
- }
458632
- function ht(e) {
458633
- return te(e) ? {
458634
- scrollLeft: e.scrollLeft,
458635
- scrollTop: e.scrollTop
458636
- } : {
458637
- scrollLeft: e.scrollX,
458638
- scrollTop: e.scrollY
458639
- };
458640
- }
458641
- function me(e) {
458642
- if (Ve(e) === "html")
458643
- return e;
458644
- const t = (
458645
- // Step into the shadow DOM of the parent of a slotted node.
458646
- e.assignedSlot || // DOM Element detected.
458647
- e.parentNode || // ShadowRoot detected.
458648
- hn(e) && e.host || // Fallback.
458649
- ae(e)
458650
- );
458651
- return hn(t) ? t.host : t;
458652
- }
458653
- function Vn(e) {
458654
- const t = me(e);
458655
- return Ne(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Ze(t) ? t : Vn(t);
458656
- }
458657
- function Ke(e, t, n) {
458658
- var r;
458659
- t === void 0 && (t = []), n === void 0 && (n = !0);
458660
- const i = Vn(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = q(i);
458661
- return s ? t.concat(o, o.visualViewport || [], Ze(i) ? i : [], o.frameElement && n ? Ke(o.frameElement) : []) : t.concat(i, Ke(i, [], n));
458662
- }
458663
- function Hn(e) {
458664
- const t = ne(e);
458665
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
458666
- const i = oe(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, c = lt(n) !== s || lt(r) !== o;
458667
- return c && (n = s, r = o), {
458668
- width: n,
458669
- height: r,
458670
- $: c
458671
- };
458672
- }
458673
- function Vt(e) {
458674
- return te(e) ? e : e.contextElement;
458675
- }
458676
- function Fe(e) {
458677
- const t = Vt(e);
458678
- if (!oe(t))
458679
- return ge(1);
458680
- const n = t.getBoundingClientRect(), {
458681
- width: r,
458682
- height: i,
458683
- $: s
458684
- } = Hn(t);
458685
- let o = (s ? lt(n.width) : n.width) / r, c = (s ? lt(n.height) : n.height) / i;
458686
- return (!o || !Number.isFinite(o)) && (o = 1), (!c || !Number.isFinite(c)) && (c = 1), {
458687
- x: o,
458688
- y: c
458689
- };
458690
- }
458691
- const pi = /* @__PURE__ */ ge(0);
458692
- function Un(e) {
458693
- const t = q(e);
458694
- return !$t() || !t.visualViewport ? pi : {
458695
- x: t.visualViewport.offsetLeft,
458696
- y: t.visualViewport.offsetTop
458697
- };
458698
- }
458699
- function gi(e, t, n) {
458700
- return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
458701
- }
458702
- function Te(e, t, n, r) {
458703
- t === void 0 && (t = !1), n === void 0 && (n = !1);
458704
- const i = e.getBoundingClientRect(), s = Vt(e);
458705
- let o = ge(1);
458706
- t && (r ? te(r) && (o = Fe(r)) : o = Fe(e));
458707
- const c = gi(s, n, r) ? Un(s) : ge(0);
458708
- let a = (i.left + c.x) / o.x, u = (i.top + c.y) / o.y, f = i.width / o.x, h = i.height / o.y;
458709
- if (s) {
458710
- const d = q(s), g = r && te(r) ? q(r) : r;
458711
- let v = d, x = v.frameElement;
458712
- for (; x && r && g !== v; ) {
458713
- const S = Fe(x), w = x.getBoundingClientRect(), _ = ne(x), R = w.left + (x.clientLeft + parseFloat(_.paddingLeft)) * S.x, y = w.top + (x.clientTop + parseFloat(_.paddingTop)) * S.y;
458714
- a *= S.x, u *= S.y, f *= S.x, h *= S.y, a += R, u += y, v = q(x), x = v.frameElement;
458715
- }
458716
- }
458717
- return at({
458718
- width: f,
458719
- height: h,
458720
- x: a,
458721
- y: u
458722
- });
458723
- }
458724
- function mi(e) {
458725
- let {
458726
- elements: t,
458727
- rect: n,
458728
- offsetParent: r,
458729
- strategy: i
458730
- } = e;
458731
- const s = i === "fixed", o = ae(r), c = t ? dt(t.floating) : !1;
458732
- if (r === o || c && s)
458733
- return n;
458734
- let a = {
458735
- scrollLeft: 0,
458736
- scrollTop: 0
458737
- }, u = ge(1);
458738
- const f = ge(0), h = oe(r);
458739
- if ((h || !h && !s) && ((Ve(r) !== "body" || Ze(o)) && (a = ht(r)), oe(r))) {
458740
- const d = Te(r);
458741
- u = Fe(r), f.x = d.x + r.clientLeft, f.y = d.y + r.clientTop;
458742
- }
458743
- return {
458744
- width: n.width * u.x,
458745
- height: n.height * u.y,
458746
- x: n.x * u.x - a.scrollLeft * u.x + f.x,
458747
- y: n.y * u.y - a.scrollTop * u.y + f.y
458748
- };
458749
- }
458750
- function bi(e) {
458751
- return Array.from(e.getClientRects());
458752
- }
458753
- function Yn(e) {
458754
- return Te(ae(e)).left + ht(e).scrollLeft;
458755
- }
458756
- function vi(e) {
458757
- const t = ae(e), n = ht(e), r = e.ownerDocument.body, i = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
458758
- let o = -n.scrollLeft + Yn(e);
458759
- const c = -n.scrollTop;
458760
- return ne(r).direction === "rtl" && (o += Ee(t.clientWidth, r.clientWidth) - i), {
458761
- width: i,
458762
- height: s,
458763
- x: o,
458764
- y: c
458765
- };
458766
- }
458767
- function yi(e, t) {
458768
- const n = q(e), r = ae(e), i = n.visualViewport;
458769
- let s = r.clientWidth, o = r.clientHeight, c = 0, a = 0;
458770
- if (i) {
458771
- s = i.width, o = i.height;
458772
- const u = $t();
458773
- (!u || u && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
458774
- }
458775
- return {
458776
- width: s,
458777
- height: o,
458778
- x: c,
458779
- y: a
458780
- };
458781
- }
458782
- function _i(e, t) {
458783
- const n = Te(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, s = oe(e) ? Fe(e) : ge(1), o = e.clientWidth * s.x, c = e.clientHeight * s.y, a = i * s.x, u = r * s.y;
458784
- return {
458785
- width: o,
458786
- height: c,
458787
- x: a,
458788
- y: u
458789
- };
458790
- }
458791
- function pn(e, t, n) {
458792
- let r;
458793
- if (t === "viewport")
458794
- r = yi(e, n);
458795
- else if (t === "document")
458796
- r = vi(ae(e));
458797
- else if (te(t))
458798
- r = _i(t, n);
458799
- else {
458800
- const i = Un(e);
458801
- r = V({}, t, {
458802
- x: t.x - i.x,
458803
- y: t.y - i.y
458804
- });
458805
- }
458806
- return at(r);
458807
- }
458808
- function zn(e, t) {
458809
- const n = me(e);
458810
- return n === t || !te(n) || Ne(n) ? !1 : ne(n).position === "fixed" || zn(n, t);
458811
- }
458812
- function wi(e, t) {
458813
- const n = t.get(e);
458814
- if (n)
458815
- return n;
458816
- let r = Ke(e, [], !1).filter((c) => te(c) && Ve(c) !== "body"), i = null;
458817
- const s = ne(e).position === "fixed";
458818
- let o = s ? me(e) : e;
458819
- for (; te(o) && !Ne(o); ) {
458820
- const c = ne(o), a = Wt(o);
458821
- !a && c.position === "fixed" && (i = null), (s ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ze(o) && !a && zn(e, o)) ? r = r.filter((f) => f !== o) : i = c, o = me(o);
458822
- }
458823
- return t.set(e, r), r;
458824
- }
458825
- function xi(e) {
458826
- let {
458827
- element: t,
458828
- boundary: n,
458829
- rootBoundary: r,
458830
- strategy: i
458831
- } = e;
458832
- const o = [...n === "clippingAncestors" ? dt(t) ? [] : wi(t, this._c) : [].concat(n), r], c = o[0], a = o.reduce((u, f) => {
458833
- const h = pn(t, f, i);
458834
- return u.top = Ee(h.top, u.top), u.right = De(h.right, u.right), u.bottom = De(h.bottom, u.bottom), u.left = Ee(h.left, u.left), u;
458835
- }, pn(t, c, i));
458836
- return {
458837
- width: a.right - a.left,
458838
- height: a.bottom - a.top,
458839
- x: a.left,
458840
- y: a.top
458841
- };
458842
- }
458843
- function Ei(e) {
458844
- const {
458845
- width: t,
458846
- height: n
458847
- } = Hn(e);
458848
- return {
458849
- width: t,
458850
- height: n
458851
- };
458852
- }
458853
- function Si(e, t, n) {
458854
- const r = oe(t), i = ae(t), s = n === "fixed", o = Te(e, !0, s, t);
458855
- let c = {
458856
- scrollLeft: 0,
458857
- scrollTop: 0
458858
- };
458859
- const a = ge(0);
458860
- if (r || !r && !s)
458861
- if ((Ve(t) !== "body" || Ze(i)) && (c = ht(t)), r) {
458862
- const h = Te(t, !0, s, t);
458863
- a.x = h.x + t.clientLeft, a.y = h.y + t.clientTop;
458864
- } else i && (a.x = Yn(i));
458865
- const u = o.left + c.scrollLeft - a.x, f = o.top + c.scrollTop - a.y;
458866
- return {
458867
- x: u,
458868
- y: f,
458869
- width: o.width,
458870
- height: o.height
458871
- };
458872
- }
458873
- function Rt(e) {
458874
- return ne(e).position === "static";
458875
- }
458876
- function gn(e, t) {
458877
- return !oe(e) || ne(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
458878
- }
458879
- function qn(e, t) {
458880
- const n = q(e);
458881
- if (dt(e))
458882
- return n;
458883
- if (!oe(e)) {
458884
- let i = me(e);
458885
- for (; i && !Ne(i); ) {
458886
- if (te(i) && !Rt(i))
458887
- return i;
458888
- i = me(i);
458889
- }
458890
- return n;
458891
- }
458892
- let r = gn(e, t);
458893
- for (; r && di(r) && Rt(r); )
458894
- r = gn(r, t);
458895
- return r && Ne(r) && Rt(r) && !Wt(r) ? n : r || hi(e) || n;
458896
- }
458897
- const Oi = async function(t) {
458898
- const n = this.getOffsetParent || qn, r = this.getDimensions, i = await r(t.floating);
458899
- return {
458900
- reference: Si(t.reference, await n(t.floating), t.strategy),
458901
- floating: {
458902
- x: 0,
458903
- y: 0,
458904
- width: i.width,
458905
- height: i.height
458906
- }
458907
- };
458908
- };
458909
- function Ri(e) {
458910
- return ne(e).direction === "rtl";
458911
- }
458912
- const Ti = {
458913
- convertOffsetParentRelativeRectToViewportRelativeRect: mi,
458914
- getDocumentElement: ae,
458915
- getClippingRect: xi,
458916
- getOffsetParent: qn,
458917
- getElementRects: Oi,
458918
- getClientRects: bi,
458919
- getDimensions: Ei,
458920
- getScale: Fe,
458921
- isElement: te,
458922
- isRTL: Ri
458923
- };
458924
- function Ci(e, t) {
458925
- let n = null, r;
458926
- const i = ae(e);
458927
- function s() {
458928
- var c;
458929
- clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
458930
- }
458931
- function o(c, a) {
458932
- c === void 0 && (c = !1), a === void 0 && (a = 1), s();
458933
- const {
458934
- left: u,
458935
- top: f,
458936
- width: h,
458937
- height: d
458938
- } = e.getBoundingClientRect();
458939
- if (c || t(), !h || !d)
458940
- return;
458941
- const g = ot(f), v = ot(i.clientWidth - (u + h)), x = ot(i.clientHeight - (f + d)), S = ot(u), _ = {
458942
- rootMargin: -g + "px " + -v + "px " + -x + "px " + -S + "px",
458943
- threshold: Ee(0, De(1, a)) || 1
458944
- };
458945
- let R = !0;
458946
- function y(m) {
458947
- const T = m[0].intersectionRatio;
458948
- if (T !== a) {
458949
- if (!R)
458950
- return o();
458951
- T ? o(!1, T) : r = setTimeout(() => {
458952
- o(!1, 1e-7);
458953
- }, 1e3);
458954
- }
458955
- R = !1;
458956
- }
458957
- try {
458958
- n = new IntersectionObserver(y, V({}, _, {
458959
- // Handle <iframe>s
458960
- root: i.ownerDocument
458961
- }));
458962
- } catch {
458963
- n = new IntersectionObserver(y, _);
458964
- }
458965
- n.observe(e);
458966
- }
458967
- return o(!0), s;
458968
- }
458969
- function Ai(e, t, n, r) {
458970
- r === void 0 && (r = {});
458971
- const {
458972
- ancestorScroll: i = !0,
458973
- ancestorResize: s = !0,
458974
- elementResize: o = typeof ResizeObserver == "function",
458975
- layoutShift: c = typeof IntersectionObserver == "function",
458976
- animationFrame: a = !1
458977
- } = r, u = Vt(e), f = i || s ? [...u ? Ke(u) : [], ...Ke(t)] : [];
458978
- f.forEach((w) => {
458979
- i && w.addEventListener("scroll", n, {
458980
- passive: !0
458981
- }), s && w.addEventListener("resize", n);
458982
- });
458983
- const h = u && c ? Ci(u, n) : null;
458984
- let d = -1, g = null;
458985
- o && (g = new ResizeObserver((w) => {
458986
- let [_] = w;
458987
- _ && _.target === u && g && (g.unobserve(t), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
458988
- var R;
458989
- (R = g) == null || R.observe(t);
458990
- })), n();
458991
- }), u && !a && g.observe(u), g.observe(t));
458992
- let v, x = a ? Te(e) : null;
458993
- a && S();
458994
- function S() {
458995
- const w = Te(e);
458996
- x && (w.x !== x.x || w.y !== x.y || w.width !== x.width || w.height !== x.height) && n(), x = w, v = requestAnimationFrame(S);
458997
- }
458998
- return n(), () => {
458999
- var w;
459000
- f.forEach((_) => {
459001
- i && _.removeEventListener("scroll", n), s && _.removeEventListener("resize", n);
459002
- }), h == null || h(), (w = g) == null || w.disconnect(), g = null, a && cancelAnimationFrame(v);
459003
- };
459004
- }
459005
- const Pi = ui, ki = ai, Ii = ci, Mi = fi, Fi = (e, t, n) => {
459006
- const r = /* @__PURE__ */ new Map(), i = V({
459007
- platform: Ti
459008
- }, n), s = V({}, i.platform, {
459009
- _c: r
459010
- });
459011
- return li(e, t, V({}, i, {
459012
- platform: s
459013
- }));
459014
- };
459015
- function Li(e) {
459016
- e.cleanup && e.cleanup();
459017
- const t = e._getResolvedAttachToOptions();
459018
- let n = t.element;
459019
- const r = $i(t, e), i = jn(t);
459020
- return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Ai(n, e.el, () => {
459021
- if (!e.el) {
459022
- e.cleanup == null || e.cleanup();
459023
- return;
459024
- }
459025
- Bi(n, e, r, i);
459026
- }), e.target = t.element, r;
459027
- }
459028
- function Di(e, t) {
459029
- return {
459030
- floatingUIOptions: Lt(e.floatingUIOptions || {}, t.floatingUIOptions || {})
459031
- };
459032
- }
459033
- function ji(e) {
459034
- e.cleanup && e.cleanup(), e.cleanup = null;
459035
- }
459036
- function Bi(e, t, n, r) {
459037
- return Fi(e, t.el, n).then(Ni(t, r)).then((i) => new Promise((s) => {
459038
- setTimeout(() => s(i), 300);
459039
- })).then((i) => {
459040
- i != null && i.el && i.el.focus({
459041
- preventScroll: !0
459042
- });
459043
- });
459044
- }
459045
- function Ni(e, t) {
459046
- return ({
459047
- x: n,
459048
- y: r,
459049
- placement: i,
459050
- middlewareData: s
459051
- }) => (e.el && (t ? Object.assign(e.el.style, {
459052
- position: "fixed",
459053
- left: "50%",
459054
- top: "50%",
459055
- transform: "translate(-50%, -50%)"
459056
- }) : Object.assign(e.el.style, {
459057
- position: "absolute",
459058
- left: `${n}px`,
459059
- top: `${r}px`
459060
- }), e.el.dataset.popperPlacement = i, Wi(e.el, s)), e);
459061
- }
459062
- function Wi(e, t) {
459063
- const n = e.querySelector(".shepherd-arrow");
459064
- if (Ge(n) && t.arrow) {
459065
- const {
459066
- x: r,
459067
- y: i
459068
- } = t.arrow;
459069
- Object.assign(n.style, {
459070
- left: r != null ? `${r}px` : "",
459071
- top: i != null ? `${i}px` : ""
459072
- });
459073
- }
459074
- }
459075
- function $i(e, t) {
459076
- const n = {
459077
- strategy: "absolute"
459078
- };
459079
- n.middleware = [];
459080
- const r = Vi(t);
459081
- if (!jn(e)) {
459082
- if (n.middleware.push(
459083
- ki(),
459084
- // Replicate PopperJS default behavior.
459085
- Pi({
459086
- limiter: Mi(),
459087
- crossAxis: !0
459088
- })
459089
- ), r) {
459090
- var s, o;
459091
- const c = (e == null || (s = e.on) == null ? void 0 : s.includes("-start")) || (e == null || (o = e.on) == null ? void 0 : o.includes("-end"));
459092
- n.middleware.push(Ii({
459093
- element: r,
459094
- padding: c ? 4 : 0
459095
- }));
459096
- }
459097
- n.placement = e.on;
459098
- }
459099
- return Lt(t.options.floatingUIOptions || {}, n);
459100
- }
459101
- function Vi(e) {
459102
- return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
459103
- }
459104
- function J() {
459105
- }
459106
- function Hi(e, t) {
459107
- for (const n in t) e[n] = t[n];
459108
- return (
459109
- /** @type {T & S} */
459110
- e
459111
- );
459112
- }
459113
- function Jn(e) {
459114
- return e();
459115
- }
459116
- function mn() {
459117
- return /* @__PURE__ */ Object.create(null);
459118
- }
459119
- function Qe(e) {
459120
- e.forEach(Jn);
459121
- }
459122
- function Ht(e) {
459123
- return typeof e == "function";
459124
- }
459125
- function ue(e, t) {
459126
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
459127
- }
459128
- function Ui(e) {
459129
- return Object.keys(e).length === 0;
459130
- }
459131
- function We(e, t) {
459132
- e.appendChild(t);
459133
- }
459134
- function re(e, t, n) {
459135
- e.insertBefore(t, n || null);
459136
- }
459137
- function Z(e) {
459138
- e.parentNode && e.parentNode.removeChild(e);
459139
- }
459140
- function Yi(e, t) {
459141
- for (let n = 0; n < e.length; n += 1)
459142
- e[n] && e[n].d(t);
459143
- }
459144
- function se(e) {
459145
- return document.createElement(e);
459146
- }
459147
- function bn(e) {
459148
- return document.createElementNS("http://www.w3.org/2000/svg", e);
459149
- }
459150
- function Kn(e) {
459151
- return document.createTextNode(e);
459152
- }
459153
- function ut() {
459154
- return Kn(" ");
459155
- }
459156
- function zi() {
459157
- return Kn("");
459158
- }
459159
- function pt(e, t, n, r) {
459160
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
459161
- }
459162
- function I(e, t, n) {
459163
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
459164
- }
459165
- const qi = ["width", "height"];
459166
- function vn(e, t) {
459167
- const n = Object.getOwnPropertyDescriptors(e.__proto__);
459168
- for (const r in t)
459169
- t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && qi.indexOf(r) === -1 ? e[r] = t[r] : I(e, r, t[r]);
459170
- }
459171
- function Ji(e) {
459172
- return Array.from(e.childNodes);
459173
- }
459174
- function ke(e, t, n) {
459175
- e.classList.toggle(t, !!n);
459176
- }
459177
- let Xe;
459178
- function qe(e) {
459179
- Xe = e;
459180
- }
459181
- function Xn() {
459182
- if (!Xe) throw new Error("Function called outside component initialization");
459183
- return Xe;
459184
- }
459185
- function Ki(e) {
459186
- Xn().$$.on_mount.push(e);
459187
- }
459188
- function Ut(e) {
459189
- Xn().$$.after_update.push(e);
459190
- }
459191
- const Me = [], $e = [];
459192
- let Le = [];
459193
- const yn = [], Xi = /* @__PURE__ */ Promise.resolve();
459194
- let kt = !1;
459195
- function Gi() {
459196
- kt || (kt = !0, Xi.then(Gn));
459197
- }
459198
- function It(e) {
459199
- Le.push(e);
459200
- }
459201
- const Tt = /* @__PURE__ */ new Set();
459202
- let Ie = 0;
459203
- function Gn() {
459204
- if (Ie !== 0)
459205
- return;
459206
- const e = Xe;
459207
- do {
459208
- try {
459209
- for (; Ie < Me.length; ) {
459210
- const t = Me[Ie];
459211
- Ie++, qe(t), Zi(t.$$);
459212
- }
459213
- } catch (t) {
459214
- throw Me.length = 0, Ie = 0, t;
459215
- }
459216
- for (qe(null), Me.length = 0, Ie = 0; $e.length; ) $e.pop()();
459217
- for (let t = 0; t < Le.length; t += 1) {
459218
- const n = Le[t];
459219
- Tt.has(n) || (Tt.add(n), n());
459220
- }
459221
- Le.length = 0;
459222
- } while (Me.length);
459223
- for (; yn.length; )
459224
- yn.pop()();
459225
- kt = !1, Tt.clear(), qe(e);
459226
- }
459227
- function Zi(e) {
459228
- if (e.fragment !== null) {
459229
- e.update(), Qe(e.before_update);
459230
- const t = e.dirty;
459231
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(It);
459232
- }
459233
- }
459234
- function Qi(e) {
459235
- const t = [], n = [];
459236
- Le.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Le = t;
459237
- }
459238
- const st = /* @__PURE__ */ new Set();
459239
- let we;
459240
- function Se() {
459241
- we = {
459242
- r: 0,
459243
- c: [],
459244
- p: we
459245
- // parent group
459246
- };
459247
- }
459248
- function Oe() {
459249
- we.r || Qe(we.c), we = we.p;
459250
- }
459251
- function P(e, t) {
459252
- e && e.i && (st.delete(e), e.i(t));
459253
- }
459254
- function F(e, t, n, r) {
459255
- if (e && e.o) {
459256
- if (st.has(e)) return;
459257
- st.add(e), we.c.push(() => {
459258
- st.delete(e), r && (n && e.d(1), r());
459259
- }), e.o(t);
459260
- } else r && r();
459261
- }
459262
- function _n(e) {
459263
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
459264
- }
459265
- function eo(e, t) {
459266
- const n = {}, r = {}, i = {
459267
- $$scope: 1
459268
- };
459269
- let s = e.length;
459270
- for (; s--; ) {
459271
- const o = e[s], c = t[s];
459272
- if (c) {
459273
- for (const a in o)
459274
- a in c || (r[a] = 1);
459275
- for (const a in c)
459276
- i[a] || (n[a] = c[a], i[a] = 1);
459277
- e[s] = c;
459278
- } else
459279
- for (const a in o)
459280
- i[a] = 1;
459281
- }
459282
- for (const o in r)
459283
- o in n || (n[o] = void 0);
459284
- return n;
459285
- }
459286
- function Ce(e) {
459287
- e && e.c();
459288
- }
459289
- function ve(e, t, n) {
459290
- const {
459291
- fragment: r,
459292
- after_update: i
459293
- } = e.$$;
459294
- r && r.m(t, n), It(() => {
459295
- const s = e.$$.on_mount.map(Jn).filter(Ht);
459296
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Qe(s), e.$$.on_mount = [];
459297
- }), i.forEach(It);
459298
- }
459299
- function ye(e, t) {
459300
- const n = e.$$;
459301
- n.fragment !== null && (Qi(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
459302
- }
459303
- function to(e, t) {
459304
- e.$$.dirty[0] === -1 && (Me.push(e), Gi(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
459305
- }
459306
- function fe(e, t, n, r, i, s, o = null, c = [-1]) {
459307
- const a = Xe;
459308
- qe(e);
459309
- const u = e.$$ = {
459310
- fragment: null,
459311
- ctx: [],
459312
- // state
459313
- props: s,
459314
- update: J,
459315
- not_equal: i,
459316
- bound: mn(),
459317
- // lifecycle
459318
- on_mount: [],
459319
- on_destroy: [],
459320
- on_disconnect: [],
459321
- before_update: [],
459322
- after_update: [],
459323
- context: new Map(t.context || (a ? a.$$.context : [])),
459324
- // everything else
459325
- callbacks: mn(),
459326
- dirty: c,
459327
- skip_bound: !1,
459328
- root: t.target || a.$$.root
459329
- };
459330
- o && o(u.root);
459331
- let f = !1;
459332
- if (u.ctx = n ? n(e, t.props || {}, (h, d, ...g) => {
459333
- const v = g.length ? g[0] : d;
459334
- return u.ctx && i(u.ctx[h], u.ctx[h] = v) && (!u.skip_bound && u.bound[h] && u.bound[h](v), f && to(e, h)), d;
459335
- }) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
459336
- if (t.hydrate) {
459337
- const h = Ji(t.target);
459338
- u.fragment && u.fragment.l(h), h.forEach(Z);
459339
- } else
459340
- u.fragment && u.fragment.c();
459341
- t.intro && P(e.$$.fragment), ve(e, t.target, t.anchor), Gn();
459342
- }
459343
- qe(a);
459344
- }
459345
- class de {
459346
- constructor() {
459347
- this.$$ = void 0, this.$$set = void 0;
459348
- }
459349
- /** @returns {void} */
459350
- $destroy() {
459351
- ye(this, 1), this.$destroy = J;
459352
- }
459353
- /**
459354
- * @template {Extract<keyof Events, string>} K
459355
- * @param {K} type
459356
- * @param {((e: Events[K]) => void) | null | undefined} callback
459357
- * @returns {() => void}
459358
- */
459359
- $on(t, n) {
459360
- if (!Ht(n))
459361
- return J;
459362
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
459363
- return r.push(n), () => {
459364
- const i = r.indexOf(n);
459365
- i !== -1 && r.splice(i, 1);
459366
- };
459367
- }
459368
- /**
459369
- * @param {Partial<Props>} props
459370
- * @returns {void}
459371
- */
459372
- $set(t) {
459373
- this.$$set && !Ui(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
459374
- }
459375
- }
459376
- const no = "4";
459377
- typeof window < "u" && (window.__svelte || (window.__svelte = {
459378
- v: /* @__PURE__ */ new Set()
459379
- })).v.add(no);
459380
- function ro(e) {
459381
- let t, n, r, i, s;
459382
- return {
459383
- c() {
459384
- t = se("button"), I(t, "aria-label", n = /*label*/
459385
- e[3] ? (
459386
- /*label*/
459387
- e[3]
459388
- ) : null), I(t, "class", r = `${/*classes*/
459389
- e[1] || ""} shepherd-button ${/*secondary*/
459390
- e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
459391
- e[2], I(t, "tabindex", "0"), I(t, "type", "button");
459392
- },
459393
- m(o, c) {
459394
- re(o, t, c), t.innerHTML = /*text*/
459395
- e[5], i || (s = pt(t, "click", function() {
459396
- Ht(
459397
- /*action*/
459398
- e[0]
459399
- ) && e[0].apply(this, arguments);
459400
- }), i = !0);
459401
- },
459402
- p(o, [c]) {
459403
- e = o, c & /*text*/
459404
- 32 && (t.innerHTML = /*text*/
459405
- e[5]), c & /*label*/
459406
- 8 && n !== (n = /*label*/
459407
- e[3] ? (
459408
- /*label*/
459409
- e[3]
459410
- ) : null) && I(t, "aria-label", n), c & /*classes, secondary*/
459411
- 18 && r !== (r = `${/*classes*/
459412
- e[1] || ""} shepherd-button ${/*secondary*/
459413
- e[4] ? "shepherd-button-secondary" : ""}`) && I(t, "class", r), c & /*disabled*/
459414
- 4 && (t.disabled = /*disabled*/
459415
- e[2]);
459416
- },
459417
- i: J,
459418
- o: J,
459419
- d(o) {
459420
- o && Z(t), i = !1, s();
459421
- }
459422
- };
459423
- }
459424
- function io(e, t, n) {
459425
- let {
459426
- config: r,
459427
- step: i
459428
- } = t, s, o, c, a, u, f;
459429
- function h(d) {
459430
- return pe(d) ? d = d.call(i) : d;
459431
- }
459432
- return e.$$set = (d) => {
459433
- "config" in d && n(6, r = d.config), "step" in d && n(7, i = d.step);
459434
- }, e.$$.update = () => {
459435
- e.$$.dirty & /*config, step*/
459436
- 192 && (n(0, s = r.action ? r.action.bind(i.tour) : null), n(1, o = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, f = r.text ? h(r.text) : null));
459437
- }, [s, o, c, a, u, f, r, i];
459438
- }
459439
- class oo extends de {
459440
- constructor(t) {
459441
- super(), fe(this, t, io, ro, ue, {
459442
- config: 6,
459443
- step: 7
459444
- });
459445
- }
459446
- }
459447
- function wn(e, t, n) {
459448
- const r = e.slice();
459449
- return r[2] = t[n], r;
459450
- }
459451
- function xn(e) {
459452
- let t, n, r = _n(
459453
- /*buttons*/
459454
- e[1]
459455
- ), i = [];
459456
- for (let o = 0; o < r.length; o += 1)
459457
- i[o] = En(wn(e, r, o));
459458
- const s = (o) => F(i[o], 1, 1, () => {
459459
- i[o] = null;
459460
- });
459461
- return {
459462
- c() {
459463
- for (let o = 0; o < i.length; o += 1)
459464
- i[o].c();
459465
- t = zi();
459466
- },
459467
- m(o, c) {
459468
- for (let a = 0; a < i.length; a += 1)
459469
- i[a] && i[a].m(o, c);
459470
- re(o, t, c), n = !0;
459471
- },
459472
- p(o, c) {
459473
- if (c & /*buttons, step*/
459474
- 3) {
459475
- r = _n(
459476
- /*buttons*/
459477
- o[1]
459478
- );
459479
- let a;
459480
- for (a = 0; a < r.length; a += 1) {
459481
- const u = wn(o, r, a);
459482
- i[a] ? (i[a].p(u, c), P(i[a], 1)) : (i[a] = En(u), i[a].c(), P(i[a], 1), i[a].m(t.parentNode, t));
459483
- }
459484
- for (Se(), a = r.length; a < i.length; a += 1)
459485
- s(a);
459486
- Oe();
459487
- }
459488
- },
459489
- i(o) {
459490
- if (!n) {
459491
- for (let c = 0; c < r.length; c += 1)
459492
- P(i[c]);
459493
- n = !0;
459494
- }
459495
- },
459496
- o(o) {
459497
- i = i.filter(Boolean);
459498
- for (let c = 0; c < i.length; c += 1)
459499
- F(i[c]);
459500
- n = !1;
459501
- },
459502
- d(o) {
459503
- o && Z(t), Yi(i, o);
459504
- }
459505
- };
459506
- }
459507
- function En(e) {
459508
- let t, n;
459509
- return t = new oo({
459510
- props: {
459511
- config: (
459512
- /*config*/
459513
- e[2]
459514
- ),
459515
- step: (
459516
- /*step*/
459517
- e[0]
459518
- )
459519
- }
459520
- }), {
459521
- c() {
459522
- Ce(t.$$.fragment);
459523
- },
459524
- m(r, i) {
459525
- ve(t, r, i), n = !0;
459526
- },
459527
- p(r, i) {
459528
- const s = {};
459529
- i & /*buttons*/
459530
- 2 && (s.config = /*config*/
459531
- r[2]), i & /*step*/
459532
- 1 && (s.step = /*step*/
459533
- r[0]), t.$set(s);
459534
- },
459535
- i(r) {
459536
- n || (P(t.$$.fragment, r), n = !0);
459537
- },
459538
- o(r) {
459539
- F(t.$$.fragment, r), n = !1;
459540
- },
459541
- d(r) {
459542
- ye(t, r);
459543
- }
459544
- };
459545
- }
459546
- function so(e) {
459547
- let t, n, r = (
459548
- /*buttons*/
459549
- e[1] && xn(e)
459550
- );
459551
- return {
459552
- c() {
459553
- t = se("footer"), r && r.c(), I(t, "class", "shepherd-footer");
459554
- },
459555
- m(i, s) {
459556
- re(i, t, s), r && r.m(t, null), n = !0;
459557
- },
459558
- p(i, [s]) {
459559
- /*buttons*/
459560
- i[1] ? r ? (r.p(i, s), s & /*buttons*/
459561
- 2 && P(r, 1)) : (r = xn(i), r.c(), P(r, 1), r.m(t, null)) : r && (Se(), F(r, 1, 1, () => {
459562
- r = null;
459563
- }), Oe());
459564
- },
459565
- i(i) {
459566
- n || (P(r), n = !0);
459567
- },
459568
- o(i) {
459569
- F(r), n = !1;
459570
- },
459571
- d(i) {
459572
- i && Z(t), r && r.d();
459573
- }
459574
- };
459575
- }
459576
- function lo(e, t, n) {
459577
- let r, {
459578
- step: i
459579
- } = t;
459580
- return e.$$set = (s) => {
459581
- "step" in s && n(0, i = s.step);
459582
- }, e.$$.update = () => {
459583
- e.$$.dirty & /*step*/
459584
- 1 && n(1, r = i.options.buttons);
459585
- }, [i, r];
459586
- }
459587
- class co extends de {
459588
- constructor(t) {
459589
- super(), fe(this, t, lo, so, ue, {
459590
- step: 0
459591
- });
459592
- }
459593
- }
459594
- function ao(e) {
459595
- let t, n, r, i, s;
459596
- return {
459597
- c() {
459598
- t = se("button"), n = se("span"), n.textContent = "×", I(n, "aria-hidden", "true"), I(t, "aria-label", r = /*cancelIcon*/
459599
- e[0].label ? (
459600
- /*cancelIcon*/
459601
- e[0].label
459602
- ) : "Close Tour"), I(t, "class", "shepherd-cancel-icon"), I(t, "type", "button");
459603
- },
459604
- m(o, c) {
459605
- re(o, t, c), We(t, n), i || (s = pt(
459606
- t,
459607
- "click",
459608
- /*handleCancelClick*/
459609
- e[1]
459610
- ), i = !0);
459611
- },
459612
- p(o, [c]) {
459613
- c & /*cancelIcon*/
459614
- 1 && r !== (r = /*cancelIcon*/
459615
- o[0].label ? (
459616
- /*cancelIcon*/
459617
- o[0].label
459618
- ) : "Close Tour") && I(t, "aria-label", r);
459619
- },
459620
- i: J,
459621
- o: J,
459622
- d(o) {
459623
- o && Z(t), i = !1, s();
459624
- }
459625
- };
459626
- }
459627
- function uo(e, t, n) {
459628
- let {
459629
- cancelIcon: r,
459630
- step: i
459631
- } = t;
459632
- const s = (o) => {
459633
- o.preventDefault(), i.cancel();
459634
- };
459635
- return e.$$set = (o) => {
459636
- "cancelIcon" in o && n(0, r = o.cancelIcon), "step" in o && n(2, i = o.step);
459637
- }, [r, s, i];
459638
- }
459639
- class fo extends de {
459640
- constructor(t) {
459641
- super(), fe(this, t, uo, ao, ue, {
459642
- cancelIcon: 0,
459643
- step: 2
459644
- });
459645
- }
459646
- }
459647
- function ho(e) {
459648
- let t;
459649
- return {
459650
- c() {
459651
- t = se("h3"), I(
459652
- t,
459653
- "id",
459654
- /*labelId*/
459655
- e[1]
459656
- ), I(t, "class", "shepherd-title");
459657
- },
459658
- m(n, r) {
459659
- re(n, t, r), e[3](t);
459660
- },
459661
- p(n, [r]) {
459662
- r & /*labelId*/
459663
- 2 && I(
459664
- t,
459665
- "id",
459666
- /*labelId*/
459667
- n[1]
459668
- );
459669
- },
459670
- i: J,
459671
- o: J,
459672
- d(n) {
459673
- n && Z(t), e[3](null);
459674
- }
459675
- };
459676
- }
459677
- function po(e, t, n) {
459678
- let {
459679
- labelId: r,
459680
- element: i,
459681
- title: s
459682
- } = t;
459683
- Ut(() => {
459684
- pe(s) && n(2, s = s()), n(0, i.innerHTML = s, i);
459685
- });
459686
- function o(c) {
459687
- $e[c ? "unshift" : "push"](() => {
459688
- i = c, n(0, i);
459689
- });
459690
- }
459691
- return e.$$set = (c) => {
459692
- "labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, s = c.title);
459693
- }, [i, r, s, o];
459694
- }
459695
- class go extends de {
459696
- constructor(t) {
459697
- super(), fe(this, t, po, ho, ue, {
459698
- labelId: 1,
459699
- element: 0,
459700
- title: 2
459701
- });
459702
- }
459703
- }
459704
- function Sn(e) {
459705
- let t, n;
459706
- return t = new go({
459707
- props: {
459708
- labelId: (
459709
- /*labelId*/
459710
- e[0]
459711
- ),
459712
- title: (
459713
- /*title*/
459714
- e[2]
459715
- )
459716
- }
459717
- }), {
459718
- c() {
459719
- Ce(t.$$.fragment);
459720
- },
459721
- m(r, i) {
459722
- ve(t, r, i), n = !0;
459723
- },
459724
- p(r, i) {
459725
- const s = {};
459726
- i & /*labelId*/
459727
- 1 && (s.labelId = /*labelId*/
459728
- r[0]), i & /*title*/
459729
- 4 && (s.title = /*title*/
459730
- r[2]), t.$set(s);
459731
- },
459732
- i(r) {
459733
- n || (P(t.$$.fragment, r), n = !0);
459734
- },
459735
- o(r) {
459736
- F(t.$$.fragment, r), n = !1;
459737
- },
459738
- d(r) {
459739
- ye(t, r);
459740
- }
459741
- };
459742
- }
459743
- function On(e) {
459744
- let t, n;
459745
- return t = new fo({
459746
- props: {
459747
- cancelIcon: (
459748
- /*cancelIcon*/
459749
- e[3]
459750
- ),
459751
- step: (
459752
- /*step*/
459753
- e[1]
459754
- )
459755
- }
459756
- }), {
459757
- c() {
459758
- Ce(t.$$.fragment);
459759
- },
459760
- m(r, i) {
459761
- ve(t, r, i), n = !0;
459762
- },
459763
- p(r, i) {
459764
- const s = {};
459765
- i & /*cancelIcon*/
459766
- 8 && (s.cancelIcon = /*cancelIcon*/
459767
- r[3]), i & /*step*/
459768
- 2 && (s.step = /*step*/
459769
- r[1]), t.$set(s);
459770
- },
459771
- i(r) {
459772
- n || (P(t.$$.fragment, r), n = !0);
459773
- },
459774
- o(r) {
459775
- F(t.$$.fragment, r), n = !1;
459776
- },
459777
- d(r) {
459778
- ye(t, r);
459779
- }
459780
- };
459781
- }
459782
- function mo(e) {
459783
- let t, n, r, i = (
459784
- /*title*/
459785
- e[2] && Sn(e)
459786
- ), s = (
459787
- /*cancelIcon*/
459788
- e[3] && /*cancelIcon*/
459789
- e[3].enabled && On(e)
459790
- );
459791
- return {
459792
- c() {
459793
- t = se("header"), i && i.c(), n = ut(), s && s.c(), I(t, "class", "shepherd-header");
459794
- },
459795
- m(o, c) {
459796
- re(o, t, c), i && i.m(t, null), We(t, n), s && s.m(t, null), r = !0;
459797
- },
459798
- p(o, [c]) {
459799
- /*title*/
459800
- o[2] ? i ? (i.p(o, c), c & /*title*/
459801
- 4 && P(i, 1)) : (i = Sn(o), i.c(), P(i, 1), i.m(t, n)) : i && (Se(), F(i, 1, 1, () => {
459802
- i = null;
459803
- }), Oe()), /*cancelIcon*/
459804
- o[3] && /*cancelIcon*/
459805
- o[3].enabled ? s ? (s.p(o, c), c & /*cancelIcon*/
459806
- 8 && P(s, 1)) : (s = On(o), s.c(), P(s, 1), s.m(t, null)) : s && (Se(), F(s, 1, 1, () => {
459807
- s = null;
459808
- }), Oe());
459809
- },
459810
- i(o) {
459811
- r || (P(i), P(s), r = !0);
459812
- },
459813
- o(o) {
459814
- F(i), F(s), r = !1;
459815
- },
459816
- d(o) {
459817
- o && Z(t), i && i.d(), s && s.d();
459818
- }
459819
- };
459820
- }
459821
- function bo(e, t, n) {
459822
- let {
459823
- labelId: r,
459824
- step: i
459825
- } = t, s, o;
459826
- return e.$$set = (c) => {
459827
- "labelId" in c && n(0, r = c.labelId), "step" in c && n(1, i = c.step);
459828
- }, e.$$.update = () => {
459829
- e.$$.dirty & /*step*/
459830
- 2 && (n(2, s = i.options.title), n(3, o = i.options.cancelIcon));
459831
- }, [r, i, s, o];
459832
- }
459833
- class vo extends de {
459834
- constructor(t) {
459835
- super(), fe(this, t, bo, mo, ue, {
459836
- labelId: 0,
459837
- step: 1
459838
- });
459839
- }
459840
- }
459841
- function yo(e) {
459842
- let t;
459843
- return {
459844
- c() {
459845
- t = se("div"), I(t, "class", "shepherd-text"), I(
459846
- t,
459847
- "id",
459848
- /*descriptionId*/
459849
- e[1]
459850
- );
459851
- },
459852
- m(n, r) {
459853
- re(n, t, r), e[3](t);
459854
- },
459855
- p(n, [r]) {
459856
- r & /*descriptionId*/
459857
- 2 && I(
459858
- t,
459859
- "id",
459860
- /*descriptionId*/
459861
- n[1]
459862
- );
459863
- },
459864
- i: J,
459865
- o: J,
459866
- d(n) {
459867
- n && Z(t), e[3](null);
459868
- }
459869
- };
459870
- }
459871
- function _o(e, t, n) {
459872
- let {
459873
- descriptionId: r,
459874
- element: i,
459875
- step: s
459876
- } = t;
459877
- Ut(() => {
459878
- let {
459879
- text: c
459880
- } = s.options;
459881
- pe(c) && (c = c.call(s)), Ge(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
459882
- });
459883
- function o(c) {
459884
- $e[c ? "unshift" : "push"](() => {
459885
- i = c, n(0, i);
459886
- });
459887
- }
459888
- return e.$$set = (c) => {
459889
- "descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, s = c.step);
459890
- }, [i, r, s, o];
459891
- }
459892
- class wo extends de {
459893
- constructor(t) {
459894
- super(), fe(this, t, _o, yo, ue, {
459895
- descriptionId: 1,
459896
- element: 0,
459897
- step: 2
459898
- });
459899
- }
459900
- }
459901
- function Rn(e) {
459902
- let t, n;
459903
- return t = new vo({
459904
- props: {
459905
- labelId: (
459906
- /*labelId*/
459907
- e[1]
459908
- ),
459909
- step: (
459910
- /*step*/
459911
- e[2]
459912
- )
459913
- }
459914
- }), {
459915
- c() {
459916
- Ce(t.$$.fragment);
459917
- },
459918
- m(r, i) {
459919
- ve(t, r, i), n = !0;
459920
- },
459921
- p(r, i) {
459922
- const s = {};
459923
- i & /*labelId*/
459924
- 2 && (s.labelId = /*labelId*/
459925
- r[1]), i & /*step*/
459926
- 4 && (s.step = /*step*/
459927
- r[2]), t.$set(s);
459928
- },
459929
- i(r) {
459930
- n || (P(t.$$.fragment, r), n = !0);
459931
- },
459932
- o(r) {
459933
- F(t.$$.fragment, r), n = !1;
459934
- },
459935
- d(r) {
459936
- ye(t, r);
459937
- }
459938
- };
459939
- }
459940
- function Tn(e) {
459941
- let t, n;
459942
- return t = new wo({
459943
- props: {
459944
- descriptionId: (
459945
- /*descriptionId*/
459946
- e[0]
459947
- ),
459948
- step: (
459949
- /*step*/
459950
- e[2]
459951
- )
459952
- }
459953
- }), {
459954
- c() {
459955
- Ce(t.$$.fragment);
459956
- },
459957
- m(r, i) {
459958
- ve(t, r, i), n = !0;
459959
- },
459960
- p(r, i) {
459961
- const s = {};
459962
- i & /*descriptionId*/
459963
- 1 && (s.descriptionId = /*descriptionId*/
459964
- r[0]), i & /*step*/
459965
- 4 && (s.step = /*step*/
459966
- r[2]), t.$set(s);
459967
- },
459968
- i(r) {
459969
- n || (P(t.$$.fragment, r), n = !0);
459970
- },
459971
- o(r) {
459972
- F(t.$$.fragment, r), n = !1;
459973
- },
459974
- d(r) {
459975
- ye(t, r);
459976
- }
459977
- };
459978
- }
459979
- function Cn(e) {
459980
- let t, n;
459981
- return t = new co({
459982
- props: {
459983
- step: (
459984
- /*step*/
459985
- e[2]
459986
- )
459987
- }
459988
- }), {
459989
- c() {
459990
- Ce(t.$$.fragment);
459991
- },
459992
- m(r, i) {
459993
- ve(t, r, i), n = !0;
459994
- },
459995
- p(r, i) {
459996
- const s = {};
459997
- i & /*step*/
459998
- 4 && (s.step = /*step*/
459999
- r[2]), t.$set(s);
460000
- },
460001
- i(r) {
460002
- n || (P(t.$$.fragment, r), n = !0);
460003
- },
460004
- o(r) {
460005
- F(t.$$.fragment, r), n = !1;
460006
- },
460007
- d(r) {
460008
- ye(t, r);
460009
- }
460010
- };
460011
- }
460012
- function xo(e) {
460013
- let t, n = !N(
460014
- /*step*/
460015
- e[2].options.title
460016
- ) || /*step*/
460017
- e[2].options.cancelIcon && /*step*/
460018
- e[2].options.cancelIcon.enabled, r, i = !N(
460019
- /*step*/
460020
- e[2].options.text
460021
- ), s, o = Array.isArray(
460022
- /*step*/
460023
- e[2].options.buttons
460024
- ) && /*step*/
460025
- e[2].options.buttons.length, c, a = n && Rn(e), u = i && Tn(e), f = o && Cn(e);
460026
- return {
460027
- c() {
460028
- t = se("div"), a && a.c(), r = ut(), u && u.c(), s = ut(), f && f.c(), I(t, "class", "shepherd-content");
460029
- },
460030
- m(h, d) {
460031
- re(h, t, d), a && a.m(t, null), We(t, r), u && u.m(t, null), We(t, s), f && f.m(t, null), c = !0;
460032
- },
460033
- p(h, [d]) {
460034
- d & /*step*/
460035
- 4 && (n = !N(
460036
- /*step*/
460037
- h[2].options.title
460038
- ) || /*step*/
460039
- h[2].options.cancelIcon && /*step*/
460040
- h[2].options.cancelIcon.enabled), n ? a ? (a.p(h, d), d & /*step*/
460041
- 4 && P(a, 1)) : (a = Rn(h), a.c(), P(a, 1), a.m(t, r)) : a && (Se(), F(a, 1, 1, () => {
460042
- a = null;
460043
- }), Oe()), d & /*step*/
460044
- 4 && (i = !N(
460045
- /*step*/
460046
- h[2].options.text
460047
- )), i ? u ? (u.p(h, d), d & /*step*/
460048
- 4 && P(u, 1)) : (u = Tn(h), u.c(), P(u, 1), u.m(t, s)) : u && (Se(), F(u, 1, 1, () => {
460049
- u = null;
460050
- }), Oe()), d & /*step*/
460051
- 4 && (o = Array.isArray(
460052
- /*step*/
460053
- h[2].options.buttons
460054
- ) && /*step*/
460055
- h[2].options.buttons.length), o ? f ? (f.p(h, d), d & /*step*/
460056
- 4 && P(f, 1)) : (f = Cn(h), f.c(), P(f, 1), f.m(t, null)) : f && (Se(), F(f, 1, 1, () => {
460057
- f = null;
460058
- }), Oe());
460059
- },
460060
- i(h) {
460061
- c || (P(a), P(u), P(f), c = !0);
460062
- },
460063
- o(h) {
460064
- F(a), F(u), F(f), c = !1;
460065
- },
460066
- d(h) {
460067
- h && Z(t), a && a.d(), u && u.d(), f && f.d();
460068
- }
460069
- };
460070
- }
460071
- function Eo(e, t, n) {
460072
- let {
460073
- descriptionId: r,
460074
- labelId: i,
460075
- step: s
460076
- } = t;
460077
- return e.$$set = (o) => {
460078
- "descriptionId" in o && n(0, r = o.descriptionId), "labelId" in o && n(1, i = o.labelId), "step" in o && n(2, s = o.step);
460079
- }, [r, i, s];
460080
- }
460081
- class So extends de {
460082
- constructor(t) {
460083
- super(), fe(this, t, Eo, xo, ue, {
460084
- descriptionId: 0,
460085
- labelId: 1,
460086
- step: 2
460087
- });
460088
- }
460089
- }
460090
- function An(e) {
460091
- let t;
460092
- return {
460093
- c() {
460094
- t = se("div"), I(t, "class", "shepherd-arrow"), I(t, "data-popper-arrow", "");
460095
- },
460096
- m(n, r) {
460097
- re(n, t, r);
460098
- },
460099
- d(n) {
460100
- n && Z(t);
460101
- }
460102
- };
460103
- }
460104
- function Oo(e) {
460105
- let t, n, r, i, s, o, c, a, u = (
460106
- /*step*/
460107
- e[4].options.arrow && /*step*/
460108
- e[4].options.attachTo && /*step*/
460109
- e[4].options.attachTo.element && /*step*/
460110
- e[4].options.attachTo.on && An()
460111
- );
460112
- r = new So({
460113
- props: {
460114
- descriptionId: (
460115
- /*descriptionId*/
460116
- e[2]
460117
- ),
460118
- labelId: (
460119
- /*labelId*/
460120
- e[3]
460121
- ),
460122
- step: (
460123
- /*step*/
460124
- e[4]
460125
- )
460126
- }
460127
- });
460128
- let f = [
460129
- {
460130
- "aria-describedby": i = N(
460131
- /*step*/
460132
- e[4].options.text
460133
- ) ? null : (
460134
- /*descriptionId*/
460135
- e[2]
460136
- )
460137
- },
460138
- {
460139
- "aria-labelledby": s = /*step*/
460140
- e[4].options.title ? (
460141
- /*labelId*/
460142
- e[3]
460143
- ) : null
460144
- },
460145
- /*dataStepId*/
460146
- e[1],
460147
- {
460148
- role: "dialog"
460149
- },
460150
- {
460151
- tabindex: "0"
460152
- }
460153
- ], h = {};
460154
- for (let d = 0; d < f.length; d += 1)
460155
- h = Hi(h, f[d]);
460156
- return {
460157
- c() {
460158
- t = se("div"), u && u.c(), n = ut(), Ce(r.$$.fragment), vn(t, h), ke(
460159
- t,
460160
- "shepherd-has-cancel-icon",
460161
- /*hasCancelIcon*/
460162
- e[5]
460163
- ), ke(
460164
- t,
460165
- "shepherd-has-title",
460166
- /*hasTitle*/
460167
- e[6]
460168
- ), ke(t, "shepherd-element", !0);
460169
- },
460170
- m(d, g) {
460171
- re(d, t, g), u && u.m(t, null), We(t, n), ve(r, t, null), e[13](t), o = !0, c || (a = pt(
460172
- t,
460173
- "keydown",
460174
- /*handleKeyDown*/
460175
- e[7]
460176
- ), c = !0);
460177
- },
460178
- p(d, [g]) {
460179
- /*step*/
460180
- d[4].options.arrow && /*step*/
460181
- d[4].options.attachTo && /*step*/
460182
- d[4].options.attachTo.element && /*step*/
460183
- d[4].options.attachTo.on ? u || (u = An(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
460184
- const v = {};
460185
- g & /*descriptionId*/
460186
- 4 && (v.descriptionId = /*descriptionId*/
460187
- d[2]), g & /*labelId*/
460188
- 8 && (v.labelId = /*labelId*/
460189
- d[3]), g & /*step*/
460190
- 16 && (v.step = /*step*/
460191
- d[4]), r.$set(v), vn(t, h = eo(f, [(!o || g & /*step, descriptionId*/
460192
- 20 && i !== (i = N(
460193
- /*step*/
460194
- d[4].options.text
460195
- ) ? null : (
460196
- /*descriptionId*/
460197
- d[2]
460198
- ))) && {
460199
- "aria-describedby": i
460200
- }, (!o || g & /*step, labelId*/
460201
- 24 && s !== (s = /*step*/
460202
- d[4].options.title ? (
460203
- /*labelId*/
460204
- d[3]
460205
- ) : null)) && {
460206
- "aria-labelledby": s
460207
- }, g & /*dataStepId*/
460208
- 2 && /*dataStepId*/
460209
- d[1], {
460210
- role: "dialog"
460211
- }, {
460212
- tabindex: "0"
460213
- }])), ke(
460214
- t,
460215
- "shepherd-has-cancel-icon",
460216
- /*hasCancelIcon*/
460217
- d[5]
460218
- ), ke(
460219
- t,
460220
- "shepherd-has-title",
460221
- /*hasTitle*/
460222
- d[6]
460223
- ), ke(t, "shepherd-element", !0);
460224
- },
460225
- i(d) {
460226
- o || (P(r.$$.fragment, d), o = !0);
460227
- },
460228
- o(d) {
460229
- F(r.$$.fragment, d), o = !1;
460230
- },
460231
- d(d) {
460232
- d && Z(t), u && u.d(), ye(r), e[13](null), c = !1, a();
460233
- }
460234
- };
460235
- }
460236
- const Ro = 9, To = 27, Co = 37, Ao = 39;
460237
- function Pn(e) {
460238
- return e.split(" ").filter((t) => !!t.length);
460239
- }
460240
- function Po(e, t, n) {
460241
- let {
460242
- classPrefix: r,
460243
- element: i,
460244
- descriptionId: s,
460245
- firstFocusableElement: o,
460246
- focusableElements: c,
460247
- labelId: a,
460248
- lastFocusableElement: u,
460249
- step: f,
460250
- dataStepId: h
460251
- } = t, d, g, v;
460252
- const x = () => i;
460253
- Ki(() => {
460254
- n(1, h = {
460255
- [`data-${r}shepherd-step-id`]: f.id
460256
- }), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, o = c[0]), n(10, u = c[c.length - 1]);
460257
- }), Ut(() => {
460258
- v !== f.options.classes && S();
460259
- });
460260
- function S() {
460261
- w(v), v = f.options.classes, _(v);
460262
- }
460263
- function w(m) {
460264
- if (Je(m)) {
460265
- const T = Pn(m);
460266
- T.length && i.classList.remove(...T);
460267
- }
460268
- }
460269
- function _(m) {
460270
- if (Je(m)) {
460271
- const T = Pn(m);
460272
- T.length && i.classList.add(...T);
460273
- }
460274
- }
460275
- const R = (m) => {
460276
- const {
460277
- tour: T
460278
- } = f;
460279
- switch (m.keyCode) {
460280
- case Ro:
460281
- if (c.length === 0) {
460282
- m.preventDefault();
460283
- break;
460284
- }
460285
- m.shiftKey ? (document.activeElement === o || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), o.focus());
460286
- break;
460287
- case To:
460288
- T.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), f.cancel());
460289
- break;
460290
- case Co:
460291
- T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.back());
460292
- break;
460293
- case Ao:
460294
- T.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), T.next());
460295
- break;
460296
- }
460297
- };
460298
- function y(m) {
460299
- $e[m ? "unshift" : "push"](() => {
460300
- i = m, n(0, i);
460301
- });
460302
- }
460303
- return e.$$set = (m) => {
460304
- "classPrefix" in m && n(11, r = m.classPrefix), "element" in m && n(0, i = m.element), "descriptionId" in m && n(2, s = m.descriptionId), "firstFocusableElement" in m && n(8, o = m.firstFocusableElement), "focusableElements" in m && n(9, c = m.focusableElements), "labelId" in m && n(3, a = m.labelId), "lastFocusableElement" in m && n(10, u = m.lastFocusableElement), "step" in m && n(4, f = m.step), "dataStepId" in m && n(1, h = m.dataStepId);
460305
- }, e.$$.update = () => {
460306
- e.$$.dirty & /*step*/
460307
- 16 && (n(5, d = f.options && f.options.cancelIcon && f.options.cancelIcon.enabled), n(6, g = f.options && f.options.title));
460308
- }, [i, h, s, a, f, d, g, R, o, c, u, r, x, y];
460309
- }
460310
- class ko extends de {
460311
- constructor(t) {
460312
- super(), fe(this, t, Po, Oo, ue, {
460313
- classPrefix: 11,
460314
- element: 0,
460315
- descriptionId: 2,
460316
- firstFocusableElement: 8,
460317
- focusableElements: 9,
460318
- labelId: 3,
460319
- lastFocusableElement: 10,
460320
- step: 4,
460321
- dataStepId: 1,
460322
- getElement: 12
460323
- });
460324
- }
460325
- get getElement() {
460326
- return this.$$.ctx[12];
460327
- }
460328
- }
460329
- class Mt extends Ft {
460330
- constructor(t, n = {}) {
460331
- return super(), this._resolvedAttachTo = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ? Dn(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, Dt(this), this._setOptions(n), this;
460332
- }
460333
- /**
460334
- * Cancel the tour
460335
- * Triggers the `cancel` event
460336
- */
460337
- cancel() {
460338
- this.tour.cancel(), this.trigger("cancel");
460339
- }
460340
- /**
460341
- * Complete the tour
460342
- * Triggers the `complete` event
460343
- */
460344
- complete() {
460345
- this.tour.complete(), this.trigger("complete");
460346
- }
460347
- /**
460348
- * Remove the step, delete the step's element, and destroy the FloatingUI instance for the step.
460349
- * Triggers `destroy` event
460350
- */
460351
- destroy() {
460352
- ji(this), Ge(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
460353
- }
460354
- /**
460355
- * Returns the tour for the step
460356
- * @return The tour instance
460357
- */
460358
- getTour() {
460359
- return this.tour;
460360
- }
460361
- /**
460362
- * Hide the step
460363
- */
460364
- hide() {
460365
- var t;
460366
- (t = this.tour.modal) == null || t.hide(), this.trigger("before-hide"), this.el && (this.el.hidden = !0), this._updateStepTargetOnHide(), this.trigger("hide");
460367
- }
460368
- /**
460369
- * Resolves attachTo options.
460370
- * @returns {{}|{element, on}}
460371
- */
460372
- _resolveAttachToOptions() {
460373
- return this._resolvedAttachTo = Gr(this), this._resolvedAttachTo;
460374
- }
460375
- /**
460376
- * A selector for resolved attachTo options.
460377
- * @returns {{}|{element, on}}
460378
- * @private
460379
- */
460380
- _getResolvedAttachToOptions() {
460381
- return this._resolvedAttachTo === null ? this._resolveAttachToOptions() : this._resolvedAttachTo;
460382
- }
460383
- /**
460384
- * Check if the step is open and visible
460385
- * @return True if the step is open and visible
460386
- */
460387
- isOpen() {
460388
- return !!(this.el && !this.el.hidden);
460389
- }
460390
- /**
460391
- * Wraps `_show` and ensures `beforeShowPromise` resolves before calling show
460392
- */
460393
- show() {
460394
- return pe(this.options.beforeShowPromise) ? Promise.resolve(this.options.beforeShowPromise()).then(() => this._show()) : Promise.resolve(this._show());
460395
- }
460396
- /**
460397
- * Updates the options of the step.
460398
- *
460399
- * @param {StepOptions} options The options for the step
460400
- */
460401
- updateStepOptions(t) {
460402
- Object.assign(this.options, t), this.shepherdElementComponent && this.shepherdElementComponent.$set({
460403
- step: this
460404
- });
460405
- }
460406
- /**
460407
- * Returns the element for the step
460408
- * @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if it has been destroyed
460409
- */
460410
- getElement() {
460411
- return this.el;
460412
- }
460413
- /**
460414
- * Returns the target for the step
460415
- * @return {HTMLElement|null|undefined} The element instance. undefined if it has never been shown, null if query string has not been found
460416
- */
460417
- getTarget() {
460418
- return this.target;
460419
- }
460420
- /**
460421
- * Creates Shepherd element for step based on options
460422
- *
460423
- * @return {HTMLElement} The DOM element for the step tooltip
460424
- * @private
460425
- */
460426
- _createTooltipContent() {
460427
- const t = `${this.id}-description`, n = `${this.id}-label`;
460428
- return this.shepherdElementComponent = new ko({
460429
- target: this.tour.options.stepsContainer || document.body,
460430
- props: {
460431
- classPrefix: this.classPrefix,
460432
- descriptionId: t,
460433
- labelId: n,
460434
- step: this,
460435
- // @ts-expect-error TODO: investigate where styles comes from
460436
- styles: this.styles
460437
- }
460438
- }), this.shepherdElementComponent.getElement();
460439
- }
460440
- /**
460441
- * If a custom scrollToHandler is defined, call that, otherwise do the generic
460442
- * scrollIntoView call.
460443
- *
460444
- * @param {boolean | ScrollIntoViewOptions} scrollToOptions - If true, uses the default `scrollIntoView`,
460445
- * if an object, passes that object as the params to `scrollIntoView` i.e. `{ behavior: 'smooth', block: 'center' }`
460446
- * @private
460447
- */
460448
- _scrollTo(t) {
460449
- const {
460450
- element: n
460451
- } = this._getResolvedAttachToOptions();
460452
- pe(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : Ir(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
460453
- }
460454
- /**
460455
- * _getClassOptions gets all possible classes for the step
460456
- * @param {StepOptions} stepOptions The step specific options
460457
- * @returns {string} unique string from array of classes
460458
- */
460459
- _getClassOptions(t) {
460460
- const n = this.tour && this.tour.options && this.tour.options.defaultStepOptions, r = t.classes ? t.classes : "", i = n && n.classes ? n.classes : "", s = [...r.split(" "), ...i.split(" ")], o = new Set(s);
460461
- return Array.from(o).join(" ").trim();
460462
- }
460463
- /**
460464
- * Sets the options for the step, maps `when` to events, sets up buttons
460465
- * @param options - The options for the step
460466
- */
460467
- _setOptions(t = {}) {
460468
- let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
460469
- n = Lt({}, n || {}), this.options = Object.assign({
460470
- arrow: !0
460471
- }, n, t, Di(n, t));
460472
- const {
460473
- when: r
460474
- } = this.options;
460475
- this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Bn()}`, r && Object.keys(r).forEach((i) => {
460476
- this.on(i, r[i], this);
460477
- });
460478
- }
460479
- /**
460480
- * Create the element and set up the FloatingUI instance
460481
- * @private
460482
- */
460483
- _setupElements() {
460484
- N(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && Jr(this), Li(this);
460485
- }
460486
- /**
460487
- * Triggers `before-show`, generates the tooltip DOM content,
460488
- * sets up a FloatingUI instance for the tooltip, then triggers `show`.
460489
- * @private
460490
- */
460491
- _show() {
460492
- var t;
460493
- this.trigger("before-show"), this._resolveAttachToOptions(), this._setupElements(), this.tour.modal || this.tour.setupModal(), (t = this.tour.modal) == null || t.setupForStep(this), this._styleTargetElementForStep(this), this.el && (this.el.hidden = !1), this.options.scrollTo && setTimeout(() => {
460494
- this._scrollTo(this.options.scrollTo);
460495
- }), this.el && (this.el.hidden = !1);
460496
- const n = this.shepherdElementComponent.getElement(), r = this.target || document.body;
460497
- r.classList.add(`${this.classPrefix}shepherd-enabled`), r.classList.add(`${this.classPrefix}shepherd-target`), n.classList.add("shepherd-enabled"), this.trigger("show");
460498
- }
460499
- /**
460500
- * Modulates the styles of the passed step's target element, based on the step's options and
460501
- * the tour's `modal` option, to visually emphasize the element
460502
- *
460503
- * @param {Step} step The step object that attaches to the element
460504
- * @private
460505
- */
460506
- _styleTargetElementForStep(t) {
460507
- const n = t.target;
460508
- n && (t.options.highlightClass && n.classList.add(t.options.highlightClass), n.classList.remove("shepherd-target-click-disabled"), t.options.canClickTarget === !1 && n.classList.add("shepherd-target-click-disabled"));
460509
- }
460510
- /**
460511
- * When a step is hidden, remove the highlightClass and 'shepherd-enabled'
460512
- * and 'shepherd-target' classes
460513
- * @private
460514
- */
460515
- _updateStepTargetOnHide() {
460516
- const t = this.target || document.body;
460517
- this.options.highlightClass && t.classList.remove(this.options.highlightClass), t.classList.remove("shepherd-target-click-disabled", `${this.classPrefix}shepherd-enabled`, `${this.classPrefix}shepherd-target`);
460518
- }
460519
- }
460520
- function Io(e) {
460521
- if (e) {
460522
- const {
460523
- steps: t
460524
- } = e;
460525
- t.forEach((n) => {
460526
- n.options && n.options.canClickTarget === !1 && n.options.attachTo && Ge(n.target) && n.target.classList.remove("shepherd-target-click-disabled");
460527
- });
460528
- }
460529
- }
460530
- function Mo({
460531
- width: e,
460532
- height: t,
460533
- x: n = 0,
460534
- y: r = 0,
460535
- r: i = 0
460536
- }) {
460537
- const {
460538
- innerWidth: s,
460539
- innerHeight: o
460540
- } = window, {
460541
- topLeft: c = 0,
460542
- topRight: a = 0,
460543
- bottomRight: u = 0,
460544
- bottomLeft: f = 0
460545
- } = typeof i == "number" ? {
460546
- topLeft: i,
460547
- topRight: i,
460548
- bottomRight: i,
460549
- bottomLeft: i
460550
- } : i;
460551
- return `M${s},${o}H0V0H${s}V${o}ZM${n + c},${r}a${c},${c},0,0,0-${c},${c}V${t + r - f}a${f},${f},0,0,0,${f},${f}H${e + n - u}a${u},${u},0,0,0,${u}-${u}V${r + a}a${a},${a},0,0,0-${a}-${a}Z`;
460552
- }
460553
- function Fo(e) {
460554
- let t, n, r, i, s;
460555
- return {
460556
- c() {
460557
- t = bn("svg"), n = bn("path"), I(
460558
- n,
460559
- "d",
460560
- /*pathDefinition*/
460561
- e[2]
460562
- ), I(t, "class", r = `${/*modalIsVisible*/
460563
- e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
460564
- },
460565
- m(o, c) {
460566
- re(o, t, c), We(t, n), e[11](t), i || (s = pt(
460567
- t,
460568
- "touchmove",
460569
- /*_preventModalOverlayTouch*/
460570
- e[3]
460571
- ), i = !0);
460572
- },
460573
- p(o, [c]) {
460574
- c & /*pathDefinition*/
460575
- 4 && I(
460576
- n,
460577
- "d",
460578
- /*pathDefinition*/
460579
- o[2]
460580
- ), c & /*modalIsVisible*/
460581
- 2 && r !== (r = `${/*modalIsVisible*/
460582
- o[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && I(t, "class", r);
460583
- },
460584
- i: J,
460585
- o: J,
460586
- d(o) {
460587
- o && Z(t), e[11](null), i = !1, s();
460588
- }
460589
- };
460590
- }
460591
- function Zn(e) {
460592
- if (!e)
460593
- return null;
460594
- const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
460595
- return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : Zn(e.parentElement);
460596
- }
460597
- function Lo(e) {
460598
- let t = {
460599
- top: 0,
460600
- left: 0
460601
- };
460602
- if (!e)
460603
- return t;
460604
- let n = e.ownerDocument.defaultView;
460605
- for (; n !== window.top; ) {
460606
- var r;
460607
- const o = (r = n) == null ? void 0 : r.frameElement;
460608
- if (o) {
460609
- var i, s;
460610
- const c = o.getBoundingClientRect();
460611
- t.top += c.top + ((i = c.scrollTop) != null ? i : 0), t.left += c.left + ((s = c.scrollLeft) != null ? s : 0);
460612
- }
460613
- n = n.parent;
460614
- }
460615
- return t;
460616
- }
460617
- function Do(e, t) {
460618
- const n = e.getBoundingClientRect();
460619
- let r = n.y || n.top, i = n.bottom || r + n.height;
460620
- if (t) {
460621
- const o = t.getBoundingClientRect(), c = o.y || o.top, a = o.bottom || c + o.height;
460622
- r = Math.max(r, c), i = Math.min(i, a);
460623
- }
460624
- const s = Math.max(i - r, 0);
460625
- return {
460626
- y: r,
460627
- height: s
460628
- };
460629
- }
460630
- function jo(e, t, n) {
460631
- let {
460632
- element: r,
460633
- openingProperties: i
460634
- } = t, s = !1, o, c;
460635
- u();
460636
- const a = () => r;
460637
- function u() {
460638
- n(4, i = {
460639
- width: 0,
460640
- height: 0,
460641
- x: 0,
460642
- y: 0,
460643
- r: 0
460644
- });
460645
- }
460646
- function f() {
460647
- n(1, s = !1), w();
460648
- }
460649
- function h(y = 0, m = 0, T = 0, B = 0, ie, H) {
460650
- if (H) {
460651
- const {
460652
- y: K,
460653
- height: U
460654
- } = Do(H, ie), {
460655
- x: W,
460656
- width: j,
460657
- left: L
460658
- } = H.getBoundingClientRect();
460659
- n(4, i = {
460660
- width: j + y * 2,
460661
- height: U + y * 2,
460662
- x: (W || L) + T - y,
460663
- y: K + B - y,
460664
- r: m
460665
- });
460666
- } else
460667
- u();
460668
- }
460669
- function d(y) {
460670
- w(), y.tour.options.useModalOverlay ? (_(y), g()) : f();
460671
- }
460672
- function g() {
460673
- n(1, s = !0);
460674
- }
460675
- const v = (y) => {
460676
- y.preventDefault();
460677
- }, x = (y) => {
460678
- y.stopPropagation();
460679
- };
460680
- function S() {
460681
- window.addEventListener("touchmove", v, {
460682
- passive: !1
460683
- });
460684
- }
460685
- function w() {
460686
- o && (cancelAnimationFrame(o), o = void 0), window.removeEventListener("touchmove", v, {
460687
- passive: !1
460688
- });
460689
- }
460690
- function _(y) {
460691
- const {
460692
- modalOverlayOpeningPadding: m,
460693
- modalOverlayOpeningRadius: T,
460694
- modalOverlayOpeningXOffset: B = 0,
460695
- modalOverlayOpeningYOffset: ie = 0
460696
- } = y.options, H = Lo(y.target), K = Zn(y.target), U = () => {
460697
- o = void 0, h(m, T, B + H.left, ie + H.top, K, y.target), o = requestAnimationFrame(U);
460698
- };
460699
- U(), S();
460700
- }
460701
- function R(y) {
460702
- $e[y ? "unshift" : "push"](() => {
460703
- r = y, n(0, r);
460704
- });
460705
- }
460706
- return e.$$set = (y) => {
460707
- "element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
460708
- }, e.$$.update = () => {
460709
- e.$$.dirty & /*openingProperties*/
460710
- 16 && n(2, c = Mo(i));
460711
- }, [r, s, c, x, i, a, u, f, h, d, g, R];
460712
- }
460713
- class Bo extends de {
460714
- constructor(t) {
460715
- super(), fe(this, t, jo, Fo, ue, {
460716
- element: 0,
460717
- openingProperties: 4,
460718
- getElement: 5,
460719
- closeModalOpening: 6,
460720
- hide: 7,
460721
- positionModal: 8,
460722
- setupForStep: 9,
460723
- show: 10
460724
- });
460725
- }
460726
- get getElement() {
460727
- return this.$$.ctx[5];
460728
- }
460729
- get closeModalOpening() {
460730
- return this.$$.ctx[6];
460731
- }
460732
- get hide() {
460733
- return this.$$.ctx[7];
460734
- }
460735
- get positionModal() {
460736
- return this.$$.ctx[8];
460737
- }
460738
- get setupForStep() {
460739
- return this.$$.ctx[9];
460740
- }
460741
- get show() {
460742
- return this.$$.ctx[10];
460743
- }
460744
- }
460745
- class No extends Ft {
460746
- constructor() {
460747
- super(), this.activeTour = void 0, Dt(this);
460748
- }
460749
- }
460750
- class Wo extends Ft {
460751
- constructor(t = {}) {
460752
- super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0, Dt(this);
460753
- const n = {
460754
- exitOnEsc: !0,
460755
- keyboardNavigation: !0
460756
- };
460757
- return this.options = Object.assign({}, n, t), this.classPrefix = Dn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
460758
- ((s) => {
460759
- this.on(s, (o) => {
460760
- o = o || {}, o.tour = this, xe.trigger(s, o);
460761
- });
460762
- })(i);
460763
- }), this._setTourID(t.id), this;
460764
- }
460765
- /**
460766
- * Adds a new step to the tour
460767
- * @param {StepOptions} options - An object containing step options or a Step instance
460768
- * @param {number | undefined} index - The optional index to insert the step at. If undefined, the step
460769
- * is added to the end of the array.
460770
- * @return The newly added step
460771
- */
460772
- addStep(t, n) {
460773
- let r = t;
460774
- return r instanceof Mt ? r.tour = this : r = new Mt(this, r), N(n) ? this.steps.push(r) : this.steps.splice(n, 0, r), r;
460775
- }
460776
- /**
460777
- * Add multiple steps to the tour
460778
- * @param {Array<StepOptions> | Array<Step> | undefined} steps - The steps to add to the tour
460779
- */
460780
- addSteps(t) {
460781
- return Array.isArray(t) && t.forEach((n) => {
460782
- this.addStep(n);
460783
- }), this;
460784
- }
460785
- /**
460786
- * Go to the previous step in the tour
460787
- */
460788
- back() {
460789
- const t = this.steps.indexOf(this.currentStep);
460790
- this.show(t - 1, !1);
460791
- }
460792
- /**
460793
- * Calls _done() triggering the 'cancel' event
460794
- * If `confirmCancel` is true, will show a window.confirm before cancelling
460795
- * If `confirmCancel` is a function, will call it and wait for the return value,
460796
- * and only cancel when the value returned is true
460797
- */
460798
- async cancel() {
460799
- if (this.options.confirmCancel) {
460800
- const t = this.options.confirmCancelMessage || "Are you sure you want to stop the tour?";
460801
- let n;
460802
- pe(this.options.confirmCancel) ? n = await this.options.confirmCancel() : n = window.confirm(t), n && this._done("cancel");
460803
- } else
460804
- this._done("cancel");
460805
- }
460806
- /**
460807
- * Calls _done() triggering the `complete` event
460808
- */
460809
- complete() {
460810
- this._done("complete");
460811
- }
460812
- /**
460813
- * Gets the step from a given id
460814
- * @param {number | string} id - The id of the step to retrieve
460815
- * @return The step corresponding to the `id`
460816
- */
460817
- getById(t) {
460818
- return this.steps.find((n) => n.id === t);
460819
- }
460820
- /**
460821
- * Gets the current step
460822
- */
460823
- getCurrentStep() {
460824
- return this.currentStep;
460825
- }
460826
- /**
460827
- * Hide the current step
460828
- */
460829
- hide() {
460830
- const t = this.getCurrentStep();
460831
- if (t)
460832
- return t.hide();
460833
- }
460834
- /**
460835
- * Check if the tour is active
460836
- */
460837
- isActive() {
460838
- return xe.activeTour === this;
460839
- }
460840
- /**
460841
- * Go to the next step in the tour
460842
- * If we are at the end, call `complete`
460843
- */
460844
- next() {
460845
- const t = this.steps.indexOf(this.currentStep);
460846
- t === this.steps.length - 1 ? this.complete() : this.show(t + 1, !0);
460847
- }
460848
- /**
460849
- * Removes the step from the tour
460850
- * @param {string} name - The id for the step to remove
460851
- */
460852
- removeStep(t) {
460853
- const n = this.getCurrentStep();
460854
- this.steps.some((r, i) => {
460855
- if (r.id === t)
460856
- return r.isOpen() && r.hide(), r.destroy(), this.steps.splice(i, 1), !0;
460857
- }), n && n.id === t && (this.currentStep = void 0, this.steps.length ? this.show(0) : this.cancel());
460858
- }
460859
- /**
460860
- * Show a specific step in the tour
460861
- * @param {number | string} key - The key to look up the step by
460862
- * @param {boolean} forward - True if we are going forward, false if backward
460863
- */
460864
- show(t = 0, n = !0) {
460865
- const r = Je(t) ? this.getById(t) : this.steps[t];
460866
- r && (this._updateStateBeforeShow(), pe(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.trigger("show", {
460867
- step: r,
460868
- previous: this.currentStep
460869
- }), this.currentStep = r, r.show()));
460870
- }
460871
- /**
460872
- * Start the tour
460873
- */
460874
- async start() {
460875
- this.trigger("start"), this.focusedElBeforeOpen = document.activeElement, this.currentStep = null, this.setupModal(), this._setupActiveTour(), this.next();
460876
- }
460877
- /**
460878
- * Called whenever the tour is cancelled or completed, basically anytime we exit the tour
460879
- * @param {string} event - The event name to trigger
460880
- * @private
460881
- */
460882
- _done(t) {
460883
- const n = this.steps.indexOf(this.currentStep);
460884
- if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Io(this), this.trigger(t, {
460885
- index: n
460886
- }), xe.activeTour = null, this.trigger("inactive", {
460887
- tour: this
460888
- }), this.modal && this.modal.hide(), (t === "cancel" || t === "complete") && this.modal) {
460889
- const r = document.querySelector(".shepherd-modal-overlay-container");
460890
- r && (r.remove(), this.modal = null);
460891
- }
460892
- Ge(this.focusedElBeforeOpen) && this.focusedElBeforeOpen.focus();
460893
- }
460894
- /**
460895
- * Make this tour "active"
460896
- */
460897
- _setupActiveTour() {
460898
- this.trigger("active", {
460899
- tour: this
460900
- }), xe.activeTour = this;
460901
- }
460902
- /**
460903
- * setupModal create the modal container and instance
460904
- */
460905
- setupModal() {
460906
- this.modal = new Bo({
460907
- target: this.options.modalContainer || document.body,
460908
- props: {
460909
- // @ts-expect-error TODO: investigate where styles comes from
460910
- styles: this.styles
460911
- }
460912
- });
460913
- }
460914
- /**
460915
- * Called when `showOn` evaluates to false, to skip the step or complete the tour if it's the last step
460916
- * @param {Step} step - The step to skip
460917
- * @param {boolean} forward - True if we are going forward, false if backward
460918
- * @private
460919
- */
460920
- _skipStep(t, n) {
460921
- const r = this.steps.indexOf(t);
460922
- if (r === this.steps.length - 1)
460923
- this.complete();
460924
- else {
460925
- const i = n ? r + 1 : r - 1;
460926
- this.show(i, n);
460927
- }
460928
- }
460929
- /**
460930
- * Before showing, hide the current step and if the tour is not
460931
- * already active, call `this._setupActiveTour`.
460932
- * @private
460933
- */
460934
- _updateStateBeforeShow() {
460935
- this.currentStep && this.currentStep.hide(), this.isActive() || this._setupActiveTour();
460936
- }
460937
- /**
460938
- * Sets this.id to a provided tourName and id or `${tourName}--${uuid}`
460939
- * @param {string} optionsId - True if we are going forward, false if backward
460940
- * @private
460941
- */
460942
- _setTourID(t) {
460943
- const n = this.options.tourName || "tour", r = t || Bn();
460944
- this.id = `${n}--${r}`;
460945
- }
460946
- }
460947
- const xe = new No(), Qn = typeof window > "u";
460948
- xe.Step = Qn ? Kr : Mt;
460949
- xe.Tour = Qn ? Xr : Wo;
460950
- const Yt = (0,react__rspack_import_0.createContext)(
460951
- void 0
460952
- ), Vo = Yt.Consumer, Ho = () => {
460953
- const e = (0,react__rspack_import_0.useContext)(Yt);
460954
- if (!e)
460955
- throw new Error(
460956
- "useShepherd must be used within a ShepherdJourneyProvider"
460957
- );
460958
- const { Shepherd: t } = e;
460959
- return t;
460960
- }, Uo = ({
460961
- children: e
460962
- }) => /* @__PURE__ */ kr.jsx(Yt.Provider, { value: { Shepherd: xe }, children: e });
460963
-
460964
-
460965
-
460966
457732
  },
460967
457733
  55823(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
460968
457734
  "use strict";
@@ -461478,7 +458244,7 @@ __webpack_require__.u = (chunkId) => {
461478
458244
  // return url for filenames not based on template
461479
458245
 
461480
458246
  // return url for filenames based on template
461481
- return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "7003cb1a09c80db2",1180: "bf0da5909ec1bf8d",1206: "7a21a6529153cd92",1229: "f721ec472f3d61bf",1483: "a97cb8e0e19ee6a8",1602: "e7e1071ebf848675",1644: "bcf66f3692d530c1",1673: "76779c7722e8c6c0",2623: "8c4c253865020062",2779: "887e61b9eaedd06b",3500: "edf66a4b1839dc9e",3760: "3951ba2b351285d2",4556: "17598479895167ce",4683: "2405919bd8ace331",5189: "84584748945c30ec",5302: "d6194babac4a763e",5406: "4dcfa7c697973300",5448: "2f95037652efed71",5696: "272dc2c5437185ad",5731: "694bce33e168bf29",5910: "c7e18d6fa8052576",6489: "95cb243641a61a2f",6495: "b55bf6152c79c033",6749: "56c6f6af824bd38e",6915: "ec5f0cf05ce3909c",6938: "cc0f8c602c431e68",7248: "d5236ec63fa8c2e8",7463: "40668aa8d083d077",7499: "7077a3142f794c5a",781: "82d6ee2e345d45bc",8097: "8ae6404ba94890a0",8423: "17d92db728bb8cf4",8478: "4520037e6185b95f",8492: "7f69ac8594893526",8547: "83e6b5aaeafaf724",8781: "e3743e11fc1fa399",8832: "0abaf55f27d60f6d",89: "dc6cb01735226553",899: "ba3210c3df4f2185",9068: "a54a83cf310fed3f",9116: "236505794a3d44a1",9290: "4ef745b76b6bba71",9383: "6fb1b489e9ca979a",9415: "b975bf39c0ca0895",9437: "37fc1f69324c3e2a",}[chunkId] + ".js"
458247
+ return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "6f630ef3da7e4091",1180: "9a814aa4f1bfdd03",1206: "786e5b556f903028",1229: "f721ec472f3d61bf",1483: "fb532d7ced8184dd",1602: "51881d73264fe759",1644: "bcf66f3692d530c1",1673: "76779c7722e8c6c0",2623: "44c0c8ec6fa40d03",2779: "9d5eff36fd8139e0",3500: "17a25a8fdfdd52c0",3760: "8957f13c55d7299d",4556: "a9dc8f699053693d",4683: "66a729ff538fe200",5189: "ae2e6c3b91f526f7",5302: "d6194babac4a763e",5406: "4dcfa7c697973300",5448: "ac180bf858959dd5",5696: "9f654cb445f620e9",5731: "694bce33e168bf29",5910: "f969465957013c3e",6489: "95cb243641a61a2f",6495: "b55bf6152c79c033",6749: "fb6d182dd48c7b28",6915: "ec5f0cf05ce3909c",6938: "cc0f8c602c431e68",7248: "733800f738588ff0",7463: "40668aa8d083d077",7499: "2733d87480fe06ea",781: "8382ede8d63fca00",8097: "8ae6404ba94890a0",8423: "737712bcde2af2fe",8478: "4520037e6185b95f",8492: "8075ec1ac2714daf",8547: "83e6b5aaeafaf724",8781: "e3743e11fc1fa399",8832: "af14d9822a84e02d",89: "8fe0723d41613b34",899: "3ea5c8d021b1e60d",9068: "e1d5946c370fd4ee",9116: "80437767f5e2f8b4",9290: "db532bebdc2c2d29",9383: "6fb1b489e9ca979a",9415: "501f2d2522499df2",9437: "c225f807752f30e7",}[chunkId] + ".js"
461482
458248
  }
461483
458249
  })();
461484
458250
  // webpack/runtime/get mini-css chunk filename