@meltingspot/widget 1.9.0 → 1.11.0

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.
package/CHANGELOG.md CHANGED
@@ -15,6 +15,22 @@ Date: YYYY-MM-DD
15
15
 
16
16
  -->
17
17
 
18
+ ## v1.11.0
19
+
20
+ Date: 2026-09-15
21
+
22
+ ### Minor Changes
23
+
24
+ - Bump `@meltingspot/core` and `@meltingspot/embed` to `1.11.0`.
25
+
26
+ ## v1.10.0
27
+
28
+ Date: 2026-09-03
29
+
30
+ ### Minor Changes
31
+
32
+ - Bump `@meltingspot/core` and `@meltingspot/embed` to `1.10.0`.
33
+
18
34
  ## v1.9.0
19
35
 
20
36
  Date: 2026-08-18
package/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@meltingspot/core"),t=require("@meltingspot/embed");var n=new e.Logger({appName:`Widget SDK`,appVersion:`1.9.0`}),r=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:t,bind:n,options:r}){this.remove();let i=(0,e.getHTMLElement)({input:t,rootDocument:this.rootDocument});if(this.dialogElement=(0,e.createDialog)(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),i.appendChild(this.dialogElement),n){this.triggerElement=(0,e.getHTMLElement)({input:n,rootDocument:this.rootDocument});let t=this.open.bind(this,r);this.currentListener=e=>{e.stopPropagation(),e.preventDefault(),t()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},i=class extends r{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},a=class extends r{constructor(e,t){super(e,t,`ms-modal`)}},o=class{constructor(t){this.baseURL=(0,e.formatBaseUrl)(t.baseURL),this.spotId=(0,e.formatUUID)(t.spotId),this.widgetId=(0,e.formatUUID)(t.widgetId),this.authToken=t.authToken??null,this.themeMode=t.themeMode??`auto`,this.domain=t.domain??null,this.utmParameters=t.utmParameters??null,this.rootDocument=t.rootDocument}get iframe(){let t=new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,(0,e.trimSlashRight)(this.baseURL)),n=(0,e.createIframe)({url:t,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...(0,e.flattenUtmParameters)(this.utmParameters)},rootDocument:this.rootDocument});return n.classList.add(`ms-widget`),n}},s=class{constructor(t){this.baseURL=(0,e.formatBaseUrl)(t.baseURL),this.spotId=(0,e.formatUUID)(t.spotId),this.widgetContentId=(0,e.formatUUID)(t.widgetContentId),this.contentId=(0,e.formatUUID)(t.contentId),this.widgetId=(0,e.formatUUID)(t.widgetId),this.contentType=t.contentType,this.authToken=t.authToken??null,this.themeMode=t.themeMode??`auto`,this.domain=t.domain??null,this.utmParameters=t.utmParameters??null,this.rootDocument=t.rootDocument}get iframe(){let t=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,(0,e.trimSlashRight)(this.baseURL));t.searchParams.set(`widgetId`,this.widgetId);let n=(0,e.createIframe)({url:t,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...(0,e.flattenUtmParameters)(this.utmParameters)},rootDocument:this.rootDocument});return n.classList.add(`ms-widget-content`),n}},c=class r{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(i,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:l,args:u}=r.createWidget({...a,spotId:o,rootDocument:s,baseURL:c}),d=new t.EmbedFrame(l);return d.inject(i),r.widgets.push(d),n.log(`Widget injected`,r.cleanupLoggedArgs(u),i),d}static injectWidgetContentInto(i,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:l,args:u}=r.createWidgetContent({...a,spotId:o,rootDocument:s,baseURL:c}),d=new t.EmbedFrame(l);return d.inject(i),r.widgets.push(d),n.log(`WidgetContent injected`,r.cleanupLoggedArgs(u),i),d}static bindWidgetModalTo(e,t){return r.bindEntityModalTo(e,{type:`Widget`,data:t})}static bindWidgetDrawerTo(e,t){return r.bindEntityDrawerTo(e,{type:`Widget`,data:t})}static createWidgetDrawer(e){let{widget:t}=r.createWidget(e);return n.log(`Create Widget drawer`,{data:r.cleanupLoggedArgs(e)}),new i(t,e.rootDocument??document)}static createWidgetModal(e){let{widget:t}=r.createWidget(e);return n.log(`Create Widget modal`,{data:r.cleanupLoggedArgs(e)}),new a(t,e.rootDocument??document)}static createWidgetEmbed(e){let{widget:i}=r.createWidget(e),a=new t.EmbedFrame(i);return n.log(`Create Widget embed`,{data:r.cleanupLoggedArgs(e)}),a}static clear(){r.widgets.forEach(e=>{e.remove()}),r.widgets=[],r.widgetOptions={},n.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.data.spotId,rootDocument:a.data.rootDocument??document,msCommunityWebBaseUrl:a.data.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l,u;switch(a.type){case`Widget`:{let e=r.createWidget({...a.data,spotId:o,rootDocument:s,baseURL:c});l=e.widget,u=e.args}break;case`WidgetContent`:{let e=r.createWidgetContent({...a.data,spotId:o,rootDocument:s,baseURL:c});l=e.widgetContent,u=e.args}}let d=new i(l,s),f={position:a.data.position},p=a.data.into??s.body;return d.inject({into:p,bind:t,options:f}),r.widgets.push(d),n.log(`Widget bound to drawer`,r.cleanupLoggedArgs(u),f,p,t),d}static bindEntityModalTo(t,i){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:i.data.spotId,rootDocument:i.data.rootDocument??document,msCommunityWebBaseUrl:i.data.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l,u;switch(i.type){case`Widget`:{let e=r.createWidget({...i.data,spotId:o,rootDocument:s,baseURL:c});l=e.widget,u=e.args}break;case`WidgetContent`:{let e=r.createWidgetContent({...i.data,spotId:o,rootDocument:s,baseURL:c});l=e.widgetContent,u=e.args}}let d=new a(l,s),f=i.data.into??s.body;return d.inject({into:f,bind:t}),r.widgets.push(d),n.log(`Widget bound to modal`,r.cleanupLoggedArgs(u),f,t),d}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let o=t.data?.widgetId;if(!o||typeof o!=`string`){n.error(`widgetId is required in the message event data`);return}let s=r.widgetOptions[o];if(!s){n.error(`No widget options found for widgetId`,{widgetId:o});return}let c=null;try{c=new URL(s.baseURL).origin}catch{c=null}if(!c||t.origin!==c){n.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:c});return}let{spotId:l,rootDocument:u,msCommunityWebBaseUrl:d}=e.ConfigurationService.getConfiguration({spotId:s.spotId,rootDocument:s.rootDocument??document,msCommunityWebBaseUrl:s.baseURL}),{widgetContent:f}=r.createWidgetContent({...s,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:o,spotId:l,rootDocument:u,baseURL:d});t.data.openingIn===`Drawer`?new i(f,u).open():t.data.openingIn===`Modal`&&new a(f,u).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),i={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??(0,e.parseUtmParameters)(n)};return r.widgetOptions[i.widgetId]=i,r.messageListened||=(window.addEventListener(`message`,r.handleMessageEvent),!0),{widget:new o(i),args:i}}static createWidgetContent(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,contentId:t.contentId,contentType:t.contentType,widgetContentId:t.widgetContentId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??(0,e.parseUtmParameters)(n)};return{widgetContent:new s(r),args:r}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},l=globalThis;l.MeltingSpot||={},l.MeltingSpot.Widget=c,exports.Drawer=i,exports.Modal=a,exports.Widget=c;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@meltingspot/core"),t=require("@meltingspot/embed");var n=new e.Logger({appName:`Widget SDK`,appVersion:`1.11.0`}),r=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:t,bind:n,options:r}){this.remove();let i=(0,e.getHTMLElement)({input:t,rootDocument:this.rootDocument});if(this.dialogElement=(0,e.createDialog)(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),i.appendChild(this.dialogElement),n){this.triggerElement=(0,e.getHTMLElement)({input:n,rootDocument:this.rootDocument});let t=this.open.bind(this,r);this.currentListener=e=>{e.stopPropagation(),e.preventDefault(),t()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},i=class extends r{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},a=class extends r{constructor(e,t){super(e,t,`ms-modal`)}},o=class{constructor(t){this.baseURL=(0,e.formatBaseUrl)(t.baseURL),this.spotId=(0,e.formatUUID)(t.spotId),this.widgetId=(0,e.formatUUID)(t.widgetId),this.authToken=t.authToken??null,this.themeMode=t.themeMode??`auto`,this.domain=t.domain??null,this.utmParameters=t.utmParameters??null,this.rootDocument=t.rootDocument}get iframe(){let t=new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,(0,e.trimSlashRight)(this.baseURL)),n=(0,e.createIframe)({url:t,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...(0,e.flattenUtmParameters)(this.utmParameters)},rootDocument:this.rootDocument});return n.classList.add(`ms-widget`),n}},s=class{constructor(t){this.baseURL=(0,e.formatBaseUrl)(t.baseURL),this.spotId=(0,e.formatUUID)(t.spotId),this.widgetContentId=(0,e.formatUUID)(t.widgetContentId),this.contentId=(0,e.formatUUID)(t.contentId),this.widgetId=(0,e.formatUUID)(t.widgetId),this.contentType=t.contentType,this.authToken=t.authToken??null,this.themeMode=t.themeMode??`auto`,this.domain=t.domain??null,this.utmParameters=t.utmParameters??null,this.rootDocument=t.rootDocument}get iframe(){let t=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,(0,e.trimSlashRight)(this.baseURL));t.searchParams.set(`widgetId`,this.widgetId);let n=(0,e.createIframe)({url:t,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...(0,e.flattenUtmParameters)(this.utmParameters)},rootDocument:this.rootDocument});return n.classList.add(`ms-widget-content`),n}},c=class r{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(i,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:l,args:u}=r.createWidget({...a,spotId:o,rootDocument:s,baseURL:c}),d=new t.EmbedFrame(l);return d.inject(i),r.widgets.push(d),n.log(`Widget injected`,r.cleanupLoggedArgs(u),i),d}static injectWidgetContentInto(i,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:l,args:u}=r.createWidgetContent({...a,spotId:o,rootDocument:s,baseURL:c}),d=new t.EmbedFrame(l);return d.inject(i),r.widgets.push(d),n.log(`WidgetContent injected`,r.cleanupLoggedArgs(u),i),d}static bindWidgetModalTo(e,t){return r.bindEntityModalTo(e,{type:`Widget`,data:t})}static bindWidgetDrawerTo(e,t){return r.bindEntityDrawerTo(e,{type:`Widget`,data:t})}static createWidgetDrawer(e){let{widget:t}=r.createWidget(e);return n.log(`Create Widget drawer`,{data:r.cleanupLoggedArgs(e)}),new i(t,e.rootDocument??document)}static createWidgetModal(e){let{widget:t}=r.createWidget(e);return n.log(`Create Widget modal`,{data:r.cleanupLoggedArgs(e)}),new a(t,e.rootDocument??document)}static createWidgetEmbed(e){let{widget:i}=r.createWidget(e),a=new t.EmbedFrame(i);return n.log(`Create Widget embed`,{data:r.cleanupLoggedArgs(e)}),a}static clear(){r.widgets.forEach(e=>{e.remove()}),r.widgets=[],r.widgetOptions={},n.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,a){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:a.data.spotId,rootDocument:a.data.rootDocument??document,msCommunityWebBaseUrl:a.data.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l,u;switch(a.type){case`Widget`:{let e=r.createWidget({...a.data,spotId:o,rootDocument:s,baseURL:c});l=e.widget,u=e.args}break;case`WidgetContent`:{let e=r.createWidgetContent({...a.data,spotId:o,rootDocument:s,baseURL:c});l=e.widgetContent,u=e.args}}let d=new i(l,s),f={position:a.data.position},p=a.data.into??s.body;return d.inject({into:p,bind:t,options:f}),r.widgets.push(d),n.log(`Widget bound to drawer`,r.cleanupLoggedArgs(u),f,p,t),d}static bindEntityModalTo(t,i){let{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=e.ConfigurationService.getConfiguration({spotId:i.data.spotId,rootDocument:i.data.rootDocument??document,msCommunityWebBaseUrl:i.data.baseURL});if(!o)throw n.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l,u;switch(i.type){case`Widget`:{let e=r.createWidget({...i.data,spotId:o,rootDocument:s,baseURL:c});l=e.widget,u=e.args}break;case`WidgetContent`:{let e=r.createWidgetContent({...i.data,spotId:o,rootDocument:s,baseURL:c});l=e.widgetContent,u=e.args}}let d=new a(l,s),f=i.data.into??s.body;return d.inject({into:f,bind:t}),r.widgets.push(d),n.log(`Widget bound to modal`,r.cleanupLoggedArgs(u),f,t),d}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let o=t.data?.widgetId;if(!o||typeof o!=`string`){n.error(`widgetId is required in the message event data`);return}let s=r.widgetOptions[o];if(!s){n.error(`No widget options found for widgetId`,{widgetId:o});return}let c=null;try{c=new URL(s.baseURL).origin}catch{c=null}if(!c||t.origin!==c){n.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:c});return}let{spotId:l,rootDocument:u,msCommunityWebBaseUrl:d}=e.ConfigurationService.getConfiguration({spotId:s.spotId,rootDocument:s.rootDocument??document,msCommunityWebBaseUrl:s.baseURL}),{widgetContent:f}=r.createWidgetContent({...s,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:o,spotId:l,rootDocument:u,baseURL:d});t.data.openingIn===`Drawer`?new i(f,u).open():t.data.openingIn===`Modal`&&new a(f,u).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),i={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??(0,e.parseUtmParameters)(n)};return r.widgetOptions[i.widgetId]=i,r.messageListened||=(window.addEventListener(`message`,r.handleMessageEvent),!0),{widget:new o(i),args:i}}static createWidgetContent(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,contentId:t.contentId,contentType:t.contentType,widgetContentId:t.widgetContentId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??(0,e.parseUtmParameters)(n)};return{widgetContent:new s(r),args:r}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},l=globalThis;l.MeltingSpot||={},l.MeltingSpot.Widget=c,exports.Drawer=i,exports.Modal=a,exports.Widget=c;
package/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { ConfigurationService as e, Logger as t, createDialog as n, createIframe as r, flattenUtmParameters as i, formatBaseUrl as a, formatUUID as o, getHTMLElement as s, parseUtmParameters as c, trimSlashRight as l } from "@meltingspot/core";
2
2
  import { EmbedFrame as u } from "@meltingspot/embed";
3
3
  //#endregion
