!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@openfin/web-interop"),require("styled-components"),require("@openfin/ui-library")):"function"==typeof define&&define.amd?define(["React","ReactDOM","@openfin/web-interop","styled-components","@openfin/ui-library"],t):"object"==typeof exports?exports["workspace-mobile"]=t(require("react"),require("react-dom"),require("@openfin/web-interop"),require("styled-components"),require("@openfin/ui-library")):e["workspace-mobile"]=t(e.React,e.ReactDOM,e.webInterop,e.styledComponents,e.uiLibrary)}(this,((e,t,r,n,o)=>(()=>{"use strict";var i={740:(e,t,r)=>{r.r(t),r.d(t,{registerOfViewElement:()=>o});const n=e=>class extends e{connectedCallback(){if(!this.name||!this.uuid)throw new Error("<of-view> Name or uuid attribute missing");if(!this.src)throw new Error("<of-view> missing 'src' attribute.");var e;this.#e||(this.#e=document.createElement("iframe"),this.#e.src=this.src,this.#e.style.height="100%",this.#e.style.width="100%",this.#e.setAttribute("name",(e={brokerUrl:this.brokerUrl,name:this.name,uuid:this.uuid,providerId:this.providerId,contextGroup:this.contextGroup},`of-frame<${btoa(JSON.stringify(e))}>`)),this.#e.setAttribute("id",this.name),this.appendChild(this.#e))}#e;get brokerUrl(){return this.getAttribute("of-broker")}set brokerUrl(e){e&&this.setAttribute("of-broker",e)}get name(){return this.getAttribute("of-name")}set name(e){e&&this.setAttribute("of-name",e)}get uuid(){return this.getAttribute("of-uuid")}set uuid(e){e&&this.setAttribute("of-uuid",e)}get src(){return this.getAttribute("src")}set src(e){e&&this.setAttribute("src",e)}get providerId(){return this.getAttribute("of-provider-id")}set providerId(e){e&&this.setAttribute("of-provider-id",e)}get contextGroup(){return this.getAttribute("of-context-group")}set contextGroup(e){e&&this.setAttribute("of-context-group",e)}static get observedAttributes(){return["name"]}},o=()=>customElements.define("of-view",n(HTMLElement))},461:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setContent=t.init=void 0;const u=a(r(639)),l=i(r(346)),d=r(787),c=r(66);let s,f;const p=e=>class extends e{getContextGroups(){return[{id:"default"}]}};t.init=async(e,r,n)=>{if(s=e,"undefined"!=typeof window&&void 0!==n)try{const e=await(0,d.connect)({connectionInheritance:"disabled",options:{brokerUrl:n.brokerUrl}});if(await e.Interop.init(e.me.uuid,[p]),e.me.interop=e.Interop.connectSync(e.me.uuid),e.me.interop.joinContextGroup("default"),r)return void(0,t.setContent)(r,e,n)}catch(e){console.log("Initialization error",e)}r&&(0,t.setContent)(r)},t.setContent=(e,t=null,r)=>{if(!s)throw new Error("Workspace mobile not initialized.");const n=s.containerId||"workspace-root";if("undefined"==typeof document)throw new Error("document is not defined, You must not use setContent outside a pre-rendered environment.");const o=document.getElementById(n);if(!o)throw new Error(`Container with id ${n} not found.`);f&&l.unmountComponentAtNode(o),f=e,l.render(u.default.createElement(c.MobileApp,{options:s,content:f,fin:t,interopOptions:r}),o)}},764:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;const o=n(r(639)),i=n(r(484)),a=r(541),u=r(166);t.Header=({icon:e,title:t,pages:r,activePage:n,onSelect:i})=>o.default.createElement(l,null,o.default.createElement(u.Sidebar,{pages:r,onSelect:i,activePage:n}),o.default.createElement(c,{iconUrl:e}),o.default.createElement(s,null),o.default.createElement(d,null," ",t," "));const l=(0,i.default)(a.Box)`
    height: ${({theme:e})=>e.iconSize.xxxlarge};
    align-items: center;
    padding-left: ${({theme:e})=>e.px.large};
    border-bottom: 1px solid ${({theme:e})=>e.palette.background5};
    background-color: ${({theme:e})=>e.palette.background2};
`,d=i.default.span`
    font-size: ${({theme:e})=>e.fontSize.xlarge};
    font-weight: ${({theme:e})=>e.fontWeight.bold};
`,c=i.default.div`
    height: ${({theme:e})=>e.iconSize.xlarge};
    width: ${({theme:e})=>e.iconSize.xlarge};
    background-image: ${({iconUrl:e})=>e?`url(${e})`:"none"};
    background-size: cover;
    background-repeat: no-repeat;
`,s=i.default.div`
    width: 1px;
    height: ${({theme:e})=>e.iconSize.xlarge};
    margin: ${({theme:e})=>`0 ${e.px.large} 0 ${e.px.large}`};
    border: 1px solid ${({theme:e})=>e.palette.background4};
`},817:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutItem=void 0;const o=n(r(639)),i=n(r(484)),a=r(541),u=r(483),l=r(176);t.LayoutItem=({options:e})=>"row"===e.type||"column"===e.type?o.default.createElement(d,{className:e.type,size:e.sizeProportion,layoutDirection:e.type},e.children.map(((e,r)=>o.default.createElement(t.LayoutItem,{options:e,key:`container-${r}`})))):(e=>"views"===e.type||void 0===e.type)(e)?o.default.createElement(l.ViewGroup,{options:e}):o.default.createElement("div",null," Unknown item in layout. Check your layout configuration. ");const d=(0,i.default)(a.Box)`
    display: flex;
    flex: ${e=>e.size||1};
    gap: ${({theme:e})=>e.px.base};
    max-width: calc(100vw - ${({theme:e})=>e.px.base} * 2);
    &.row {
        flex-direction: column;
        @media ${u.device.tabletLandscape} {
            flex-direction: row;
        }
    }
    &.column {
        flex-direction: column;
    }
`},271:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;const o=n(r(639)),i=n(r(484)),a=r(541),u=r(483),l=r(817);t.Page=({options:e,active:t})=>o.default.createElement(d,{active:t},o.default.createElement(l.LayoutItem,{options:e.layout}));const d=(0,i.default)(a.Box)`
    visibility: ${e=>e.active?"visible":"hidden"};
    position: ${e=>e.active?"relative":"absolute"};
    top: ${e=>e.active?"0":"-200vh"};
    flex: 1;
    align-items: stretch;
    justify-content: stretch;
    padding: ${({theme:e})=>e.px.base};
    @media ${u.device.desktop} {
        padding: ${({theme:e})=>e.px.xxlarge};
    }
`},166:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const u=i(r(639)),l=a(r(484)),d=r(541);t.Sidebar=({pages:e,activePage:t,onSelect:r})=>{const[n,o]=(0,u.useState)(!1),i=e=>()=>{o(!1),r(e)};return u.default.createElement(c,null,u.default.createElement(s,{onClick:()=>o(!n),"aria-label":n?"Close sidebar navigation":"Open sidebar navigation","aria-expanded":n,kind:"textOnly"},u.default.createElement(d.Icon,{icon:"HamburgerMenuIcon",size:"xlarge"})),u.default.createElement(m,{open:n},u.default.createElement(d.H3,null,"Pages"),e.map(((e,r)=>u.default.createElement(f,{key:e.id,kind:"textOnly",onClick:i(r),active:r===t},u.default.createElement(p,null,e.title))))))};const c=(0,l.default)(d.Box)`
    height: ${({theme:e})=>e.iconSize.xxxlarge};
    align-items: center;
`,s=(0,l.default)(d.Button)`
    color: ${({theme:e})=>e.palette.textDefault};
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
`,f=(0,l.default)(d.Button)`
    width: 100%;
    background-color: ${({theme:e,active:t})=>t?e.palette.background6:"none"};
    &:hover {
        background-color: ${({theme:e})=>e.palette.background3};
    }
`,p=(0,l.default)(d.Text)`
    font-size: ${({theme:e})=>e.fontSize.large};
    font-weight: ${({theme:e})=>e.fontWeight.normal};
`,m=(0,l.default)(d.Box)`
    display: flex;
    flex-direction: column;
    position: absolute;
    top: ${({theme:e})=>e.iconSize.xxxlarge};
    left: 0;
    border-right: 1px solid ${({theme:e})=>e.palette.background4};
    background: ${({theme:e})=>e.palette.background2};
    transform: ${({open:e})=>e?"translateX(0)":"translateX(-150%)"};
    transition: transform 0.4s ease-in-out;
    height: ${({theme:e})=>`calc(100vh - ${e.iconSize.xxxlarge})`};
    width: 268px; // By design
    overflow: hidden;
    z-index: 10;
    padding: ${({theme:e})=>e.px.large};
    gap: ${({theme:e})=>e.px.base};