4
- //#region libs/sdk/widget/src/logger.ts
4
+ //#region src/logger.ts
5
5
  var d = new t({
6
6
  appName: "Widget SDK",
7
- appVersion: "1.9.0"
7
+ appVersion: "1.11.0"
8
8
  }), f = class {
9
9
  constructor(e, t, n) {
10
10
  this.content = e, this.rootDocument = t, this.dialogClassname = n, this.dialogElement = null, this.triggerElement = null, this.iframeElement = null, this.currentListener = null;
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document==="undefined")return;var s=document.createElement("style");s.setAttribute("data-meltingspot","widget");s.textContent=":where(dialog.ms-dialog)[open]{opacity:1}body:has(dialog.ms-dialog[open]){overflow:hidden}:where(dialog.ms-dialog){opacity:0;max-width:100%;max-height:100%;transition:opacity .2s ease-out, overlay .2s ease-out allow-discrete, display .2s ease-out allow-discrete;border:0;padding:0;position:fixed;inset:0;overflow:hidden}:where(dialog.ms-dialog) .ms-dialog-close-button{box-sizing:border-box;color:#fff;background:0 0;border:0;border-radius:4px;width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;font-size:16px;position:absolute;top:8px;right:8px}:where(dialog.ms-dialog) .ms-dialog-close-button span{mix-blend-mode:difference}:where(dialog.ms-dialog) .ms-dialog-close-button svg{mix-blend-mode:difference;margin:auto;transform:translate(0,0)}:where(dialog.ms-dialog) .ms-dialog-close-button:hover{background-blend-mode:difference;background:#c8c8c81a}@starting-style{:where(dialog.ms-dialog)[open]{opacity:0}}:where(dialog.ms-dialog)::backdrop{transition:display .2s allow-discrete, overlay .2s allow-discrete, background-color .2s;background-color:#0000}:where(dialog.ms-dialog)[open]::backdrop{background-color:#00000040}@starting-style{:where(dialog.ms-dialog)[open]::backdrop{background-color:#0000}}:where(.ms-modal){border-radius:0;width:100%;height:100%;margin:0}:where(.ms-drawer){box-sizing:border-box;width:100%;max-width:640px;height:100%}:where(.ms-drawer)[data-position=left]{margin:0 auto 0 0}:where(.ms-drawer)[data-position=right]{margin:0 0 0 auto}@media (width>=640px){:where(.ms-modal){border-radius:8px;width:640px;height:80vh;margin:auto}}@media (width>=1280px){:where(.ms-modal){width:50vw}}\n/*$vite$:1*/";(document.head||document.documentElement).appendChild(s);}catch(e){if(typeof console!=="undefined"){console.error("[MeltingSpot] failed to inject standalone styles",e);}}})();(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MeltingSpotWidget={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d={withStackTrace:!1},f=(e,t,n=d)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function p(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function m(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},o(`next`),o(`throw`),o(`return`),i[Symbol.asyncIterator]=function(){return this},i;function o(e){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{c(r[e](t))}catch(e){d(a[0][3],e)}}function c(e){e.value instanceof h?Promise.resolve(e.value.v).then(l,u):d(a[0][2],e)}function l(e){s(`next`,e)}function u(e){s(`throw`,e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function _(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:r===`return`}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof m==`function`?m(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var y=class e{constructor(e){this._promise=e}static fromSafePromise(t){let n=t.then(e=>new te(e));return new e(n)}static fromPromise(t,n){let r=t.then(e=>new te(e)).catch(e=>new ne(n(e)));return new e(r)}static fromThrowable(t,n){return(...r)=>new e(p(this,void 0,void 0,function*(){try{return new te(yield t(...r))}catch(e){return new ne(n?n(e):e)}}))}static combine(e){return ee(e)}static combineWithAllErrors(e){return C(e)}map(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?new ne(e.error):new te(yield t(e.value))})))}mapErr(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isOk()?new te(e.value):new ne(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new ne(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new te(e.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return g(this,arguments,function*(){return yield h(yield h(yield*_(v(yield h(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}},b=e=>new y(Promise.resolve(new ne(e)));y.fromPromise,y.fromSafePromise,y.fromThrowable;var x=e=>{let t=T([]);for(let n of e)if(n.isErr()){t=E(n.error);break}else t.map(e=>e.push(n.value));return t},ee=e=>y.fromSafePromise(Promise.all(e)).andThen(x),S=e=>{let t=T([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=E([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},C=e=>y.fromSafePromise(Promise.all(e)).andThen(S),w;(function(e){function t(e,t){return(...n)=>{try{return T(e(...n))}catch(e){return E(t?t(e):e)}}}e.fromThrowable=t;function n(e){return x(e)}e.combine=n;function r(e){return S(e)}e.combineWithAllErrors=r})(w||={});var T=e=>new te(e),E=e=>new ne(e),te=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return T(e(this.value))}mapErr(e){return T(this.value)}andThen(e){return e(this.value)}orElse(e){return T(this.value)}asyncAndThen(e){return e(this.value)}asyncMap(e){return y.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return(function*(){return e})()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw f("Called `_unsafeUnwrapErr` on an Ok",this,e)}},ne=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return E(this.error)}mapErr(e){return E(e(this.error))}andThen(e){return E(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return b(this.error)}asyncMap(e){return b(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield E(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw f("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}};w.fromThrowable;var re;(function(e){e[e.CONTINUE=100]=`CONTINUE`,e[e.SWITCHING_PROTOCOLS=101]=`SWITCHING_PROTOCOLS`,e[e.PROCESSING=102]=`PROCESSING`,e[e.EARLY_HINTS=103]=`EARLY_HINTS`,e[e.OK=200]=`OK`,e[e.CREATED=201]=`CREATED`,e[e.ACCEPTED=202]=`ACCEPTED`,e[e.NON_AUTHORITATIVE_INFORMATION=203]=`NON_AUTHORITATIVE_INFORMATION`,e[e.NO_CONTENT=204]=`NO_CONTENT`,e[e.RESET_CONTENT=205]=`RESET_CONTENT`,e[e.PARTIAL_CONTENT=206]=`PARTIAL_CONTENT`,e[e.MULTI_STATUS=207]=`MULTI_STATUS`,e[e.MULTIPLE_CHOICES=300]=`MULTIPLE_CHOICES`,e[e.MOVED_PERMANENTLY=301]=`MOVED_PERMANENTLY`,e[e.MOVED_TEMPORARILY=302]=`MOVED_TEMPORARILY`,e[e.SEE_OTHER=303]=`SEE_OTHER`,e[e.NOT_MODIFIED=304]=`NOT_MODIFIED`,e[e.USE_PROXY=305]=`USE_PROXY`,e[e.TEMPORARY_REDIRECT=307]=`TEMPORARY_REDIRECT`,e[e.PERMANENT_REDIRECT=308]=`PERMANENT_REDIRECT`,e[e.BAD_REQUEST=400]=`BAD_REQUEST`,e[e.UNAUTHORIZED=401]=`UNAUTHORIZED`,e[e.PAYMENT_REQUIRED=402]=`PAYMENT_REQUIRED`,e[e.FORBIDDEN=403]=`FORBIDDEN`,e[e.NOT_FOUND=404]=`NOT_FOUND`,e[e.METHOD_NOT_ALLOWED=405]=`METHOD_NOT_ALLOWED`,e[e.NOT_ACCEPTABLE=406]=`NOT_ACCEPTABLE`,e[e.PROXY_AUTHENTICATION_REQUIRED=407]=`PROXY_AUTHENTICATION_REQUIRED`,e[e.REQUEST_TIMEOUT=408]=`REQUEST_TIMEOUT`,e[e.CONFLICT=409]=`CONFLICT`,e[e.GONE=410]=`GONE`,e[e.LENGTH_REQUIRED=411]=`LENGTH_REQUIRED`,e[e.PRECONDITION_FAILED=412]=`PRECONDITION_FAILED`,e[e.REQUEST_TOO_LONG=413]=`REQUEST_TOO_LONG`,e[e.REQUEST_URI_TOO_LONG=414]=`REQUEST_URI_TOO_LONG`,e[e.UNSUPPORTED_MEDIA_TYPE=415]=`UNSUPPORTED_MEDIA_TYPE`,e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]=`REQUESTED_RANGE_NOT_SATISFIABLE`,e[e.EXPECTATION_FAILED=417]=`EXPECTATION_FAILED`,e[e.IM_A_TEAPOT=418]=`IM_A_TEAPOT`,e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]=`INSUFFICIENT_SPACE_ON_RESOURCE`,e[e.METHOD_FAILURE=420]=`METHOD_FAILURE`,e[e.MISDIRECTED_REQUEST=421]=`MISDIRECTED_REQUEST`,e[e.UNPROCESSABLE_ENTITY=422]=`UNPROCESSABLE_ENTITY`,e[e.LOCKED=423]=`LOCKED`,e[e.FAILED_DEPENDENCY=424]=`FAILED_DEPENDENCY`,e[e.UPGRADE_REQUIRED=426]=`UPGRADE_REQUIRED`,e[e.PRECONDITION_REQUIRED=428]=`PRECONDITION_REQUIRED`,e[e.TOO_MANY_REQUESTS=429]=`TOO_MANY_REQUESTS`,e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]=`REQUEST_HEADER_FIELDS_TOO_LARGE`,e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]=`UNAVAILABLE_FOR_LEGAL_REASONS`,e[e.INTERNAL_SERVER_ERROR=500]=`INTERNAL_SERVER_ERROR`,e[e.NOT_IMPLEMENTED=501]=`NOT_IMPLEMENTED`,e[e.BAD_GATEWAY=502]=`BAD_GATEWAY`,e[e.SERVICE_UNAVAILABLE=503]=`SERVICE_UNAVAILABLE`,e[e.GATEWAY_TIMEOUT=504]=`GATEWAY_TIMEOUT`,e[e.HTTP_VERSION_NOT_SUPPORTED=505]=`HTTP_VERSION_NOT_SUPPORTED`,e[e.INSUFFICIENT_STORAGE=507]=`INSUFFICIENT_STORAGE`,e[e.NETWORK_AUTHENTICATION_REQUIRED=511]=`NETWORK_AUTHENTICATION_REQUIRED`})(re||={});var ie=RegExp(`^/+`),ae=e=>e.replace(ie,``),oe=RegExp(`/+$`),se=e=>e.replace(oe,``);function ce(e,t){let n=e.startsWith(`/`)?e.slice(1):e;return new URL(n,t).toString()}var le=e=>{let{input:t,rootDocument:n=document}=e;if(typeof t==`string`){let e=n.getElementById(t);if(!e)throw Error(`Could not found an HTMLElement with ID '${t}'.`);return e}if(t.tagName)return t;throw Error(`Expected a string or an HTMLElement, but received: ${typeof t}`)},ue=e=>{let t=e.createElement(`dialog`);t.innerHTML=`
1
+ (function(){try{if(typeof document==="undefined")return;var s=document.createElement("style");s.setAttribute("data-meltingspot","widget");s.textContent=":where(dialog.ms-dialog)[open]{opacity:1}body:has(dialog.ms-dialog[open]){overflow:hidden}:where(dialog.ms-dialog){opacity:0;max-width:100%;max-height:100%;transition:opacity .2s ease-out, overlay .2s ease-out allow-discrete, display .2s ease-out allow-discrete;border:0;padding:0;position:fixed;inset:0;overflow:hidden}:where(dialog.ms-dialog) .ms-dialog-close-button{box-sizing:border-box;color:#fff;background:0 0;border:0;border-radius:4px;width:2rem;min-width:2rem;height:2rem;min-height:2rem;padding:0;font-size:16px;position:absolute;top:8px;right:8px}:where(dialog.ms-dialog) .ms-dialog-close-button span{mix-blend-mode:difference}:where(dialog.ms-dialog) .ms-dialog-close-button svg{mix-blend-mode:difference;margin:auto;transform:translate(0,0)}:where(dialog.ms-dialog) .ms-dialog-close-button:hover{background-blend-mode:difference;background:#c8c8c81a}@starting-style{:where(dialog.ms-dialog)[open]{opacity:0}}:where(dialog.ms-dialog)::backdrop{transition:display .2s allow-discrete, overlay .2s allow-discrete, background-color .2s;background-color:#0000}:where(dialog.ms-dialog)[open]::backdrop{background-color:#00000040}@starting-style{:where(dialog.ms-dialog)[open]::backdrop{background-color:#0000}}:where(.ms-modal){border-radius:0;width:100%;height:100%;margin:0}:where(.ms-drawer){box-sizing:border-box;width:100%;max-width:640px;height:100%}:where(.ms-drawer)[data-position=left]{margin:0 auto 0 0}:where(.ms-drawer)[data-position=right]{margin:0 0 0 auto}@media (width>=640px){:where(.ms-modal){border-radius:8px;width:640px;height:80vh;margin:auto}}@media (width>=1280px){:where(.ms-modal){width:50vw}}\n/*$vite$:1*/";(document.head||document.documentElement).appendChild(s);}catch(e){if(typeof console!=="undefined"){console.error("[MeltingSpot] failed to inject standalone styles",e);}}})();(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MeltingSpotWidget={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d={withStackTrace:!1},f=(e,t,n=d)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function p(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function m(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},o(`next`),o(`throw`),o(`return`),i[Symbol.asyncIterator]=function(){return this},i;function o(e){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{c(r[e](t))}catch(e){d(a[0][3],e)}}function c(e){e.value instanceof h?Promise.resolve(e.value.v).then(l,u):d(a[0][2],e)}function l(e){s(`next`,e)}function u(e){s(`throw`,e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function _(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:r===`return`}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof m==`function`?m(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var y=class e{constructor(e){this._promise=e}static fromSafePromise(t){let n=t.then(e=>new te(e));return new e(n)}static fromPromise(t,n){let r=t.then(e=>new te(e)).catch(e=>new ne(n(e)));return new e(r)}static fromThrowable(t,n){return(...r)=>new e(p(this,void 0,void 0,function*(){try{return new te(yield t(...r))}catch(e){return new ne(n?n(e):e)}}))}static combine(e){return ee(e)}static combineWithAllErrors(e){return C(e)}map(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?new ne(e.error):new te(yield t(e.value))})))}mapErr(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isOk()?new te(e.value):new ne(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new ne(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new te(e.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return g(this,arguments,function*(){return yield h(yield h(yield*_(v(yield h(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}},b=e=>new y(Promise.resolve(new ne(e)));y.fromPromise,y.fromSafePromise,y.fromThrowable;var x=e=>{let t=T([]);for(let n of e)if(n.isErr()){t=E(n.error);break}else t.map(e=>e.push(n.value));return t},ee=e=>y.fromSafePromise(Promise.all(e)).andThen(x),S=e=>{let t=T([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=E([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},C=e=>y.fromSafePromise(Promise.all(e)).andThen(S),w;(function(e){function t(e,t){return(...n)=>{try{return T(e(...n))}catch(e){return E(t?t(e):e)}}}e.fromThrowable=t;function n(e){return x(e)}e.combine=n;function r(e){return S(e)}e.combineWithAllErrors=r})(w||={});var T=e=>new te(e),E=e=>new ne(e),te=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return T(e(this.value))}mapErr(e){return T(this.value)}andThen(e){return e(this.value)}orElse(e){return T(this.value)}asyncAndThen(e){return e(this.value)}asyncMap(e){return y.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return(function*(){return e})()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw f("Called `_unsafeUnwrapErr` on an Ok",this,e)}},ne=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return E(this.error)}mapErr(e){return E(e(this.error))}andThen(e){return E(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return b(this.error)}asyncMap(e){return b(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield E(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw f("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}};w.fromThrowable;var D;(function(e){e[e.CONTINUE=100]=`CONTINUE`,e[e.SWITCHING_PROTOCOLS=101]=`SWITCHING_PROTOCOLS`,e[e.PROCESSING=102]=`PROCESSING`,e[e.EARLY_HINTS=103]=`EARLY_HINTS`,e[e.OK=200]=`OK`,e[e.CREATED=201]=`CREATED`,e[e.ACCEPTED=202]=`ACCEPTED`,e[e.NON_AUTHORITATIVE_INFORMATION=203]=`NON_AUTHORITATIVE_INFORMATION`,e[e.NO_CONTENT=204]=`NO_CONTENT`,e[e.RESET_CONTENT=205]=`RESET_CONTENT`,e[e.PARTIAL_CONTENT=206]=`PARTIAL_CONTENT`,e[e.MULTI_STATUS=207]=`MULTI_STATUS`,e[e.MULTIPLE_CHOICES=300]=`MULTIPLE_CHOICES`,e[e.MOVED_PERMANENTLY=301]=`MOVED_PERMANENTLY`,e[e.MOVED_TEMPORARILY=302]=`MOVED_TEMPORARILY`,e[e.SEE_OTHER=303]=`SEE_OTHER`,e[e.NOT_MODIFIED=304]=`NOT_MODIFIED`,e[e.USE_PROXY=305]=`USE_PROXY`,e[e.TEMPORARY_REDIRECT=307]=`TEMPORARY_REDIRECT`,e[e.PERMANENT_REDIRECT=308]=`PERMANENT_REDIRECT`,e[e.BAD_REQUEST=400]=`BAD_REQUEST`,e[e.UNAUTHORIZED=401]=`UNAUTHORIZED`,e[e.PAYMENT_REQUIRED=402]=`PAYMENT_REQUIRED`,e[e.FORBIDDEN=403]=`FORBIDDEN`,e[e.NOT_FOUND=404]=`NOT_FOUND`,e[e.METHOD_NOT_ALLOWED=405]=`METHOD_NOT_ALLOWED`,e[e.NOT_ACCEPTABLE=406]=`NOT_ACCEPTABLE`,e[e.PROXY_AUTHENTICATION_REQUIRED=407]=`PROXY_AUTHENTICATION_REQUIRED`,e[e.REQUEST_TIMEOUT=408]=`REQUEST_TIMEOUT`,e[e.CONFLICT=409]=`CONFLICT`,e[e.GONE=410]=`GONE`,e[e.LENGTH_REQUIRED=411]=`LENGTH_REQUIRED`,e[e.PRECONDITION_FAILED=412]=`PRECONDITION_FAILED`,e[e.REQUEST_TOO_LONG=413]=`REQUEST_TOO_LONG`,e[e.REQUEST_URI_TOO_LONG=414]=`REQUEST_URI_TOO_LONG`,e[e.UNSUPPORTED_MEDIA_TYPE=415]=`UNSUPPORTED_MEDIA_TYPE`,e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]=`REQUESTED_RANGE_NOT_SATISFIABLE`,e[e.EXPECTATION_FAILED=417]=`EXPECTATION_FAILED`,e[e.IM_A_TEAPOT=418]=`IM_A_TEAPOT`,e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]=`INSUFFICIENT_SPACE_ON_RESOURCE`,e[e.METHOD_FAILURE=420]=`METHOD_FAILURE`,e[e.MISDIRECTED_REQUEST=421]=`MISDIRECTED_REQUEST`,e[e.UNPROCESSABLE_ENTITY=422]=`UNPROCESSABLE_ENTITY`,e[e.LOCKED=423]=`LOCKED`,e[e.FAILED_DEPENDENCY=424]=`FAILED_DEPENDENCY`,e[e.UPGRADE_REQUIRED=426]=`UPGRADE_REQUIRED`,e[e.PRECONDITION_REQUIRED=428]=`PRECONDITION_REQUIRED`,e[e.TOO_MANY_REQUESTS=429]=`TOO_MANY_REQUESTS`,e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]=`REQUEST_HEADER_FIELDS_TOO_LARGE`,e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]=`UNAVAILABLE_FOR_LEGAL_REASONS`,e[e.INTERNAL_SERVER_ERROR=500]=`INTERNAL_SERVER_ERROR`,e[e.NOT_IMPLEMENTED=501]=`NOT_IMPLEMENTED`,e[e.BAD_GATEWAY=502]=`BAD_GATEWAY`,e[e.SERVICE_UNAVAILABLE=503]=`SERVICE_UNAVAILABLE`,e[e.GATEWAY_TIMEOUT=504]=`GATEWAY_TIMEOUT`,e[e.HTTP_VERSION_NOT_SUPPORTED=505]=`HTTP_VERSION_NOT_SUPPORTED`,e[e.INSUFFICIENT_STORAGE=507]=`INSUFFICIENT_STORAGE`,e[e.NETWORK_AUTHENTICATION_REQUIRED=511]=`NETWORK_AUTHENTICATION_REQUIRED`})(D||={});var re=RegExp(`^/+`),ie=e=>e.replace(re,``),ae=RegExp(`/+$`),oe=e=>e.replace(ae,``);function se(e,t){let n=e.startsWith(`/`)?e.slice(1):e;return new URL(n,t).toString()}var ce=e=>{let{input:t,rootDocument:n=document}=e;if(typeof t==`string`){let e=n.getElementById(t);if(!e)throw Error(`Could not found an HTMLElement with ID '${t}'.`);return e}if(t.tagName)return t;throw Error(`Expected a string or an HTMLElement, but received: ${typeof t}`)},le=e=>{let t=e.createElement(`dialog`);t.innerHTML=`
2
2
  <form method="dialog">
3
3
  <button class="ms-dialog-close-button" aria-label="Close" autofocus>
4
4
  <span>
@@ -11,23 +11,23 @@
11
11
  </span>
12
12
  </button>
13
13
  </form>
14
- `,t.classList.add(`ms-dialog`),t.addEventListener(`click`,e=>{e.target===t&&t.close()});let n=t.querySelector(`.ms-dialog-close-button`);return n&&n.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.close()}),t},de=[`accelerometer *`,`autoplay`,`camera`,`clipboard-write *`,`display-capture`,`encrypted-media *`,`fullscreen`,`gyroscope *`,`microphone`,`picture-in-picture *`,`screen-wake-lock`],fe=e=>{let{url:t,searchParams:n={},permissionPolicies:r=[],rootDocument:i=document}=e;Object.entries(n).forEach(([e,n])=>{n!=null&&t.searchParams.set(e,String(n))});let a=i.createElement(`iframe`);return a.src=t.toString(),a.allow=de.concat(r).join(`; `),a.width=`100%`,a.height=`100%`,a.style.border=`0`,a},pe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,ee=function(e){return e instanceof T||!(!e||!e[x])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(ee(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=ee,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),E=T.prototype;return C.prototype=E,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=ee,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),me=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),he=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),ge=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),_e=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=r===0,s;if(r!==0){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),ve=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(pe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),ye=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(pe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),be=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),xe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(pe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),Se=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(pe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un' ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),Ce=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(pe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sab`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sa`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`alguns segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),we=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(pe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),Te=u(pe()),Ee=u(me()),De=u(he()),Oe=u(ge()),ke=u(_e());ve(),ye(),be(),xe(),Se(),Ce(),we(),Te.default.extend(ke.default),Te.default.extend(Oe.default),Te.default.extend(De.default),Te.default.extend(Ee.default),s(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,te=`[object DOMException]`,ne=`[object Error]`,re=`[object Function]`,ie=`[object GeneratorFunction]`,ae=`[object Map]`,oe=`[object Number]`,se=`[object Null]`,ce=`[object Object]`,le=`[object Promise]`,ue=`[object Proxy]`,de=`[object RegExp]`,fe=`[object Set]`,pe=`[object String]`,me=`[object Symbol]`,he=`[object Undefined]`,ge=`[object WeakMap]`,_e=`[object WeakSet]`,ve=`[object ArrayBuffer]`,ye=`[object DataView]`,be=`[object Float32Array]`,xe=`[object Float64Array]`,Se=`[object Int8Array]`,Ce=`[object Int16Array]`,we=`[object Int32Array]`,Te=`[object Uint8Array]`,Ee=`[object Uint8ClampedArray]`,De=`[object Uint16Array]`,Oe=`[object Uint32Array]`,ke=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,je=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Me=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,Pe=RegExp(Me.source),Fe=RegExp(Ne.source),Ie=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,He=/[\\^$.*+?()[\]{}|]/g,Ue=RegExp(He.source),We=/^\s+/,D=/\s/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,Je=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,et=/^\[object .+?Constructor\]$/,tt=/^0o[0-7]+$/i,nt=/^(?:0|[1-9]\d*)$/,rt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,at=/['\n\r\u2028\u2029\\]/g,ot=`\\ud800-\\udfff`,st=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,ct=`\\u2700-\\u27bf`,k=`a-z\\xdf-\\xf6\\xf8-\\xff`,lt=`\\xac\\xb1\\xd7\\xf7`,ut=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,dt=`\\u2000-\\u206f`,A=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,j=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ft=`\\ufe0e\\ufe0f`,pt=lt+ut+dt+A,mt=`['’]`,M=`[`+ot+`]`,ht=`[`+pt+`]`,N=`[`+st+`]`,gt=`\\d+`,_t=`[`+ct+`]`,vt=`[`+k+`]`,yt=`[^`+ot+pt+gt+ct+k+j+`]`,bt=`\\ud83c[\\udffb-\\udfff]`,xt=`(?:`+N+`|`+bt+`)`,St=`[^`+ot+`]`,Ct=`(?:\\ud83c[\\udde6-\\uddff]){2}`,wt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Tt=`[`+j+`]`,Et=`\\u200d`,Dt=`(?:`+vt+`|`+yt+`)`,Ot=`(?:`+Tt+`|`+yt+`)`,kt=`(?:`+mt+`(?:d|ll|m|re|s|t|ve))?`,At=`(?:`+mt+`(?:D|LL|M|RE|S|T|VE))?`,jt=xt+`?`,Mt=`[`+ft+`]?`,Nt=`(?:`+Et+`(?:`+[St,Ct,wt].join(`|`)+`)`+Mt+jt+`)*`,Pt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Ft=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,It=Mt+jt+Nt,Lt=`(?:`+[_t,Ct,wt].join(`|`)+`)`+It,Rt=`(?:`+[St+N+`?`,N,Ct,wt,M].join(`|`)+`)`,zt=RegExp(mt,`g`),Bt=RegExp(N,`g`),Vt=RegExp(bt+`(?=`+bt+`)|`+Rt+It,`g`),Ht=RegExp([Tt+`?`+vt+`+`+kt+`(?=`+[ht,Tt,`$`].join(`|`)+`)`,Ot+`+`+At+`(?=`+[ht,Tt+Dt,`$`].join(`|`)+`)`,Tt+`?`+Dt+`+`+kt,Tt+`+`+At,Ft,Pt,gt,Lt].join(`|`),`g`),Ut=RegExp(`[`+Et+ot+st+ft+`]`),P=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Gt=-1,F={};F[be]=F[xe]=F[Se]=F[Ce]=F[we]=F[Te]=F[Ee]=F[De]=F[Oe]=!0,F[S]=F[C]=F[ve]=F[T]=F[ye]=F[E]=F[ne]=F[re]=F[ae]=F[oe]=F[ce]=F[de]=F[fe]=F[pe]=F[ge]=!1;var I={};I[S]=I[C]=I[ve]=I[ye]=I[T]=I[E]=I[be]=I[xe]=I[Se]=I[Ce]=I[we]=I[ae]=I[oe]=I[ce]=I[de]=I[fe]=I[pe]=I[me]=I[Te]=I[Ee]=I[De]=I[Oe]=!0,I[ne]=I[re]=I[ge]=!1;var L={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Kt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},qt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Jt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Yt=parseFloat,Xt=parseInt,Zt=typeof global==`object`&&global&&global.Object===Object&&global,Qt=typeof self==`object`&&self&&self.Object===Object&&self,R=Zt||Qt||Function(`return this`)(),$t=typeof e==`object`&&e&&!e.nodeType&&e,en=$t&&typeof t==`object`&&t&&!t.nodeType&&t,tn=en&&en.exports===$t,nn=tn&&Zt.process,z=function(){try{return en&&en.require&&en.require(`util`).types||nn&&nn.binding&&nn.binding(`util`)}catch{}}(),rn=z&&z.isArrayBuffer,an=z&&z.isDate,on=z&&z.isMap,sn=z&&z.isRegExp,cn=z&&z.isSet,ln=z&&z.isTypedArray;function un(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function dn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function pn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function mn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function hn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function gn(e,t){return!!(e!=null&&e.length)&&Dn(e,t,0)>-1}function _n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function B(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function vn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function yn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function bn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Sn=jn(`length`);function Cn(e){return e.split(``)}function wn(e){return e.match(Je)||[]}function Tn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function En(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Dn(e,t,n){return t===t?rr(e,t,n):En(e,kn,n)}function On(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function kn(e){return e!==e}function An(e,t){var n=e==null?0:e.length;return n?Fn(e,t)/n:v}function jn(e){return function(t){return t==null?n:t[e]}}function Mn(e){return function(t){return e==null?n:e[t]}}function Nn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Pn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Fn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function In(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ln(e,t){return B(t,function(t){return[t,e[t]]})}function Rn(e){return e&&e.slice(0,sr(e)+1).replace(We,``)}function zn(e){return function(t){return e(t)}}function Bn(e,t){return B(t,function(t){return e[t]})}function Vn(e,t){return e.has(t)}function Hn(e,t){for(var n=-1,r=e.length;++n<r&&Dn(t,e[n],0)>-1;);return n}function Un(e,t){for(var n=e.length;n--&&Dn(t,e[n],0)>-1;);return n}function Wn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gn=Mn(L),Kn=Mn(Kt);function qn(e){return`\\`+Jt[e]}function Jn(e,t){return e==null?n:e[t]}function Yn(e){return Ut.test(e)}function Xn(e){return P.test(e)}function Zn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $n(e,t){return function(n){return e(t(n))}}function er(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function nr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function rr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ir(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function ar(e){return Yn(e)?lr(e):Sn(e)}function or(e){return Yn(e)?ur(e):Cn(e)}function sr(e){for(var t=e.length;t--&&D.test(e.charAt(t)););return t}var cr=Mn(qt);function lr(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}function ur(e){return e.match(Vt)||[]}function dr(e){return e.match(Ht)||[]}var fr=(function e(t){t=t==null?R:fr.defaults(R.Object(),t,fr.pick(R,Wt));var D=t.Array,Je=t.Date,ot=t.Error,st=t.Function,ct=t.Math,k=t.Object,lt=t.RegExp,ut=t.String,dt=t.TypeError,A=D.prototype,j=st.prototype,ft=k.prototype,pt=t[`__core-js_shared__`],mt=j.toString,M=ft.hasOwnProperty,ht=0,N=function(){var e=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),gt=ft.toString,_t=mt.call(k),vt=R._,yt=lt(`^`+mt.call(M).replace(He,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),bt=tn?t.Buffer:n,xt=t.Symbol,St=t.Uint8Array,Ct=bt?bt.allocUnsafe:n,wt=$n(k.getPrototypeOf,k),Tt=k.create,Et=ft.propertyIsEnumerable,Dt=A.splice,Ot=xt?xt.isConcatSpreadable:n,kt=xt?xt.iterator:n,At=xt?xt.toStringTag:n,jt=function(){try{var e=Lo(k,`defineProperty`);return e({},``,{}),e}catch{}}(),Mt=t.clearTimeout!==R.clearTimeout&&t.clearTimeout,Nt=Je&&Je.now!==R.Date.now&&Je.now,Pt=t.setTimeout!==R.setTimeout&&t.setTimeout,Ft=ct.ceil,It=ct.floor,Lt=k.getOwnPropertySymbols,Rt=bt?bt.isBuffer:n,Vt=t.isFinite,Ht=A.join,Ut=$n(k.keys,k),P=ct.max,L=ct.min,Kt=Je.now,qt=t.parseInt,Jt=ct.random,Zt=A.reverse,Qt=Lo(t,`DataView`),$t=Lo(t,`Map`),en=Lo(t,`Promise`),nn=Lo(t,`Set`),z=Lo(t,`WeakMap`),Sn=Lo(k,`create`),Cn=z&&new z,Mn={},rr=xs(Qt),lr=xs($t),ur=xs(en),pr=xs(nn),mr=xs(z),hr=xt?xt.prototype:n,gr=hr?hr.valueOf:n,_r=hr?hr.toString:n;function V(e){if(X(e)&&!q(e)&&!(e instanceof H)){if(e instanceof br)return e;if(M.call(e,`__wrapped__`))return Cs(e)}return new br(e)}var vr=function(){function e(){}return function(t){if(!Y(t))return{};if(Tt)return Tt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function yr(){}function br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}V.templateSettings={escape:Ie,evaluate:Le,interpolate:Re,variable:``,imports:{_:V}},V.prototype=yr.prototype,V.prototype.constructor=V,br.prototype=vr(yr.prototype),br.prototype.constructor=br;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function xr(){var e=new H(this.__wrapped__);return e.__actions__=Ja(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ja(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ja(this.__views__),e}function Sr(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Cr(){var e=this.__wrapped__.value(),t=this.__dir__,n=q(e),r=t<0,i=n?e.length:0,a=Vo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=L(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return ka(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}H.prototype=vr(yr.prototype),H.prototype.constructor=H;function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Tr(){this.__data__=Sn?Sn(null):{},this.size=0}function Er(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Dr(e){var t=this.__data__;if(Sn){var r=t[e];return r===i?n:r}return M.call(t,e)?t[e]:n}function Or(e){var t=this.__data__;return Sn?t[e]!==n:M.call(t,e)}function kr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Sn&&t===n?i:t,this}wr.prototype.clear=Tr,wr.prototype.delete=Er,wr.prototype.get=Dr,wr.prototype.has=Or,wr.prototype.set=kr;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jr(){this.__data__=[],this.size=0}function Mr(e){var t=this.__data__,n=ri(t,e);return n<0?!1:(n==t.length-1?t.pop():Dt.call(t,n,1),--this.size,!0)}function Nr(e){var t=this.__data__,r=ri(t,e);return r<0?n:t[r][1]}function Pr(e){return ri(this.__data__,e)>-1}function Fr(e,t){var n=this.__data__,r=ri(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Ar.prototype.clear=jr,Ar.prototype.delete=Mr,Ar.prototype.get=Nr,Ar.prototype.has=Pr,Ar.prototype.set=Fr;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.size=0,this.__data__={hash:new wr,map:new($t||Ar),string:new wr}}function Rr(e){var t=Fo(this,e).delete(e);return this.size-=+!!t,t}function zr(e){return Fo(this,e).get(e)}function Br(e){return Fo(this,e).has(e)}function Vr(e,t){var n=Fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ir.prototype.clear=Lr,Ir.prototype.delete=Rr,Ir.prototype.get=zr,Ir.prototype.has=Br,Ir.prototype.set=Vr;function Hr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ir;++t<n;)this.add(e[t])}function Ur(e){return this.__data__.set(e,i),this}function Wr(e){return this.__data__.has(e)}Hr.prototype.add=Hr.prototype.push=Ur,Hr.prototype.has=Wr;function Gr(e){var t=this.__data__=new Ar(e);this.size=t.size}function Kr(){this.__data__=new Ar,this.size=0}function qr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jr(e){return this.__data__.get(e)}function Yr(e){return this.__data__.has(e)}function Xr(e,t){var n=this.__data__;if(n instanceof Ar){var r=n.__data__;if(!$t||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ir(r)}return n.set(e,t),this.size=n.size,this}Gr.prototype.clear=Kr,Gr.prototype.delete=qr,Gr.prototype.get=Jr,Gr.prototype.has=Yr,Gr.prototype.set=Xr;function Zr(e,t){var n=q(e),r=!n&&Xl(e),i=!n&&!r&&eu(e),a=!n&&!r&&!i&&Tu(e),o=n||r||i||a,s=o?In(e.length,ut):[],c=s.length;for(var l in e)(t||M.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function Qr(e){var t=e.length;return t?e[la(0,t-1)]:n}function $r(e,t){return vs(Ja(e),li(t,0,e.length))}function ei(e){return vs(Ja(e))}function ti(e,t,r){(r!==n&&!ql(e[t],r)||r===n&&!(t in e))&&si(e,t,r)}function ni(e,t,r){var i=e[t];(!(M.call(e,t)&&ql(i,r))||r===n&&!(t in e))&&si(e,t,r)}function ri(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}function ii(e,t,n,r){return hi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ai(e,t){return e&&Ya(t,$(t),e)}function oi(e,t){return e&&Ya(t,ad(t),e)}function si(e,t,n){t==`__proto__`&&jt?jt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ci(e,t){for(var r=-1,i=t.length,a=D(i),o=e==null;++r<i;)a[r]=o?n:$u(e,t[r]);return a}function li(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ui(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Y(e))return e;var d=q(e);if(d){if(s=Wo(e),!c)return Ja(e,s)}else{var f=K(e),p=f==re||f==ie;if(eu(e))return Ra(e,c);if(f==ce||f==S||p&&!a){if(s=l||p?{}:Go(e),!c)return l?Za(e,oi(s,e)):Xa(e,ai(s,e))}else{if(!I[f])return a?e:{};s=Ko(e,f,c)}}o||=new Gr;var m=o.get(e);if(m)return m;o.set(e,s),Su(e)?e.forEach(function(n){s.add(ui(n,t,r,n,e,o))}):du(e)&&e.forEach(function(n,i){s.set(i,ui(n,t,r,i,e,o))});var h=d?n:(u?l?jo:Ao:l?ad:$)(e);return fn(h||e,function(n,i){h&&(i=n,n=e[i]),ni(s,i,ui(n,t,r,i,e,o))}),s}function di(e){var t=$(e);return function(n){return fi(n,e,t)}}function fi(e,t,r){var i=r.length;if(e==null)return!i;for(e=k(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function pi(e,t,i){if(typeof e!=`function`)throw new dt(r);return ms(function(){e.apply(n,i)},t)}function mi(e,t,n,r){var i=-1,a=gn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=B(t,zn(n))),r?(a=_n,o=!1):t.length>=200&&(a=Vn,o=!1,t=new Hr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var hi=eo(Ci),gi=eo(wi,!0);function _i(e,t){var n=!0;return hi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function vi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!wu(s):r(s,c)))var c=s,l=o}return l}function yi(e,t,r,i){var a=e.length;for(r=Z(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Z(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function bi(e,t){var n=[];return hi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function U(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?U(s,t-1,n,r,i):vn(i,s):r||(i[i.length]=s)}return i}var xi=to(),Si=to(!0);function Ci(e,t){return e&&xi(e,t,$)}function wi(e,t){return e&&Si(e,t,$)}function Ti(e,t){return hn(t,function(t){return cu(e[t])})}function Ei(e,t){t=Pa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function Di(e,t,n){var r=t(e);return q(e)?r:vn(r,n(e))}function Oi(e){return e==null?e===n?he:se:At&&At in k(e)?Ro(e):cs(e)}function ki(e,t){return e>t}function Ai(e,t){return e!=null&&M.call(e,t)}function ji(e,t){return e!=null&&t in k(e)}function Mi(e,t,n){return e>=L(t,n)&&e<P(t,n)}function Ni(e,t,r){for(var i=r?_n:gn,a=e[0].length,o=e.length,s=o,c=D(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=B(d,zn(t))),l=L(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Hr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Vn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Vn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Pi(e,t,n,r){return Ci(e,function(e,i,a){t(r,n(e),i,a)}),r}function Fi(e,t,r){t=Pa(t,e),e=us(e,t);var i=e==null?e:e[bs(Js(t))];return i==null?n:un(i,e,r)}function Ii(e){return X(e)&&Oi(e)==S}function Li(e){return X(e)&&Oi(e)==ve}function Ri(e){return X(e)&&Oi(e)==E}function zi(e,t,n,r,i){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Bi(e,t,n,r,zi,i)}function Bi(e,t,n,r,i,a){var o=q(e),s=q(t),c=o?C:K(e),l=s?C:K(t);c=c==S?ce:c,l=l==S?ce:l;var u=c==ce,d=l==ce,f=c==l;if(f&&eu(e)){if(!eu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Gr,o||Tu(e)?Eo(e,t,n,r,i,a):Do(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&M.call(e,`__wrapped__`),m=d&&M.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Gr,i(h,g,n,r,a)}}return f?(a||=new Gr,Oo(e,t,n,r,i,a)):!1}function Vi(e){return X(e)&&K(e)==ae}function Hi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=k(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Gr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?zi(d,u,3,i,f):p))return!1}}return!0}function Ui(e){return!Y(e)||es(e)?!1:(cu(e)?yt:et).test(xs(e))}function Wi(e){return X(e)&&Oi(e)==de}function Gi(e){return X(e)&&K(e)==fe}function Ki(e){return X(e)&&uu(e.length)&&!!F[Oi(e)]}function qi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?q(e)?$i(e[0],e[1]):Qi(e):Ef(e)}function Ji(e){if(!ns(e))return Ut(e);var t=[];for(var n in k(e))M.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Yi(e){if(!Y(e))return ss(e);var t=ns(e),n=[];for(var r in e)r==`constructor`&&(t||!M.call(e,r))||n.push(r);return n}function Xi(e,t){return e<t}function Zi(e,t){var n=-1,r=Ql(e)?D(e.length):[];return hi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Qi(e){var t=Io(e);return t.length==1&&t[0][2]?is(t[0][0],t[0][1]):function(n){return n===e||Hi(n,e,t)}}function $i(e,t){return Zo(e)&&rs(t)?is(bs(e),t):function(r){var i=$u(r,e);return i===n&&i===t?td(r,e):zi(t,i,3)}}function ea(e,t,r,i,a){e!==t&&xi(t,function(o,s){if(a||=new Gr,Y(o))ta(e,t,s,r,ea,i,a);else{var c=i?i(fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ti(e,s,c)}},ad)}function ta(e,t,r,i,a,o,s){var c=fs(e,r),l=fs(t,r),u=s.get(l);if(u){ti(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=q(l),m=!p&&eu(l),h=!p&&!m&&Tu(l);d=l,p||m||h?q(c)?d=c:J(c)?d=Ja(c):m?(f=!1,d=Ra(l,!0)):h?(f=!1,d=Ua(l,!0)):d=[]:yu(l)||Xl(l)?(d=c,Xl(c)?d=Fu(c):(!Y(c)||cu(c))&&(d=Go(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ti(e,r,d)}function na(e,t){var r=e.length;if(r)return t+=t<0?r:0,Yo(t,r)?e[t]:n}function ra(e,t,n){t=t.length?B(t,function(e){return q(e)?function(t){return Ei(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=B(t,zn(G())),Pn(Zi(e,function(e,n,i){return{criteria:B(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Ga(e,t,n)})}function ia(e,t){return aa(e,t,function(t,n){return td(e,n)})}function aa(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ei(e,o);n(s,o)&&ma(a,Pa(o,e),s)}return a}function oa(e){return function(t){return Ei(t,e)}}function sa(e,t,n,r){var i=r?On:Dn,a=-1,o=t.length,s=e;for(e===t&&(t=Ja(t)),n&&(s=B(e,zn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Dt.call(s,c,1),Dt.call(e,c,1);return e}function ca(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Dt.call(e,i,1):Ea(e,i)}}return e}function la(e,t){return e+It(Jt()*(t-e+1))}function ua(e,t,n,r){for(var i=-1,a=P(Ft((t-e)/(n||1)),0),o=D(a);a--;)o[r?a:++i]=e,e+=n;return o}function da(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=It(t/2),t&&(e+=e);while(t);return n}function W(e,t){return hs(ls(e,t,pf),e+``)}function fa(e){return Qr(Cd(e))}function pa(e,t){var n=Cd(e);return vs(n,li(t,0,n.length))}function ma(e,t,r,i){if(!Y(e))return e;t=Pa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=bs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Y(d)?d:Yo(t[a+1])?[]:{})}ni(c,l,u),c=c[l]}return e}var ha=Cn?function(e,t){return Cn.set(e,t),e}:pf,ga=jt?function(e,t){return jt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function _a(e){return vs(Cd(e))}function va(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=D(i);++r<i;)a[r]=e[r+t];return a}function ya(e,t){var n;return hi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ba(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!wu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return xa(e,t,pf,n)}function xa(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=wu(t),u=t===n;a<o;){var d=It((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=wu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return L(o,b)}function Sa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!ql(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ca(e){return typeof e==`number`?e:wu(e)?v:+e}function wa(e){if(typeof e==`string`)return e;if(q(e))return B(e,wa)+``;if(wu(e))return _r?_r.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ta(e,t,n){var r=-1,i=gn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=_n;else if(a>=200){var l=t?null:bo(e);if(l)return tr(l);o=!1,i=Vn,c=new Hr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ea(e,t){return t=Pa(t,e),e=us(e,t),e==null||delete e[bs(Js(t))]}function Da(e,t,n,r){return ma(e,t,n(Ei(e,t)),r)}function Oa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?va(e,r?0:a,r?a+1:i):va(e,r?a+1:0,r?i:a)}function ka(e,t){var n=e;return n instanceof H&&(n=n.value()),yn(t,function(e,t){return t.func.apply(t.thisArg,vn([e],t.args))},n)}function Aa(e,t,n){var r=e.length;if(r<2)return r?Ta(e[0]):[];for(var i=-1,a=D(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=mi(a[i]||o,e[s],t,n));return Ta(U(a,1),t,n)}function ja(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ma(e){return J(e)?e:[]}function Na(e){return typeof e==`function`?e:pf}function Pa(e,t){return q(e)?e:Zo(e,t)?[e]:ys(Q(e))}var Fa=W;function Ia(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:va(e,t,r)}var La=Mt||function(e){return R.clearTimeout(e)};function Ra(e,t){if(t)return e.slice();var n=e.length,r=Ct?Ct(n):new e.constructor(n);return e.copy(r),r}function za(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Ba(e,t){var n=t?za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Va(e){var t=new e.constructor(e.source,Qe.exec(e));return t.lastIndex=e.lastIndex,t}function Ha(e){return gr?k(gr.call(e)):{}}function Ua(e,t){var n=t?za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Wa(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=wu(e),s=t!==n,c=t===null,l=t===t,u=wu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Ga(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Wa(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ka(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=P(a-o,0),u=D(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function qa(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=P(a-s,0),d=D(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ja(e,t){var n=-1,r=e.length;for(t||=D(r);++n<r;)t[n]=e[n];return t}function Ya(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?si(r,c,l):ni(r,c,l)}return r}function Xa(e,t){return Ya(e,zo(e),t)}function Za(e,t){return Ya(e,Bo(e),t)}function Qa(e,t){return function(n,r){var i=q(n)?dn:ii,a=t?t():{};return i(n,e,G(r,2),a)}}function $a(e){return W(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Xo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=k(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function eo(e,t){return function(n,r){if(n==null)return n;if(!Ql(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=k(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function to(e){return function(t,n,r){for(var i=-1,a=k(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function no(e,t,n){var r=t&o,i=ao(e);function a(){return(this&&this!==R&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function ro(e){return function(t){t=Q(t);var r=Yn(t)?or(t):n,i=r?r[0]:t.charAt(0),a=r?Ia(r,1).join(``):t.slice(1);return i[e]()+a}}function io(e){return function(t){return yn(rf(Ad(t).replace(zt,``)),e,``)}}function ao(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=vr(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function oo(e,t,r){var i=ao(e);function a(){for(var o=arguments.length,s=D(o),c=o,l=Po(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:er(s,l);return o-=u.length,o<r?vo(e,t,lo,a.placeholder,n,s,u,n,n,r-o):un(this&&this!==R&&this instanceof a?i:e,this,s)}return a}function so(e){return function(t,r,i){var a=k(t);if(!Ql(t)){var o=G(r,3);t=$(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function co(e){return ko(function(t){var i=t.length,a=i,o=br.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new dt(r);if(o&&!l&&No(s)==`wrapper`)var l=new br([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=No(s),m=d==`wrapper`?Mo(s):n;l=m&&$o(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[No(m[0])].apply(l,m[3]):s.length==1&&$o(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&q(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function lo(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:ao(e);function S(){for(var n=arguments.length,o=D(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Po(S),l=Wn(o,c);if(i&&(o=Ka(o,i,a,b)),u&&(o=qa(o,u,d,b)),n-=l,b&&n<g){var f=er(o,c);return vo(e,t,lo,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=ds(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==R&&this instanceof S&&(C=ee||ao(C)),C.apply(m,o)}return S}function uo(e,t){return function(n,r){return Pi(n,e,t(r),{})}}function fo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=wa(r),i=wa(i)):(r=Ca(r),i=Ca(i)),a=e(r,i)}return a}}function po(e){return ko(function(t){return t=B(t,zn(G())),W(function(n){var r=this;return e(t,function(e){return un(e,r,n)})})})}function mo(e,t){t=t===n?` `:wa(t);var r=t.length;if(r<2)return r?da(t,e):t;var i=da(t,Ft(e/ar(t)));return Yn(t)?Ia(or(i),0,e).join(``):i.slice(0,e)}function ho(e,t,n,r){var i=t&o,a=ao(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=D(l+o),d=this&&this!==R&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return un(d,i?n:this,u)}return s}function go(e){return function(t,r,i){return i&&typeof i!=`number`&&Xo(t,r,i)&&(r=i=n),t=Mu(t),r===n?(r=t,t=0):r=Mu(r),i=i===n?t<r?1:-1:Mu(i),ua(t,r,i,e)}}function _o(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Pu(t),n=Pu(n)),e(t,n)}}function vo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return $o(e)&&ps(ee,x),ee.placeholder=i,gs(ee,e,t)}function yo(e){var t=ct[e];return function(e,n){if(e=Pu(e),n=n==null?0:L(Z(n),292),n&&Vt(e)){var r=(Q(e)+`e`).split(`e`);return r=(Q(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var bo=nn&&1/tr(new nn([,-0]))[1]==h?function(e){return new nn(e)}:xf;function xo(e){return function(t){var n=K(t);return n==ae?Qn(t):n==fe?nr(t):Ln(t,e(t))}}function So(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new dt(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:P(Z(m),0),h=h===n?h:Z(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Mo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&os(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:P(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=no(e,t,i);else ee=t==c||t==l?oo(e,t,h):(t==u||t==(o|u))&&!f.length?ho(e,t,i,a):lo.apply(n,x);return gs((b?ha:ps)(ee,x),e,t)}function Co(e,t,r,i){return e===n||ql(e,ft[r])&&!M.call(i,r)?t:e}function wo(e,t,r,i,a,o){return Y(e)&&Y(t)&&(o.set(t,e),ea(e,t,n,wo,o),o.delete(t)),e}function To(e){return yu(e)?n:e}function Eo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Hr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!xn(t,function(e,t){if(!Vn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Do(e,t,n,r,i,a,o){switch(n){case ye:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ve:return!(e.byteLength!=t.byteLength||!a(new St(e),new St(t)));case T:case E:case oe:return ql(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case de:case pe:return e==t+``;case ae:var s=Qn;case fe:var c=r&1;if(s||=tr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=Eo(s(e),s(t),r,i,a,o);return o.delete(e),u;case me:if(gr)return gr.call(e)==gr.call(t)}return!1}function Oo(e,t,r,i,a,o){var s=r&1,c=Ao(e),l=c.length;if(l!=Ao(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:M.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function ko(e){return hs(ls(e,n,Ls),e+``)}function Ao(e){return Di(e,$,zo)}function jo(e){return Di(e,ad,Bo)}var Mo=Cn?function(e){return Cn.get(e)}:xf;function No(e){for(var t=e.name+``,n=Mn[t],r=M.call(Mn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Po(e){return(M.call(V,`placeholder`)?V:e).placeholder}function G(){var e=V.iteratee||mf;return e=e===mf?qi:e,arguments.length?e(arguments[0],arguments[1]):e}function Fo(e,t){var n=e.__data__;return Qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Io(e){for(var t=$(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rs(i)]}return t}function Lo(e,t){var r=Jn(e,t);return Ui(r)?r:n}function Ro(e){var t=M.call(e,At),r=e[At];try{e[At]=n;var i=!0}catch{}var a=gt.call(e);return i&&(t?e[At]=r:delete e[At]),a}var zo=Lt?function(e){return e==null?[]:(e=k(e),hn(Lt(e),function(t){return Et.call(e,t)}))}:Af,Bo=Lt?function(e){for(var t=[];e;)vn(t,zo(e)),e=wt(e);return t}:Af,K=Oi;(Qt&&K(new Qt(new ArrayBuffer(1)))!=ye||$t&&K(new $t)!=ae||en&&K(en.resolve())!=le||nn&&K(new nn)!=fe||z&&K(new z)!=ge)&&(K=function(e){var t=Oi(e),r=t==ce?e.constructor:n,i=r?xs(r):``;if(i)switch(i){case rr:return ye;case lr:return ae;case ur:return le;case pr:return fe;case mr:return ge}return t});function Vo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=L(t,e+o);break;case`takeRight`:e=P(e,t-o)}}return{start:e,end:t}}function Ho(e){var t=e.match(Ke);return t?t[1].split(qe):[]}function Uo(e,t,n){t=Pa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=bs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&uu(i)&&Yo(o,i)&&(q(e)||Xl(e)))}function Wo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&M.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Go(e){return typeof e.constructor==`function`&&!ns(e)?vr(wt(e)):{}}function Ko(e,t,n){var r=e.constructor;switch(t){case ve:return za(e);case T:case E:return new r(+e);case ye:return Ba(e,n);case be:case xe:case Se:case Ce:case we:case Te:case Ee:case De:case Oe:return Ua(e,n);case ae:return new r;case oe:case pe:return new r(e);case de:return Va(e);case fe:return new r;case me:return Ha(e)}}function qo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Ge,`{
14
+ `,t.classList.add(`ms-dialog`),t.addEventListener(`click`,e=>{e.target===t&&t.close()});let n=t.querySelector(`.ms-dialog-close-button`);return n&&n.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.close()}),t},ue=[`accelerometer *`,`autoplay`,`camera`,`clipboard-write *`,`display-capture`,`encrypted-media *`,`fullscreen`,`gyroscope *`,`microphone`,`picture-in-picture *`,`screen-wake-lock`],de=e=>{let{url:t,searchParams:n={},permissionPolicies:r=[],rootDocument:i=document}=e;Object.entries(n).forEach(([e,n])=>{n!=null&&t.searchParams.set(e,String(n))});let a=i.createElement(`iframe`);return a.src=t.toString(),a.allow=ue.concat(r).join(`; `),a.width=`100%`,a.height=`100%`,a.style.border=`0`,a},fe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,ee=function(e){return e instanceof T||!(!e||!e[x])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(ee(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=ee,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),E=T.prototype;return C.prototype=E,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=ee,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),pe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),me=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),he=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s<r.length;s+=1){var c=r[s],l=c.type,u=c.value,d=e[l];d>=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){e===void 0&&(e=a);var n,r=this.utcOffset(),o=this.toDate(),s=o.toLocaleString(`en-US`,{timeZone:e}),c=Math.round((o-new Date(s))/1e3/60),l=15*-Math.round(o.getTimezoneOffset()/15)-c;if(!Number(l))n=this.utcOffset(0,t);else if(n=i(s,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,r).valueOf(),c,o),u=l[0],d=l[1],f=i(u).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))})),ge=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=r===0,s;if(r!==0){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),_e=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),ve=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),ye=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),be=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),xe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un' ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),Se=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sab`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sa`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`alguns segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),Ce=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(fe()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),we=u(fe()),Te=u(pe()),Ee=u(me()),De=u(he()),Oe=u(ge());_e(),ve(),ye(),be(),xe(),Se(),Ce(),we.default.extend(Oe.default),we.default.extend(De.default),we.default.extend(Ee.default),we.default.extend(Te.default),s(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,ee=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,te=`[object DOMException]`,ne=`[object Error]`,D=`[object Function]`,re=`[object GeneratorFunction]`,ie=`[object Map]`,ae=`[object Number]`,oe=`[object Null]`,se=`[object Object]`,ce=`[object Promise]`,le=`[object Proxy]`,ue=`[object RegExp]`,de=`[object Set]`,fe=`[object String]`,pe=`[object Symbol]`,me=`[object Undefined]`,he=`[object WeakMap]`,ge=`[object WeakSet]`,_e=`[object ArrayBuffer]`,ve=`[object DataView]`,ye=`[object Float32Array]`,be=`[object Float64Array]`,xe=`[object Int8Array]`,Se=`[object Int16Array]`,Ce=`[object Int32Array]`,we=`[object Uint8Array]`,Te=`[object Uint8ClampedArray]`,Ee=`[object Uint16Array]`,De=`[object Uint32Array]`,Oe=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,je=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,Ne=RegExp(je.source),Pe=RegExp(Me.source),Fe=/<%-([\s\S]+?)%>/g,Ie=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/[\\^$.*+?()[\]{}|]/g,He=RegExp(Ve.source),Ue=/^\s+/,O=/\s/,We=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Je=/[()=,{}\[\]\/\s]/,Ye=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ze=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,et=/^0o[0-7]+$/i,tt=/^(?:0|[1-9]\d*)$/,nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rt=/($^)/,it=/['\n\r\u2028\u2029\\]/g,at=`\\ud800-\\udfff`,ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,st=`\\u2700-\\u27bf`,A=`a-z\\xdf-\\xf6\\xf8-\\xff`,ct=`\\xac\\xb1\\xd7\\xf7`,lt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ut=`\\u2000-\\u206f`,j=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,M=`A-Z\\xc0-\\xd6\\xd8-\\xde`,dt=`\\ufe0e\\ufe0f`,ft=ct+lt+ut+j,pt=`['’]`,N=`[`+at+`]`,mt=`[`+ft+`]`,ht=`[`+ot+`]`,gt=`\\d+`,_t=`[`+st+`]`,vt=`[`+A+`]`,yt=`[^`+at+ft+gt+st+A+M+`]`,bt=`\\ud83c[\\udffb-\\udfff]`,xt=`(?:`+ht+`|`+bt+`)`,St=`[^`+at+`]`,Ct=`(?:\\ud83c[\\udde6-\\uddff]){2}`,wt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Tt=`[`+M+`]`,Et=`\\u200d`,Dt=`(?:`+vt+`|`+yt+`)`,Ot=`(?:`+Tt+`|`+yt+`)`,kt=`(?:`+pt+`(?:d|ll|m|re|s|t|ve))?`,At=`(?:`+pt+`(?:D|LL|M|RE|S|T|VE))?`,jt=xt+`?`,Mt=`[`+dt+`]?`,Nt=`(?:`+Et+`(?:`+[St,Ct,wt].join(`|`)+`)`+Mt+jt+`)*`,Pt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Ft=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,It=Mt+jt+Nt,Lt=`(?:`+[_t,Ct,wt].join(`|`)+`)`+It,Rt=`(?:`+[St+ht+`?`,ht,Ct,wt,N].join(`|`)+`)`,zt=RegExp(pt,`g`),Bt=RegExp(ht,`g`),Vt=RegExp(bt+`(?=`+bt+`)|`+Rt+It,`g`),Ht=RegExp([Tt+`?`+vt+`+`+kt+`(?=`+[mt,Tt,`$`].join(`|`)+`)`,Ot+`+`+At+`(?=`+[mt,Tt+Dt,`$`].join(`|`)+`)`,Tt+`?`+Dt+`+`+kt,Tt+`+`+At,Ft,Pt,gt,Lt].join(`|`),`g`),Ut=RegExp(`[`+Et+at+ot+dt+`]`),P=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Gt=-1,F={};F[ye]=F[be]=F[xe]=F[Se]=F[Ce]=F[we]=F[Te]=F[Ee]=F[De]=!0,F[S]=F[C]=F[_e]=F[T]=F[ve]=F[E]=F[ne]=F[D]=F[ie]=F[ae]=F[se]=F[ue]=F[de]=F[fe]=F[he]=!1;var I={};I[S]=I[C]=I[_e]=I[ve]=I[T]=I[E]=I[ye]=I[be]=I[xe]=I[Se]=I[Ce]=I[ie]=I[ae]=I[se]=I[ue]=I[de]=I[fe]=I[pe]=I[we]=I[Te]=I[Ee]=I[De]=!0,I[ne]=I[D]=I[he]=!1;var L={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Kt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},qt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Jt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Yt=parseFloat,Xt=parseInt,Zt=typeof global==`object`&&global&&global.Object===Object&&global,Qt=typeof self==`object`&&self&&self.Object===Object&&self,R=Zt||Qt||Function(`return this`)(),$t=typeof e==`object`&&e&&!e.nodeType&&e,en=$t&&typeof t==`object`&&t&&!t.nodeType&&t,tn=en&&en.exports===$t,nn=tn&&Zt.process,z=function(){try{return en&&en.require&&en.require(`util`).types||nn&&nn.binding&&nn.binding(`util`)}catch{}}(),rn=z&&z.isArrayBuffer,an=z&&z.isDate,on=z&&z.isMap,sn=z&&z.isRegExp,cn=z&&z.isSet,ln=z&&z.isTypedArray;function un(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function dn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function pn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function mn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function hn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function gn(e,t){return!!(e!=null&&e.length)&&Dn(e,t,0)>-1}function _n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function B(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function vn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function yn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function bn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Sn=jn(`length`);function Cn(e){return e.split(``)}function wn(e){return e.match(qe)||[]}function Tn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function En(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Dn(e,t,n){return t===t?rr(e,t,n):En(e,kn,n)}function On(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function kn(e){return e!==e}function An(e,t){var n=e==null?0:e.length;return n?Fn(e,t)/n:v}function jn(e){return function(t){return t==null?n:t[e]}}function Mn(e){return function(t){return e==null?n:e[t]}}function Nn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Pn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Fn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function In(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ln(e,t){return B(t,function(t){return[t,e[t]]})}function Rn(e){return e&&e.slice(0,sr(e)+1).replace(Ue,``)}function zn(e){return function(t){return e(t)}}function Bn(e,t){return B(t,function(t){return e[t]})}function Vn(e,t){return e.has(t)}function Hn(e,t){for(var n=-1,r=e.length;++n<r&&Dn(t,e[n],0)>-1;);return n}function Un(e,t){for(var n=e.length;n--&&Dn(t,e[n],0)>-1;);return n}function Wn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gn=Mn(L),Kn=Mn(Kt);function qn(e){return`\\`+Jt[e]}function Jn(e,t){return e==null?n:e[t]}function Yn(e){return Ut.test(e)}function Xn(e){return P.test(e)}function Zn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $n(e,t){return function(n){return e(t(n))}}function er(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function nr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function rr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ir(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function ar(e){return Yn(e)?lr(e):Sn(e)}function or(e){return Yn(e)?ur(e):Cn(e)}function sr(e){for(var t=e.length;t--&&O.test(e.charAt(t)););return t}var cr=Mn(qt);function lr(e){for(var t=Vt.lastIndex=0;Vt.test(e);)++t;return t}function ur(e){return e.match(Vt)||[]}function dr(e){return e.match(Ht)||[]}var fr=(function e(t){t=t==null?R:fr.defaults(R.Object(),t,fr.pick(R,Wt));var O=t.Array,qe=t.Date,at=t.Error,ot=t.Function,st=t.Math,A=t.Object,ct=t.RegExp,lt=t.String,ut=t.TypeError,j=O.prototype,M=ot.prototype,dt=A.prototype,ft=t[`__core-js_shared__`],pt=M.toString,N=dt.hasOwnProperty,mt=0,ht=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),gt=dt.toString,_t=pt.call(A),vt=R._,yt=ct(`^`+pt.call(N).replace(Ve,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),bt=tn?t.Buffer:n,xt=t.Symbol,St=t.Uint8Array,Ct=bt?bt.allocUnsafe:n,wt=$n(A.getPrototypeOf,A),Tt=A.create,Et=dt.propertyIsEnumerable,Dt=j.splice,Ot=xt?xt.isConcatSpreadable:n,kt=xt?xt.iterator:n,At=xt?xt.toStringTag:n,jt=function(){try{var e=Lo(A,`defineProperty`);return e({},``,{}),e}catch{}}(),Mt=t.clearTimeout!==R.clearTimeout&&t.clearTimeout,Nt=qe&&qe.now!==R.Date.now&&qe.now,Pt=t.setTimeout!==R.setTimeout&&t.setTimeout,Ft=st.ceil,It=st.floor,Lt=A.getOwnPropertySymbols,Rt=bt?bt.isBuffer:n,Vt=t.isFinite,Ht=j.join,Ut=$n(A.keys,A),P=st.max,L=st.min,Kt=qe.now,qt=t.parseInt,Jt=st.random,Zt=j.reverse,Qt=Lo(t,`DataView`),$t=Lo(t,`Map`),en=Lo(t,`Promise`),nn=Lo(t,`Set`),z=Lo(t,`WeakMap`),Sn=Lo(A,`create`),Cn=z&&new z,Mn={},rr=xs(Qt),lr=xs($t),ur=xs(en),pr=xs(nn),mr=xs(z),hr=xt?xt.prototype:n,gr=hr?hr.valueOf:n,_r=hr?hr.toString:n;function V(e){if(X(e)&&!q(e)&&!(e instanceof H)){if(e instanceof br)return e;if(N.call(e,`__wrapped__`))return Cs(e)}return new br(e)}var vr=function(){function e(){}return function(t){if(!Y(t))return{};if(Tt)return Tt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function yr(){}function br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}V.templateSettings={escape:Fe,evaluate:Ie,interpolate:Le,variable:``,imports:{_:V}},V.prototype=yr.prototype,V.prototype.constructor=V,br.prototype=vr(yr.prototype),br.prototype.constructor=br;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function xr(){var e=new H(this.__wrapped__);return e.__actions__=Ja(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ja(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ja(this.__views__),e}function Sr(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Cr(){var e=this.__wrapped__.value(),t=this.__dir__,n=q(e),r=t<0,i=n?e.length:0,a=Vo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=L(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return ka(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}H.prototype=vr(yr.prototype),H.prototype.constructor=H;function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Tr(){this.__data__=Sn?Sn(null):{},this.size=0}function Er(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Dr(e){var t=this.__data__;if(Sn){var r=t[e];return r===i?n:r}return N.call(t,e)?t[e]:n}function Or(e){var t=this.__data__;return Sn?t[e]!==n:N.call(t,e)}function kr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Sn&&t===n?i:t,this}wr.prototype.clear=Tr,wr.prototype.delete=Er,wr.prototype.get=Dr,wr.prototype.has=Or,wr.prototype.set=kr;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jr(){this.__data__=[],this.size=0}function Mr(e){var t=this.__data__,n=ri(t,e);return n<0?!1:(n==t.length-1?t.pop():Dt.call(t,n,1),--this.size,!0)}function Nr(e){var t=this.__data__,r=ri(t,e);return r<0?n:t[r][1]}function Pr(e){return ri(this.__data__,e)>-1}function Fr(e,t){var n=this.__data__,r=ri(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Ar.prototype.clear=jr,Ar.prototype.delete=Mr,Ar.prototype.get=Nr,Ar.prototype.has=Pr,Ar.prototype.set=Fr;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.size=0,this.__data__={hash:new wr,map:new($t||Ar),string:new wr}}function Rr(e){var t=Fo(this,e).delete(e);return this.size-=+!!t,t}function zr(e){return Fo(this,e).get(e)}function Br(e){return Fo(this,e).has(e)}function Vr(e,t){var n=Fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ir.prototype.clear=Lr,Ir.prototype.delete=Rr,Ir.prototype.get=zr,Ir.prototype.has=Br,Ir.prototype.set=Vr;function Hr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ir;++t<n;)this.add(e[t])}function Ur(e){return this.__data__.set(e,i),this}function Wr(e){return this.__data__.has(e)}Hr.prototype.add=Hr.prototype.push=Ur,Hr.prototype.has=Wr;function Gr(e){var t=this.__data__=new Ar(e);this.size=t.size}function Kr(){this.__data__=new Ar,this.size=0}function qr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jr(e){return this.__data__.get(e)}function Yr(e){return this.__data__.has(e)}function Xr(e,t){var n=this.__data__;if(n instanceof Ar){var r=n.__data__;if(!$t||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ir(r)}return n.set(e,t),this.size=n.size,this}Gr.prototype.clear=Kr,Gr.prototype.delete=qr,Gr.prototype.get=Jr,Gr.prototype.has=Yr,Gr.prototype.set=Xr;function Zr(e,t){var n=q(e),r=!n&&Xl(e),i=!n&&!r&&eu(e),a=!n&&!r&&!i&&Tu(e),o=n||r||i||a,s=o?In(e.length,lt):[],c=s.length;for(var l in e)(t||N.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function Qr(e){var t=e.length;return t?e[la(0,t-1)]:n}function $r(e,t){return vs(Ja(e),li(t,0,e.length))}function ei(e){return vs(Ja(e))}function ti(e,t,r){(r!==n&&!ql(e[t],r)||r===n&&!(t in e))&&si(e,t,r)}function ni(e,t,r){var i=e[t];(!(N.call(e,t)&&ql(i,r))||r===n&&!(t in e))&&si(e,t,r)}function ri(e,t){for(var n=e.length;n--;)if(ql(e[n][0],t))return n;return-1}function ii(e,t,n,r){return hi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ai(e,t){return e&&Ya(t,$(t),e)}function oi(e,t){return e&&Ya(t,ad(t),e)}function si(e,t,n){t==`__proto__`&&jt?jt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ci(e,t){for(var r=-1,i=t.length,a=O(i),o=e==null;++r<i;)a[r]=o?n:$u(e,t[r]);return a}function li(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ui(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Y(e))return e;var d=q(e);if(d){if(s=Wo(e),!c)return Ja(e,s)}else{var f=K(e),p=f==D||f==re;if(eu(e))return Ra(e,c);if(f==se||f==S||p&&!a){if(s=l||p?{}:Go(e),!c)return l?Za(e,oi(s,e)):Xa(e,ai(s,e))}else{if(!I[f])return a?e:{};s=Ko(e,f,c)}}o||=new Gr;var m=o.get(e);if(m)return m;o.set(e,s),Su(e)?e.forEach(function(n){s.add(ui(n,t,r,n,e,o))}):du(e)&&e.forEach(function(n,i){s.set(i,ui(n,t,r,i,e,o))});var h=d?n:(u?l?jo:Ao:l?ad:$)(e);return fn(h||e,function(n,i){h&&(i=n,n=e[i]),ni(s,i,ui(n,t,r,i,e,o))}),s}function di(e){var t=$(e);return function(n){return fi(n,e,t)}}function fi(e,t,r){var i=r.length;if(e==null)return!i;for(e=A(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function pi(e,t,i){if(typeof e!=`function`)throw new ut(r);return ms(function(){e.apply(n,i)},t)}function mi(e,t,n,r){var i=-1,a=gn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=B(t,zn(n))),r?(a=_n,o=!1):t.length>=200&&(a=Vn,o=!1,t=new Hr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var hi=eo(Ci),gi=eo(wi,!0);function _i(e,t){var n=!0;return hi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function vi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!wu(s):r(s,c)))var c=s,l=o}return l}function yi(e,t,r,i){var a=e.length;for(r=Z(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Z(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function bi(e,t){var n=[];return hi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function U(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?U(s,t-1,n,r,i):vn(i,s):r||(i[i.length]=s)}return i}var xi=to(),Si=to(!0);function Ci(e,t){return e&&xi(e,t,$)}function wi(e,t){return e&&Si(e,t,$)}function Ti(e,t){return hn(t,function(t){return cu(e[t])})}function Ei(e,t){t=Pa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function Di(e,t,n){var r=t(e);return q(e)?r:vn(r,n(e))}function Oi(e){return e==null?e===n?me:oe:At&&At in A(e)?Ro(e):cs(e)}function ki(e,t){return e>t}function Ai(e,t){return e!=null&&N.call(e,t)}function ji(e,t){return e!=null&&t in A(e)}function Mi(e,t,n){return e>=L(t,n)&&e<P(t,n)}function Ni(e,t,r){for(var i=r?_n:gn,a=e[0].length,o=e.length,s=o,c=O(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=B(d,zn(t))),l=L(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Hr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Vn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Vn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function Pi(e,t,n,r){return Ci(e,function(e,i,a){t(r,n(e),i,a)}),r}function Fi(e,t,r){t=Pa(t,e),e=us(e,t);var i=e==null?e:e[bs(Js(t))];return i==null?n:un(i,e,r)}function Ii(e){return X(e)&&Oi(e)==S}function Li(e){return X(e)&&Oi(e)==_e}function Ri(e){return X(e)&&Oi(e)==E}function zi(e,t,n,r,i){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Bi(e,t,n,r,zi,i)}function Bi(e,t,n,r,i,a){var o=q(e),s=q(t),c=o?C:K(e),l=s?C:K(t);c=c==S?se:c,l=l==S?se:l;var u=c==se,d=l==se,f=c==l;if(f&&eu(e)){if(!eu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Gr,o||Tu(e)?Eo(e,t,n,r,i,a):Do(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&N.call(e,`__wrapped__`),m=d&&N.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Gr,i(h,g,n,r,a)}}return f?(a||=new Gr,Oo(e,t,n,r,i,a)):!1}function Vi(e){return X(e)&&K(e)==ie}function Hi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=A(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Gr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?zi(d,u,3,i,f):p))return!1}}return!0}function Ui(e){return!Y(e)||es(e)?!1:(cu(e)?yt:$e).test(xs(e))}function Wi(e){return X(e)&&Oi(e)==ue}function Gi(e){return X(e)&&K(e)==de}function Ki(e){return X(e)&&uu(e.length)&&!!F[Oi(e)]}function qi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?q(e)?$i(e[0],e[1]):Qi(e):Ef(e)}function Ji(e){if(!ns(e))return Ut(e);var t=[];for(var n in A(e))N.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Yi(e){if(!Y(e))return ss(e);var t=ns(e),n=[];for(var r in e)r==`constructor`&&(t||!N.call(e,r))||n.push(r);return n}function Xi(e,t){return e<t}function Zi(e,t){var n=-1,r=Ql(e)?O(e.length):[];return hi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Qi(e){var t=Io(e);return t.length==1&&t[0][2]?is(t[0][0],t[0][1]):function(n){return n===e||Hi(n,e,t)}}function $i(e,t){return Zo(e)&&rs(t)?is(bs(e),t):function(r){var i=$u(r,e);return i===n&&i===t?td(r,e):zi(t,i,3)}}function ea(e,t,r,i,a){e!==t&&xi(t,function(o,s){if(a||=new Gr,Y(o))ta(e,t,s,r,ea,i,a);else{var c=i?i(fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ti(e,s,c)}},ad)}function ta(e,t,r,i,a,o,s){var c=fs(e,r),l=fs(t,r),u=s.get(l);if(u){ti(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=q(l),m=!p&&eu(l),h=!p&&!m&&Tu(l);d=l,p||m||h?q(c)?d=c:J(c)?d=Ja(c):m?(f=!1,d=Ra(l,!0)):h?(f=!1,d=Ua(l,!0)):d=[]:yu(l)||Xl(l)?(d=c,Xl(c)?d=Fu(c):(!Y(c)||cu(c))&&(d=Go(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ti(e,r,d)}function na(e,t){var r=e.length;if(r)return t+=t<0?r:0,Yo(t,r)?e[t]:n}function ra(e,t,n){t=t.length?B(t,function(e){return q(e)?function(t){return Ei(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=B(t,zn(G())),Pn(Zi(e,function(e,n,i){return{criteria:B(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Ga(e,t,n)})}function ia(e,t){return aa(e,t,function(t,n){return td(e,n)})}function aa(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ei(e,o);n(s,o)&&ma(a,Pa(o,e),s)}return a}function oa(e){return function(t){return Ei(t,e)}}function sa(e,t,n,r){var i=r?On:Dn,a=-1,o=t.length,s=e;for(e===t&&(t=Ja(t)),n&&(s=B(e,zn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Dt.call(s,c,1),Dt.call(e,c,1);return e}function ca(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Dt.call(e,i,1):Ea(e,i)}}return e}function la(e,t){return e+It(Jt()*(t-e+1))}function ua(e,t,n,r){for(var i=-1,a=P(Ft((t-e)/(n||1)),0),o=O(a);a--;)o[r?a:++i]=e,e+=n;return o}function da(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=It(t/2),t&&(e+=e);while(t);return n}function W(e,t){return hs(ls(e,t,pf),e+``)}function fa(e){return Qr(Cd(e))}function pa(e,t){var n=Cd(e);return vs(n,li(t,0,n.length))}function ma(e,t,r,i){if(!Y(e))return e;t=Pa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=bs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Y(d)?d:Yo(t[a+1])?[]:{})}ni(c,l,u),c=c[l]}return e}var ha=Cn?function(e,t){return Cn.set(e,t),e}:pf,ga=jt?function(e,t){return jt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function _a(e){return vs(Cd(e))}function va(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=O(i);++r<i;)a[r]=e[r+t];return a}function ya(e,t){var n;return hi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ba(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!wu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return xa(e,t,pf,n)}function xa(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=wu(t),u=t===n;a<o;){var d=It((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=wu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return L(o,b)}function Sa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!ql(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ca(e){return typeof e==`number`?e:wu(e)?v:+e}function wa(e){if(typeof e==`string`)return e;if(q(e))return B(e,wa)+``;if(wu(e))return _r?_r.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Ta(e,t,n){var r=-1,i=gn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=_n;else if(a>=200){var l=t?null:bo(e);if(l)return tr(l);o=!1,i=Vn,c=new Hr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ea(e,t){return t=Pa(t,e),e=us(e,t),e==null||delete e[bs(Js(t))]}function Da(e,t,n,r){return ma(e,t,n(Ei(e,t)),r)}function Oa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?va(e,r?0:a,r?a+1:i):va(e,r?a+1:0,r?i:a)}function ka(e,t){var n=e;return n instanceof H&&(n=n.value()),yn(t,function(e,t){return t.func.apply(t.thisArg,vn([e],t.args))},n)}function Aa(e,t,n){var r=e.length;if(r<2)return r?Ta(e[0]):[];for(var i=-1,a=O(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=mi(a[i]||o,e[s],t,n));return Ta(U(a,1),t,n)}function ja(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ma(e){return J(e)?e:[]}function Na(e){return typeof e==`function`?e:pf}function Pa(e,t){return q(e)?e:Zo(e,t)?[e]:ys(Q(e))}var Fa=W;function Ia(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:va(e,t,r)}var La=Mt||function(e){return R.clearTimeout(e)};function Ra(e,t){if(t)return e.slice();var n=e.length,r=Ct?Ct(n):new e.constructor(n);return e.copy(r),r}function za(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Ba(e,t){var n=t?za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Va(e){var t=new e.constructor(e.source,Ze.exec(e));return t.lastIndex=e.lastIndex,t}function Ha(e){return gr?A(gr.call(e)):{}}function Ua(e,t){var n=t?za(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Wa(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=wu(e),s=t!==n,c=t===null,l=t===t,u=wu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Ga(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Wa(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ka(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=P(a-o,0),u=O(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function qa(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=P(a-s,0),d=O(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ja(e,t){var n=-1,r=e.length;for(t||=O(r);++n<r;)t[n]=e[n];return t}function Ya(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?si(r,c,l):ni(r,c,l)}return r}function Xa(e,t){return Ya(e,zo(e),t)}function Za(e,t){return Ya(e,Bo(e),t)}function Qa(e,t){return function(n,r){var i=q(n)?dn:ii,a=t?t():{};return i(n,e,G(r,2),a)}}function $a(e){return W(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Xo(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=A(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function eo(e,t){return function(n,r){if(n==null)return n;if(!Ql(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=A(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function to(e){return function(t,n,r){for(var i=-1,a=A(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function no(e,t,n){var r=t&o,i=ao(e);function a(){return(this&&this!==R&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function ro(e){return function(t){t=Q(t);var r=Yn(t)?or(t):n,i=r?r[0]:t.charAt(0),a=r?Ia(r,1).join(``):t.slice(1);return i[e]()+a}}function io(e){return function(t){return yn(rf(Ad(t).replace(zt,``)),e,``)}}function ao(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=vr(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function oo(e,t,r){var i=ao(e);function a(){for(var o=arguments.length,s=O(o),c=o,l=Po(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:er(s,l);return o-=u.length,o<r?vo(e,t,lo,a.placeholder,n,s,u,n,n,r-o):un(this&&this!==R&&this instanceof a?i:e,this,s)}return a}function so(e){return function(t,r,i){var a=A(t);if(!Ql(t)){var o=G(r,3);t=$(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function co(e){return ko(function(t){var i=t.length,a=i,o=br.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new ut(r);if(o&&!l&&No(s)==`wrapper`)var l=new br([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=No(s),m=d==`wrapper`?Mo(s):n;l=m&&$o(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[No(m[0])].apply(l,m[3]):s.length==1&&$o(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&q(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function lo(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,ee=y?n:ao(e);function S(){for(var n=arguments.length,o=O(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Po(S),l=Wn(o,c);if(i&&(o=Ka(o,i,a,b)),u&&(o=qa(o,u,d,b)),n-=l,b&&n<g){var f=er(o,c);return vo(e,t,lo,S.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,C=y?m[e]:e;return n=o.length,p?o=ds(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==R&&this instanceof S&&(C=ee||ao(C)),C.apply(m,o)}return S}function uo(e,t){return function(n,r){return Pi(n,e,t(r),{})}}function fo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=wa(r),i=wa(i)):(r=Ca(r),i=Ca(i)),a=e(r,i)}return a}}function po(e){return ko(function(t){return t=B(t,zn(G())),W(function(n){var r=this;return e(t,function(e){return un(e,r,n)})})})}function mo(e,t){t=t===n?` `:wa(t);var r=t.length;if(r<2)return r?da(t,e):t;var i=da(t,Ft(e/ar(t)));return Yn(t)?Ia(or(i),0,e).join(``):i.slice(0,e)}function ho(e,t,n,r){var i=t&o,a=ao(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=O(l+o),d=this&&this!==R&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return un(d,i?n:this,u)}return s}function go(e){return function(t,r,i){return i&&typeof i!=`number`&&Xo(t,r,i)&&(r=i=n),t=Mu(t),r===n?(r=t,t=0):r=Mu(r),i=i===n?t<r?1:-1:Mu(i),ua(t,r,i,e)}}function _o(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Pu(t),n=Pu(n)),e(t,n)}}function vo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],ee=r.apply(n,x);return $o(e)&&ps(ee,x),ee.placeholder=i,gs(ee,e,t)}function yo(e){var t=st[e];return function(e,n){if(e=Pu(e),n=n==null?0:L(Z(n),292),n&&Vt(e)){var r=(Q(e)+`e`).split(`e`);return r=(Q(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var bo=nn&&1/tr(new nn([,-0]))[1]==h?function(e){return new nn(e)}:xf;function xo(e){return function(t){var n=K(t);return n==ie?Qn(t):n==de?nr(t):Ln(t,e(t))}}function So(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new ut(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:P(Z(m),0),h=h===n?h:Z(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Mo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&os(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:P(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var ee=no(e,t,i);else ee=t==c||t==l?oo(e,t,h):(t==u||t==(o|u))&&!f.length?ho(e,t,i,a):lo.apply(n,x);return gs((b?ha:ps)(ee,x),e,t)}function Co(e,t,r,i){return e===n||ql(e,dt[r])&&!N.call(i,r)?t:e}function wo(e,t,r,i,a,o){return Y(e)&&Y(t)&&(o.set(t,e),ea(e,t,n,wo,o),o.delete(t)),e}function To(e){return yu(e)?n:e}function Eo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Hr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!xn(t,function(e,t){if(!Vn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Do(e,t,n,r,i,a,o){switch(n){case ve:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _e:return!(e.byteLength!=t.byteLength||!a(new St(e),new St(t)));case T:case E:case ae:return ql(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case ue:case fe:return e==t+``;case ie:var s=Qn;case de:var c=r&1;if(s||=tr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=Eo(s(e),s(t),r,i,a,o);return o.delete(e),u;case pe:if(gr)return gr.call(e)==gr.call(t)}return!1}function Oo(e,t,r,i,a,o){var s=r&1,c=Ao(e),l=c.length;if(l!=Ao(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:N.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function ko(e){return hs(ls(e,n,Ls),e+``)}function Ao(e){return Di(e,$,zo)}function jo(e){return Di(e,ad,Bo)}var Mo=Cn?function(e){return Cn.get(e)}:xf;function No(e){for(var t=e.name+``,n=Mn[t],r=N.call(Mn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Po(e){return(N.call(V,`placeholder`)?V:e).placeholder}function G(){var e=V.iteratee||mf;return e=e===mf?qi:e,arguments.length?e(arguments[0],arguments[1]):e}function Fo(e,t){var n=e.__data__;return Qo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Io(e){for(var t=$(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rs(i)]}return t}function Lo(e,t){var r=Jn(e,t);return Ui(r)?r:n}function Ro(e){var t=N.call(e,At),r=e[At];try{e[At]=n;var i=!0}catch{}var a=gt.call(e);return i&&(t?e[At]=r:delete e[At]),a}var zo=Lt?function(e){return e==null?[]:(e=A(e),hn(Lt(e),function(t){return Et.call(e,t)}))}:Af,Bo=Lt?function(e){for(var t=[];e;)vn(t,zo(e)),e=wt(e);return t}:Af,K=Oi;(Qt&&K(new Qt(new ArrayBuffer(1)))!=ve||$t&&K(new $t)!=ie||en&&K(en.resolve())!=ce||nn&&K(new nn)!=de||z&&K(new z)!=he)&&(K=function(e){var t=Oi(e),r=t==se?e.constructor:n,i=r?xs(r):``;if(i)switch(i){case rr:return ve;case lr:return ie;case ur:return ce;case pr:return de;case mr:return he}return t});function Vo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=L(t,e+o);break;case`takeRight`:e=P(e,t-o)}}return{start:e,end:t}}function Ho(e){var t=e.match(Ge);return t?t[1].split(Ke):[]}function Uo(e,t,n){t=Pa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=bs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&uu(i)&&Yo(o,i)&&(q(e)||Xl(e)))}function Wo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&N.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Go(e){return typeof e.constructor==`function`&&!ns(e)?vr(wt(e)):{}}function Ko(e,t,n){var r=e.constructor;switch(t){case _e:return za(e);case T:case E:return new r(+e);case ve:return Ba(e,n);case ye:case be:case xe:case Se:case Ce:case we:case Te:case Ee:case De:return Ua(e,n);case ie:return new r;case ae:case fe:return new r(e);case ue:return Va(e);case de:return new r;case pe:return Ha(e)}}function qo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(We,`{
15
15
  /* [wrapped with `+t+`] */
16
- `)}function Jo(e){return q(e)||Xl(e)||!!(Ot&&e&&e[Ot])}function Yo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&nt.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!Y(n))return!1;var r=typeof t;return(r==`number`?Ql(n)&&Yo(t,n.length):r==`string`&&t in n)?ql(n[t],e):!1}function Zo(e,t){if(q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wu(e)?!0:Be.test(e)||!ze.test(e)||t!=null&&e in k(t)}function Qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $o(e){var t=No(e),n=V[t];if(typeof n!=`function`||!(t in H.prototype))return!1;if(e===n)return!0;var r=Mo(n);return!!r&&e===r[0]}function es(e){return!!N&&N in e}var ts=pt?cu:jf;function ns(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ft)}function rs(e){return e===e&&!Y(e)}function is(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in k(r))}}function as(e){var t=kl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function os(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ka(m,d,t[4]):d,e[4]=m?er(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?qa(m,d,t[6]):d,e[6]=m?er(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:L(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ss(e){var t=[];if(e!=null)for(var n in k(e))t.push(n);return t}function cs(e){return gt.call(e)}function ls(e,t,r){return t=P(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=P(n.length-t,0),o=D(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=D(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),un(e,this,s)}}function us(e,t){return t.length<2?e:Ei(e,va(t,0,-1))}function ds(e,t){for(var r=e.length,i=L(t.length,r),a=Ja(e);i--;){var o=t[i];e[i]=Yo(o,r)?a[o]:n}return e}function fs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ps=_s(ha),ms=Pt||function(e,t){return R.setTimeout(e,t)},hs=_s(ga);function gs(e,t,n){var r=t+``;return hs(e,qo(r,Ss(Ho(r),n)))}function _s(e){var t=0,r=0;return function(){var i=Kt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=la(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ys=as(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ve,function(e,n,r,i){t.push(r?i.replace(Xe,`$1`):n||e)}),t});function bs(e){if(typeof e==`string`||wu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xs(e){if(e!=null){try{return mt.call(e)}catch{}try{return e+``}catch{}}return``}function Ss(e,t){return fn(ee,function(n){var r=`_.`+n[0];t&n[1]&&!gn(e,r)&&e.push(r)}),e.sort()}function Cs(e){if(e instanceof H)return e.clone();var t=new br(e.__wrapped__,e.__chain__);return t.__actions__=Ja(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ws(e,t,r){t=(r?Xo(e,t,r):t===n)?1:P(Z(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=D(Ft(i/t));a<i;)s[o++]=va(e,a,a+=t);return s}function Ts(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Es(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return vn(q(n)?Ja(n):[n],U(t,1))}var Ds=W(function(e,t){return J(e)?mi(e,U(t,1,J,!0)):[]}),Os=W(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?mi(e,U(t,1,J,!0),G(r,2)):[]}),ks=W(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?mi(e,U(t,1,J,!0),n,r):[]});function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),va(e,t<0?0:t,i)):[]}function js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,va(e,0,t<0?0:t)):[]}function Ms(e,t){return e&&e.length?Oa(e,G(t,3),!0,!0):[]}function Ns(e,t){return e&&e.length?Oa(e,G(t,3),!0):[]}function Ps(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Xo(e,t,n)&&(n=0,r=i),yi(e,t,n,r)):[]}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=P(r+i,0)),En(e,G(t,3),i)}function Is(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Z(r),a=r<0?P(i+a,0):L(a,i-1)),En(e,G(t,3),a,!0)}function Ls(e){return e!=null&&e.length?U(e,1):[]}function Rs(e){return e!=null&&e.length?U(e,h):[]}function zs(e,t){return e!=null&&e.length?(t=t===n?1:Z(t),U(e,t)):[]}function Bs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Vs(e){return e&&e.length?e[0]:n}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=P(r+i,0)),Dn(e,t,i)}function Us(e){return e!=null&&e.length?va(e,0,-1):[]}var Ws=W(function(e){var t=B(e,Ma);return t.length&&t[0]===e[0]?Ni(t):[]}),Gs=W(function(e){var t=Js(e),r=B(e,Ma);return t===Js(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ni(r,G(t,2)):[]}),Ks=W(function(e){var t=Js(e),r=B(e,Ma);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ni(r,n,t):[]});function qs(e,t){return e==null?``:Ht.call(e,t)}function Js(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Z(r),a=a<0?P(i+a,0):L(a,i-1)),t===t?ir(e,t,a):En(e,kn,a,!0)}function Xs(e,t){return e&&e.length?na(e,Z(t)):n}var Zs=W(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?sa(e,t):e}function $s(e,t,n){return e&&e.length&&t&&t.length?sa(e,t,G(n,2)):e}function ec(e,t,r){return e&&e.length&&t&&t.length?sa(e,t,n,r):e}var tc=ko(function(e,t){var n=e==null?0:e.length,r=ci(e,t);return ca(e,B(t,function(e){return Yo(e,n)?+e:e}).sort(Wa)),r});function nc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=G(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ca(e,i),n}function rc(e){return e==null?e:Zt.call(e)}function ic(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Xo(e,t,r)?(t=0,r=i):(t=t==null?0:Z(t),r=r===n?i:Z(r)),va(e,t,r)):[]}function ac(e,t){return ba(e,t)}function oc(e,t,n){return xa(e,t,G(n,2))}function sc(e,t){var n=e==null?0:e.length;if(n){var r=ba(e,t);if(r<n&&ql(e[r],t))return r}return-1}function cc(e,t){return ba(e,t,!0)}function lc(e,t,n){return xa(e,t,G(n,2),!0)}function uc(e,t){if(e!=null&&e.length){var n=ba(e,t,!0)-1;if(ql(e[n],t))return n}return-1}function dc(e){return e&&e.length?Sa(e):[]}function fc(e,t){return e&&e.length?Sa(e,G(t,2)):[]}function pc(e){var t=e==null?0:e.length;return t?va(e,1,t):[]}function mc(e,t,r){return e&&e.length?(t=r||t===n?1:Z(t),va(e,0,t<0?0:t)):[]}function hc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,va(e,t<0?0:t,i)):[]}function gc(e,t){return e&&e.length?Oa(e,G(t,3),!1,!0):[]}function _c(e,t){return e&&e.length?Oa(e,G(t,3)):[]}var vc=W(function(e){return Ta(U(e,1,J,!0))}),yc=W(function(e){var t=Js(e);return J(t)&&(t=n),Ta(U(e,1,J,!0),G(t,2))}),bc=W(function(e){var t=Js(e);return t=typeof t==`function`?t:n,Ta(U(e,1,J,!0),n,t)});function xc(e){return e&&e.length?Ta(e):[]}function Sc(e,t){return e&&e.length?Ta(e,G(t,2)):[]}function Cc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ta(e,n,t):[]}function wc(e){if(!(e&&e.length))return[];var t=0;return e=hn(e,function(e){if(J(e))return t=P(e.length,t),!0}),In(t,function(t){return B(e,jn(t))})}function Tc(e,t){if(!(e&&e.length))return[];var r=wc(e);return t==null?r:B(r,function(e){return un(t,n,e)})}var Ec=W(function(e,t){return J(e)?mi(e,t):[]}),Dc=W(function(e){return Aa(hn(e,J))}),Oc=W(function(e){var t=Js(e);return J(t)&&(t=n),Aa(hn(e,J),G(t,2))}),kc=W(function(e){var t=Js(e);return t=typeof t==`function`?t:n,Aa(hn(e,J),n,t)}),Ac=W(wc);function jc(e,t){return ja(e||[],t||[],ni)}function Mc(e,t){return ja(e||[],t||[],ma)}var Nc=W(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Tc(e,r)});function Pc(e){var t=V(e);return t.__chain__=!0,t}function Fc(e,t){return t(e),e}function Ic(e,t){return t(e)}var Lc=ko(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ci(t,e)};return t>1||this.__actions__.length||!(i instanceof H)||!Yo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Ic,args:[a],thisArg:n}),new br(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Rc(){return Pc(this)}function zc(){return new br(this.value(),this.__chain__)}function Bc(){this.__values__===n&&(this.__values__=ju(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Vc(){return this}function Hc(e){for(var t,r=this;r instanceof yr;){var i=Cs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Uc(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Ic,args:[rc],thisArg:n}),new br(t,this.__chain__)}return this.thru(rc)}function Wc(){return ka(this.__wrapped__,this.__actions__)}var Gc=Qa(function(e,t,n){M.call(e,n)?++e[n]:si(e,n,1)});function Kc(e,t,r){var i=q(e)?mn:_i;return r&&Xo(e,t,r)&&(t=n),i(e,G(t,3))}function qc(e,t){return(q(e)?hn:bi)(e,G(t,3))}var Jc=so(Fs),Yc=so(Is);function Xc(e,t){return U(al(e,t),1)}function Zc(e,t){return U(al(e,t),h)}function Qc(e,t,r){return r=r===n?1:Z(r),U(al(e,t),r)}function $c(e,t){return(q(e)?fn:hi)(e,G(t,3))}function el(e,t){return(q(e)?pn:gi)(e,G(t,3))}var tl=Qa(function(e,t,n){M.call(e,n)?e[n].push(t):si(e,n,[t])});function nl(e,t,n,r){e=Ql(e)?e:Cd(e),n=n&&!r?Z(n):0;var i=e.length;return n<0&&(n=P(i+n,0)),Cu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Dn(e,t,n)>-1}var rl=W(function(e,t,n){var r=-1,i=typeof t==`function`,a=Ql(e)?D(e.length):[];return hi(e,function(e){a[++r]=i?un(t,e,n):Fi(e,t,n)}),a}),il=Qa(function(e,t,n){si(e,n,t)});function al(e,t){return(q(e)?B:Zi)(e,G(t,3))}function ol(e,t,r,i){return e==null?[]:(q(t)||(t=t==null?[]:[t]),r=i?n:r,q(r)||(r=r==null?[]:[r]),ra(e,t,r))}var sl=Qa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function cl(e,t,n){var r=q(e)?yn:Nn,i=arguments.length<3;return r(e,G(t,4),n,i,hi)}function ll(e,t,n){var r=q(e)?bn:Nn,i=arguments.length<3;return r(e,G(t,4),n,i,gi)}function ul(e,t){return(q(e)?hn:bi)(e,Al(G(t,3)))}function dl(e){return(q(e)?Qr:fa)(e)}function fl(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),(q(e)?$r:pa)(e,t)}function pl(e){return(q(e)?ei:_a)(e)}function ml(e){if(e==null)return 0;if(Ql(e))return Cu(e)?ar(e):e.length;var t=K(e);return t==ae||t==fe?e.size:Ji(e).length}function hl(e,t,r){var i=q(e)?xn:ya;return r&&Xo(e,t,r)&&(t=n),i(e,G(t,3))}var gl=W(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ra(e,U(t,1),[])}),_l=Nt||function(){return R.Date.now()};function vl(e,t){if(typeof t!=`function`)throw new dt(r);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function yl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,So(e,f,n,n,n,n,t)}function bl(e,t){var i;if(typeof t!=`function`)throw new dt(r);return e=Z(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var xl=W(function(e,t,n){var r=o;if(n.length){var i=er(n,Po(xl));r|=u}return So(e,r,t,n,i)}),Sl=W(function(e,t,n){var r=o|s;if(n.length){var i=er(n,Po(Sl));r|=u}return So(t,r,e,n,i)});function Cl(e,t,r){t=r?n:t;var i=So(e,c,n,n,n,n,n,t);return i.placeholder=Cl.placeholder,i}function wl(e,t,r){t=r?n:t;var i=So(e,l,n,n,n,n,n,t);return i.placeholder=wl.placeholder,i}function Tl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new dt(r);t=Pu(t)||0,Y(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?P(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?L(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=_l();if(v(e))return b(e);l=ms(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&La(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(_l())}function S(){var e=_l(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return La(l),l=ms(y,t),h(u)}return l===n&&(l=ms(y,t)),c}return S.cancel=x,S.flush=ee,S}var El=W(function(e,t){return pi(e,1,t)}),Dl=W(function(e,t,n){return pi(e,Pu(t)||0,n)});function Ol(e){return So(e,m)}function kl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new dt(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(kl.Cache||Ir),n}kl.Cache=Ir;function Al(e){if(typeof e!=`function`)throw new dt(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jl(e){return bl(2,e)}var Ml=Fa(function(e,t){t=t.length==1&&q(t[0])?B(t[0],zn(G())):B(U(t,1),zn(G()));var n=t.length;return W(function(r){for(var i=-1,a=L(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return un(e,this,r)})}),Nl=W(function(e,t){return So(e,u,n,t,er(t,Po(Nl)))}),Pl=W(function(e,t){return So(e,d,n,t,er(t,Po(Pl)))}),Fl=ko(function(e,t){return So(e,p,n,n,n,t)});function Il(e,t){if(typeof e!=`function`)throw new dt(r);return t=t===n?t:Z(t),W(e,t)}function Ll(e,t){if(typeof e!=`function`)throw new dt(r);return t=t==null?0:P(Z(t),0),W(function(n){var r=n[t],i=Ia(n,0,t);return r&&vn(i,r),un(e,this,i)})}function Rl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new dt(r);return Y(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),Tl(e,t,{leading:i,maxWait:t,trailing:a})}function zl(e){return yl(e,1)}function Bl(e,t){return Nl(Na(t),e)}function Vl(){if(!arguments.length)return[];var e=arguments[0];return q(e)?e:[e]}function Hl(e){return ui(e,4)}function Ul(e,t){return t=typeof t==`function`?t:n,ui(e,4,t)}function Wl(e){return ui(e,5)}function Gl(e,t){return t=typeof t==`function`?t:n,ui(e,5,t)}function Kl(e,t){return t==null||fi(e,t,$(t))}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=_o(ki),Yl=_o(function(e,t){return e>=t}),Xl=Ii(function(){return arguments}())?Ii:function(e){return X(e)&&M.call(e,`callee`)&&!Et.call(e,`callee`)},q=D.isArray,Zl=rn?zn(rn):Li;function Ql(e){return e!=null&&uu(e.length)&&!cu(e)}function J(e){return X(e)&&Ql(e)}function $l(e){return e===!0||e===!1||X(e)&&Oi(e)==T}var eu=Rt||jf,tu=an?zn(an):Ri;function nu(e){return X(e)&&e.nodeType===1&&!yu(e)}function ru(e){if(e==null)return!0;if(Ql(e)&&(q(e)||typeof e==`string`||typeof e.splice==`function`||eu(e)||Tu(e)||Xl(e)))return!e.length;var t=K(e);if(t==ae||t==fe)return!e.size;if(ns(e))return!Ji(e).length;for(var n in e)if(M.call(e,n))return!1;return!0}function iu(e,t){return zi(e,t)}function au(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?zi(e,t,n,r):!!i}function ou(e){if(!X(e))return!1;var t=Oi(e);return t==ne||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!yu(e)}function su(e){return typeof e==`number`&&Vt(e)}function cu(e){if(!Y(e))return!1;var t=Oi(e);return t==re||t==ie||t==w||t==ue}function lu(e){return typeof e==`number`&&e==Z(e)}function uu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function Y(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function X(e){return typeof e==`object`&&!!e}var du=on?zn(on):Vi;function fu(e,t){return e===t||Hi(e,t,Io(t))}function pu(e,t,r){return r=typeof r==`function`?r:n,Hi(e,t,Io(t),r)}function mu(e){return vu(e)&&e!=+e}function hu(e){if(ts(e))throw new ot(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ui(e)}function gu(e){return e===null}function _u(e){return e==null}function vu(e){return typeof e==`number`||X(e)&&Oi(e)==oe}function yu(e){if(!X(e)||Oi(e)!=ce)return!1;var t=wt(e);if(t===null)return!0;var n=M.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&mt.call(n)==_t}var bu=sn?zn(sn):Wi;function xu(e){return lu(e)&&e>=-g&&e<=g}var Su=cn?zn(cn):Gi;function Cu(e){return typeof e==`string`||!q(e)&&X(e)&&Oi(e)==pe}function wu(e){return typeof e==`symbol`||X(e)&&Oi(e)==me}var Tu=ln?zn(ln):Ki;function Eu(e){return e===n}function Du(e){return X(e)&&K(e)==ge}function Ou(e){return X(e)&&Oi(e)==_e}var ku=_o(Xi),Au=_o(function(e,t){return e<=t});function ju(e){if(!e)return[];if(Ql(e))return Cu(e)?or(e):Ja(e);if(kt&&e[kt])return Zn(e[kt]());var t=K(e);return(t==ae?Qn:t==fe?tr:Cd)(e)}function Mu(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Z(e){var t=Mu(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?li(Z(e),0,y):0}function Pu(e){if(typeof e==`number`)return e;if(wu(e))return v;if(Y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Rn(e);var n=O.test(e);return n||tt.test(e)?Xt(e.slice(2),n?2:8):$e.test(e)?v:+e}function Fu(e){return Ya(e,ad(e))}function Iu(e){return e?li(Z(e),-g,g):e===0?e:0}function Q(e){return e==null?``:wa(e)}var Lu=$a(function(e,t){if(ns(t)||Ql(t)){Ya(t,$(t),e);return}for(var n in t)M.call(t,n)&&ni(e,n,t[n])}),Ru=$a(function(e,t){Ya(t,ad(t),e)}),zu=$a(function(e,t,n,r){Ya(t,ad(t),e,r)}),Bu=$a(function(e,t,n,r){Ya(t,$(t),e,r)}),Vu=ko(ci);function Hu(e,t){var n=vr(e);return t==null?n:ai(n,t)}var Uu=W(function(e,t){e=k(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Xo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||ql(d,ft[u])&&!M.call(e,u))&&(e[u]=o[u])}return e}),Wu=W(function(e){return e.push(n,wo),un(ld,n,e)});function Gu(e,t){return Tn(e,G(t,3),Ci)}function Ku(e,t){return Tn(e,G(t,3),wi)}function qu(e,t){return e==null?e:xi(e,G(t,3),ad)}function Ju(e,t){return e==null?e:Si(e,G(t,3),ad)}function Yu(e,t){return e&&Ci(e,G(t,3))}function Xu(e,t){return e&&wi(e,G(t,3))}function Zu(e){return e==null?[]:Ti(e,$(e))}function Qu(e){return e==null?[]:Ti(e,ad(e))}function $u(e,t,r){var i=e==null?n:Ei(e,t);return i===n?r:i}function ed(e,t){return e!=null&&Uo(e,t,Ai)}function td(e,t){return e!=null&&Uo(e,t,ji)}var nd=uo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),e[t]=n},lf(pf)),rd=uo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),M.call(e,t)?e[t].push(n):e[t]=[n]},G),id=W(Fi);function $(e){return Ql(e)?Zr(e):Ji(e)}function ad(e){return Ql(e)?Zr(e,!0):Yi(e)}function od(e,t){var n={};return t=G(t,3),Ci(e,function(e,r,i){si(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=G(t,3),Ci(e,function(e,r,i){si(n,r,t(e,r,i))}),n}var cd=$a(function(e,t,n){ea(e,t,n)}),ld=$a(function(e,t,n,r){ea(e,t,n,r)}),ud=ko(function(e,t){var n={};if(e==null)return n;var r=!1;t=B(t,function(t){return t=Pa(t,e),r||=t.length>1,t}),Ya(e,jo(e),n),r&&(n=ui(n,7,To));for(var i=t.length;i--;)Ea(n,t[i]);return n});function dd(e,t){return pd(e,Al(G(t)))}var fd=ko(function(e,t){return e==null?{}:ia(e,t)});function pd(e,t){if(e==null)return{};var n=B(jo(e),function(e){return[e]});return t=G(t),aa(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Pa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[bs(t[i])];o===n&&(i=a,o=r),e=cu(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:ma(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ma(e,t,r,i)}var _d=xo($),vd=xo(ad);function yd(e,t,n){var r=q(e),i=r||eu(e)||Tu(e);if(t=G(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Y(e)&&cu(a)?vr(wt(e)):{}}return(i?fn:Ci)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||Ea(e,t)}function xd(e,t,n){return e==null?e:Da(e,t,Na(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Da(e,t,Na(r),i)}function Cd(e){return e==null?[]:Bn(e,$(e))}function wd(e){return e==null?[]:Bn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),li(Pu(e),t,r)}function Ed(e,t,r){return t=Mu(t),r===n?(r=t,t=0):r=Mu(r),e=Pu(e),Mi(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Xo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Mu(e),t===n?(t=e,e=0):t=Mu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Jt();return L(e+a*(t-e+Yt(`1e-`+((a+``).length-1))),t)}return la(e,t)}var Od=io(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Q(e).toLowerCase())}function Ad(e){return e=Q(e),e&&e.replace(rt,Gn).replace(Bt,``)}function jd(e,t,r){e=Q(e),t=wa(t);var i=e.length;r=r===n?i:li(Z(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Q(e),e&&Fe.test(e)?e.replace(Ne,Kn):e}function Nd(e){return e=Q(e),e&&Ue.test(e)?e.replace(He,`\\$&`):e}var Pd=io(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=io(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=ro(`toLowerCase`);function Ld(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return mo(It(i),n)+e+mo(Ft(i),n)}function Rd(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;return t&&r<t?e+mo(t-r,n):e}function zd(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;return t&&r<t?mo(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,qt(Q(e).replace(We,``),t||0)}function Vd(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),da(Q(e),t)}function Hd(){var e=arguments,t=Q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=io(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Xo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Q(e),e&&(typeof t==`string`||t!=null&&!bu(t))&&(t=wa(t),!t&&Yn(e))?Ia(or(e),0,r):e.split(t,r)):[]}var Gd=io(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Q(e),n=n==null?0:li(Z(n),0,e.length),t=wa(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=V.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Q(e),t=zu({},t,i,Co);var a=zu({},t.imports,i.imports,Co),o=$(a),s=Bn(a,o),c,l,u=0,d=t.interpolate||it,f=`__p += '`,p=lt((t.escape||it).source+`|`+d.source+`|`+(d===Re?Ze:it).source+`|`+(t.evaluate||it).source+`|$`,`g`),m=`//# sourceURL=`+(M.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Gt+`]`)+`
17
- `;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(at,qn),n&&(c=!0,f+=`' +
16
+ `)}function Jo(e){return q(e)||Xl(e)||!!(Ot&&e&&e[Ot])}function Yo(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&tt.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!Y(n))return!1;var r=typeof t;return(r==`number`?Ql(n)&&Yo(t,n.length):r==`string`&&t in n)?ql(n[t],e):!1}function Zo(e,t){if(q(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||wu(e)?!0:ze.test(e)||!Re.test(e)||t!=null&&e in A(t)}function Qo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $o(e){var t=No(e),n=V[t];if(typeof n!=`function`||!(t in H.prototype))return!1;if(e===n)return!0;var r=Mo(n);return!!r&&e===r[0]}function es(e){return!!ht&&ht in e}var ts=ft?cu:jf;function ns(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||dt)}function rs(e){return e===e&&!Y(e)}function is(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in A(r))}}function as(e){var t=kl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function os(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ka(m,d,t[4]):d,e[4]=m?er(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?qa(m,d,t[6]):d,e[6]=m?er(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:L(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ss(e){var t=[];if(e!=null)for(var n in A(e))t.push(n);return t}function cs(e){return gt.call(e)}function ls(e,t,r){return t=P(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=P(n.length-t,0),o=O(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=O(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),un(e,this,s)}}function us(e,t){return t.length<2?e:Ei(e,va(t,0,-1))}function ds(e,t){for(var r=e.length,i=L(t.length,r),a=Ja(e);i--;){var o=t[i];e[i]=Yo(o,r)?a[o]:n}return e}function fs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ps=_s(ha),ms=Pt||function(e,t){return R.setTimeout(e,t)},hs=_s(ga);function gs(e,t,n){var r=t+``;return hs(e,qo(r,Ss(Ho(r),n)))}function _s(e){var t=0,r=0;return function(){var i=Kt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=la(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var ys=as(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Be,function(e,n,r,i){t.push(r?i.replace(Ye,`$1`):n||e)}),t});function bs(e){if(typeof e==`string`||wu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xs(e){if(e!=null){try{return pt.call(e)}catch{}try{return e+``}catch{}}return``}function Ss(e,t){return fn(ee,function(n){var r=`_.`+n[0];t&n[1]&&!gn(e,r)&&e.push(r)}),e.sort()}function Cs(e){if(e instanceof H)return e.clone();var t=new br(e.__wrapped__,e.__chain__);return t.__actions__=Ja(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ws(e,t,r){t=(r?Xo(e,t,r):t===n)?1:P(Z(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=O(Ft(i/t));a<i;)s[o++]=va(e,a,a+=t);return s}function Ts(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Es(){var e=arguments.length;if(!e)return[];for(var t=O(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return vn(q(n)?Ja(n):[n],U(t,1))}var Ds=W(function(e,t){return J(e)?mi(e,U(t,1,J,!0)):[]}),Os=W(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?mi(e,U(t,1,J,!0),G(r,2)):[]}),ks=W(function(e,t){var r=Js(t);return J(r)&&(r=n),J(e)?mi(e,U(t,1,J,!0),n,r):[]});function As(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),va(e,t<0?0:t,i)):[]}function js(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,va(e,0,t<0?0:t)):[]}function Ms(e,t){return e&&e.length?Oa(e,G(t,3),!0,!0):[]}function Ns(e,t){return e&&e.length?Oa(e,G(t,3),!0):[]}function Ps(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Xo(e,t,n)&&(n=0,r=i),yi(e,t,n,r)):[]}function Fs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=P(r+i,0)),En(e,G(t,3),i)}function Is(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Z(r),a=r<0?P(i+a,0):L(a,i-1)),En(e,G(t,3),a,!0)}function Ls(e){return e!=null&&e.length?U(e,1):[]}function Rs(e){return e!=null&&e.length?U(e,h):[]}function zs(e,t){return e!=null&&e.length?(t=t===n?1:Z(t),U(e,t)):[]}function Bs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Vs(e){return e&&e.length?e[0]:n}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Z(n);return i<0&&(i=P(r+i,0)),Dn(e,t,i)}function Us(e){return e!=null&&e.length?va(e,0,-1):[]}var Ws=W(function(e){var t=B(e,Ma);return t.length&&t[0]===e[0]?Ni(t):[]}),Gs=W(function(e){var t=Js(e),r=B(e,Ma);return t===Js(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ni(r,G(t,2)):[]}),Ks=W(function(e){var t=Js(e),r=B(e,Ma);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ni(r,n,t):[]});function qs(e,t){return e==null?``:Ht.call(e,t)}function Js(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Ys(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Z(r),a=a<0?P(i+a,0):L(a,i-1)),t===t?ir(e,t,a):En(e,kn,a,!0)}function Xs(e,t){return e&&e.length?na(e,Z(t)):n}var Zs=W(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?sa(e,t):e}function $s(e,t,n){return e&&e.length&&t&&t.length?sa(e,t,G(n,2)):e}function ec(e,t,r){return e&&e.length&&t&&t.length?sa(e,t,n,r):e}var tc=ko(function(e,t){var n=e==null?0:e.length,r=ci(e,t);return ca(e,B(t,function(e){return Yo(e,n)?+e:e}).sort(Wa)),r});function nc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=G(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ca(e,i),n}function rc(e){return e==null?e:Zt.call(e)}function ic(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Xo(e,t,r)?(t=0,r=i):(t=t==null?0:Z(t),r=r===n?i:Z(r)),va(e,t,r)):[]}function ac(e,t){return ba(e,t)}function oc(e,t,n){return xa(e,t,G(n,2))}function sc(e,t){var n=e==null?0:e.length;if(n){var r=ba(e,t);if(r<n&&ql(e[r],t))return r}return-1}function cc(e,t){return ba(e,t,!0)}function lc(e,t,n){return xa(e,t,G(n,2),!0)}function uc(e,t){if(e!=null&&e.length){var n=ba(e,t,!0)-1;if(ql(e[n],t))return n}return-1}function dc(e){return e&&e.length?Sa(e):[]}function fc(e,t){return e&&e.length?Sa(e,G(t,2)):[]}function pc(e){var t=e==null?0:e.length;return t?va(e,1,t):[]}function mc(e,t,r){return e&&e.length?(t=r||t===n?1:Z(t),va(e,0,t<0?0:t)):[]}function hc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Z(t),t=i-t,va(e,t<0?0:t,i)):[]}function gc(e,t){return e&&e.length?Oa(e,G(t,3),!1,!0):[]}function _c(e,t){return e&&e.length?Oa(e,G(t,3)):[]}var vc=W(function(e){return Ta(U(e,1,J,!0))}),yc=W(function(e){var t=Js(e);return J(t)&&(t=n),Ta(U(e,1,J,!0),G(t,2))}),bc=W(function(e){var t=Js(e);return t=typeof t==`function`?t:n,Ta(U(e,1,J,!0),n,t)});function xc(e){return e&&e.length?Ta(e):[]}function Sc(e,t){return e&&e.length?Ta(e,G(t,2)):[]}function Cc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ta(e,n,t):[]}function wc(e){if(!(e&&e.length))return[];var t=0;return e=hn(e,function(e){if(J(e))return t=P(e.length,t),!0}),In(t,function(t){return B(e,jn(t))})}function Tc(e,t){if(!(e&&e.length))return[];var r=wc(e);return t==null?r:B(r,function(e){return un(t,n,e)})}var Ec=W(function(e,t){return J(e)?mi(e,t):[]}),Dc=W(function(e){return Aa(hn(e,J))}),Oc=W(function(e){var t=Js(e);return J(t)&&(t=n),Aa(hn(e,J),G(t,2))}),kc=W(function(e){var t=Js(e);return t=typeof t==`function`?t:n,Aa(hn(e,J),n,t)}),Ac=W(wc);function jc(e,t){return ja(e||[],t||[],ni)}function Mc(e,t){return ja(e||[],t||[],ma)}var Nc=W(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Tc(e,r)});function Pc(e){var t=V(e);return t.__chain__=!0,t}function Fc(e,t){return t(e),e}function Ic(e,t){return t(e)}var Lc=ko(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ci(t,e)};return t>1||this.__actions__.length||!(i instanceof H)||!Yo(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Ic,args:[a],thisArg:n}),new br(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Rc(){return Pc(this)}function zc(){return new br(this.value(),this.__chain__)}function Bc(){this.__values__===n&&(this.__values__=ju(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Vc(){return this}function Hc(e){for(var t,r=this;r instanceof yr;){var i=Cs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Uc(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Ic,args:[rc],thisArg:n}),new br(t,this.__chain__)}return this.thru(rc)}function Wc(){return ka(this.__wrapped__,this.__actions__)}var Gc=Qa(function(e,t,n){N.call(e,n)?++e[n]:si(e,n,1)});function Kc(e,t,r){var i=q(e)?mn:_i;return r&&Xo(e,t,r)&&(t=n),i(e,G(t,3))}function qc(e,t){return(q(e)?hn:bi)(e,G(t,3))}var Jc=so(Fs),Yc=so(Is);function Xc(e,t){return U(al(e,t),1)}function Zc(e,t){return U(al(e,t),h)}function Qc(e,t,r){return r=r===n?1:Z(r),U(al(e,t),r)}function $c(e,t){return(q(e)?fn:hi)(e,G(t,3))}function el(e,t){return(q(e)?pn:gi)(e,G(t,3))}var tl=Qa(function(e,t,n){N.call(e,n)?e[n].push(t):si(e,n,[t])});function nl(e,t,n,r){e=Ql(e)?e:Cd(e),n=n&&!r?Z(n):0;var i=e.length;return n<0&&(n=P(i+n,0)),Cu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Dn(e,t,n)>-1}var rl=W(function(e,t,n){var r=-1,i=typeof t==`function`,a=Ql(e)?O(e.length):[];return hi(e,function(e){a[++r]=i?un(t,e,n):Fi(e,t,n)}),a}),il=Qa(function(e,t,n){si(e,n,t)});function al(e,t){return(q(e)?B:Zi)(e,G(t,3))}function ol(e,t,r,i){return e==null?[]:(q(t)||(t=t==null?[]:[t]),r=i?n:r,q(r)||(r=r==null?[]:[r]),ra(e,t,r))}var sl=Qa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function cl(e,t,n){var r=q(e)?yn:Nn,i=arguments.length<3;return r(e,G(t,4),n,i,hi)}function ll(e,t,n){var r=q(e)?bn:Nn,i=arguments.length<3;return r(e,G(t,4),n,i,gi)}function ul(e,t){return(q(e)?hn:bi)(e,Al(G(t,3)))}function dl(e){return(q(e)?Qr:fa)(e)}function fl(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),(q(e)?$r:pa)(e,t)}function pl(e){return(q(e)?ei:_a)(e)}function ml(e){if(e==null)return 0;if(Ql(e))return Cu(e)?ar(e):e.length;var t=K(e);return t==ie||t==de?e.size:Ji(e).length}function hl(e,t,r){var i=q(e)?xn:ya;return r&&Xo(e,t,r)&&(t=n),i(e,G(t,3))}var gl=W(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ra(e,U(t,1),[])}),_l=Nt||function(){return R.Date.now()};function vl(e,t){if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function yl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,So(e,f,n,n,n,n,t)}function bl(e,t){var i;if(typeof t!=`function`)throw new ut(r);return e=Z(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var xl=W(function(e,t,n){var r=o;if(n.length){var i=er(n,Po(xl));r|=u}return So(e,r,t,n,i)}),Sl=W(function(e,t,n){var r=o|s;if(n.length){var i=er(n,Po(Sl));r|=u}return So(t,r,e,n,i)});function Cl(e,t,r){t=r?n:t;var i=So(e,c,n,n,n,n,n,t);return i.placeholder=Cl.placeholder,i}function wl(e,t,r){t=r?n:t;var i=So(e,l,n,n,n,n,n,t);return i.placeholder=wl.placeholder,i}function Tl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ut(r);t=Pu(t)||0,Y(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?P(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=ms(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?L(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=_l();if(v(e))return b(e);l=ms(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&La(l),d=0,a=u=o=l=n}function ee(){return l===n?c:b(_l())}function S(){var e=_l(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return La(l),l=ms(y,t),h(u)}return l===n&&(l=ms(y,t)),c}return S.cancel=x,S.flush=ee,S}var El=W(function(e,t){return pi(e,1,t)}),Dl=W(function(e,t,n){return pi(e,Pu(t)||0,n)});function Ol(e){return So(e,m)}function kl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ut(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(kl.Cache||Ir),n}kl.Cache=Ir;function Al(e){if(typeof e!=`function`)throw new ut(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jl(e){return bl(2,e)}var Ml=Fa(function(e,t){t=t.length==1&&q(t[0])?B(t[0],zn(G())):B(U(t,1),zn(G()));var n=t.length;return W(function(r){for(var i=-1,a=L(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return un(e,this,r)})}),Nl=W(function(e,t){return So(e,u,n,t,er(t,Po(Nl)))}),Pl=W(function(e,t){return So(e,d,n,t,er(t,Po(Pl)))}),Fl=ko(function(e,t){return So(e,p,n,n,n,t)});function Il(e,t){if(typeof e!=`function`)throw new ut(r);return t=t===n?t:Z(t),W(e,t)}function Ll(e,t){if(typeof e!=`function`)throw new ut(r);return t=t==null?0:P(Z(t),0),W(function(n){var r=n[t],i=Ia(n,0,t);return r&&vn(i,r),un(e,this,i)})}function Rl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new ut(r);return Y(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),Tl(e,t,{leading:i,maxWait:t,trailing:a})}function zl(e){return yl(e,1)}function Bl(e,t){return Nl(Na(t),e)}function Vl(){if(!arguments.length)return[];var e=arguments[0];return q(e)?e:[e]}function Hl(e){return ui(e,4)}function Ul(e,t){return t=typeof t==`function`?t:n,ui(e,4,t)}function Wl(e){return ui(e,5)}function Gl(e,t){return t=typeof t==`function`?t:n,ui(e,5,t)}function Kl(e,t){return t==null||fi(e,t,$(t))}function ql(e,t){return e===t||e!==e&&t!==t}var Jl=_o(ki),Yl=_o(function(e,t){return e>=t}),Xl=Ii(function(){return arguments}())?Ii:function(e){return X(e)&&N.call(e,`callee`)&&!Et.call(e,`callee`)},q=O.isArray,Zl=rn?zn(rn):Li;function Ql(e){return e!=null&&uu(e.length)&&!cu(e)}function J(e){return X(e)&&Ql(e)}function $l(e){return e===!0||e===!1||X(e)&&Oi(e)==T}var eu=Rt||jf,tu=an?zn(an):Ri;function nu(e){return X(e)&&e.nodeType===1&&!yu(e)}function ru(e){if(e==null)return!0;if(Ql(e)&&(q(e)||typeof e==`string`||typeof e.splice==`function`||eu(e)||Tu(e)||Xl(e)))return!e.length;var t=K(e);if(t==ie||t==de)return!e.size;if(ns(e))return!Ji(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function iu(e,t){return zi(e,t)}function au(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?zi(e,t,n,r):!!i}function ou(e){if(!X(e))return!1;var t=Oi(e);return t==ne||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!yu(e)}function su(e){return typeof e==`number`&&Vt(e)}function cu(e){if(!Y(e))return!1;var t=Oi(e);return t==D||t==re||t==w||t==le}function lu(e){return typeof e==`number`&&e==Z(e)}function uu(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function Y(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function X(e){return typeof e==`object`&&!!e}var du=on?zn(on):Vi;function fu(e,t){return e===t||Hi(e,t,Io(t))}function pu(e,t,r){return r=typeof r==`function`?r:n,Hi(e,t,Io(t),r)}function mu(e){return vu(e)&&e!=+e}function hu(e){if(ts(e))throw new at(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ui(e)}function gu(e){return e===null}function _u(e){return e==null}function vu(e){return typeof e==`number`||X(e)&&Oi(e)==ae}function yu(e){if(!X(e)||Oi(e)!=se)return!1;var t=wt(e);if(t===null)return!0;var n=N.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pt.call(n)==_t}var bu=sn?zn(sn):Wi;function xu(e){return lu(e)&&e>=-g&&e<=g}var Su=cn?zn(cn):Gi;function Cu(e){return typeof e==`string`||!q(e)&&X(e)&&Oi(e)==fe}function wu(e){return typeof e==`symbol`||X(e)&&Oi(e)==pe}var Tu=ln?zn(ln):Ki;function Eu(e){return e===n}function Du(e){return X(e)&&K(e)==he}function Ou(e){return X(e)&&Oi(e)==ge}var ku=_o(Xi),Au=_o(function(e,t){return e<=t});function ju(e){if(!e)return[];if(Ql(e))return Cu(e)?or(e):Ja(e);if(kt&&e[kt])return Zn(e[kt]());var t=K(e);return(t==ie?Qn:t==de?tr:Cd)(e)}function Mu(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Z(e){var t=Mu(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?li(Z(e),0,y):0}function Pu(e){if(typeof e==`number`)return e;if(wu(e))return v;if(Y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Rn(e);var n=k.test(e);return n||et.test(e)?Xt(e.slice(2),n?2:8):Qe.test(e)?v:+e}function Fu(e){return Ya(e,ad(e))}function Iu(e){return e?li(Z(e),-g,g):e===0?e:0}function Q(e){return e==null?``:wa(e)}var Lu=$a(function(e,t){if(ns(t)||Ql(t)){Ya(t,$(t),e);return}for(var n in t)N.call(t,n)&&ni(e,n,t[n])}),Ru=$a(function(e,t){Ya(t,ad(t),e)}),zu=$a(function(e,t,n,r){Ya(t,ad(t),e,r)}),Bu=$a(function(e,t,n,r){Ya(t,$(t),e,r)}),Vu=ko(ci);function Hu(e,t){var n=vr(e);return t==null?n:ai(n,t)}var Uu=W(function(e,t){e=A(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Xo(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||ql(d,dt[u])&&!N.call(e,u))&&(e[u]=o[u])}return e}),Wu=W(function(e){return e.push(n,wo),un(ld,n,e)});function Gu(e,t){return Tn(e,G(t,3),Ci)}function Ku(e,t){return Tn(e,G(t,3),wi)}function qu(e,t){return e==null?e:xi(e,G(t,3),ad)}function Ju(e,t){return e==null?e:Si(e,G(t,3),ad)}function Yu(e,t){return e&&Ci(e,G(t,3))}function Xu(e,t){return e&&wi(e,G(t,3))}function Zu(e){return e==null?[]:Ti(e,$(e))}function Qu(e){return e==null?[]:Ti(e,ad(e))}function $u(e,t,r){var i=e==null?n:Ei(e,t);return i===n?r:i}function ed(e,t){return e!=null&&Uo(e,t,Ai)}function td(e,t){return e!=null&&Uo(e,t,ji)}var nd=uo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),e[t]=n},lf(pf)),rd=uo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=gt.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},G),id=W(Fi);function $(e){return Ql(e)?Zr(e):Ji(e)}function ad(e){return Ql(e)?Zr(e,!0):Yi(e)}function od(e,t){var n={};return t=G(t,3),Ci(e,function(e,r,i){si(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=G(t,3),Ci(e,function(e,r,i){si(n,r,t(e,r,i))}),n}var cd=$a(function(e,t,n){ea(e,t,n)}),ld=$a(function(e,t,n,r){ea(e,t,n,r)}),ud=ko(function(e,t){var n={};if(e==null)return n;var r=!1;t=B(t,function(t){return t=Pa(t,e),r||=t.length>1,t}),Ya(e,jo(e),n),r&&(n=ui(n,7,To));for(var i=t.length;i--;)Ea(n,t[i]);return n});function dd(e,t){return pd(e,Al(G(t)))}var fd=ko(function(e,t){return e==null?{}:ia(e,t)});function pd(e,t){if(e==null)return{};var n=B(jo(e),function(e){return[e]});return t=G(t),aa(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=Pa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[bs(t[i])];o===n&&(i=a,o=r),e=cu(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:ma(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ma(e,t,r,i)}var _d=xo($),vd=xo(ad);function yd(e,t,n){var r=q(e),i=r||eu(e)||Tu(e);if(t=G(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Y(e)&&cu(a)?vr(wt(e)):{}}return(i?fn:Ci)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||Ea(e,t)}function xd(e,t,n){return e==null?e:Da(e,t,Na(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Da(e,t,Na(r),i)}function Cd(e){return e==null?[]:Bn(e,$(e))}function wd(e){return e==null?[]:Bn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),li(Pu(e),t,r)}function Ed(e,t,r){return t=Mu(t),r===n?(r=t,t=0):r=Mu(r),e=Pu(e),Mi(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Xo(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Mu(e),t===n?(t=e,e=0):t=Mu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Jt();return L(e+a*(t-e+Yt(`1e-`+((a+``).length-1))),t)}return la(e,t)}var Od=io(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf(Q(e).toLowerCase())}function Ad(e){return e=Q(e),e&&e.replace(nt,Gn).replace(Bt,``)}function jd(e,t,r){e=Q(e),t=wa(t);var i=e.length;r=r===n?i:li(Z(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=Q(e),e&&Pe.test(e)?e.replace(Me,Kn):e}function Nd(e){return e=Q(e),e&&He.test(e)?e.replace(Ve,`\\$&`):e}var Pd=io(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=io(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=ro(`toLowerCase`);function Ld(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return mo(It(i),n)+e+mo(Ft(i),n)}function Rd(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;return t&&r<t?e+mo(t-r,n):e}function zd(e,t,n){e=Q(e),t=Z(t);var r=t?ar(e):0;return t&&r<t?mo(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,qt(Q(e).replace(Ue,``),t||0)}function Vd(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Z(t),da(Q(e),t)}function Hd(){var e=arguments,t=Q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=io(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Xo(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=Q(e),e&&(typeof t==`string`||t!=null&&!bu(t))&&(t=wa(t),!t&&Yn(e))?Ia(or(e),0,r):e.split(t,r)):[]}var Gd=io(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=Q(e),n=n==null?0:li(Z(n),0,e.length),t=wa(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=V.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Q(e),t=zu({},t,i,Co);var a=zu({},t.imports,i.imports,Co),o=$(a),s=Bn(a,o),c,l,u=0,d=t.interpolate||rt,f=`__p += '`,p=ct((t.escape||rt).source+`|`+d.source+`|`+(d===Le?Xe:rt).source+`|`+(t.evaluate||rt).source+`|$`,`g`),m=`//# sourceURL=`+(N.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Gt+`]`)+`
17
+ `;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(it,qn),n&&(c=!0,f+=`' +
18
18
  __e(`+n+`) +
19
19
  '`),a&&(l=!0,f+=`';
20
20
  `+a+`;
21
21
  __p += '`),r&&(f+=`' +
22
22
  ((__t = (`+r+`)) == null ? '' : __t) +
23
23
  '`),u=o+t.length,t}),f+=`';
24
- `;var h=M.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
24
+ `;var h=N.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
25
25
  `+f+`
26
26
  }
27
- `;else if(Ye.test(h))throw new ot("Invalid `variable` option passed into `_.template`");f=(l?f.replace(ke,``):f).replace(Ae,`$1`).replace(je,`$1;`),f=`function(`+(h||`obj`)+`) {
27
+ `;else if(Je.test(h))throw new at("Invalid `variable` option passed into `_.template`");f=(l?f.replace(Oe,``):f).replace(ke,`$1`).replace(Ae,`$1;`),f=`function(`+(h||`obj`)+`) {
28
28
  `+(h?``:`obj || (obj = {});
29
29
  `)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
30
30
  function print() { __p += __j.call(arguments, '') }
31
31
  `:`;
32
32
  `)+f+`return __p
33
- }`;var g=af(function(){return st(o,m+`return `+f).apply(n,s)});if(g.source=f,ou(g))throw g;return g}function Jd(e){return Q(e).toLowerCase()}function Yd(e){return Q(e).toUpperCase()}function Xd(e,t,r){if(e=Q(e),e&&(r||t===n))return Rn(e);if(!e||!(t=wa(t)))return e;var i=or(e),a=or(t);return Ia(i,Hn(i,a),Un(i,a)+1).join(``)}function Zd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.slice(0,sr(e)+1);if(!e||!(t=wa(t)))return e;var i=or(e);return Ia(i,0,Un(i,or(t))+1).join(``)}function Qd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.replace(We,``);if(!e||!(t=wa(t)))return e;var i=or(e);return Ia(i,Hn(i,or(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(Y(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Z(t.length):r,i=`omission`in t?wa(t.omission):i}e=Q(e);var o=e.length;if(Yn(e)){var s=or(e);o=s.length}if(r>=o)return e;var c=r-ar(i);if(c<1)return i;var l=s?Ia(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),bu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=lt(a.source,Q(Qe.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(wa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Q(e),e&&Pe.test(e)?e.replace(Me,cr):e}var tf=io(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=ro(`toUpperCase`);function rf(e,t,r){return e=Q(e),t=r?n:t,t===n?Xn(e)?dr(e):wn(e):e.match(t)||[]}var af=W(function(e,t){try{return un(e,n,t)}catch(e){return ou(e)?e:new ot(e)}}),of=ko(function(e,t){return fn(t,function(t){t=bs(t),si(e,t,xl(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=G();return e=t?B(e,function(e){if(typeof e[1]!=`function`)throw new dt(r);return[n(e[0]),e[1]]}):[],W(function(n){for(var r=-1;++r<t;){var i=e[r];if(un(i[0],this,n))return un(i[1],this,n)}})}function cf(e){return di(ui(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=co(),ff=co(!0);function pf(e){return e}function mf(e){return qi(typeof e==`function`?e:ui(e,1))}function hf(e){return Qi(ui(e,1))}function gf(e,t){return $i(e,ui(t,1))}var _f=W(function(e,t){return function(n){return Fi(n,e,t)}}),vf=W(function(e,t){return function(n){return Fi(e,n,t)}});function yf(e,t,n){var r=$(t),i=Ti(t,r);n==null&&!(Y(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Ti(t,$(t)));var a=!(Y(n)&&`chain`in n)||!!n.chain,o=cu(e);return fn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ja(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,vn([this.value()],arguments))})}),e}function bf(){return R._===this&&(R._=vt),this}function xf(){}function Sf(e){return e=Z(e),W(function(t){return na(t,e)})}var Cf=po(B),wf=po(mn),Tf=po(xn);function Ef(e){return Zo(e)?jn(bs(e)):oa(e)}function Df(e){return function(t){return e==null?n:Ei(e,t)}}var Of=go(),kf=go(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Z(e),e<1||e>g)return[];var n=y,r=L(e,y);t=G(t),e-=y;for(var i=In(r,t);++n<e;)t(n);return i}function If(e){return q(e)?B(e,bs):wu(e)?[e]:Ja(ys(Q(e)))}function Lf(e){var t=++ht;return Q(e)+t}var Rf=fo(function(e,t){return e+t},0),zf=yo(`ceil`),Bf=fo(function(e,t){return e/t},1),Vf=yo(`floor`);function Hf(e){return e&&e.length?vi(e,pf,ki):n}function Uf(e,t){return e&&e.length?vi(e,G(t,2),ki):n}function Wf(e){return An(e,pf)}function Gf(e,t){return An(e,G(t,2))}function Kf(e){return e&&e.length?vi(e,pf,Xi):n}function qf(e,t){return e&&e.length?vi(e,G(t,2),Xi):n}var Jf=fo(function(e,t){return e*t},1),Yf=yo(`round`),Xf=fo(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Fn(e,pf):0}function Qf(e,t){return e&&e.length?Fn(e,G(t,2)):0}return V.after=vl,V.ary=yl,V.assign=Lu,V.assignIn=Ru,V.assignInWith=zu,V.assignWith=Bu,V.at=Vu,V.before=bl,V.bind=xl,V.bindAll=of,V.bindKey=Sl,V.castArray=Vl,V.chain=Pc,V.chunk=ws,V.compact=Ts,V.concat=Es,V.cond=sf,V.conforms=cf,V.constant=lf,V.countBy=Gc,V.create=Hu,V.curry=Cl,V.curryRight=wl,V.debounce=Tl,V.defaults=Uu,V.defaultsDeep=Wu,V.defer=El,V.delay=Dl,V.difference=Ds,V.differenceBy=Os,V.differenceWith=ks,V.drop=As,V.dropRight=js,V.dropRightWhile=Ms,V.dropWhile=Ns,V.fill=Ps,V.filter=qc,V.flatMap=Xc,V.flatMapDeep=Zc,V.flatMapDepth=Qc,V.flatten=Ls,V.flattenDeep=Rs,V.flattenDepth=zs,V.flip=Ol,V.flow=df,V.flowRight=ff,V.fromPairs=Bs,V.functions=Zu,V.functionsIn=Qu,V.groupBy=tl,V.initial=Us,V.intersection=Ws,V.intersectionBy=Gs,V.intersectionWith=Ks,V.invert=nd,V.invertBy=rd,V.invokeMap=rl,V.iteratee=mf,V.keyBy=il,V.keys=$,V.keysIn=ad,V.map=al,V.mapKeys=od,V.mapValues=sd,V.matches=hf,V.matchesProperty=gf,V.memoize=kl,V.merge=cd,V.mergeWith=ld,V.method=_f,V.methodOf=vf,V.mixin=yf,V.negate=Al,V.nthArg=Sf,V.omit=ud,V.omitBy=dd,V.once=jl,V.orderBy=ol,V.over=Cf,V.overArgs=Ml,V.overEvery=wf,V.overSome=Tf,V.partial=Nl,V.partialRight=Pl,V.partition=sl,V.pick=fd,V.pickBy=pd,V.property=Ef,V.propertyOf=Df,V.pull=Zs,V.pullAll=Qs,V.pullAllBy=$s,V.pullAllWith=ec,V.pullAt=tc,V.range=Of,V.rangeRight=kf,V.rearg=Fl,V.reject=ul,V.remove=nc,V.rest=Il,V.reverse=rc,V.sampleSize=fl,V.set=hd,V.setWith=gd,V.shuffle=pl,V.slice=ic,V.sortBy=gl,V.sortedUniq=dc,V.sortedUniqBy=fc,V.split=Wd,V.spread=Ll,V.tail=pc,V.take=mc,V.takeRight=hc,V.takeRightWhile=gc,V.takeWhile=_c,V.tap=Fc,V.throttle=Rl,V.thru=Ic,V.toArray=ju,V.toPairs=_d,V.toPairsIn=vd,V.toPath=If,V.toPlainObject=Fu,V.transform=yd,V.unary=zl,V.union=vc,V.unionBy=yc,V.unionWith=bc,V.uniq=xc,V.uniqBy=Sc,V.uniqWith=Cc,V.unset=bd,V.unzip=wc,V.unzipWith=Tc,V.update=xd,V.updateWith=Sd,V.values=Cd,V.valuesIn=wd,V.without=Ec,V.words=rf,V.wrap=Bl,V.xor=Dc,V.xorBy=Oc,V.xorWith=kc,V.zip=Ac,V.zipObject=jc,V.zipObjectDeep=Mc,V.zipWith=Nc,V.entries=_d,V.entriesIn=vd,V.extend=Ru,V.extendWith=zu,yf(V,V),V.add=Rf,V.attempt=af,V.camelCase=Od,V.capitalize=kd,V.ceil=zf,V.clamp=Td,V.clone=Hl,V.cloneDeep=Wl,V.cloneDeepWith=Gl,V.cloneWith=Ul,V.conformsTo=Kl,V.deburr=Ad,V.defaultTo=uf,V.divide=Bf,V.endsWith=jd,V.eq=ql,V.escape=Md,V.escapeRegExp=Nd,V.every=Kc,V.find=Jc,V.findIndex=Fs,V.findKey=Gu,V.findLast=Yc,V.findLastIndex=Is,V.findLastKey=Ku,V.floor=Vf,V.forEach=$c,V.forEachRight=el,V.forIn=qu,V.forInRight=Ju,V.forOwn=Yu,V.forOwnRight=Xu,V.get=$u,V.gt=Jl,V.gte=Yl,V.has=ed,V.hasIn=td,V.head=Vs,V.identity=pf,V.includes=nl,V.indexOf=Hs,V.inRange=Ed,V.invoke=id,V.isArguments=Xl,V.isArray=q,V.isArrayBuffer=Zl,V.isArrayLike=Ql,V.isArrayLikeObject=J,V.isBoolean=$l,V.isBuffer=eu,V.isDate=tu,V.isElement=nu,V.isEmpty=ru,V.isEqual=iu,V.isEqualWith=au,V.isError=ou,V.isFinite=su,V.isFunction=cu,V.isInteger=lu,V.isLength=uu,V.isMap=du,V.isMatch=fu,V.isMatchWith=pu,V.isNaN=mu,V.isNative=hu,V.isNil=_u,V.isNull=gu,V.isNumber=vu,V.isObject=Y,V.isObjectLike=X,V.isPlainObject=yu,V.isRegExp=bu,V.isSafeInteger=xu,V.isSet=Su,V.isString=Cu,V.isSymbol=wu,V.isTypedArray=Tu,V.isUndefined=Eu,V.isWeakMap=Du,V.isWeakSet=Ou,V.join=qs,V.kebabCase=Pd,V.last=Js,V.lastIndexOf=Ys,V.lowerCase=Fd,V.lowerFirst=Id,V.lt=ku,V.lte=Au,V.max=Hf,V.maxBy=Uf,V.mean=Wf,V.meanBy=Gf,V.min=Kf,V.minBy=qf,V.stubArray=Af,V.stubFalse=jf,V.stubObject=Mf,V.stubString=Nf,V.stubTrue=Pf,V.multiply=Jf,V.nth=Xs,V.noConflict=bf,V.noop=xf,V.now=_l,V.pad=Ld,V.padEnd=Rd,V.padStart=zd,V.parseInt=Bd,V.random=Dd,V.reduce=cl,V.reduceRight=ll,V.repeat=Vd,V.replace=Hd,V.result=md,V.round=Yf,V.runInContext=e,V.sample=dl,V.size=ml,V.snakeCase=Ud,V.some=hl,V.sortedIndex=ac,V.sortedIndexBy=oc,V.sortedIndexOf=sc,V.sortedLastIndex=cc,V.sortedLastIndexBy=lc,V.sortedLastIndexOf=uc,V.startCase=Gd,V.startsWith=Kd,V.subtract=Xf,V.sum=Zf,V.sumBy=Qf,V.template=qd,V.times=Ff,V.toFinite=Mu,V.toInteger=Z,V.toLength=Nu,V.toLower=Jd,V.toNumber=Pu,V.toSafeInteger=Iu,V.toString=Q,V.toUpper=Yd,V.trim=Xd,V.trimEnd=Zd,V.trimStart=Qd,V.truncate=$d,V.unescape=ef,V.uniqueId=Lf,V.upperCase=tf,V.upperFirst=nf,V.each=$c,V.eachRight=el,V.first=Vs,yf(V,function(){var e={};return Ci(V,function(t,n){M.call(V.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),V.VERSION=`4.17.21`,fn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){V[e].placeholder=V}),fn([`drop`,`take`],function(e,t){H.prototype[e]=function(r){r=r===n?1:P(Z(r),0);var i=this.__filtered__&&!t?new H(this):this.clone();return i.__filtered__?i.__takeCount__=L(r,i.__takeCount__):i.__views__.push({size:L(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},H.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),fn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;H.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:G(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),fn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);H.prototype[e]=function(){return this[n](1).value()[0]}}),fn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(pf)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=W(function(e,t){return typeof e==`function`?new H(this):this.map(function(n){return Fi(n,e,t)})}),H.prototype.reject=function(e){return this.filter(Al(G(e)))},H.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new H(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(y)},Ci(H.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=V[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(V.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof H,l=s[0],u=c||q(t),d=function(e){var t=a.apply(V,vn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new H(this);var g=e.apply(t,s);return g.__actions__.push({func:Ic,args:[d],thisArg:n}),new br(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),fn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=A[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);V.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(q(i)?i:[],e)}return this[n](function(n){return t.apply(q(n)?n:[],e)})}}),Ci(H.prototype,function(e,t){var n=V[t];if(n){var r=n.name+``;M.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[lo(n,s).name]=[{name:`wrapper`,func:n}],H.prototype.clone=xr,H.prototype.reverse=Sr,H.prototype.value=Cr,V.prototype.at=Lc,V.prototype.chain=Rc,V.prototype.commit=zc,V.prototype.next=Bc,V.prototype.plant=Hc,V.prototype.reverse=Uc,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Wc,V.prototype.first=V.prototype.head,kt&&(V.prototype[kt]=Vc),V})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(R._=fr,define(function(){return fr})):en?((en.exports=fr)._=fr,$t._=fr):R._=fr}).call(e)}))();var Ae=`1.9.0`,je=class{constructor(e){this.debug=!1,this.debug=e?.debug??!1,this.appName=e?.appName,this.appVersion=e?.appVersion}log(e,...t){this.debug&&this.print(e,`info`,t)}warn(e,...t){this.print(e,`warn`,t)}error(e,...t){this.print(e,`error`,t)}print(e,t,n){let r=[`[${[`MeltingSpot`,this.appName,this.appVersion].filter(Boolean).join(` - `)}] ${e}`];n.length&&r.push(...n),console[t](...r)}},Me=new je({appName:`Core SDK`,appVersion:Ae}),Ne=e=>e.toLowerCase().replace(/[^a-z0-9-]/g,``),Pe=[`/user`],Fe=({deeplink:e,spotId:t})=>{try{let n=new URL(e,`https://unused.com`),r=n.pathname;return n.search&&(r+=n.search),n.hash&&(r+=n.hash),Pe.some(e=>r.startsWith(e))||(r=`/spot/${t}/${ae(r)}`),r}catch(e){return Me.warn(`Failed to parse deeplink URL`,e),null}},Ie=[/(^|\.)meltingspot\.io$/i],Le=e=>{let t;try{let n=se(e);t=new URL(n)}catch{throw Error(`Invalid baseURL: ${e}`)}let n=t.hostname===`localhost`||t.hostname===`127.0.0.1`,r=t.protocol===`https:`,i=Ie.some(e=>e.test(t.hostname));if(!n&&(!r||!i))throw Error(`Untrusted baseURL origin: ${t.origin}`);return t.origin},Re={msApiBaseUrl:`https://openapi.meltingspot.io/`,msCommunityWebBaseUrl:`https://go.meltingspot.io/`,ssoToken:void 0,spotId:``,autoJoin:!1,rootDocument:globalThis.document},ze=class e{constructor(){this.configuration=Re}static getInstance(){return e.instance||=new e,e.instance}setConfiguration(e){this.configuration={...this.configuration,...e}}static getConfiguration(t={}){return{...e.getInstance().configuration,...t}}},Be=RegExp(`(%[a-f0-9]{2})|([^%]+?)`,`gi`),Ve=RegExp(`(%[a-f0-9]{2})+`,`gi`);function He(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],He(n),He(r))}function Ue(e){try{return decodeURIComponent(e)}catch{let t=e.match(Be)||[];for(let n=1;n<t.length;n++)e=He(t,n).join(``),t=e.match(Be)||[];return e}}function We(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=Ve.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=Ue(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Ve.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function D(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return We(e)}}function Ge(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function Ke(e,t){if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var qe=c({exclude:()=>ut,extract:()=>at,parse:()=>ot,parseUrl:()=>ct,pick:()=>lt,stringify:()=>st,stringifyUrl:()=>k}),Je=e=>e==null,Ye=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Xe=Symbol(`encodeFragmentIdentifier`);function Ze(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[O(t,e),`[`,i,`]`].join(``)]:[...n,[O(t,e),`[`,O(i,e),`]=`,O(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[O(t,e),`[]`].join(``)]:[...n,[O(t,e),`[]=`,O(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[O(t,e),`:list=`].join(``)]:[...n,[O(t,e),`:list=`,O(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[O(n,e),t,O(i,e)].join(``)]:[[r,O(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,O(t,e)]:[...n,[O(t,e),`=`,O(r,e)].join(``)]}}function Qe(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&et(n,e).includes(e.arrayFormatSeparator);n=a?et(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>et(t,e)):n===null?n:et(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&et(n,e);return}let a=n===null?[]:et(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function $e(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function O(e,t){return t.encode?t.strict?Ye(e):encodeURIComponent(e):e}function et(e,t){return t.decode?D(e):e}function tt(e){return Array.isArray(e)?e.sort():typeof e==`object`?tt(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function nt(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function rt(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function it(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function at(e){e=nt(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function ot(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},$e(t.arrayFormatSeparator);let n=Qe(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=Ke(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:et(o,t),n(et(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e]?t.types[e].replace(`[]`,``):void 0;n[r]=it(i,t,a)}else r[e]=typeof n==`object`&&n&&t.types[e]===`string`?Object.values(n).join(t.arrayFormatSeparator):it(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?tt(n):n,e},Object.create(null))}function st(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},$e(t.arrayFormatSeparator);let n=n=>t.skipNull&&Je(e[n])||t.skipEmptyString&&e[n]===``,r=Ze(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];return i===void 0?``:i===null?O(n,t):Array.isArray(i)?i.length===0&&t.arrayFormat===`bracket-separator`?O(n,t)+`[]`:i.reduce(r(n),[]).join(`&`):O(n,t)+`=`+O(i,t)}).filter(e=>e.length>0).join(`&`)}function ct(e,t){t={decode:!0,...t};let[n,r]=Ke(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:ot(at(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:et(r,t)}:{}}}function k(e,t){t={encode:!0,strict:!0,[Xe]:!0,...t};let n=nt(e.url).split(`?`)[0]||``,r=st({...ot(at(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=rt(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[Xe]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function lt(e,t,n){n={parseFragmentIdentifier:!0,[Xe]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=ct(e,n);return k({url:r,query:Ge(i,t),fragmentIdentifier:a},n)}function ut(e,t,n){return lt(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var dt=qe,A=class e extends Error{constructor(t,n){super(`HTTP Error ${t}${n?`: ${n}`:``}`),this.code=t,this.name=`HttpError`,Object.setPrototypeOf(this,e.prototype)}},j=function(e){return e.GET=`GET`,e.PATCH=`PATCH`,e.POST=`POST`,e}({}),ft=class{constructor(){this.headers={}}setHeaders(e){this.headers=e}async get(e){try{let t=e.query?`${e.url}?${this.serializeQuery(e.query)}`:e.url,n=await fetch(t,{headers:{...this.headers,...e.headers,"Content-Type":`application/json`},...e.signal?{signal:e.signal}:{}});return n.ok?T(await n.json()):E(new A(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new A(re.INTERNAL_SERVER_ERROR,t))}}async post(e){try{let t=await fetch(e.url,{method:`POST`,headers:{...this.headers,...e.headers,"Content-Type":`application/json`},body:JSON.stringify(e.payload),...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new A(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new A(re.INTERNAL_SERVER_ERROR,t))}}async patch(e){try{let t=await fetch(e.url,{method:`PATCH`,headers:{...this.headers,...e.headers,"Content-Type":`application/json`},body:JSON.stringify(e.payload),...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new A(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new A(re.INTERNAL_SERVER_ERROR,t))}}serializeQuery(e){if(typeof e==`string`)return e;if(typeof e==`object`)for(let t in e)e[t]===void 0&&delete e[t];return e=dt.stringify(e,{arrayFormat:`none`}),e}},pt={accessToken:{email:`/v1/auth/accessToken/email`,sso:{jwt:`/v1/auth/accessToken/sso/jwt`}},refreshAccessToken:`/v1/auth/accessToken~refresh`,password:{reset:`/v1/auth/password~reset`}},mt=class e extends EventTarget{constructor(){super(),this.accessToken=null,this.refreshToken=null}static getInstance(){return e.instance||=new e,e.instance}async loginWithPassword(e,t){let n=await this.callApi({endpoint:pt.accessToken.email,method:`POST`,body:{email:e,password:t},withSpotId:!0});if(n.isErr())return E(n.error);let{accessToken:r,refreshToken:i}=n.value;return this.setTokens(r.token,i.token),T({accessToken:r.token,refreshToken:i.token})}async loginWithSsoToken(e){let t=await this.callApi({endpoint:pt.accessToken.sso.jwt,method:`POST`,body:{token:e},withSpotId:!0});if(t.isErr())return E(t.error);let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),T({accessToken:n.token,refreshToken:r.token})}loginWithAuthTokens(e,t){return this.setTokens(e,t),{accessToken:e,refreshToken:t}}resetPassword(e){return this.callApi({endpoint:pt.password.reset,method:`POST`,body:{email:e}})}async refresh(){let e=await this.callApi({endpoint:pt.refreshAccessToken,method:`POST`,body:{refreshToken:this.refreshToken}});if(e.isErr())return E(e.error);let{accessToken:t,refreshToken:n}=e.value;return this.setTokens(t.token,n.token),T({accessToken:t.token,refreshToken:n.token})}async logout(){this.setTokens(null,null)}getAccessToken(){return this.accessToken}getRefreshToken(){return this.refreshToken}setTokens(e,t){if(this.accessToken!==e||this.refreshToken!==t){this.accessToken=e,this.refreshToken=t;let n=new CustomEvent(`auth:tokens-updated`,{detail:{accessToken:e,refreshToken:t}});this.dispatchEvent(n)}}async callApi(e){try{let{spotId:t,msApiBaseUrl:n}=ze.getConfiguration(),r=ce(e.endpoint,n),i={"Content-Type":`application/json`,...e.headers};e.withSpotId&&t&&(i[M.SpotId]=t);let a=await fetch(r,{method:e.method,body:e.body?JSON.stringify(e.body):void 0,headers:i});return a.ok?a.status===re.NO_CONTENT?T(void 0):T(await a.json()):E(new A(a.status,a.statusText))}catch(e){return E(new A(re.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:String(e)))}}},M=function(e){return e.Authorization=`Authorization`,e.SpotId=`x-spotid`,e}({}),ht=class e{static getInstance(){return e.instance||=new e,e.instance}static buildAuthenticatedRequest(e){let{msApiBaseUrl:t,spotId:n}=ze.getConfiguration(),r=ce(e,t),i=mt.getInstance().getAccessToken();if(!i)return E(Error(`Not authenticated`));let a={"Content-Type":`application/json`,Authorization:`Bearer ${i}`};return n&&(a[`x-spotid`]=n),T({url:r,headers:a})}static async stream(t,n,r){let{streamTransport:i}=ze.getConfiguration();if(i)return i({endpoint:t,body:n,signal:r});let a=e.buildAuthenticatedRequest(t);if(a.isErr())return E(a.error);let{url:o,headers:s}=a.value;try{let e=await fetch(o,{method:`POST`,headers:s,...n===void 0?{}:{body:JSON.stringify(n)},...r?{signal:r}:{}});if(!e.ok){let t=await e.text();return E(Error(`HTTP ${e.status}: ${t}`))}return e.body?T(e.body):E(Error(`Response body is empty`))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(e instanceof Error?e:Error(t))}}get pendingCount(){return this.queue.length}constructor(){this.queue=[],this.isProcessing=!1,this.isPaused=!1,this.authService=mt.getInstance(),this.httpService=new ft}enqueue(e){return new Promise(t=>{this.queue.push(async()=>{try{t(await e())}catch(e){t(E(new A(re.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:`Unknown error`)))}}),this.processQueue()})}async processQueue(){if(!this.isProcessing){this.isProcessing=!0;try{for(;!this.isPaused&&this.queue.length>0;){let e=this.queue.shift();if(!e)break;await e()}}finally{this.isProcessing=!1,!this.isPaused&&this.queue.length>0&&Promise.resolve().then(()=>this.processQueue())}}}pauseQueue(){this.isPaused=!0}resumeQueue(){let e=this.isPaused;this.isPaused=!1,e&&this.processQueue()}async call(e){return this.enqueue(async()=>{let t=async()=>{let{spotId:t,msApiBaseUrl:n}=ze.getConfiguration(),r={...e.options?.headers??{}};t&&(r[`x-spotid`]=t);let i=this.authService.getAccessToken(),{requiresAuth:a=!0}=e;if(!i&&a)return E(new A(re.UNAUTHORIZED));i&&(r.Authorization=`Bearer ${i}`);let o=ce(e.endpoint,n);switch(e.method){case j.GET:return this.httpService.get({...e.options??{},headers:r,url:o});case j.PATCH:return this.httpService.patch({...e.options??{},headers:r,url:o});case j.POST:return this.httpService.post({...e.options??{},headers:r,url:o});default:return E(new A(re.METHOD_NOT_ALLOWED,`Method not allowed`))}},n=await t();if(n.isErr()&&n.error.code===re.UNAUTHORIZED){let e=await this.authService.refresh();if(e.isErr())return E(new A(re.UNAUTHORIZED,e.error.message));n=await t()}return n})}},N={playbooks:`/v1/playbooks`,pages:e=>`/v1/playbooks/${e}/pages`,hotspots:(e,t)=>`/v1/playbooks/${e}/pages/${t}/hotspots`,hotspot:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}`,accessibleIntents:(e,t)=>`/v1/playbooks/${e}/pages/${t}/accessibleIntents`,intents:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents`,intent:(e,t,n,r)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents/${r}`},gt=50,_t=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=ht.getInstance()}async listPlaybooks(e){let t=await this.meltingSpotApi.call({method:j.GET,endpoint:N.playbooks,options:{query:{page:e?.page??1,limit:e?.limit??gt,...e?.domain?{"domain[eq]":e.domain}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookPages(e){let t=await this.meltingSpotApi.call({method:j.GET,endpoint:N.pages(e.playbookId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.url?{"url[eq]":e.url}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookPage(e,t){let n=await this.meltingSpotApi.call({method:j.POST,endpoint:N.pages(e.playbookId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listAccessiblePlaybookIntents(e){let t=await this.meltingSpotApi.call({method:j.GET,endpoint:N.accessibleIntents(e.playbookId,e.pageId),options:{query:{...e.domain?{domain:e.domain}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookHotspots(e){let t=await this.meltingSpotApi.call({method:j.GET,endpoint:N.hotspots(e.playbookId,e.pageId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.intentStatus?{"intentStatus[eq]":e.intentStatus}:{},...e.widgetType?{"widgetType[eq]":e.widgetType}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:j.POST,endpoint:N.hotspots(e.playbookId,e.pageId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:j.PATCH,endpoint:N.hotspot(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listPlaybookIntents(e){let t=await this.meltingSpotApi.call({method:j.GET,endpoint:N.intents(e.playbookId,e.pageId,e.hotspotId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.status?{"status[eq]":e.status}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:j.POST,endpoint:N.intents(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:j.PATCH,endpoint:N.intent(e.playbookId,e.pageId,e.hotspotId,e.intentId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}},vt={me:`/v1/spots/me`},yt=50,bt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=ht.getInstance()}async listSpotsForMe(e){let t=await this.meltingSpotApi.call({method:j.GET,endpoint:vt.me,options:{query:{page:1,limit:yt,...e?.spotMemberRole?{"spotMemberRole[eq]":e.spotMemberRole}:{}}}});return t.isErr()?E(t.error):T(t.value)}},xt={spotMember:{me:`/v1/spotMembers/me`,joinFromSso:`/v1/spotMembers~joinFromSso`,search:`/v1/spotMembers~search`}},St=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=ht.getInstance()}async getSpotMemberForMe(){let e=await this.meltingSpotApi.call({method:j.GET,endpoint:xt.spotMember.me});return e.isErr()?E(e.error):T(e.value)}async searchSpotMembers(e){let t={page:e.page,limit:e.limit};e.search&&(t.search=e.search);let n=await this.meltingSpotApi.call({method:j.GET,endpoint:xt.spotMember.search,options:{query:t}});return n.isErr()?E(n.error):T(n.value)}async joinFromSso(e){let t=await this.meltingSpotApi.call({method:j.POST,endpoint:xt.spotMember.joinFromSso,options:{payload:{token:e}}});return t.isErr()?E(t.error):T(t.value)}},Ct={spotMemberSsoToken:`/v1/spotMembers/auth/sso/jwt`,previewAccessKey:`/v1/spotMembers/auth/preview/accessKey`},wt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=ht.getInstance()}async generateSsoToken(){let e=await this.meltingSpotApi.call({method:j.POST,endpoint:Ct.spotMemberSsoToken,options:{payload:{}}});return e.isErr()?E(e.error):T(e.value.token)}async generatePreviewAccessKey(e){let t=await this.meltingSpotApi.call({method:j.POST,endpoint:Ct.previewAccessKey,options:{payload:{targetSpotMemberId:e.targetSpotMemberId}}});return t.isErr()?E(t.error):T(t.value)}},Tt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.spotMemberAuthApiService=wt.getInstance()}async generateSsoToken(){return this.spotMemberAuthApiService.generateSsoToken()}},Et=e=>{let t=e.get(`utm_source`);if(t)return{source:t,medium:e.get(`utm_medium`)??void 0,campaign:e.get(`utm_campaign`)??void 0,term:e.get(`utm_term`)??void 0,content:e.get(`utm_content`)??void 0}},Dt=e=>e?Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[`utm_${t}`]=n),e),{}):{},Ot=ze.getInstance(),kt=mt.getInstance(),At=Tt.getInstance(),jt={Playbook:_t.getInstance(),Spot:bt.getInstance(),SpotMember:St.getInstance()},Mt=globalThis;Mt.MeltingSpot||={},Mt.MeltingSpot.Configuration=Ot,Mt.MeltingSpot.Auth=kt,Mt.MeltingSpot.Sso=At,Mt.MeltingSpot.Api=jt;var Nt=new je({appName:`Embed SDK`,appVersion:`1.9.0`}),Pt=class{#e=null;#t=null;constructor(e){this.content=e}set onRemove(e){this.#t=e}inject(e){this.remove();let t=le({input:e,rootDocument:this.content.rootDocument});this.#e=this.content.iframe,this.#e.classList.add(`ms-embed`),t.appendChild(this.#e)}remove(){this.#e&&=(this.#e.contentWindow&&this.#t?.(this.#e.contentWindow),this.#e.remove(),null)}},Ft=class{constructor(e){this.baseURL=Le(e.baseURL),this.spotId=Ne(e.spotId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.deeplink=e.deeplink?Fe({deeplink:e.deeplink,spotId:this.spotId}):null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=this.authToken&&this.authToken.trim().length>0?`/sso/jwt`:``,t=fe({url:new URL(`/spot/${this.spotId}${e}`,se(this.baseURL)),searchParams:{embed:this.spotId,themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,deeplink:this.deeplink,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-spot`),t}},It={READY:`meltingspot:ready`,ERROR:`meltingspot:error`,PREFILL_DRAFT:`meltingspot:prefillDraft`},Lt=class e{static{this.embeds=[]}static{this.messageListened=!1}static{this.iframeCallbacks=new Map}static injectSpotInto(t,n){let{onReady:r,onError:i,...a}=n,{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=ze.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw Nt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l=new URLSearchParams(window.location.search),u={spotId:o,authToken:a.authToken??l.get(`ms_token`),domain:a.domain,deeplink:a.deeplink??l.get(`ms_url`),themeMode:a.themeMode,utmParameters:a.utmParameters??Et(l),baseURL:c,rootDocument:s},d=new Pt(new Ft(u));if(d.inject(t),e.embeds.push(d),r||i){let t=d.content.iframe.contentWindow;t&&(e.iframeCallbacks.set(t,{onReady:r,onError:i}),d.onRemove=t=>{e.iframeCallbacks.delete(t)}),e.ensureMessageListener()}return Nt.log(`Spot injected`,u,t),d}static clear(){e.embeds.forEach(e=>{e.remove()}),e.embeds=[],e.iframeCallbacks.clear(),e.messageListened&&=(window.removeEventListener(`message`,e.handleMessageEvent),!1),Nt.log(`All MeltingSpot embeds cleared`)}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==It.READY&&t.data.type!==It.ERROR)return;let n=t.source,r=e.iframeCallbacks.get(n);if(!r)return;let{msCommunityWebBaseUrl:i}=ze.getConfiguration({});if(i)try{let e=new URL(i).origin;if(t.origin!==e)return}catch{}t.data.type===It.READY?r.onReady?.():r.onError?.(t.data.error)}static ensureMessageListener(){e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0)}},Rt=globalThis;Rt.MeltingSpot||={},Rt.MeltingSpot.Embed=Lt;var zt=new je({appName:`Widget SDK`,appVersion:`1.9.0`}),Bt=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:e,bind:t,options:n}){this.remove();let r=le({input:e,rootDocument:this.rootDocument});if(this.dialogElement=ue(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),r.appendChild(this.dialogElement),t){this.triggerElement=le({input:t,rootDocument:this.rootDocument});let e=this.open.bind(this,n);this.currentListener=t=>{t.stopPropagation(),t.preventDefault(),e()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},Vt=class extends Bt{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},Ht=class extends Bt{constructor(e,t){super(e,t,`ms-modal`)}},Ut=class{constructor(e){this.baseURL=Le(e.baseURL),this.spotId=Ne(e.spotId),this.widgetId=Ne(e.widgetId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=fe({url:new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,se(this.baseURL)),searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return e.classList.add(`ms-widget`),e}},P=class{constructor(e){this.baseURL=Le(e.baseURL),this.spotId=Ne(e.spotId),this.widgetContentId=Ne(e.widgetContentId),this.contentId=Ne(e.contentId),this.widgetId=Ne(e.widgetId),this.contentType=e.contentType,this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,se(this.baseURL));e.searchParams.set(`widgetId`,this.widgetId);let t=fe({url:e,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-widget-content`),t}},Wt=class e{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=ze.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:o,args:s}=e.createWidget({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Pt(o);return c.inject(t),e.widgets.push(c),zt.log(`Widget injected`,e.cleanupLoggedArgs(s),t),c}static injectWidgetContentInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=ze.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:o,args:s}=e.createWidgetContent({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Pt(o);return c.inject(t),e.widgets.push(c),zt.log(`WidgetContent injected`,e.cleanupLoggedArgs(s),t),c}static bindWidgetModalTo(t,n){return e.bindEntityModalTo(t,{type:`Widget`,data:n})}static bindWidgetDrawerTo(t,n){return e.bindEntityDrawerTo(t,{type:`Widget`,data:n})}static createWidgetDrawer(t){let{widget:n}=e.createWidget(t);return zt.log(`Create Widget drawer`,{data:e.cleanupLoggedArgs(t)}),new Vt(n,t.rootDocument??document)}static createWidgetModal(t){let{widget:n}=e.createWidget(t);return zt.log(`Create Widget modal`,{data:e.cleanupLoggedArgs(t)}),new Ht(n,t.rootDocument??document)}static createWidgetEmbed(t){let{widget:n}=e.createWidget(t),r=new Pt(n);return zt.log(`Create Widget embed`,{data:e.cleanupLoggedArgs(t)}),r}static clear(){e.widgets.forEach(e=>{e.remove()}),e.widgets=[],e.widgetOptions={},zt.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=ze.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Vt(o,i),l={position:n.data.position},u=n.data.into??i.body;return c.inject({into:u,bind:t,options:l}),e.widgets.push(c),zt.log(`Widget bound to drawer`,e.cleanupLoggedArgs(s),l,u,t),c}static bindEntityModalTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=ze.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Ht(o,i),l=n.data.into??i.body;return c.inject({into:l,bind:t}),e.widgets.push(c),zt.log(`Widget bound to modal`,e.cleanupLoggedArgs(s),l,t),c}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let n=t.data?.widgetId;if(!n||typeof n!=`string`){zt.error(`widgetId is required in the message event data`);return}let r=e.widgetOptions[n];if(!r){zt.error(`No widget options found for widgetId`,{widgetId:n});return}let i=null;try{i=new URL(r.baseURL).origin}catch{i=null}if(!i||t.origin!==i){zt.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:i});return}let{spotId:a,rootDocument:o,msCommunityWebBaseUrl:s}=ze.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument??document,msCommunityWebBaseUrl:r.baseURL}),{widgetContent:c}=e.createWidgetContent({...r,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:n,spotId:a,rootDocument:o,baseURL:s});t.data.openingIn===`Drawer`?new Vt(c,o).open():t.data.openingIn===`Modal`&&new Ht(c,o).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??Et(n)};return e.widgetOptions[r.widgetId]=r,e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0),{widget:new Ut(r),args:r}}static createWidgetContent(e){let t=new URLSearchParams(window.location.search),n={spotId:e.spotId,contentId:e.contentId,contentType:e.contentType,widgetContentId:e.widgetContentId,widgetId:e.widgetId,authToken:e.authToken,themeMode:e.themeMode,domain:e.domain,rootDocument:e.rootDocument,baseURL:e.baseURL,utmParameters:e.utmParameters??Et(t)};return{widgetContent:new P(n),args:n}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},Gt=globalThis;Gt.MeltingSpot||={},Gt.MeltingSpot.Widget=Wt,e.Drawer=Vt,e.Modal=Ht,e.Widget=Wt});
33
+ }`;var g=af(function(){return ot(o,m+`return `+f).apply(n,s)});if(g.source=f,ou(g))throw g;return g}function Jd(e){return Q(e).toLowerCase()}function Yd(e){return Q(e).toUpperCase()}function Xd(e,t,r){if(e=Q(e),e&&(r||t===n))return Rn(e);if(!e||!(t=wa(t)))return e;var i=or(e),a=or(t);return Ia(i,Hn(i,a),Un(i,a)+1).join(``)}function Zd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.slice(0,sr(e)+1);if(!e||!(t=wa(t)))return e;var i=or(e);return Ia(i,0,Un(i,or(t))+1).join(``)}function Qd(e,t,r){if(e=Q(e),e&&(r||t===n))return e.replace(Ue,``);if(!e||!(t=wa(t)))return e;var i=or(e);return Ia(i,Hn(i,or(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(Y(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Z(t.length):r,i=`omission`in t?wa(t.omission):i}e=Q(e);var o=e.length;if(Yn(e)){var s=or(e);o=s.length}if(r>=o)return e;var c=r-ar(i);if(c<1)return i;var l=s?Ia(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),bu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ct(a.source,Q(Ze.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(wa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=Q(e),e&&Ne.test(e)?e.replace(je,cr):e}var tf=io(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=ro(`toUpperCase`);function rf(e,t,r){return e=Q(e),t=r?n:t,t===n?Xn(e)?dr(e):wn(e):e.match(t)||[]}var af=W(function(e,t){try{return un(e,n,t)}catch(e){return ou(e)?e:new at(e)}}),of=ko(function(e,t){return fn(t,function(t){t=bs(t),si(e,t,xl(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=G();return e=t?B(e,function(e){if(typeof e[1]!=`function`)throw new ut(r);return[n(e[0]),e[1]]}):[],W(function(n){for(var r=-1;++r<t;){var i=e[r];if(un(i[0],this,n))return un(i[1],this,n)}})}function cf(e){return di(ui(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=co(),ff=co(!0);function pf(e){return e}function mf(e){return qi(typeof e==`function`?e:ui(e,1))}function hf(e){return Qi(ui(e,1))}function gf(e,t){return $i(e,ui(t,1))}var _f=W(function(e,t){return function(n){return Fi(n,e,t)}}),vf=W(function(e,t){return function(n){return Fi(e,n,t)}});function yf(e,t,n){var r=$(t),i=Ti(t,r);n==null&&!(Y(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Ti(t,$(t)));var a=!(Y(n)&&`chain`in n)||!!n.chain,o=cu(e);return fn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ja(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,vn([this.value()],arguments))})}),e}function bf(){return R._===this&&(R._=vt),this}function xf(){}function Sf(e){return e=Z(e),W(function(t){return na(t,e)})}var Cf=po(B),wf=po(mn),Tf=po(xn);function Ef(e){return Zo(e)?jn(bs(e)):oa(e)}function Df(e){return function(t){return e==null?n:Ei(e,t)}}var Of=go(),kf=go(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Z(e),e<1||e>g)return[];var n=y,r=L(e,y);t=G(t),e-=y;for(var i=In(r,t);++n<e;)t(n);return i}function If(e){return q(e)?B(e,bs):wu(e)?[e]:Ja(ys(Q(e)))}function Lf(e){var t=++mt;return Q(e)+t}var Rf=fo(function(e,t){return e+t},0),zf=yo(`ceil`),Bf=fo(function(e,t){return e/t},1),Vf=yo(`floor`);function Hf(e){return e&&e.length?vi(e,pf,ki):n}function Uf(e,t){return e&&e.length?vi(e,G(t,2),ki):n}function Wf(e){return An(e,pf)}function Gf(e,t){return An(e,G(t,2))}function Kf(e){return e&&e.length?vi(e,pf,Xi):n}function qf(e,t){return e&&e.length?vi(e,G(t,2),Xi):n}var Jf=fo(function(e,t){return e*t},1),Yf=yo(`round`),Xf=fo(function(e,t){return e-t},0);function Zf(e){return e&&e.length?Fn(e,pf):0}function Qf(e,t){return e&&e.length?Fn(e,G(t,2)):0}return V.after=vl,V.ary=yl,V.assign=Lu,V.assignIn=Ru,V.assignInWith=zu,V.assignWith=Bu,V.at=Vu,V.before=bl,V.bind=xl,V.bindAll=of,V.bindKey=Sl,V.castArray=Vl,V.chain=Pc,V.chunk=ws,V.compact=Ts,V.concat=Es,V.cond=sf,V.conforms=cf,V.constant=lf,V.countBy=Gc,V.create=Hu,V.curry=Cl,V.curryRight=wl,V.debounce=Tl,V.defaults=Uu,V.defaultsDeep=Wu,V.defer=El,V.delay=Dl,V.difference=Ds,V.differenceBy=Os,V.differenceWith=ks,V.drop=As,V.dropRight=js,V.dropRightWhile=Ms,V.dropWhile=Ns,V.fill=Ps,V.filter=qc,V.flatMap=Xc,V.flatMapDeep=Zc,V.flatMapDepth=Qc,V.flatten=Ls,V.flattenDeep=Rs,V.flattenDepth=zs,V.flip=Ol,V.flow=df,V.flowRight=ff,V.fromPairs=Bs,V.functions=Zu,V.functionsIn=Qu,V.groupBy=tl,V.initial=Us,V.intersection=Ws,V.intersectionBy=Gs,V.intersectionWith=Ks,V.invert=nd,V.invertBy=rd,V.invokeMap=rl,V.iteratee=mf,V.keyBy=il,V.keys=$,V.keysIn=ad,V.map=al,V.mapKeys=od,V.mapValues=sd,V.matches=hf,V.matchesProperty=gf,V.memoize=kl,V.merge=cd,V.mergeWith=ld,V.method=_f,V.methodOf=vf,V.mixin=yf,V.negate=Al,V.nthArg=Sf,V.omit=ud,V.omitBy=dd,V.once=jl,V.orderBy=ol,V.over=Cf,V.overArgs=Ml,V.overEvery=wf,V.overSome=Tf,V.partial=Nl,V.partialRight=Pl,V.partition=sl,V.pick=fd,V.pickBy=pd,V.property=Ef,V.propertyOf=Df,V.pull=Zs,V.pullAll=Qs,V.pullAllBy=$s,V.pullAllWith=ec,V.pullAt=tc,V.range=Of,V.rangeRight=kf,V.rearg=Fl,V.reject=ul,V.remove=nc,V.rest=Il,V.reverse=rc,V.sampleSize=fl,V.set=hd,V.setWith=gd,V.shuffle=pl,V.slice=ic,V.sortBy=gl,V.sortedUniq=dc,V.sortedUniqBy=fc,V.split=Wd,V.spread=Ll,V.tail=pc,V.take=mc,V.takeRight=hc,V.takeRightWhile=gc,V.takeWhile=_c,V.tap=Fc,V.throttle=Rl,V.thru=Ic,V.toArray=ju,V.toPairs=_d,V.toPairsIn=vd,V.toPath=If,V.toPlainObject=Fu,V.transform=yd,V.unary=zl,V.union=vc,V.unionBy=yc,V.unionWith=bc,V.uniq=xc,V.uniqBy=Sc,V.uniqWith=Cc,V.unset=bd,V.unzip=wc,V.unzipWith=Tc,V.update=xd,V.updateWith=Sd,V.values=Cd,V.valuesIn=wd,V.without=Ec,V.words=rf,V.wrap=Bl,V.xor=Dc,V.xorBy=Oc,V.xorWith=kc,V.zip=Ac,V.zipObject=jc,V.zipObjectDeep=Mc,V.zipWith=Nc,V.entries=_d,V.entriesIn=vd,V.extend=Ru,V.extendWith=zu,yf(V,V),V.add=Rf,V.attempt=af,V.camelCase=Od,V.capitalize=kd,V.ceil=zf,V.clamp=Td,V.clone=Hl,V.cloneDeep=Wl,V.cloneDeepWith=Gl,V.cloneWith=Ul,V.conformsTo=Kl,V.deburr=Ad,V.defaultTo=uf,V.divide=Bf,V.endsWith=jd,V.eq=ql,V.escape=Md,V.escapeRegExp=Nd,V.every=Kc,V.find=Jc,V.findIndex=Fs,V.findKey=Gu,V.findLast=Yc,V.findLastIndex=Is,V.findLastKey=Ku,V.floor=Vf,V.forEach=$c,V.forEachRight=el,V.forIn=qu,V.forInRight=Ju,V.forOwn=Yu,V.forOwnRight=Xu,V.get=$u,V.gt=Jl,V.gte=Yl,V.has=ed,V.hasIn=td,V.head=Vs,V.identity=pf,V.includes=nl,V.indexOf=Hs,V.inRange=Ed,V.invoke=id,V.isArguments=Xl,V.isArray=q,V.isArrayBuffer=Zl,V.isArrayLike=Ql,V.isArrayLikeObject=J,V.isBoolean=$l,V.isBuffer=eu,V.isDate=tu,V.isElement=nu,V.isEmpty=ru,V.isEqual=iu,V.isEqualWith=au,V.isError=ou,V.isFinite=su,V.isFunction=cu,V.isInteger=lu,V.isLength=uu,V.isMap=du,V.isMatch=fu,V.isMatchWith=pu,V.isNaN=mu,V.isNative=hu,V.isNil=_u,V.isNull=gu,V.isNumber=vu,V.isObject=Y,V.isObjectLike=X,V.isPlainObject=yu,V.isRegExp=bu,V.isSafeInteger=xu,V.isSet=Su,V.isString=Cu,V.isSymbol=wu,V.isTypedArray=Tu,V.isUndefined=Eu,V.isWeakMap=Du,V.isWeakSet=Ou,V.join=qs,V.kebabCase=Pd,V.last=Js,V.lastIndexOf=Ys,V.lowerCase=Fd,V.lowerFirst=Id,V.lt=ku,V.lte=Au,V.max=Hf,V.maxBy=Uf,V.mean=Wf,V.meanBy=Gf,V.min=Kf,V.minBy=qf,V.stubArray=Af,V.stubFalse=jf,V.stubObject=Mf,V.stubString=Nf,V.stubTrue=Pf,V.multiply=Jf,V.nth=Xs,V.noConflict=bf,V.noop=xf,V.now=_l,V.pad=Ld,V.padEnd=Rd,V.padStart=zd,V.parseInt=Bd,V.random=Dd,V.reduce=cl,V.reduceRight=ll,V.repeat=Vd,V.replace=Hd,V.result=md,V.round=Yf,V.runInContext=e,V.sample=dl,V.size=ml,V.snakeCase=Ud,V.some=hl,V.sortedIndex=ac,V.sortedIndexBy=oc,V.sortedIndexOf=sc,V.sortedLastIndex=cc,V.sortedLastIndexBy=lc,V.sortedLastIndexOf=uc,V.startCase=Gd,V.startsWith=Kd,V.subtract=Xf,V.sum=Zf,V.sumBy=Qf,V.template=qd,V.times=Ff,V.toFinite=Mu,V.toInteger=Z,V.toLength=Nu,V.toLower=Jd,V.toNumber=Pu,V.toSafeInteger=Iu,V.toString=Q,V.toUpper=Yd,V.trim=Xd,V.trimEnd=Zd,V.trimStart=Qd,V.truncate=$d,V.unescape=ef,V.uniqueId=Lf,V.upperCase=tf,V.upperFirst=nf,V.each=$c,V.eachRight=el,V.first=Vs,yf(V,function(){var e={};return Ci(V,function(t,n){N.call(V.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),V.VERSION=`4.17.21`,fn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){V[e].placeholder=V}),fn([`drop`,`take`],function(e,t){H.prototype[e]=function(r){r=r===n?1:P(Z(r),0);var i=this.__filtered__&&!t?new H(this):this.clone();return i.__filtered__?i.__takeCount__=L(r,i.__takeCount__):i.__views__.push({size:L(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},H.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),fn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;H.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:G(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),fn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);H.prototype[e]=function(){return this[n](1).value()[0]}}),fn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(pf)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=W(function(e,t){return typeof e==`function`?new H(this):this.map(function(n){return Fi(n,e,t)})}),H.prototype.reject=function(e){return this.filter(Al(G(e)))},H.prototype.slice=function(e,t){e=Z(e);var r=this;return r.__filtered__&&(e>0||t<0)?new H(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Z(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(y)},Ci(H.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=V[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(V.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof H,l=s[0],u=c||q(t),d=function(e){var t=a.apply(V,vn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new H(this);var g=e.apply(t,s);return g.__actions__.push({func:Ic,args:[d],thisArg:n}),new br(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),fn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=j[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);V.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(q(i)?i:[],e)}return this[n](function(n){return t.apply(q(n)?n:[],e)})}}),Ci(H.prototype,function(e,t){var n=V[t];if(n){var r=n.name+``;N.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[lo(n,s).name]=[{name:`wrapper`,func:n}],H.prototype.clone=xr,H.prototype.reverse=Sr,H.prototype.value=Cr,V.prototype.at=Lc,V.prototype.chain=Rc,V.prototype.commit=zc,V.prototype.next=Bc,V.prototype.plant=Hc,V.prototype.reverse=Uc,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Wc,V.prototype.first=V.prototype.head,kt&&(V.prototype[kt]=Vc),V})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(R._=fr,define(function(){return fr})):en?((en.exports=fr)._=fr,$t._=fr):R._=fr}).call(e)}))(),Object.values(function(e){return e.EditMode=`edit-mode`,e.Preview=`preview`,e}({}));var ke=`1.11.0`,Ae=class{constructor(e){this.debug=!1,this.debug=e?.debug??!1,this.appName=e?.appName,this.appVersion=e?.appVersion}log(e,...t){this.debug&&this.print(e,`info`,t)}warn(e,...t){this.print(e,`warn`,t)}error(e,...t){this.print(e,`error`,t)}print(e,t,n){let r=[`[${[`MeltingSpot`,this.appName,this.appVersion].filter(Boolean).join(` - `)}] ${e}`];n.length&&r.push(...n),console[t](...r)}},je=new Ae({appName:`Core SDK`,appVersion:ke}),Me=e=>e.toLowerCase().replace(/[^a-z0-9-]/g,``),Ne=[`/user`],Pe=({deeplink:e,spotId:t})=>{try{let n=new URL(e,`https://unused.com`),r=n.pathname;return n.search&&(r+=n.search),n.hash&&(r+=n.hash),Ne.some(e=>r.startsWith(e))||(r=`/spot/${t}/${ie(r)}`),r}catch(e){return je.warn(`Failed to parse deeplink URL`,e),null}},Fe=[/(^|\.)meltingspot\.io$/i],Ie=e=>{let t;try{let n=oe(e);t=new URL(n)}catch{throw Error(`Invalid baseURL: ${e}`)}let n=t.hostname===`localhost`||t.hostname===`127.0.0.1`,r=t.protocol===`https:`,i=Fe.some(e=>e.test(t.hostname));if(!n&&(!r||!i))throw Error(`Untrusted baseURL origin: ${t.origin}`);return t.origin},Le={msApiBaseUrl:`https://openapi.meltingspot.io/`,msCommunityWebBaseUrl:`https://go.meltingspot.io/`,ssoToken:void 0,spotId:``,autoJoin:!1,rootDocument:globalThis.document},Re=class e{constructor(){this.configuration=Le}static getInstance(){return e.instance||=new e,e.instance}setConfiguration(e){this.configuration={...this.configuration,...e}}static getConfiguration(t={}){return{...e.getInstance().configuration,...t}}},ze=RegExp(`(%[a-f0-9]{2})|([^%]+?)`,`gi`),Be=RegExp(`(%[a-f0-9]{2})+`,`gi`);function Ve(e,t){try{return[decodeURIComponent(e.join(``))]}catch{}if(e.length===1)return e;t||=1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Ve(n),Ve(r))}function He(e){try{return decodeURIComponent(e)}catch{let t=e.match(ze)||[];for(let n=1;n<t.length;n++)e=Ve(t,n).join(``),t=e.match(ze)||[];return e}}function Ue(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=Be.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{let e=He(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Be.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function O(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return Ue(e)}}function We(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}function Ge(e,t){if(typeof e!=`string`||typeof t!=`string`)throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}var Ke=c({exclude:()=>lt,extract:()=>it,parse:()=>at,parseUrl:()=>st,pick:()=>ct,stringify:()=>ot,stringifyUrl:()=>A}),qe=e=>e==null,Je=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ye=Symbol(`encodeFragmentIdentifier`);function Xe(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[`,i,`]`].join(``)]:[...n,[k(t,e),`[`,k(i,e),`]=`,k(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`[]`].join(``)]:[...n,[k(t,e),`[]=`,k(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[k(t,e),`:list=`].join(``)]:[...n,[k(t,e),`:list=`,k(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[k(n,e),t,k(i,e)].join(``)]:[[r,k(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,k(t,e)]:[...n,[k(t,e),`=`,k(r,e)].join(``)]}}function Ze(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&$e(n,e).includes(e.arrayFormatSeparator);n=a?$e(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>$e(t,e)):n===null?n:$e(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&$e(n,e);return}let a=n===null?[]:$e(n,e).split(e.arrayFormatSeparator);if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function Qe(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function k(e,t){return t.encode?t.strict?Je(e):encodeURIComponent(e):e}function $e(e,t){return t.decode?O(e):e}function et(e){return Array.isArray(e)?e.sort():typeof e==`object`?et(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function tt(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function nt(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function rt(e,t,n){return n===`string`&&typeof e==`string`?e:typeof n==`function`&&typeof e==`string`?n(e):n===`boolean`&&e===null?!0:n===`boolean`&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:n===`boolean`&&e!==null&&(e.toLowerCase()===`1`||e.toLowerCase()===`0`)?e.toLowerCase()===`1`:n===`string[]`&&t.arrayFormat!==`none`&&typeof e==`string`?[e]:n===`number[]`&&t.arrayFormat!==`none`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?[Number(e)]:n===`number`&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)?e.toLowerCase()===`true`:t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?Number(e):e}function it(e){e=tt(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function at(e,t){t={decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},Qe(t.arrayFormatSeparator);let n=Ze(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=Ge(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:$e(o,t),n($e(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n&&t.types[e]!==`string`)for(let[r,i]of Object.entries(n)){let a=t.types[e]?t.types[e].replace(`[]`,``):void 0;n[r]=rt(i,t,a)}else r[e]=typeof n==`object`&&n&&t.types[e]===`string`?Object.values(n).join(t.arrayFormatSeparator):rt(n,t,t.types[e]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?et(n):n,e},Object.create(null))}function ot(e,t){if(!e)return``;t={encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,...t},Qe(t.arrayFormatSeparator);let n=n=>t.skipNull&&qe(e[n])||t.skipEmptyString&&e[n]===``,r=Xe(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];return i===void 0?``:i===null?k(n,t):Array.isArray(i)?i.length===0&&t.arrayFormat===`bracket-separator`?k(n,t)+`[]`:i.reduce(r(n),[]).join(`&`):k(n,t)+`=`+k(i,t)}).filter(e=>e.length>0).join(`&`)}function st(e,t){t={decode:!0,...t};let[n,r]=Ge(e,`#`);return n===void 0&&(n=e),{url:n?.split(`?`)?.[0]??``,query:at(it(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:$e(r,t)}:{}}}function A(e,t){t={encode:!0,strict:!0,[Ye]:!0,...t};let n=tt(e.url).split(`?`)[0]||``,r=ot({...at(it(e.url),{sort:!1,...t}),...e.query},t);r&&=`?${r}`;let i=nt(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[Ye]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function ct(e,t,n){n={parseFragmentIdentifier:!0,[Ye]:!1,...n};let{url:r,query:i,fragmentIdentifier:a}=st(e,n);return A({url:r,query:We(i,t),fragmentIdentifier:a},n)}function lt(e,t,n){return ct(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var ut=Ke,j=class e extends Error{constructor(t,n){super(`HTTP Error ${t}${n?`: ${n}`:``}`),this.code=t,this.name=`HttpError`,Object.setPrototypeOf(this,e.prototype)}},M=function(e){return e.DELETE=`DELETE`,e.GET=`GET`,e.PATCH=`PATCH`,e.POST=`POST`,e}({}),dt=class{constructor(){this.headers={}}setHeaders(e){this.headers=e}async get(e){try{let t=e.query?`${e.url}?${this.serializeQuery(e.query)}`:e.url,n=await fetch(t,{headers:{...this.headers,...e.headers,"Content-Type":`application/json`},...e.signal?{signal:e.signal}:{}});return n.ok?T(await n.json()):E(new j(n.status,await n.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async post(e){try{let t=await fetch(e.url,{method:`POST`,headers:{...this.headers,...e.headers,"Content-Type":`application/json`},body:JSON.stringify(e.payload),...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new j(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async delete(e){try{let t=await fetch(e.url,{method:`DELETE`,headers:{...this.headers,...e.headers,Accept:`application/json`},...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new j(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}async patch(e){try{let t=await fetch(e.url,{method:`PATCH`,headers:{...this.headers,...e.headers,"Content-Type":`application/json`},body:JSON.stringify(e.payload),...e.signal?{signal:e.signal}:{}});return t.ok?T(await t.json()):E(new j(t.status,await t.text()))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(new j(D.INTERNAL_SERVER_ERROR,t))}}serializeQuery(e){if(typeof e==`string`)return e;if(typeof e==`object`)for(let t in e)e[t]===void 0&&delete e[t];return e=ut.stringify(e,{arrayFormat:`none`}),e}},ft={accessToken:{email:`/v1/auth/accessToken/email`,sso:{jwt:`/v1/auth/accessToken/sso/jwt`}},refreshAccessToken:`/v1/auth/accessToken~refresh`,password:{reset:`/v1/auth/password~reset`}},pt=class e extends EventTarget{constructor(){super(),this.accessToken=null,this.refreshToken=null}static getInstance(){return e.instance||=new e,e.instance}async loginWithPassword(e,t){let n=await this.callApi({endpoint:ft.accessToken.email,method:`POST`,body:{email:e,password:t},withSpotId:!0});if(n.isErr())return E(n.error);let{accessToken:r,refreshToken:i}=n.value;return this.setTokens(r.token,i.token),T({accessToken:r.token,refreshToken:i.token})}async loginWithSsoToken(e){let t=await this.callApi({endpoint:ft.accessToken.sso.jwt,method:`POST`,body:{token:e},withSpotId:!0});if(t.isErr())return E(t.error);let{accessToken:n,refreshToken:r}=t.value;return this.setTokens(n.token,r.token),T({accessToken:n.token,refreshToken:r.token})}loginWithAuthTokens(e,t){return this.setTokens(e,t),{accessToken:e,refreshToken:t}}resetPassword(e){return this.callApi({endpoint:ft.password.reset,method:`POST`,body:{email:e}})}async refresh(){let e=await this.callApi({endpoint:ft.refreshAccessToken,method:`POST`,body:{refreshToken:this.refreshToken}});if(e.isErr())return E(e.error);let{accessToken:t,refreshToken:n}=e.value;return this.setTokens(t.token,n.token),T({accessToken:t.token,refreshToken:n.token})}async logout(){this.setTokens(null,null)}getAccessToken(){return this.accessToken}getRefreshToken(){return this.refreshToken}setTokens(e,t){if(this.accessToken!==e||this.refreshToken!==t){this.accessToken=e,this.refreshToken=t;let n=new CustomEvent(`auth:tokens-updated`,{detail:{accessToken:e,refreshToken:t}});this.dispatchEvent(n)}}async callApi(e){try{let{spotId:t,msApiBaseUrl:n}=Re.getConfiguration(),r=se(e.endpoint,n),i={"Content-Type":`application/json`,...e.headers};e.withSpotId&&t&&(i[N.SpotId]=t);let a=await fetch(r,{method:e.method,body:e.body?JSON.stringify(e.body):void 0,headers:i});return a.ok?a.status===D.NO_CONTENT?T(void 0):T(await a.json()):E(new j(a.status,a.statusText))}catch(e){return E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:String(e)))}}},N=function(e){return e.Authorization=`Authorization`,e.SpotId=`x-spotid`,e}({}),mt=class e{static getInstance(){return e.instance||=new e,e.instance}static buildAuthenticatedRequest(e){let{msApiBaseUrl:t,spotId:n}=Re.getConfiguration(),r=se(e,t),i=pt.getInstance().getAccessToken();if(!i)return E(Error(`Not authenticated`));let a={"Content-Type":`application/json`,Authorization:`Bearer ${i}`};return n&&(a[`x-spotid`]=n),T({url:r,headers:a})}static async stream(t,n,r){let{streamTransport:i}=Re.getConfiguration();if(i)return i({endpoint:t,body:n,signal:r});let a=e.buildAuthenticatedRequest(t);if(a.isErr())return E(a.error);let{url:o,headers:s}=a.value;try{let e=await fetch(o,{method:`POST`,headers:s,...n===void 0?{}:{body:JSON.stringify(n)},...r?{signal:r}:{}});if(!e.ok){let t=await e.text();return E(Error(`HTTP ${e.status}: ${t}`))}return e.body?T(e.body):E(Error(`Response body is empty`))}catch(e){let t=e instanceof Error?e.message:`Unknown error`;return E(e instanceof Error?e:Error(t))}}get pendingCount(){return this.queue.length}constructor(){this.queue=[],this.isProcessing=!1,this.isPaused=!1,this.authService=pt.getInstance(),this.httpService=new dt}enqueue(e){return new Promise(t=>{this.queue.push(async()=>{try{t(await e())}catch(e){t(E(new j(D.INTERNAL_SERVER_ERROR,e instanceof Error?e.message:`Unknown error`)))}}),this.processQueue()})}async processQueue(){if(!this.isProcessing){this.isProcessing=!0;try{for(;!this.isPaused&&this.queue.length>0;){let e=this.queue.shift();if(!e)break;await e()}}finally{this.isProcessing=!1,!this.isPaused&&this.queue.length>0&&Promise.resolve().then(()=>this.processQueue())}}}pauseQueue(){this.isPaused=!0}resumeQueue(){let e=this.isPaused;this.isPaused=!1,e&&this.processQueue()}async call(e){return this.enqueue(async()=>{let t=async()=>{let{spotId:t,msApiBaseUrl:n}=Re.getConfiguration(),r={...e.options?.headers??{}};t&&(r[`x-spotid`]=t);let i=this.authService.getAccessToken(),{requiresAuth:a=!0}=e;if(!i&&a)return E(new j(D.UNAUTHORIZED));i&&(r.Authorization=`Bearer ${i}`);let o=se(e.endpoint,n);switch(e.method){case M.DELETE:return this.httpService.delete({...e.options??{},headers:r,url:o});case M.GET:return this.httpService.get({...e.options??{},headers:r,url:o});case M.PATCH:return this.httpService.patch({...e.options??{},headers:r,url:o});case M.POST:return this.httpService.post({...e.options??{},headers:r,url:o});default:return E(new j(D.METHOD_NOT_ALLOWED,`Method not allowed`))}},n=await t();if(n.isErr()&&n.error.code===D.UNAUTHORIZED){let e=await this.authService.refresh();if(e.isErr())return E(new j(D.UNAUTHORIZED,e.error.message));n=await t()}return n})}},ht={playbooks:`/v1/playbooks`,pages:e=>`/v1/playbooks/${e}/pages`,hotspots:(e,t)=>`/v1/playbooks/${e}/pages/${t}/hotspots`,hotspot:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}`,accessibleIntents:(e,t)=>`/v1/playbooks/${e}/pages/${t}/accessibleIntents`,intents:(e,t,n)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents`,intent:(e,t,n,r)=>`/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents/${r}`},gt=50,_t=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async listPlaybooks(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.playbooks,options:{query:{page:e?.page??1,limit:e?.limit??gt,...e?.domain?{"domain[eq]":e.domain}:{},...e?.host===void 0?{}:{"domain[matchesHost]":e.host}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookPages(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.pages(e.playbookId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.url?{"url[eq]":e.url}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookPage(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:ht.pages(e.playbookId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listAccessiblePlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.accessibleIntents(e.playbookId,e.pageId),options:{query:{...e.domain?{domain:e.domain}:{}}}});return t.isErr()?E(t.error):T(t.value)}async listPlaybookHotspots(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.hotspots(e.playbookId,e.pageId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.intentStatus?{"intentStatus[eq]":e.intentStatus}:{},...e.widgetType?{"widgetType[eq]":e.widgetType}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:ht.hotspots(e.playbookId,e.pageId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookHotspot(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:ht.hotspot(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async listPlaybookIntents(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:ht.intents(e.playbookId,e.pageId,e.hotspotId),options:{query:{page:e.page??1,limit:e.limit??gt,...e.status?{"status[eq]":e.status}:{}}}});return t.isErr()?E(t.error):T(t.value)}async createPlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.POST,endpoint:ht.intents(e.playbookId,e.pageId,e.hotspotId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}async updatePlaybookIntent(e,t){let n=await this.meltingSpotApi.call({method:M.PATCH,endpoint:ht.intent(e.playbookId,e.pageId,e.hotspotId,e.intentId),options:{payload:t}});return n.isErr()?E(n.error):T(n.value)}},vt={me:`/v1/spots/me`},yt=50,bt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async listSpotsForMe(e){let t=await this.meltingSpotApi.call({method:M.GET,endpoint:vt.me,options:{query:{page:1,limit:yt,...e?.spotMemberRole?{"spotMemberRole[eq]":e.spotMemberRole}:{}}}});return t.isErr()?E(t.error):T(t.value)}},xt={spotMember:{me:`/v1/spotMembers/me`,joinFromSso:`/v1/spotMembers~joinFromSso`,search:`/v1/spotMembers~search`}},St=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async getSpotMemberForMe(){let e=await this.meltingSpotApi.call({method:M.GET,endpoint:xt.spotMember.me});return e.isErr()?E(e.error):T(e.value)}async searchSpotMembers(e){let t={page:e.page,limit:e.limit};e.search&&(t.search=e.search);let n=await this.meltingSpotApi.call({method:M.GET,endpoint:xt.spotMember.search,options:{query:t}});return n.isErr()?E(n.error):T(n.value)}async joinFromSso(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:xt.spotMember.joinFromSso,options:{payload:{token:e}}});return t.isErr()?E(t.error):T(t.value)}},Ct={spotMemberSsoToken:`/v1/spotMembers/auth/sso/jwt`,previewAccessKey:`/v1/spotMembers/auth/preview/accessKey`},wt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.meltingSpotApi=mt.getInstance()}async generateSsoToken(){let e=await this.meltingSpotApi.call({method:M.POST,endpoint:Ct.spotMemberSsoToken,options:{payload:{}}});return e.isErr()?E(e.error):T(e.value.token)}async generatePreviewAccessKey(e){let t=await this.meltingSpotApi.call({method:M.POST,endpoint:Ct.previewAccessKey,options:{payload:{targetSpotMemberId:e.targetSpotMemberId}}});return t.isErr()?E(t.error):T(t.value)}},Tt=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.spotMemberAuthApiService=wt.getInstance()}async generateSsoToken(){return this.spotMemberAuthApiService.generateSsoToken()}},Et=e=>{let t=e.get(`utm_source`);if(t)return{source:t,medium:e.get(`utm_medium`)??void 0,campaign:e.get(`utm_campaign`)??void 0,term:e.get(`utm_term`)??void 0,content:e.get(`utm_content`)??void 0}},Dt=e=>e?Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[`utm_${t}`]=n),e),{}):{},Ot=Re.getInstance(),kt=pt.getInstance(),At=Tt.getInstance(),jt={Playbook:_t.getInstance(),Spot:bt.getInstance(),SpotMember:St.getInstance()},Mt=globalThis;Mt.MeltingSpot||={},Mt.MeltingSpot.Configuration=Ot,Mt.MeltingSpot.Auth=kt,Mt.MeltingSpot.Sso=At,Mt.MeltingSpot.Api=jt;var Nt=new Ae({appName:`Embed SDK`,appVersion:`1.11.0`}),Pt=class{#e=null;#t=null;constructor(e){this.content=e}set onRemove(e){this.#t=e}inject(e){this.remove();let t=ce({input:e,rootDocument:this.content.rootDocument});this.#e=this.content.iframe,this.#e.classList.add(`ms-embed`),t.appendChild(this.#e)}remove(){this.#e&&=(this.#e.contentWindow&&this.#t?.(this.#e.contentWindow),this.#e.remove(),null)}},Ft=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.deeplink=e.deeplink?Pe({deeplink:e.deeplink,spotId:this.spotId}):null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=this.authToken&&this.authToken.trim().length>0?`/sso/jwt`:``,t=de({url:new URL(`/spot/${this.spotId}${e}`,oe(this.baseURL)),searchParams:{embed:this.spotId,themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,deeplink:this.deeplink,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-spot`),t}},It={READY:`meltingspot:ready`,ERROR:`meltingspot:error`,PREFILL_DRAFT:`meltingspot:prefillDraft`},Lt=class e{static{this.embeds=[]}static{this.messageListened=!1}static{this.iframeCallbacks=new Map}static injectSpotInto(t,n){let{onReady:r,onError:i,...a}=n,{spotId:o,rootDocument:s,msCommunityWebBaseUrl:c}=Re.getConfiguration({spotId:a.spotId,rootDocument:a.rootDocument,msCommunityWebBaseUrl:a.baseURL});if(!o)throw Nt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let l=new URLSearchParams(window.location.search),u={spotId:o,authToken:a.authToken??l.get(`ms_token`),domain:a.domain,deeplink:a.deeplink??l.get(`ms_url`),themeMode:a.themeMode,utmParameters:a.utmParameters??Et(l),baseURL:c,rootDocument:s},d=new Pt(new Ft(u));if(d.inject(t),e.embeds.push(d),r||i){let t=d.content.iframe.contentWindow;t&&(e.iframeCallbacks.set(t,{onReady:r,onError:i}),d.onRemove=t=>{e.iframeCallbacks.delete(t)}),e.ensureMessageListener()}return Nt.log(`Spot injected`,u,t),d}static clear(){e.embeds.forEach(e=>{e.remove()}),e.embeds=[],e.iframeCallbacks.clear(),e.messageListened&&=(window.removeEventListener(`message`,e.handleMessageEvent),!1),Nt.log(`All MeltingSpot embeds cleared`)}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==It.READY&&t.data.type!==It.ERROR)return;let n=t.source,r=e.iframeCallbacks.get(n);if(!r)return;let{msCommunityWebBaseUrl:i}=Re.getConfiguration({});if(i)try{let e=new URL(i).origin;if(t.origin!==e)return}catch{}t.data.type===It.READY?r.onReady?.():r.onError?.(t.data.error)}static ensureMessageListener(){e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0)}},Rt=globalThis;Rt.MeltingSpot||={},Rt.MeltingSpot.Embed=Lt;var zt=new Ae({appName:`Widget SDK`,appVersion:`1.11.0`}),Bt=class{constructor(e,t,n){this.content=e,this.rootDocument=t,this.dialogClassname=n,this.dialogElement=null,this.triggerElement=null,this.iframeElement=null,this.currentListener=null}inject({into:e,bind:t,options:n}){this.remove();let r=ce({input:e,rootDocument:this.rootDocument});if(this.dialogElement=le(this.rootDocument),this.dialogElement.classList.add(this.dialogClassname),this.dialogElement.onclose=()=>this.#t(),r.appendChild(this.dialogElement),t){this.triggerElement=ce({input:t,rootDocument:this.rootDocument});let e=this.open.bind(this,n);this.currentListener=t=>{t.stopPropagation(),t.preventDefault(),e()},this.triggerElement.addEventListener(`click`,this.currentListener)}}remove(){this.dialogElement&&=(this.dialogElement.remove(),this.dialogElement.onclose=null,null),this.triggerElement&&(this.currentListener&&this.triggerElement.removeEventListener(`click`,this.currentListener),this.triggerElement=null,this.currentListener=null)}open(e){this.dialogElement||this.inject({into:this.rootDocument.body}),this.dialogElement&&(this.#e(),this.dialogElement.showModal())}close(){this.dialogElement&&this.dialogElement.close()}#e(){this.dialogElement&&(this.iframeElement=this.dialogElement.appendChild(this.content.iframe))}#t(){this.iframeElement&&=(this.iframeElement.remove(),null)}},Vt=class extends Bt{constructor(e,t){super(e,t,`ms-drawer`)}open(e){let{position:t=`right`}=e??{};super.open(e),this.dialogElement&&(this.dialogElement.dataset.position=t)}},Ht=class extends Bt{constructor(e,t){super(e,t,`ms-modal`)}},Ut=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.widgetId=Me(e.widgetId),this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=de({url:new URL(`/widgets/spot/${this.spotId}/widget/${this.widgetId}`,oe(this.baseURL)),searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return e.classList.add(`ms-widget`),e}},P=class{constructor(e){this.baseURL=Ie(e.baseURL),this.spotId=Me(e.spotId),this.widgetContentId=Me(e.widgetContentId),this.contentId=Me(e.contentId),this.widgetId=Me(e.widgetId),this.contentType=e.contentType,this.authToken=e.authToken??null,this.themeMode=e.themeMode??`auto`,this.domain=e.domain??null,this.utmParameters=e.utmParameters??null,this.rootDocument=e.rootDocument}get iframe(){let e=new URL(`/widgets/spot/${this.spotId}/widgetContent/${this.widgetContentId}`,oe(this.baseURL));e.searchParams.set(`widgetId`,this.widgetId);let t=de({url:e,searchParams:{themeMode:this.themeMode,ms_token:this.authToken,domain:this.domain,contentId:this.contentId,contentType:this.contentType,...Dt(this.utmParameters)},rootDocument:this.rootDocument});return t.classList.add(`ms-widget-content`),t}},Wt=class e{static{this.widgets=[]}static{this.messageListened=!1}static{this.widgetOptions={}}static injectWidgetInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widget:o,args:s}=e.createWidget({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Pt(o);return c.inject(t),e.widgets.push(c),zt.log(`Widget injected`,e.cleanupLoggedArgs(s),t),c}static injectWidgetContentInto(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.spotId,rootDocument:n.rootDocument,msCommunityWebBaseUrl:n.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let{widgetContent:o,args:s}=e.createWidgetContent({...n,spotId:r,rootDocument:i,baseURL:a}),c=new Pt(o);return c.inject(t),e.widgets.push(c),zt.log(`WidgetContent injected`,e.cleanupLoggedArgs(s),t),c}static bindWidgetModalTo(t,n){return e.bindEntityModalTo(t,{type:`Widget`,data:n})}static bindWidgetDrawerTo(t,n){return e.bindEntityDrawerTo(t,{type:`Widget`,data:n})}static createWidgetDrawer(t){let{widget:n}=e.createWidget(t);return zt.log(`Create Widget drawer`,{data:e.cleanupLoggedArgs(t)}),new Vt(n,t.rootDocument??document)}static createWidgetModal(t){let{widget:n}=e.createWidget(t);return zt.log(`Create Widget modal`,{data:e.cleanupLoggedArgs(t)}),new Ht(n,t.rootDocument??document)}static createWidgetEmbed(t){let{widget:n}=e.createWidget(t),r=new Pt(n);return zt.log(`Create Widget embed`,{data:e.cleanupLoggedArgs(t)}),r}static clear(){e.widgets.forEach(e=>{e.remove()}),e.widgets=[],e.widgetOptions={},zt.log(`All Widget SDK MeltingSpot elements were cleared`)}static bindEntityDrawerTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Vt(o,i),l={position:n.data.position},u=n.data.into??i.body;return c.inject({into:u,bind:t,options:l}),e.widgets.push(c),zt.log(`Widget bound to drawer`,e.cleanupLoggedArgs(s),l,u,t),c}static bindEntityModalTo(t,n){let{spotId:r,rootDocument:i,msCommunityWebBaseUrl:a}=Re.getConfiguration({spotId:n.data.spotId,rootDocument:n.data.rootDocument??document,msCommunityWebBaseUrl:n.data.baseURL});if(!r)throw zt.error(`Spot ID is required`),Error(`Spot ID is not configured. Please set the spotId in the configuration.`);let o,s;switch(n.type){case`Widget`:{let t=e.createWidget({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widget,s=t.args}break;case`WidgetContent`:{let t=e.createWidgetContent({...n.data,spotId:r,rootDocument:i,baseURL:a});o=t.widgetContent,s=t.args}}let c=new Ht(o,i),l=n.data.into??i.body;return c.inject({into:l,bind:t}),e.widgets.push(c),zt.log(`Widget bound to modal`,e.cleanupLoggedArgs(s),l,t),c}static handleMessageEvent(t){if(!t.data||typeof t.data!=`object`||t.data.type!==`OpenWidgetContent`)return;let n=t.data?.widgetId;if(!n||typeof n!=`string`){zt.error(`widgetId is required in the message event data`);return}let r=e.widgetOptions[n];if(!r){zt.error(`No widget options found for widgetId`,{widgetId:n});return}let i=null;try{i=new URL(r.baseURL).origin}catch{i=null}if(!i||t.origin!==i){zt.warn(`Ignoring OpenWidgetContent from unexpected origin`,{origin:t.origin,expectedOrigin:i});return}let{spotId:a,rootDocument:o,msCommunityWebBaseUrl:s}=Re.getConfiguration({spotId:r.spotId,rootDocument:r.rootDocument??document,msCommunityWebBaseUrl:r.baseURL}),{widgetContent:c}=e.createWidgetContent({...r,widgetContentId:t.data.widgetContentId,contentType:t.data.contentType,contentId:t.data.contentId,widgetId:n,spotId:a,rootDocument:o,baseURL:s});t.data.openingIn===`Drawer`?new Vt(c,o).open():t.data.openingIn===`Modal`&&new Ht(c,o).open()}static createWidget(t){let n=new URLSearchParams(window.location.search),r={spotId:t.spotId,widgetId:t.widgetId,authToken:t.authToken,themeMode:t.themeMode,domain:t.domain,rootDocument:t.rootDocument,baseURL:t.baseURL,utmParameters:t.utmParameters??Et(n)};return e.widgetOptions[r.widgetId]=r,e.messageListened||=(window.addEventListener(`message`,e.handleMessageEvent),!0),{widget:new Ut(r),args:r}}static createWidgetContent(e){let t=new URLSearchParams(window.location.search),n={spotId:e.spotId,contentId:e.contentId,contentType:e.contentType,widgetContentId:e.widgetContentId,widgetId:e.widgetId,authToken:e.authToken,themeMode:e.themeMode,domain:e.domain,rootDocument:e.rootDocument,baseURL:e.baseURL,utmParameters:e.utmParameters??Et(t)};return{widgetContent:new P(n),args:n}}static cleanupLoggedArgs(e){let{authToken:t,...n}=e;return{...n,authToken:t?`***`:void 0}}},Gt=globalThis;Gt.MeltingSpot||={},Gt.MeltingSpot.Widget=Wt,e.Drawer=Vt,e.Modal=Ht,e.Widget=Wt});
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "MeltingSpot Widget SDK",
4
4
  "homepage": "https://meltingspot.io",
5
5
  "license": "BSD-3-Clause",
6
- "version": "1.9.0",
6
+ "version": "1.11.0",
7
7
  "main": "./index.cjs",
8
8
  "module": "./index.mjs",
9
9
  "typings": "./index.d.ts",
@@ -21,8 +21,8 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@meltingspot/core": "1.9.0",
25
- "@meltingspot/embed": "1.9.0"
24
+ "@meltingspot/core": "1.11.0",
25
+ "@meltingspot/embed": "1.11.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "provenance": false