`},597:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;const o=n(r(639)),i=n(r(484)),a=r(541);t.Tab=({title:e,selected:t,onSelect:r})=>o.default.createElement(u,{onClick:r,selected:t,className:t?"selected":""},o.default.createElement(l,null),o.default.createElement(d,null," ",e," "));const u=(0,i.default)(a.Box)`
    cursor: pointer;
    width: 330px; // By design
    align-items: center;
    border-right: 1px solid #2f3136;
    border-top-right-radius: 0;
    position: relative;
    top: 1px;
    z-index: 5;
    &:last-child {
        border-right: none;
    }
    &:hover {
        background-color: ${({theme:e})=>e.palette.background3};
    }
    // css hack to apply style to the previous sibling
    &:has(+ .selected) {
        border-right: none;
    }
    &.selected {
        background-color: ${({theme:e})=>e.palette.background2};
        border: 1px solid ${({theme:e})=>e.palette.background4};
        border-bottom: none;
        border-radius: ${({theme:e})=>`${e.radius.small} ${e.radius.small} 0 0`};
    }
`,l=(0,i.default)(a.Icon).attrs({icon:"GlobeIcon",size:"large"})`
    min-width: ${({theme:e})=>e.iconSize.xlarge};
    margin: ${({theme:e})=>`0 ${e.px.base} 0 ${e.px.base}`};
`,d=i.default.span`
    font-size: ${({theme:e})=>e.fontSize.base};
    font-weight: ${({theme:e})=>e.fontWeight.normal};
`},539:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.View=void 0;const u=i(r(639)),l=a(r(484)),d=r(429),c=r(541),s=r(740),f=a(r(905));let p=!0;t.View=({options:e,active:t})=>{const r=(0,u.useMemo)((()=>(0,d.v4)()),[]);return(0,u.useEffect)((()=>{p&&(console.log("registering of-view"),(0,s.registerOfViewElement)()),p=!1}),[]),u.default.createElement(m,{active:t},u.default.createElement(f.default.Consumer,null,(({fin:t,interopOptions:n})=>t?u.default.createElement(b,null,u.default.createElement("of-view",{"of-context-group":"default","of-provider-id":t.me.uuid,"of-uuid":t.me.uuid,"of-name":r,"of-broker":n.brokerUrl,src:e.url})):u.default.createElement("h1",null,"awaiting connection..."))))};const m=(0,l.default)(c.Box)`
    visibility: ${e=>e.active?"visible":"hidden"};
    position: ${e=>e.active?"relative":"absolute"};
    flex: 1;
    overflow: hidden;
    height: auto;
    background-color: ${({theme:e})=>e.palette.background2};
    border: 1px solid ${({theme:e})=>e.palette.background4};
    z-index: 0;
`,b=l.default.div`
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;

    iframe {
        border: 1px solid ${({theme:e})=>e.palette.background4};
    }
`},176:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewGroup=void 0;const u=i(r(639)),l=a(r(484)),d=r(541),c=r(539),s=r(489);t.ViewGroup=({options:e})=>{const[t,r]=(0,u.useState)(0);return u.default.createElement(f,{size:e.sizeProportion},u.default.createElement(s.ViewHeader,{views:e.views,onTabSelect:e=>{r(e)},selectedView:t}),e.views.map(((e,r)=>u.default.createElement(c.View,{key:e.id,options:e,active:t===r}))))};const f=(0,l.default)(d.Box)`
    flex-direction: column;
    flex: ${e=>e.size||1};
    align-items: stretch;
    justify-content: stretch;
`},489:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHeader=void 0;const o=n(r(639)),i=n(r(484)),a=r(541),u=r(597);t.ViewHeader=({views:e,onTabSelect:t,selectedView:r})=>{const n=e=>()=>{t(e)};return o.default.createElement(l,null,e.map(((e,t)=>o.default.createElement(u.Tab,{key:`${e.id}-${t}`,title:e.title,onSelect:n(t),selected:t===r}))))};const l=(0,i.default)(a.Box)`
    flex: 1;
    max-height: ${({theme:e})=>e.iconSize.xxxlarge};
`},483:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.device=void 0;t.device={mobileS:"(min-width: 320px)",mobileM:"(min-width: 375px)",mobileL:"(min-width: 425px)",tabletPortrait:"(min-width: 768px)",tabletLandscape:"(min-width: 1024px)",desktop:"(min-width: 1440px)",desktopL:"(min-width: 2560px)"}},66:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MobileApp=void 0;const u=i(r(639)),l=a(r(484)),d=r(541),c=a(r(905)),s=r(764),f=r(271);t.MobileApp=({options:e,content:t,fin:r,interopOptions:n})=>{const[o,i]=(0,u.useState)(0),a=(0,u.useMemo)((()=>{const t=(0,d.createTheme)(e.palette);return{palette:{light:t,dark:t}}}),[e.palette]);return u.default.createElement(d.ThemeProvider,{scheme:"system",themes:a.palette},u.default.createElement(c.default.Provider,{value:{fin:r,interopOptions:n??{brokerUrl:""}}},u.default.createElement(p,null,u.default.createElement(s.Header,{icon:e.primaryIcon,title:e.title,pages:t,onSelect:e=>{i(e)},activePage:o}),t.map(((e,t)=>u.default.createElement(f.Page,{key:e.id,options:e,active:o===t}))))))};const p=(0,l.default)(d.Box)`
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: ${({theme:e})=>e.palette.background1};
`},905:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=(0,r(639).createContext)({fin:null,interopOptions:{brokerUrl:""}});t.default=n},607:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.setContent=t.init=void 0;var i=r(461);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return i.init}}),Object.defineProperty(t,"setContent",{enumerable:!0,get:function(){return i.setContent}}),o(r(0),t)},0:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},429:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var n=f(r(990)),o=f(r(237)),i=f(r(355)),a=f(r(874)),u=f(r(314)),l=f(r(464)),d=f(r(435)),c=f(r(8)),s=f(r(222));function f(e){return e&&e.__esModule?e:{default:e}}},163:(e,t)=>{function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n((u=n(n(t,e),n(o,a)))<<(l=i)|u>>>32-l,r);var u,l}function i(e,t,r,n,i,a,u){return o(t&r|~t&n,e,t,i,a,u)}function a(e,t,r,n,i,a,u){return o(t&n|r&~n,e,t,i,a,u)}function u(e,t,r,n,i,a,u){return o(t^r^n,e,t,i,a,u)}function l(e,t,r,n,i,a,u){return o(r^(t|~n),e,t,i,a,u)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;let o=1732584193,d=-271733879,c=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const r=o,f=d,p=c,m=s;o=i(o,d,c,s,e[t],7,-680876936),s=i(s,o,d,c,e[t+1],12,-389564586),c=i(c,s,o,d,e[t+2],17,606105819),d=i(d,c,s,o,e[t+3],22,-1044525330),o=i(o,d,c,s,e[t+4],7,-176418897),s=i(s,o,d,c,e[t+5],12,1200080426),c=i(c,s,o,d,e[t+6],17,-1473231341),d=i(d,c,s,o,e[t+7],22,-45705983),o=i(o,d,c,s,e[t+8],7,1770035416),s=i(s,o,d,c,e[t+9],12,-1958414417),c=i(c,s,o,d,e[t+10],17,-42063),d=i(d,c,s,o,e[t+11],22,-1990404162),o=i(o,d,c,s,e[t+12],7,1804603682),s=i(s,o,d,c,e[t+13],12,-40341101),c=i(c,s,o,d,e[t+14],17,-1502002290),d=i(d,c,s,o,e[t+15],22,1236535329),o=a(o,d,c,s,e[t+1],5,-165796510),s=a(s,o,d,c,e[t+6],9,-1069501632),c=a(c,s,o,d,e[t+11],14,643717713),d=a(d,c,s,o,e[t],20,-373897302),o=a(o,d,c,s,e[t+5],5,-701558691),s=a(s,o,d,c,e[t+10],9,38016083),c=a(c,s,o,d,e[t+15],14,-660478335),d=a(d,c,s,o,e[t+4],20,-405537848),o=a(o,d,c,s,e[t+9],5,568446438),s=a(s,o,d,c,e[t+14],9,-1019803690),c=a(c,s,o,d,e[t+3],14,-187363961),d=a(d,c,s,o,e[t+8],20,1163531501),o=a(o,d,c,s,e[t+13],5,-1444681467),s=a(s,o,d,c,e[t+2],9,-51403784),c=a(c,s,o,d,e[t+7],14,1735328473),d=a(d,c,s,o,e[t+12],20,-1926607734),o=u(o,d,c,s,e[t+5],4,-378558),s=u(s,o,d,c,e[t+8],11,-2022574463),c=u(c,s,o,d,e[t+11],16,1839030562),d=u(d,c,s,o,e[t+14],23,-35309556),o=u(o,d,c,s,e[t+1],4,-1530992060),s=u(s,o,d,c,e[t+4],11,1272893353),c=u(c,s,o,d,e[t+7],16,-155497632),d=u(d,c,s,o,e[t+10],23,-1094730640),o=u(o,d,c,s,e[t+13],4,681279174),s=u(s,o,d,c,e[t],11,-358537222),c=u(c,s,o,d,e[t+3],16,-722521979),d=u(d,c,s,o,e[t+6],23,76029189),o=u(o,d,c,s,e[t+9],4,-640364487),s=u(s,o,d,c,e[t+12],11,-421815835),c=u(c,s,o,d,e[t+15],16,530742520),d=u(d,c,s,o,e[t+2],23,-995338651),o=l(o,d,c,s,e[t],6,-198630844),s=l(s,o,d,c,e[t+7],10,1126891415),c=l(c,s,o,d,e[t+14],15,-1416354905),d=l(d,c,s,o,e[t+5],21,-57434055),o=l(o,d,c,s,e[t+12],6,1700485571),s=l(s,o,d,c,e[t+3],10,-1894986606),c=l(c,s,o,d,e[t+10],15,-1051523),d=l(d,c,s,o,e[t+1],21,-2054922799),o=l(o,d,c,s,e[t+8],6,1873313359),s=l(s,o,d,c,e[t+15],10,-30611744),c=l(c,s,o,d,e[t+6],15,-1560198380),d=l(d,c,s,o,e[t+13],21,1309151649),o=l(o,d,c,s,e[t+4],6,-145523070),s=l(s,o,d,c,e[t+11],10,-1120210379),c=l(c,s,o,d,e[t+2],15,718787259),d=l(d,c,s,o,e[t+9],21,-343485551),o=n(o,r),d=n(d,f),c=n(c,p),s=n(s,m)}return[o,d,c,s]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(r(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=r},314:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},222:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(435))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},58:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},319:(e,t)=>{let r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};const n=new Uint8Array(16)},757:(e,t)=>{function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),u=new Array(a);for(let t=0;t<a;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];u[t]=r}u[a-1][14]=8*(e.length-1)/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=u[e][t];for(let e=16;e<80;++e)i[e]=n(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],l=o[1],d=o[2],c=o[3],s=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),u=n(a,5)+r(o,l,d,c)+s+t[o]+i[e]>>>0;s=c,c=d,d=n(l,30)>>>0,l=a,a=u}o[0]=o[0]+a>>>0,o[1]=o[1]+l>>>0,o[2]=o[2]+d>>>0,o[3]=o[3]+c>>>0,o[4]=o[4]+s>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},8:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var n,o=(n=r(435))&&n.__esModule?n:{default:n};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const r=a(e,t);if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},990:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(319))&&n.__esModule?n:{default:n},i=r(8);let a,u,l=0,d=0;t.default=function(e,t,r){let n=t&&r||0;const c=t||new Array(16);let s=(e=e||{}).node||a,f=void 0!==e.clockseq?e.clockseq:u;if(null==s||null==f){const t=e.random||(e.rng||o.default)();null==s&&(s=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=u=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:d+1;const b=p-l+(m-d)/1e4;if(b<0&&void 0===e.clockseq&&(f=f+1&16383),(b<0||p>l)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=m,u=f,p+=122192928e5;const h=(1e4*(268435455&p)+m)%4294967296;c[n++]=h>>>24&255,c[n++]=h>>>16&255,c[n++]=h>>>8&255,c[n++]=255&h;const v=p/4294967296*1e4&268435455;c[n++]=v>>>8&255,c[n++]=255&v,c[n++]=v>>>24&15|16,c[n++]=v>>>16&255,c[n++]=f>>>8|128,c[n++]=255&f;for(let e=0;e<6;++e)c[n+e]=s[e];return t||(0,i.unsafeStringify)(c)}},237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(925)),o=i(r(163));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);t.default=a},925:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,u){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,i.default)(n)),16!==(null===(l=n)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+e.length);if(d.set(n),d.set(e,n.length),d=r(d),d[6]=15&d[6]|t,d[8]=63&d[8]|128,a){u=u||0;for(let e=0;e<16;++e)a[u+e]=d[e];return a}return(0,o.unsafeStringify)(d)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=u,n};var n,o=r(8),i=(n=r(222))&&n.__esModule?n:{default:n};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=u},355:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(790)),o=a(r(319)),i=r(8);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(925)),o=i(r(757));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);t.default=a},435:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(58))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},464:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(435))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},541:e=>{e.exports=o},787:e=>{e.exports=r},639:t=>{t.exports=e},346:e=>{e.exports=t},484:e=>{e.exports=n}},a={};function u(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,u),r.exports}return u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u(607)})()));
//# sourceMappingURL=index.js.map