uapp-communication-sdk 1.0.0-dev.101 → 1.0.0-dev.104
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/{CloudflareMeetingExperience-15Abwl_o.cjs → CloudflareMeetingExperience-B4DDJ_J3.cjs} +2 -2
- package/{CloudflareMeetingExperience-DEoxCj-1.js → CloudflareMeetingExperience-LrMtoftH.js} +3 -3
- package/{ExperienceError-D_VBeqGy.cjs → ExperienceError-Bkb6cI2H.cjs} +2 -2
- package/{ExperienceError-BMPPV7Rk.js → ExperienceError-D9S8PQbQ.js} +2 -2
- package/{ZoomMeetingExperience-CEl73r3S.cjs → ZoomMeetingExperience-Bk31KY_k.cjs} +2 -2
- package/{ZoomMeetingExperience-waSxkv-U.js → ZoomMeetingExperience-k_A10vQd.js} +3 -3
- package/communication-sdk.cjs +6 -6
- package/communication-sdk.js +6658 -6274
- package/communication-sdk.standalone.js +163 -163
- package/package.json +1 -1
- package/types/features/api-keys/presentation/ApiKeyCard.d.ts +3 -1
- package/types/features/api-keys/presentation/ApiKeyCard.d.ts.map +1 -1
- package/types/features/api-keys/presentation/ApiKeysPage.d.ts.map +1 -1
- package/types/features/calls/presentation/CallButton.d.ts +5 -3
- package/types/features/calls/presentation/CallButton.d.ts.map +1 -1
- package/types/features/chat/presentation/ConversationHeader.d.ts +0 -1
- package/types/features/chat/presentation/ConversationHeader.d.ts.map +1 -1
- package/types/features/chat/presentation/ConversationHeaderSubcomponents.d.ts +23 -0
- package/types/features/chat/presentation/ConversationHeaderSubcomponents.d.ts.map +1 -0
- package/types/features/chat/presentation/MessageComposer.d.ts +2 -4
- package/types/features/chat/presentation/MessageComposer.d.ts.map +1 -1
- package/types/features/chat/presentation/MessageComposerSubcomponents.d.ts +28 -0
- package/types/features/chat/presentation/MessageComposerSubcomponents.d.ts.map +1 -0
- package/types/features/chat/presentation/RowMenu.d.ts +1 -0
- package/types/features/chat/presentation/RowMenu.d.ts.map +1 -1
- package/types/features/chat/presentation/group-menu-items.d.ts +5 -1
- package/types/features/chat/presentation/group-menu-items.d.ts.map +1 -1
- package/types/features/feed/application/index.d.ts +1 -0
- package/types/features/feed/application/index.d.ts.map +1 -1
- package/types/features/feed/application/use-cases/delete-post.d.ts +15 -0
- package/types/features/feed/application/use-cases/delete-post.d.ts.map +1 -0
- package/types/features/feed/domain/ports/feed-gateway.d.ts +1 -0
- package/types/features/feed/domain/ports/feed-gateway.d.ts.map +1 -1
- package/types/features/feed/feed-module.d.ts +2 -1
- package/types/features/feed/feed-module.d.ts.map +1 -1
- package/types/features/feed/infrastructure/http-feed-gateway.d.ts +1 -0
- package/types/features/feed/infrastructure/http-feed-gateway.d.ts.map +1 -1
- package/types/features/feed/presentation/DeeplinkModal.d.ts +8 -0
- package/types/features/feed/presentation/DeeplinkModal.d.ts.map +1 -0
- package/types/features/feed/presentation/EditPostForm.d.ts +20 -1
- package/types/features/feed/presentation/EditPostForm.d.ts.map +1 -1
- package/types/features/feed/presentation/FeedPage.d.ts.map +1 -1
- package/types/features/feed/presentation/FeedPostCard.d.ts.map +1 -1
- package/types/features/feed/presentation/FeedPostCardSubcomponents.d.ts +24 -2
- package/types/features/feed/presentation/FeedPostCardSubcomponents.d.ts.map +1 -1
- package/types/features/feed/presentation/Lightbox.d.ts +7 -1
- package/types/features/feed/presentation/Lightbox.d.ts.map +1 -1
- package/types/features/feed/presentation/PostCardContent.d.ts +9 -5
- package/types/features/feed/presentation/PostCardContent.d.ts.map +1 -1
- package/types/features/feed/presentation/PostCardInner.d.ts +26 -0
- package/types/features/feed/presentation/PostCardInner.d.ts.map +1 -0
- package/types/features/feed/presentation/PostComments.d.ts +2 -1
- package/types/features/feed/presentation/PostComments.d.ts.map +1 -1
- package/types/features/feed/presentation/PostHeader.d.ts +4 -1
- package/types/features/feed/presentation/PostHeader.d.ts.map +1 -1
- package/types/features/feed/presentation/use-feed.d.ts +1 -0
- package/types/features/feed/presentation/use-feed.d.ts.map +1 -1
- package/types/features/meetings/presentation/BookingConfirmModal.d.ts.map +1 -1
- package/types/features/meetings/presentation/GroupMeetingWizard.d.ts.map +1 -1
- package/types/features/meetings/presentation/MeetingCard.d.ts.map +1 -1
- package/types/features/meetings/presentation/MeetingCardActions.d.ts +14 -0
- package/types/features/meetings/presentation/MeetingCardActions.d.ts.map +1 -0
- package/types/features/module-access/domain/module-access.d.ts +31 -0
- package/types/features/module-access/domain/module-access.d.ts.map +1 -1
- package/types/features/org/presentation/AccessControlPage.d.ts.map +1 -1
- package/types/features/org/presentation/GroupMembershipSetting.d.ts.map +1 -1
- package/types/features/org/presentation/MemberAccessCard.d.ts.map +1 -1
- package/types/features/org/presentation/MemberAccessRow.d.ts +29 -0
- package/types/features/org/presentation/MemberAccessRow.d.ts.map +1 -0
- package/types/features/org/presentation/OrgChartPanel.d.ts.map +1 -1
- package/types/features/org/presentation/OrgChartTree.d.ts +3 -2
- package/types/features/org/presentation/OrgChartTree.d.ts.map +1 -1
- package/types/features/org/presentation/UserTypeFormView.d.ts.map +1 -1
- package/types/features/org/presentation/org-tree-builder.d.ts +17 -0
- package/types/features/org/presentation/org-tree-builder.d.ts.map +1 -0
- package/types/features/schedule/presentation/BlockEditor.d.ts.map +1 -1
- package/types/features/schedule/presentation/EditorFooter.d.ts +18 -0
- package/types/features/schedule/presentation/EditorFooter.d.ts.map +1 -0
- package/types/features/schedule/presentation/use-editor-actions.d.ts +10 -0
- package/types/features/schedule/presentation/use-editor-actions.d.ts.map +1 -0
- package/types/features/settings/application/usage-use-cases.d.ts +1 -1
- package/types/features/settings/application/usage-use-cases.d.ts.map +1 -1
- package/types/features/settings/domain/ports/usage-gateway.d.ts +8 -2
- package/types/features/settings/domain/ports/usage-gateway.d.ts.map +1 -1
- package/types/features/settings/infrastructure/http-usage-gateway.d.ts +8 -6
- package/types/features/settings/infrastructure/http-usage-gateway.d.ts.map +1 -1
- package/types/features/settings/infrastructure/mock-settings-gateway.d.ts +2 -2
- package/types/features/settings/infrastructure/mock-settings-gateway.d.ts.map +1 -1
- package/types/features/settings/presentation/CategoryEditor.d.ts.map +1 -1
- package/types/features/settings/presentation/UsagePage.d.ts.map +1 -1
- package/types/features/settings/presentation/use-debounced-value.d.ts +6 -0
- package/types/features/settings/presentation/use-debounced-value.d.ts.map +1 -0
- package/types/features/settings/presentation/use-settings.d.ts +7 -1
- package/types/features/settings/presentation/use-settings.d.ts.map +1 -1
- package/{use-active-meeting-store-hqtfgGa_.js → use-active-meeting-store-BZFagv6v.js} +3 -3
- package/{use-active-meeting-store-BYNg3cF3.cjs → use-active-meeting-store-C-MpvHC1.cjs} +2 -2
package/{CloudflareMeetingExperience-15Abwl_o.cjs → CloudflareMeetingExperience-B4DDJ_J3.cjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./jsx-runtime-VQ627FC0.cjs"),t=require("./use-active-meeting-store-
|
|
2
|
-
//# sourceMappingURL=CloudflareMeetingExperience-
|
|
1
|
+
const e=require("./jsx-runtime-VQ627FC0.cjs"),t=require("./use-active-meeting-store-C-MpvHC1.cjs"),n=require("./meetings-B7mnw5UW.cjs"),r=require("./es-zyxbWpTB.cjs"),i=require("./merge-d1e6bb2e-CLFPYFC_.cjs"),a=require("./ExperienceError-Bkb6cI2H.cjs");let o=require("react");var s=e.t(),c=8e3,l=(e,t,r)=>{let i=n.o(e===void 0?void 0:c);(0,o.useEffect)(()=>{e===void 0||t===null||i.data===void 0||i.data.find(e=>e.id===t)?.bucket===`canceled`&&(e.leaveRoom().catch(()=>void 0),r())},[e,t,i.data,r])},u=(e,t)=>{(0,o.useEffect)(()=>{if(e===void 0||t.current===null)return;let n=()=>{if(t.current===null)return;let e=document.documentElement.getAttribute(`data-theme`)===`light`;i.r(t.current,{theme:e?`light`:`dark`})};n();let r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]}),()=>{r.disconnect()}},[e,t])},d=(e,n)=>{let r=t.t(e=>e.setJoined);(0,o.useEffect)(()=>{if(e===void 0)return;let t=()=>{r(!0)},i=()=>{r(!1),n()};return e.self.on(`roomJoined`,t),e.self.on(`roomLeft`,i),()=>{e.self.off(`roomJoined`,t),e.self.off(`roomLeft`,i)}},[e,n,r])},f=({ticket:e,onLeft:n})=>{let[,i]=r.i(),[c,f]=(0,o.useState)(void 0),[p,m]=(0,o.useState)(!1),h=(0,o.useRef)(!1),g=(0,o.useRef)(null);return l(c,t.t(e=>e.activeMeeting)?.meetingId??null,n),d(c,n),u(c,g),(0,o.useEffect)(()=>{h.current||(h.current=!0,i({authToken:e.token,defaults:{audio:!1,video:!1}}).then(t=>{if(t===void 0){m(!0);return}let n=t;e.title!==``&&(n.meta.meetingTitle=e.title),f(n)}).catch(()=>{m(!0)}))},[i,e.token,e.title]),(0,o.useEffect)(()=>{if(c!==void 0)return()=>{c.leaveRoom().catch(()=>void 0)}},[c]),p?(0,s.jsx)(a.t,{onLeave:n}):c===void 0?(0,s.jsx)(`div`,{className:a.n.center,children:(0,s.jsx)(t.nt,{size:`lg`,label:`Connecting to the meeting…`})}):(0,s.jsx)(r.r,{value:c,children:(0,s.jsx)(`div`,{ref:g,className:a.n.rtkTheme,children:(0,s.jsx)(r.t,{mode:`fill`,meeting:c,showSetupScreen:!0})})})};exports.CloudflareMeetingExperience=f;
|
|
2
|
+
//# sourceMappingURL=CloudflareMeetingExperience-B4DDJ_J3.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./jsx-runtime-DkX7fJRX.js";
|
|
2
|
-
import { nt as t, t as n } from "./use-active-meeting-store-
|
|
2
|
+
import { nt as t, t as n } from "./use-active-meeting-store-BZFagv6v.js";
|
|
3
3
|
import { o as r } from "./meetings-DbdB2N77.js";
|
|
4
4
|
import { i, r as a, t as o } from "./es-CsZYZpOU.js";
|
|
5
5
|
import { r as s } from "./merge-d1e6bb2e-Z4TT7NcY.js";
|
|
6
|
-
import { n as c, t as l } from "./ExperienceError-
|
|
6
|
+
import { n as c, t as l } from "./ExperienceError-D9S8PQbQ.js";
|
|
7
7
|
import { useEffect as u, useRef as d, useState as f } from "react";
|
|
8
8
|
//#region src/features/meeting-video/presentation/experiences/CloudflareMeetingExperience.tsx
|
|
9
9
|
var p = e(), m = 8e3, h = (e, t, n) => {
|
|
@@ -99,4 +99,4 @@ var p = e(), m = 8e3, h = (e, t, n) => {
|
|
|
99
99
|
//#endregion
|
|
100
100
|
export { v as CloudflareMeetingExperience };
|
|
101
101
|
|
|
102
|
-
//# sourceMappingURL=CloudflareMeetingExperience-
|
|
102
|
+
//# sourceMappingURL=CloudflareMeetingExperience-LrMtoftH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./jsx-runtime-VQ627FC0.cjs"),t=require("./use-active-meeting-store-
|
|
2
|
-
//# sourceMappingURL=ExperienceError-
|
|
1
|
+
const e=require("./jsx-runtime-VQ627FC0.cjs"),t=require("./use-active-meeting-store-C-MpvHC1.cjs");var n={fill:`_fill_qtoxk_1`,center:`_center_qtoxk_7`,rtkTheme:`_rtkTheme_qtoxk_16`},r=e.t(),i=({onLeave:e})=>(0,r.jsxs)(`div`,{className:n.center,children:[(0,r.jsx)(t.et,{tone:`error`,title:`Could not connect to the call`,children:`The meeting could not be started. Please go back and try again.`}),(0,r.jsx)(t.tt,{variant:`secondary`,onClick:e,children:`Back to bookings`})]});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
2
|
+
//# sourceMappingURL=ExperienceError-Bkb6cI2H.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./jsx-runtime-DkX7fJRX.js";
|
|
2
|
-
import { et as t, tt as n } from "./use-active-meeting-store-
|
|
2
|
+
import { et as t, tt as n } from "./use-active-meeting-store-BZFagv6v.js";
|
|
3
3
|
var r = {
|
|
4
4
|
fill: "_fill_qtoxk_1",
|
|
5
5
|
center: "_center_qtoxk_7",
|
|
@@ -19,4 +19,4 @@ var r = {
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { r as n, a as t };
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=ExperienceError-
|
|
22
|
+
//# sourceMappingURL=ExperienceError-D9S8PQbQ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./jsx-runtime-VQ627FC0.cjs"),t=require("./use-active-meeting-store-BYNg3cF3.cjs"),n=require("./ExperienceError-D_VBeqGy.cjs");let r=require("react");var i=e.n(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t<`u`?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.UIToolkit=r())})(e,(function(){"use strict";function n(e,t){for(var n=0;n<t.length;n++){let r=t[n];if(typeof r!=`string`&&!Array.isArray(r)){for(let t in r)if(t!=="default"&&!(t in e)){let n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}))}var r=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var a={exports:{}},o={exports:{}},s={exports:{}};s.exports;var c;function l(){return c||(c=1,(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=`18.3.1`,r=Symbol.for(`react.element`),i=Symbol.for(`react.portal`),a=Symbol.for(`react.fragment`),o=Symbol.for(`react.strict_mode`),s=Symbol.for(`react.profiler`),c=Symbol.for(`react.provider`),l=Symbol.for(`react.context`),u=Symbol.for(`react.forward_ref`),d=Symbol.for(`react.suspense`),f=Symbol.for(`react.suspense_list`),p=Symbol.for(`react.memo`),m=Symbol.for(`react.lazy`),h=Symbol.for(`react.offscreen`),g=Symbol.iterator,v=`@@iterator`;function y(e){if(typeof e!=`object`||!e)return null;var t=g&&e[g]||e[v];return typeof t==`function`?t:null}var b={current:null},x={transition:null},S={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},C={current:null},w={},T=null;function E(e){T=e}w.setExtraStackFrame=function(e){T=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e=``;T&&(e+=T);var t=w.getCurrentStack;return t&&(e+=t()||``),e};var D=!1,O=!1,k=!1,A=!1,j=!1,M={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:x,ReactCurrentOwner:C};M.ReactDebugCurrentFrame=w,M.ReactCurrentActQueue=S;function N(e){F(`warn`,e,[...arguments].slice(1))}function P(e){F(`error`,e,[...arguments].slice(1))}function F(e,t,n){var r=M.ReactDebugCurrentFrame.getStackAddendum();r!==``&&(t+=`%s`,n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,i)}var I={};function L(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||`ReactClass`,i=r+`.`+t;I[i]||(P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),I[i]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){L(e,`forceUpdate`)},enqueueReplaceState:function(e,t,n,r){L(e,`replaceState`)},enqueueSetState:function(e,t,n,r){L(e,`setState`)}},z=Object.assign,B={};Object.freeze(B);function V(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||R}V.prototype.isReactComponent={},V.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},V.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var H={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]},ee=function(e,t){Object.defineProperty(V.prototype,e,{get:function(){N(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})};for(var te in H)H.hasOwnProperty(te)&&ee(te,H[te]);function ne(){}ne.prototype=V.prototype;function re(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||R}var ie=re.prototype=new ne;ie.constructor=re,z(ie,V.prototype),ie.isPureReactComponent=!0;function ae(){var e={current:null};return Object.seal(e),e}var oe=Array.isArray;function se(e){return oe(e)}function U(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function W(e){try{return ce(e),!1}catch{return!0}}function ce(e){return``+e}function le(e){if(W(e))return P(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,U(e)),ce(e)}function ue(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function de(e){return e.displayName||`Context`}function fe(e){if(e==null)return null;if(typeof e.tag==`number`&&P(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case a:return`Fragment`;case i:return`Portal`;case s:return`Profiler`;case o:return`StrictMode`;case d:return`Suspense`;case f:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case l:return de(e)+`.Consumer`;case c:return de(e._context)+`.Provider`;case u:return ue(e,e.render,`ForwardRef`);case p:var t=e.displayName||null;return t===null?fe(e.type)||`Memo`:t;case m:var n=e,r=n._payload,h=n._init;try{return fe(h(r))}catch{return null}}return null}var pe=Object.prototype.hasOwnProperty,me={key:!0,ref:!0,__self:!0,__source:!0},he,ge,_e={};function ve(e){if(pe.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ye(e){if(pe.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function be(e,t){var n=function(){he||(he=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function xe(e,t){var n=function(){ge||(ge=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function Se(e){if(typeof e.ref==`string`&&C.current&&e.__self&&C.current.stateNode!==e.__self){var t=fe(C.current.type);_e[t]||(P(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,t,e.ref),_e[t]=!0)}}var Ce=function(e,t,n,i,a,o,s){var c={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function we(e,t,n){var r,i={},a=null,o=null,s=null,c=null;if(t!=null)for(r in ve(t)&&(o=t.ref,Se(t)),ye(t)&&(le(t.key),a=``+t.key),s=t.__self===void 0?null:t.__self,c=t.__source===void 0?null:t.__source,t)pe.call(t,r)&&!me.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(l>1){for(var u=Array(l),d=0;d<l;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),i.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)i[r]===void 0&&(i[r]=f[r])}if(a||o){var p=typeof e==`function`?e.displayName||e.name||`Unknown`:e;a&&be(i,p),o&&xe(i,p)}return Ce(e,a,o,s,c,C.current,i)}function Te(e,t){return Ce(e.type,t,e.ref,e._self,e._source,e._owner,e.props)}function Ee(e,t,n){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var r,i=z({},e.props),a=e.key,o=e.ref,s=e._self,c=e._source,l=e._owner;if(t!=null){ve(t)&&(o=t.ref,l=C.current),ye(t)&&(le(t.key),a=``+t.key);var u;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)pe.call(t,r)&&!me.hasOwnProperty(r)&&(t[r]===void 0&&u!==void 0?i[r]=u[r]:i[r]=t[r])}var d=arguments.length-2;if(d===1)i.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];i.children=f}return Ce(e.type,a,o,s,c,l,i)}function De(e){return typeof e==`object`&&!!e&&e.$$typeof===r}var Oe=`.`,ke=`:`;function Ae(e){var t=/[=:]/g,n={"=":`=0`,":":`=2`};return`$`+e.replace(t,function(e){return n[e]})}var je=!1,Me=/\/+/g;function Ne(e){return e.replace(Me,`$&/`)}function Pe(e,t){return typeof e==`object`&&e&&e.key!=null?(le(e.key),Ae(``+e.key)):t.toString(36)}function Fe(e,t,n,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case r:case i:c=!0}}if(c){var l=e,u=o(l),d=a===``?Oe+Pe(l,0):a;if(se(u)){var f=``;d!=null&&(f=Ne(d)+`/`),Fe(u,t,f,``,function(e){return e})}else u!=null&&(De(u)&&(u.key&&(!l||l.key!==u.key)&&le(u.key),u=Te(u,n+(u.key&&(!l||l.key!==u.key)?Ne(``+u.key)+`/`:``)+d)),t.push(u));return 1}var p,m,h=0,g=a===``?Oe:a+ke;if(se(e))for(var v=0;v<e.length;v++)p=e[v],m=g+Pe(p,v),h+=Fe(p,t,n,m,o);else{var b=y(e);if(typeof b==`function`){var x=e;b===x.entries&&(je||N(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),je=!0);for(var S=b.call(x),C,w=0;!(C=S.next()).done;)p=C.value,m=g+Pe(p,w++),h+=Fe(p,t,n,m,o)}else if(s===`object`){var T=String(e);throw Error(`Objects are not valid as a React child (found: `+(T===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:T)+`). If you meant to render a collection of children, use an array instead.`)}}return h}function Ie(e,t,n){if(e==null)return e;var r=[],i=0;return Fe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function Le(e){var t=0;return Ie(e,function(){t++}),t}function Re(e,t,n){Ie(e,function(){t.apply(this,arguments)},n)}function ze(e){return Ie(e,function(e){return e})||[]}function Be(e){if(!De(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}function Ve(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:c,_context:t};var n=!1,r=!1,i=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,P(`Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?`)),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,P(`Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?`)),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||=(N("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t}var He=-1,Ue=0,We=1,Ge=2;function Ke(e){if(e._status===He){var t=e._result,n=t();if(n.then(function(t){if(e._status===Ue||e._status===He){var n=e;n._status=We,n._result=t}},function(t){if(e._status===Ue||e._status===He){var n=e;n._status=Ge,n._result=t}}),e._status===He){var r=e;r._status=Ue,r._result=n}}if(e._status===We){var i=e._result;return i===void 0&&P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
const e=require("./jsx-runtime-VQ627FC0.cjs"),t=require("./use-active-meeting-store-C-MpvHC1.cjs"),n=require("./ExperienceError-Bkb6cI2H.cjs");let r=require("react");var i=e.n(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t<`u`?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.UIToolkit=r())})(e,(function(){"use strict";function n(e,t){for(var n=0;n<t.length;n++){let r=t[n];if(typeof r!=`string`&&!Array.isArray(r)){for(let t in r)if(t!=="default"&&!(t in e)){let n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}))}var r=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var a={exports:{}},o={exports:{}},s={exports:{}};s.exports;var c;function l(){return c||(c=1,(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=`18.3.1`,r=Symbol.for(`react.element`),i=Symbol.for(`react.portal`),a=Symbol.for(`react.fragment`),o=Symbol.for(`react.strict_mode`),s=Symbol.for(`react.profiler`),c=Symbol.for(`react.provider`),l=Symbol.for(`react.context`),u=Symbol.for(`react.forward_ref`),d=Symbol.for(`react.suspense`),f=Symbol.for(`react.suspense_list`),p=Symbol.for(`react.memo`),m=Symbol.for(`react.lazy`),h=Symbol.for(`react.offscreen`),g=Symbol.iterator,v=`@@iterator`;function y(e){if(typeof e!=`object`||!e)return null;var t=g&&e[g]||e[v];return typeof t==`function`?t:null}var b={current:null},x={transition:null},S={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},C={current:null},w={},T=null;function E(e){T=e}w.setExtraStackFrame=function(e){T=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e=``;T&&(e+=T);var t=w.getCurrentStack;return t&&(e+=t()||``),e};var D=!1,O=!1,k=!1,A=!1,j=!1,M={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:x,ReactCurrentOwner:C};M.ReactDebugCurrentFrame=w,M.ReactCurrentActQueue=S;function N(e){F(`warn`,e,[...arguments].slice(1))}function P(e){F(`error`,e,[...arguments].slice(1))}function F(e,t,n){var r=M.ReactDebugCurrentFrame.getStackAddendum();r!==``&&(t+=`%s`,n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,i)}var I={};function L(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||`ReactClass`,i=r+`.`+t;I[i]||(P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),I[i]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){L(e,`forceUpdate`)},enqueueReplaceState:function(e,t,n,r){L(e,`replaceState`)},enqueueSetState:function(e,t,n,r){L(e,`setState`)}},z=Object.assign,B={};Object.freeze(B);function V(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||R}V.prototype.isReactComponent={},V.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},V.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var H={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]},ee=function(e,t){Object.defineProperty(V.prototype,e,{get:function(){N(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})};for(var te in H)H.hasOwnProperty(te)&&ee(te,H[te]);function ne(){}ne.prototype=V.prototype;function re(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||R}var ie=re.prototype=new ne;ie.constructor=re,z(ie,V.prototype),ie.isPureReactComponent=!0;function ae(){var e={current:null};return Object.seal(e),e}var oe=Array.isArray;function se(e){return oe(e)}function U(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function W(e){try{return ce(e),!1}catch{return!0}}function ce(e){return``+e}function le(e){if(W(e))return P(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,U(e)),ce(e)}function ue(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function de(e){return e.displayName||`Context`}function fe(e){if(e==null)return null;if(typeof e.tag==`number`&&P(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case a:return`Fragment`;case i:return`Portal`;case s:return`Profiler`;case o:return`StrictMode`;case d:return`Suspense`;case f:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case l:return de(e)+`.Consumer`;case c:return de(e._context)+`.Provider`;case u:return ue(e,e.render,`ForwardRef`);case p:var t=e.displayName||null;return t===null?fe(e.type)||`Memo`:t;case m:var n=e,r=n._payload,h=n._init;try{return fe(h(r))}catch{return null}}return null}var pe=Object.prototype.hasOwnProperty,me={key:!0,ref:!0,__self:!0,__source:!0},he,ge,_e={};function ve(e){if(pe.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ye(e){if(pe.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function be(e,t){var n=function(){he||(he=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function xe(e,t){var n=function(){ge||(ge=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function Se(e){if(typeof e.ref==`string`&&C.current&&e.__self&&C.current.stateNode!==e.__self){var t=fe(C.current.type);_e[t]||(P(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,t,e.ref),_e[t]=!0)}}var Ce=function(e,t,n,i,a,o,s){var c={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function we(e,t,n){var r,i={},a=null,o=null,s=null,c=null;if(t!=null)for(r in ve(t)&&(o=t.ref,Se(t)),ye(t)&&(le(t.key),a=``+t.key),s=t.__self===void 0?null:t.__self,c=t.__source===void 0?null:t.__source,t)pe.call(t,r)&&!me.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(l>1){for(var u=Array(l),d=0;d<l;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),i.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)i[r]===void 0&&(i[r]=f[r])}if(a||o){var p=typeof e==`function`?e.displayName||e.name||`Unknown`:e;a&&be(i,p),o&&xe(i,p)}return Ce(e,a,o,s,c,C.current,i)}function Te(e,t){return Ce(e.type,t,e.ref,e._self,e._source,e._owner,e.props)}function Ee(e,t,n){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var r,i=z({},e.props),a=e.key,o=e.ref,s=e._self,c=e._source,l=e._owner;if(t!=null){ve(t)&&(o=t.ref,l=C.current),ye(t)&&(le(t.key),a=``+t.key);var u;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)pe.call(t,r)&&!me.hasOwnProperty(r)&&(t[r]===void 0&&u!==void 0?i[r]=u[r]:i[r]=t[r])}var d=arguments.length-2;if(d===1)i.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];i.children=f}return Ce(e.type,a,o,s,c,l,i)}function De(e){return typeof e==`object`&&!!e&&e.$$typeof===r}var Oe=`.`,ke=`:`;function Ae(e){var t=/[=:]/g,n={"=":`=0`,":":`=2`};return`$`+e.replace(t,function(e){return n[e]})}var je=!1,Me=/\/+/g;function Ne(e){return e.replace(Me,`$&/`)}function Pe(e,t){return typeof e==`object`&&e&&e.key!=null?(le(e.key),Ae(``+e.key)):t.toString(36)}function Fe(e,t,n,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case r:case i:c=!0}}if(c){var l=e,u=o(l),d=a===``?Oe+Pe(l,0):a;if(se(u)){var f=``;d!=null&&(f=Ne(d)+`/`),Fe(u,t,f,``,function(e){return e})}else u!=null&&(De(u)&&(u.key&&(!l||l.key!==u.key)&&le(u.key),u=Te(u,n+(u.key&&(!l||l.key!==u.key)?Ne(``+u.key)+`/`:``)+d)),t.push(u));return 1}var p,m,h=0,g=a===``?Oe:a+ke;if(se(e))for(var v=0;v<e.length;v++)p=e[v],m=g+Pe(p,v),h+=Fe(p,t,n,m,o);else{var b=y(e);if(typeof b==`function`){var x=e;b===x.entries&&(je||N(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),je=!0);for(var S=b.call(x),C,w=0;!(C=S.next()).done;)p=C.value,m=g+Pe(p,w++),h+=Fe(p,t,n,m,o)}else if(s===`object`){var T=String(e);throw Error(`Objects are not valid as a React child (found: `+(T===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:T)+`). If you meant to render a collection of children, use an array instead.`)}}return h}function Ie(e,t,n){if(e==null)return e;var r=[],i=0;return Fe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function Le(e){var t=0;return Ie(e,function(){t++}),t}function Re(e,t,n){Ie(e,function(){t.apply(this,arguments)},n)}function ze(e){return Ie(e,function(e){return e})||[]}function Be(e){if(!De(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}function Ve(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:c,_context:t};var n=!1,r=!1,i=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,P(`Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?`)),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,P(`Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?`)),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||=(N("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t}var He=-1,Ue=0,We=1,Ge=2;function Ke(e){if(e._status===He){var t=e._result,n=t();if(n.then(function(t){if(e._status===Ue||e._status===He){var n=e;n._status=We,n._result=t}},function(t){if(e._status===Ue||e._status===He){var n=e;n._status=Ge,n._result=t}}),e._status===He){var r=e;r._status=Ue,r._result=n}}if(e._status===We){var i=e._result;return i===void 0&&P(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -1410,4 +1410,4 @@ Stack: ${e?.error?.stack??e?.stack}`,`JS_ERROR`,e)}}),self.addEventListener(`unh
|
|
|
1410
1410
|
`)&&(j=`(?: `+j+`)`,N=` `+N,M++),S=RegExp(`^(?:`+j+`)`,A)),b&&(S=RegExp(`^`+j+`$(?!\\s)`,A)),v&&(C=i.lastIndex),w=e(d,k?S:i,N),k?w?(w.input=g(w.input,M),w[0]=g(w[0],M),w.index=i.lastIndex,i.lastIndex+=w[0].length):i.lastIndex=0:v&&w&&(i.lastIndex=i.global?w.index+w[0].length:C),b&&w&&w.length>1&&e(u,w[0],S,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(w[T]=void 0)}),w&&O)for(w.groups=E=o(null),T=0;T<O.length;T++)D=O[T],E[D[0]]=w[D[1]];return w}),h7=f,h7}var Gmt;function Kmt(){if(Gmt)return kmt;Gmt=1;var e=s5(),t=g7();return e({target:`RegExp`,proto:!0,forced:/./.exec!==t},{exec:t}),kmt}var _7,qmt;function v7(){if(qmt)return _7;qmt=1,Kmt();var e=w6(),t=W8(),n=g7(),r=v6(),i=v8(),a=j8(),o=i(`species`),s=RegExp.prototype;return _7=function(c,l,u,d){var f=i(c),p=!r(function(){var e={};return e[f]=function(){return 7},``[c](e)!==7}),m=p&&!r(function(){var e=!1,t=/a/;if(c===`split`){var n={};n[o]=function(){return t},t={constructor:n,flags:``},t[f]=/./[f]}return t.exec=function(){return e=!0,null},t[f](``),!e});if(!p||!m||u){var h=/./[f],g=l(f,``[c],function(t,r,i,a,o){var c=r.exec;return c===n||c===s.exec?p&&!o?{done:!0,value:e(h,r,i,a)}:{done:!0,value:e(t,i,r,a)}:{done:!1}});t(String.prototype,c,g[0]),t(s,f,g[1])}d&&a(s[f],`sham`,!0)},_7}var y7,Jmt;function Ymt(){if(Jmt)return y7;Jmt=1;var e=O6(),t=J8(),n=o7(),r=P6(),i=e(``.charAt),a=e(``.charCodeAt),o=e(``.slice),s=function(e){return function(s,c){var l=n(r(s)),u=t(c),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=a(l,u),f<55296||f>56319||u+1===d||(p=a(l,u+1))<56320||p>57343?e?i(l,u):f:e?o(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};return y7={codeAt:s(!1),charAt:s(!0)},y7}var b7,Xmt;function x7(){if(Xmt)return b7;Xmt=1;var e=Ymt().charAt;return b7=function(t,n,r){return n+(r?e(t,n).length:1)},b7}var S7,Zmt;function Qmt(){if(Zmt)return S7;Zmt=1;var e=g6(),t=v6(),n=e.RegExp;return S7={correct:!t(function(){var e=!0;try{n(`.`,`d`)}catch{e=!1}var t={},r=``,i=e?`dgimsy`:`gimsy`,a=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)a(s,o[s]);return Object.getOwnPropertyDescriptor(n.prototype,`flags`).get.call(t)!==i||r!==i})},S7}var C7,$mt;function w7(){if($mt)return C7;$mt=1;var e=w6(),t=h8(),n=W6(),r=Qmt(),i=Mmt(),a=RegExp.prototype;return C7=r.correct?function(e){return e.flags}:function(o){return!r.correct&&n(a,o)&&!t(o,`flags`)?e(i,o):o.flags},C7}var T7,eht;function E7(){if(eht)return T7;eht=1;var e=w6(),t=O8(),n=R6(),r=A6(),i=g7(),a=TypeError;return T7=function(o,s){var c=o.exec;if(n(c)){var l=e(c,o,s);return l!==null&&t(l),l}if(r(o)===`RegExp`)return e(i,o,s);throw new a(`RegExp#exec called on incompatible receiver`)},T7}var tht;function nht(){if(tht)return Omt;tht=1;var e=w6(),t=O6(),n=v7(),r=O8(),i=B6(),a=Z8(),o=o7(),s=P6(),c=r8(),l=x7(),u=w7(),d=E7(),f=t(``.indexOf);return n(`match`,function(t,n,p){return[function(n){var r=s(this),a=i(n)?c(n,t):void 0;return a?e(a,n,r):new RegExp(n)[t](o(r))},function(e){var t=r(this),i=o(e),s=p(n,t,i);if(s.done)return s.value;var c=o(u(t));if(f(c,`g`)===-1)return d(t,i);var m=f(c,`u`)!==-1;t.lastIndex=0;for(var h=[],g=0,v;(v=d(t,i))!==null;){var y=o(v[0]);h[g]=y,y===``&&(t.lastIndex=l(i,a(t.lastIndex),m)),g++}return g===0?null:h}]}),Omt}nht();var rht={},D7,iht;function aht(){if(iht)return D7;iht=1;var e=O6(),t=p8(),n=Math.floor,r=e(``.charAt),i=e(``.replace),a=e(``.slice),o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return D7=function(e,c,l,u,d,f){var p=l+e.length,m=u.length,h=s;return d!==void 0&&(d=t(d),h=o),i(f,h,function(t,i){var o;switch(r(i,0)){case`$`:return`$`;case`&`:return e;case"`":return a(c,0,l);case`'`:return a(c,p);case`<`:o=d[a(i,1,-1)];break;default:var s=+i;if(s===0)return t;if(s>m){var f=n(s/10);return f===0?t:f<=m?u[f-1]===void 0?r(i,1):u[f-1]+r(i,1):t}o=u[s-1]}return o===void 0?``:o})},D7}var oht;function sht(){if(oht)return rht;oht=1;var e=ppt(),t=w6(),n=O6(),r=v7(),i=v6(),a=O8(),o=R6(),s=B6(),c=J8(),l=Z8(),u=o7(),d=P6(),f=x7(),p=r8(),m=aht(),h=w7(),g=E7(),v=v8()(`replace`),y=Math.max,b=Math.min,x=n([].concat),S=n([].push),C=n(``.indexOf),w=n(``.slice),T=function(e){return e===void 0?e:String(e)},E=(function(){return`a`.replace(/./,`$0`)===`$0`})(),D=(function(){return/./[v]?/./[v](`a`,`$0`)===``:!1})();return r(`replace`,function(n,r,i){var E=D?`$`:`$0`;return[function(e,n){var i=d(this),a=s(e)?p(e,v):void 0;return a?t(a,e,i,n):t(r,u(i),e,n)},function(t,n){var s=a(this),d=u(t);if(typeof n==`string`&&C(n,E)===-1&&C(n,`$<`)===-1){var p=i(r,s,d,n);if(p.done)return p.value}var v=o(n);v||(n=u(n));var D=u(h(s)),O=C(D,`g`)!==-1,k;O&&(k=C(D,`u`)!==-1,s.lastIndex=0);for(var A=[],j;j=g(s,d),!(j===null||(S(A,j),!O));)u(j[0])===``&&(s.lastIndex=f(d,l(s.lastIndex),k));for(var M=``,N=0,P=0;P<A.length;P++){j=A[P];for(var F=u(j[0]),I=y(b(c(j.index),d.length),0),L=[],R,z=1;z<j.length;z++)S(L,T(j[z]));var B=j.groups;if(v){var V=x([F],L,I,d);B!==void 0&&S(V,B),R=u(e(n,void 0,V))}else R=m(F,d,I,L,B,n);I>=N&&(M+=w(d,N,I)+R,N=I+F.length)}return M+w(d,N)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`})||!E||D),rht}sht();var cht={},O7,lht;function uht(){if(lht)return O7;lht=1;var e=B6(),t=A6(),n=v8()(`match`);return O7=function(r){var i;return e(r)&&((i=r[n])===void 0?t(r)===`RegExp`:!!i)},O7}var k7,dht;function A7(){if(dht)return k7;dht=1;var e=uht(),t=TypeError;return k7=function(n){if(e(n))throw new t(`The method doesn't accept regular expressions`);return n},k7}var j7,fht;function M7(){if(fht)return j7;fht=1;var e=v8()(`match`);return j7=function(t){var n=/./;try{`/./`[t](n)}catch{try{return n[e]=!1,`/./`[t](n)}catch{}}return!1},j7}var pht;function mht(){if(pht)return cht;pht=1;var e=s5(),t=k5(),n=w8().f,r=Z8(),i=o7(),a=A7(),o=P6(),s=M7(),c=o8(),l=t(``.slice),u=Math.min,d=s(`startsWith`);return e({target:`String`,proto:!0,forced:!(!c&&!d&&(function(){var e=n(String.prototype,`startsWith`);return e&&!e.writable})())&&!d},{startsWith:function(e){var t=i(o(this));a(e);var n=r(u(arguments.length>1?arguments[1]:void 0,t.length)),s=i(e);return l(t,n,n+s.length)===s}}),cht}mht();var N7,hht;function ght(){if(hht)return N7;hht=1;var e=v8(),t=f7(),n=k8().f,r=e(`unscopables`),i=Array.prototype;return i[r]===void 0&&n(i,r,{configurable:!0,value:t(null)}),N7=function(e){i[r][e]=!0},N7}var P7,_ht;function vht(){return _ht?P7:(_ht=1,P7=!v6()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),P7)}var F7,yht;function bht(){if(yht)return F7;yht=1;var e=h8(),t=R6(),n=p8(),r=z8(),i=vht(),a=r(`IE_PROTO`),o=Object,s=o.prototype;return F7=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,a))return i[a];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof o?s:null},F7}var I7,xht;function Sht(){if(xht)return I7;xht=1;var e=v6(),t=R6(),n=B6(),r=f7(),i=bht(),a=W8(),o=v8(),s=o8(),c=o(`iterator`),l=!1,u,d,f;return[].keys&&(f=[].keys(),`next`in f?(d=i(i(f)),d!==Object.prototype&&(u=d)):l=!0),!n(u)||e(function(){var e={};return u[c].call(e)!==e})?u={}:s&&(u=r(u)),t(u[c])||a(u,c,function(){return this}),I7={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:l},I7}var L7,Cht;function wht(){if(Cht)return L7;Cht=1;var e=Sht().IteratorPrototype,t=f7(),n=E6(),r=_5(),i=Y5(),a=function(){return this};return L7=function(o,s,c,l){var u=s+` Iterator`;return o.prototype=t(e,{next:n(+!l,c)}),r(o,u,!1,!0),i[u]=a,o},L7}var R7,Tht;function Eht(){if(Tht)return R7;Tht=1;var e=s5(),t=w6(),n=o8(),r=P8(),i=R6(),a=wht(),o=bht(),s=Yft(),c=_5(),l=j8(),u=W8(),d=v8(),f=Y5(),p=Sht(),m=r.PROPER,h=r.CONFIGURABLE,g=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,y=d(`iterator`),b=`keys`,x=`values`,S=`entries`,C=function(){return this};return R7=function(r,d,p,w,T,E,D){a(p,d,w);var O=function(e){if(e===T&&N)return N;if(!v&&e&&e in j)return j[e];switch(e){case b:return function(){return new p(this,e)};case x:return function(){return new p(this,e)};case S:return function(){return new p(this,e)}}return function(){return new p(this)}},k=d+` Iterator`,A=!1,j=r.prototype,M=j[y]||j[`@@iterator`]||T&&j[T],N=!v&&M||O(T),P=d===`Array`&&j.entries||M,F,I,L;if(P&&(F=o(P.call(new r)),F!==Object.prototype&&F.next&&(!n&&o(F)!==g&&(s?s(F,g):i(F[y])||u(F,y,C)),c(F,k,!0,!0),n&&(f[k]=C))),m&&T===x&&M&&M.name!==x&&(!n&&h?l(j,`name`,x):(A=!0,N=function(){return t(M,this)})),T)if(I={values:O(x),keys:E?N:O(b),entries:O(S)},D)for(L in I)(v||A||!(L in j))&&u(j,L,I[L]);else e({target:d,proto:!0,forced:v||A},I);return(!n||D)&&j[y]!==N&&u(j,y,N,{name:T}),f[d]=N,I},R7}var Dht,Oht;function kht(){return Oht||(Oht=1,Dht=function(e,t){return{value:e,done:t}}),Dht}var z7,Aht;function jht(){if(Aht)return z7;Aht=1;var e=I6(),t=ght(),n=Y5(),r=H8(),i=k8().f,a=Eht(),o=kht(),s=o8(),c=b6(),l=`Array Iterator`,u=r.set,d=r.getterFor(l);z7=a(Array,`Array`,function(t,n){u(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case`keys`:return o(n,!1);case`values`:return o(t[n],!1)}return o([n,t[n]],!1)},`values`);var f=n.Arguments=n.Array;if(t(`keys`),t(`values`),t(`entries`),!s&&c&&f.name!==`values`)try{i(f,`name`,{value:`values`})}catch{}return z7}jht();var Mht={},Nht,Pht;function Fht(){return Pht||(Pht=1,Nht={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Nht}var B7,Iht;function Lht(){if(Iht)return B7;Iht=1;var e=S8()(`span`).classList,t=e&&e.constructor&&e.constructor.prototype;return B7=t===Object.prototype?void 0:t,B7}var Rht;function zht(){if(Rht)return Mht;Rht=1;var e=g6(),t=Fht(),n=Lht(),r=jht(),i=j8(),a=_5(),o=v8()(`iterator`),s=r.values,c=function(e,n){if(e){if(e[o]!==s)try{i(e,o,s)}catch{e[o]=s}if(a(e,n,!0),t[n]){for(var c in r)if(e[c]!==r[c])try{i(e,c,r[c])}catch{e[c]=r[c]}}}};for(var l in t)c(e[l]&&e[l].prototype,l);return c(n,`DOMTokenList`),Mht}zht();var Bht={},V7,Vht;function Hht(){if(Vht)return V7;Vht=1;var e=t8(),t=p8(),n=udt(),r=$8(),i=TypeError,a=`Reduce of empty array with no initial value`,o=function(o){return function(s,c,l,u){var d=t(s),f=n(d),p=r(d);if(e(c),p===0&&l<2)throw new i(a);var m=o?p-1:0,h=o?-1:1;if(l<2)for(;;){if(m in f){u=f[m],m+=h;break}if(m+=h,o?m<0:p<=m)throw new i(a)}for(;o?m>=0:p>m;m+=h)m in f&&(u=c(u,f[m],m,d));return u}};return V7={left:o(!1),right:o(!0)},V7}var H7,Uht;function Wht(){if(Uht)return H7;Uht=1;var e=v6();return H7=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})},H7}var Ght;function Kht(){if(Ght)return Bht;Ght=1;var e=s5(),t=Hht().left,n=Wht(),r=J6();return e({target:`Array`,proto:!0,forced:!u5()&&r>79&&r<83||!n(`reduce`)},{reduce:function(e){var n=arguments.length;return t(this,e,n,n>1?arguments[1]:void 0)}}),Bht}Kht();var qht={},Jht;function Yht(){if(Jht)return qht;Jht=1;var e=s5(),t=k5(),n=w8().f,r=Z8(),i=o7(),a=A7(),o=P6(),s=M7(),c=o8(),l=t(``.slice),u=Math.min,d=s(`endsWith`);return e({target:`String`,proto:!0,forced:!(!c&&!d&&(function(){var e=n(String.prototype,`endsWith`);return e&&!e.writable})())&&!d},{endsWith:function(e){var t=i(o(this));a(e);var n=arguments.length>1?arguments[1]:void 0,s=t.length,c=n===void 0?s:u(r(n),s),d=i(e);return l(t,c-d.length,c)===d}}),qht}Yht();var Xht={},Zht;function Qht(){if(Zht)return Xht;Zht=1;var e=w6(),t=O6(),n=v7(),r=O8(),i=B6(),a=P6(),o=dpt(),s=x7(),c=Z8(),l=o7(),u=r8(),d=E7(),f=Pmt(),p=v6(),m=f.UNSUPPORTED_Y,h=4294967295,g=Math.min,v=t([].push),y=t(``.slice),b=!p(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`}),x=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;return n(`split`,function(t,n,f){var p=`0`.split(void 0,0).length?function(t,r){return t===void 0&&r===0?[]:e(n,this,t,r)}:n;return[function(n,r){var o=a(this),s=i(n)?u(n,t):void 0;return s?e(s,n,o,r):e(p,l(o),n,r)},function(e,t){var i=r(this),a=l(e);if(!x){var u=f(p,i,a,t,p!==n);if(u.done)return u.value}var b=o(i,RegExp),S=i.unicode,C=(i.ignoreCase?`i`:``)+(i.multiline?`m`:``)+(i.unicode?`u`:``)+(m?`g`:`y`),w=new b(m?`^(?:`+i.source+`)`:i,C),T=t===void 0?h:t>>>0;if(T===0)return[];if(a.length===0)return d(w,a)===null?[a]:[];for(var E=0,D=0,O=[];D<a.length;){w.lastIndex=m?0:D;var k=d(w,m?y(a,D):a),A;if(k===null||(A=g(c(w.lastIndex+(m?D:0)),a.length))===E)D=s(a,D,S);else{if(v(O,y(a,E,D)),O.length===T)return O;for(var j=1;j<=k.length-1;j++)if(v(O,k[j]),O.length===T)return O;D=E=A}}return v(O,y(a,E)),O}]},x||!b,m),Xht}Qht();var U7={exports:{}},W7={exports:{}},$ht=W7.exports,egt;function tgt(){return egt||(egt=1,(function(){var e,t,n,r,i,a;typeof performance<`u`&&performance!==null&&performance.now?W7.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(W7.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var e;return e=t(),e[0]*1e9+e[1]},r=e(),a=process.uptime()*1e9,i=r-a):Date.now?(W7.exports=function(){return Date.now()-n},n=Date.now()):(W7.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call($ht)),W7.exports}var ngt;function rgt(){if(ngt)return U7.exports;ngt=1;for(var e=tgt(),t=typeof window>`u`?r:window,n=[`moz`,`webkit`],i=`AnimationFrame`,a=t[`request`+i],o=t[`cancel`+i]||t[`cancelRequest`+i],s=0;!a&&s<n.length;s++)a=t[n[s]+`Request`+i],o=t[n[s]+`Cancel`+i]||t[n[s]+`CancelRequest`+i];if(!a||!o){var c=0,l=0,u=[],d=1e3/60;a=function(t){if(u.length===0){var n=e(),r=Math.max(0,d-(n-c));c=r+n,setTimeout(function(){var e=u.slice(0);u.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return u.push({handle:++l,callback:t,cancelled:!1}),l},o=function(e){for(var t=0;t<u.length;t++)u[t].handle===e&&(u[t].cancelled=!0)}}return U7.exports=function(e){return a.call(t,e)},U7.exports.cancel=function(){o.apply(t,arguments)},U7.exports.polyfill=function(e){e||=t,e.requestAnimationFrame=a,e.cancelAnimationFrame=o},U7.exports}let G7=i(rgt());var igt={},agt,ogt;function sgt(){return ogt||(ogt=1,agt=`
|
|
1411
1411
|
\v\f\r \xA0 \u2028\u2029`),agt}var K7,cgt;function lgt(){if(cgt)return K7;cgt=1;var e=O6(),t=P6(),n=o7(),r=sgt(),i=e(``.replace),a=RegExp(`^[`+r+`]+`),o=RegExp(`(^|[^`+r+`])[`+r+`]+$`),s=function(e){return function(r){var s=n(t(r));return e&1&&(s=i(s,a,``)),e&2&&(s=i(s,o,`$1`)),s}};return K7={start:s(1),end:s(2),trim:s(3)},K7}var q7,ugt;function dgt(){if(ugt)return q7;ugt=1;var e=P8().PROPER,t=v6(),n=sgt(),r=`
`;return q7=function(i){return t(function(){return!!n[i]()||r[i]()!==r||e&&n[i].name!==i})},q7}var fgt;function pgt(){if(fgt)return igt;fgt=1;var e=s5(),t=lgt().trim;return e({target:`String`,proto:!0,forced:dgt()(`trim`)},{trim:function(){return t(this)}}),igt}pgt();var mgt,hgt;function ggt(){return hgt||(hgt=1,mgt=function(e){this.ok=!1,this.alpha=1,e.charAt(0)==`#`&&(e=e.substr(1,6)),e=e.replace(/ /g,``),e=e.toLowerCase();var t={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dodgerblue:`1e90ff`,feldspar:`d19275`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslateblue:`8470ff`,lightslategray:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`d87093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`ff0000`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,violetred:`d02090`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`};e=t[e]||e;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:[`rgba(123, 234, 45, 0.8)`,`rgba(255,234,245,1.0)`],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:[`rgb(123, 234, 45)`,`rgb(255,234,245)`],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:[`#00ff00`,`336699`],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:[`#fb0`,`f0f`],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toRGBA=function(){return`rgba(`+this.r+`, `+this.g+`, `+this.b+`, `+this.alpha+`)`},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return e.length==1&&(e=`0`+e),t.length==1&&(t=`0`+t),n.length==1&&(n=`0`+n),`#`+e+t+n},this.getHelpXML=function(){for(var e=[],r=0;r<n.length;r++)for(var i=n[r].example,a=0;a<i.length;a++)e[e.length]=i[a];for(var o in t)e[e.length]=o;var s=document.createElement(`ul`);s.setAttribute(`id`,`rgbcolor-examples`);for(var r=0;r<e.length;r++)try{var c=document.createElement(`li`),l=new RGBColor(e[r]),u=document.createElement(`div`);u.style.cssText=`margin: 3px; border: 1px solid black; background:`+l.toHex()+`; color:`+l.toHex(),u.appendChild(document.createTextNode(`test`));var d=document.createTextNode(` `+e[r]+` -> `+l.toRGB()+` -> `+l.toHex());c.appendChild(u),c.appendChild(d),s.appendChild(c)}catch{}return s}}),mgt}let J7=i(ggt());var _gt={},vgt;function ygt(){if(vgt)return _gt;vgt=1;var e=s5(),t=k5(),n=bft().indexOf,r=Wht(),i=t([].indexOf),a=!!i&&1/i([1],1,-0)<0;return e({target:`Array`,proto:!0,forced:a||!r(`indexOf`)},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?i(this,e,t)||0:n(this,e,t)}}),_gt}ygt();var bgt={},xgt;function Sgt(){if(xgt)return bgt;xgt=1;var e=s5(),t=O6(),n=A7(),r=P6(),i=o7(),a=M7(),o=t(``.indexOf);return e({target:`String`,proto:!0,forced:!a(`includes`)},{includes:function(e){return!!~o(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}}),bgt}Sgt();var Cgt={},Y7,wgt;function Tgt(){if(wgt)return Y7;wgt=1;var e=A6();return Y7=Array.isArray||function(t){return e(t)===`Array`},Y7}var Egt;function Dgt(){if(Egt)return Cgt;Egt=1;var e=s5(),t=O6(),n=Tgt(),r=t([].reverse),i=[1,2];return e({target:`Array`,proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}}),Cgt}Dgt();var Ogt=function(e,t){return(Ogt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function kgt(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}Ogt(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Agt(e){var t=``;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===r9.CLOSE_PATH)t+=`z`;else if(r.type===r9.HORIZ_LINE_TO)t+=(r.relative?`h`:`H`)+r.x;else if(r.type===r9.VERT_LINE_TO)t+=(r.relative?`v`:`V`)+r.y;else if(r.type===r9.MOVE_TO)t+=(r.relative?`m`:`M`)+r.x+` `+r.y;else if(r.type===r9.LINE_TO)t+=(r.relative?`l`:`L`)+r.x+` `+r.y;else if(r.type===r9.CURVE_TO)t+=(r.relative?`c`:`C`)+r.x1+` `+r.y1+` `+r.x2+` `+r.y2+` `+r.x+` `+r.y;else if(r.type===r9.SMOOTH_CURVE_TO)t+=(r.relative?`s`:`S`)+r.x2+` `+r.y2+` `+r.x+` `+r.y;else if(r.type===r9.QUAD_TO)t+=(r.relative?`q`:`Q`)+r.x1+` `+r.y1+` `+r.x+` `+r.y;else if(r.type===r9.SMOOTH_QUAD_TO)t+=(r.relative?`t`:`T`)+r.x+` `+r.y;else{if(r.type!==r9.ARC)throw Error(`Unexpected command type "`+r.type+`" at index `+n+`.`);t+=(r.relative?`a`:`A`)+r.rX+` `+r.rY+` `+r.xRot+` `+ +r.lArcFlag+` `+ +r.sweepFlag+` `+r.x+` `+r.y}}return t}function X7(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function Z7(){for(var e=[...arguments],t=0;t<e.length;t++)if(typeof e[t]!=`number`)throw Error(`assertNumbers arguments[`+t+`] is not a number. `+typeof e[t]+` == typeof `+e[t]);return!0}var Q7=Math.PI;function $7(e,t,n){e.lArcFlag=e.lArcFlag===0?0:1,e.sweepFlag=e.sweepFlag===0?0:1;var r=e.rX,i=e.rY,a=e.x,o=e.y;r=Math.abs(e.rX),i=Math.abs(e.rY);var s=X7([(t-a)/2,(n-o)/2],-e.xRot/180*Q7),c=s[0],l=s[1],u=c**2/r**2+l**2/i**2;1<u&&(r*=Math.sqrt(u),i*=Math.sqrt(u)),e.rX=r,e.rY=i;var d=r**2*l**2+i**2*c**2,f=(e.lArcFlag===e.sweepFlag?-1:1)*Math.sqrt(Math.max(0,(r**2*i**2-d)/d)),p=r*l/i*f,m=-i*c/r*f,h=X7([p,m],e.xRot/180*Q7);e.cX=h[0]+(t+a)/2,e.cY=h[1]+(n+o)/2,e.phi1=Math.atan2((l-m)/i,(c-p)/r),e.phi2=Math.atan2((-l-m)/i,(-c-p)/r),e.sweepFlag===0&&e.phi2>e.phi1&&(e.phi2-=2*Q7),e.sweepFlag===1&&e.phi2<e.phi1&&(e.phi2+=2*Q7),e.phi1*=180/Q7,e.phi2*=180/Q7}function jgt(e,t,n){Z7(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var e9,t9=Math.PI/180;function Mgt(e,t,n){return(1-n)*e+n*t}function Ngt(e,t,n,r){return e+Math.cos(r/180*Q7)*t+Math.sin(r/180*Q7)*n}function Pgt(e,t,n,r){var i=1e-6,a=t-e,o=n-t,s=3*a+3*(r-n)-6*o,c=6*(o-a),l=3*a;return Math.abs(s)<i?[-l/c]:(function(e,t,n){var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var i=Math.sqrt(r);return[-e/2-i,-e/2+i]})(c/s,l/s,i)}function Fgt(e,t,n,r,i){var a=1-i;return e*(a*a*a)+t*(3*a*a*i)+n*(3*a*i*i)+r*(i*i*i)}(function(e){function t(){return i((function(e,t,n){return e.relative&&=(e.x1!==void 0&&(e.x1+=t),e.y1!==void 0&&(e.y1+=n),e.x2!==void 0&&(e.x2+=t),e.y2!==void 0&&(e.y2+=n),e.x!==void 0&&(e.x+=t),e.y!==void 0&&(e.y+=n),!1),e}))}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return i((function(i,a,o){return i.type&r9.SMOOTH_CURVE_TO&&(i.type=r9.CURVE_TO,e=isNaN(e)?a:e,t=isNaN(t)?o:t,i.x1=i.relative?a-e:2*a-e,i.y1=i.relative?o-t:2*o-t),i.type&r9.CURVE_TO?(e=i.relative?a+i.x2:i.x2,t=i.relative?o+i.y2:i.y2):(e=NaN,t=NaN),i.type&r9.SMOOTH_QUAD_TO&&(i.type=r9.QUAD_TO,n=isNaN(n)?a:n,r=isNaN(r)?o:r,i.x1=i.relative?a-n:2*a-n,i.y1=i.relative?o-r:2*o-r),i.type&r9.QUAD_TO?(n=i.relative?a+i.x1:i.x1,r=i.relative?o+i.y1:i.y1):(n=NaN,r=NaN),i}))}function r(){var e=NaN,t=NaN;return i((function(n,r,i){if(n.type&r9.SMOOTH_QUAD_TO&&(n.type=r9.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type&r9.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;var a=n.x1,o=n.y1;n.type=r9.CURVE_TO,n.x1=((n.relative?0:r)+2*a)/3,n.y1=((n.relative?0:i)+2*o)/3,n.x2=(n.x+2*a)/3,n.y2=(n.y+2*o)/3}else e=NaN,t=NaN;return n}))}function i(e){var t=0,n=0,r=NaN,i=NaN;return function(a){if(isNaN(r)&&!(a.type&r9.MOVE_TO))throw Error(`path must start with moveto`);var o=e(a,t,n,r,i);return a.type&r9.CLOSE_PATH&&(t=r,n=i),a.x!==void 0&&(t=a.relative?t+a.x:a.x),a.y!==void 0&&(n=a.relative?n+a.y:a.y),a.type&r9.MOVE_TO&&(r=t,i=n),o}}function a(e,t,n,r,a,o){return Z7(e,t,n,r,a,o),i((function(i,s,c,l){var u=i.x1,d=i.x2,f=i.relative&&!isNaN(l),p=i.x===void 0?f?0:s:i.x,m=i.y===void 0?f?0:c:i.y;function h(e){return e*e}i.type&r9.HORIZ_LINE_TO&&t!==0&&(i.type=r9.LINE_TO,i.y=i.relative?0:c),i.type&r9.VERT_LINE_TO&&n!==0&&(i.type=r9.LINE_TO,i.x=i.relative?0:s),i.x!==void 0&&(i.x=i.x*e+m*n+(f?0:a)),i.y!==void 0&&(i.y=p*t+i.y*r+(f?0:o)),i.x1!==void 0&&(i.x1=i.x1*e+i.y1*n+(f?0:a)),i.y1!==void 0&&(i.y1=u*t+i.y1*r+(f?0:o)),i.x2!==void 0&&(i.x2=i.x2*e+i.y2*n+(f?0:a)),i.y2!==void 0&&(i.y2=d*t+i.y2*r+(f?0:o));var g=e*r-t*n;if(i.xRot!==void 0&&(e!==1||t!==0||n!==0||r!==1))if(g===0)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=r9.LINE_TO;else{var v=i.xRot*Math.PI/180,y=Math.sin(v),b=Math.cos(v),x=1/h(i.rX),S=1/h(i.rY),C=h(b)*x+h(y)*S,w=2*y*b*(x-S),T=h(y)*x+h(b)*S,E=C*r*r-w*t*r+T*t*t,D=w*(e*r+t*n)-2*(C*n*r+T*e*t),O=C*n*n-w*e*n+T*e*e,k=(Math.atan2(D,E-O)+Math.PI)%Math.PI/2,A=Math.sin(k),j=Math.cos(k);i.rX=Math.abs(g)/Math.sqrt(E*h(j)+D*A*j+O*h(A)),i.rY=Math.abs(g)/Math.sqrt(E*h(A)-D*A*j+O*h(j)),i.xRot=180*k/Math.PI}return i.sweepFlag!==void 0&&0>g&&(i.sweepFlag=+!i.sweepFlag),i}))}function o(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return e===void 0&&(e=0x9184e72a000),Z7(e),function(e){return e.x1!==void 0&&(e.x1=t(e.x1)),e.y1!==void 0&&(e.y1=t(e.y1)),e.x2!==void 0&&(e.x2=t(e.x2)),e.y2!==void 0&&(e.y2=t(e.y2)),e.x!==void 0&&(e.x=t(e.x)),e.y!==void 0&&(e.y=t(e.y)),e.rX!==void 0&&(e.rX=t(e.rX)),e.rY!==void 0&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i((function(e,t,n){return e.relative||=(e.x1!==void 0&&(e.x1-=t),e.y1!==void 0&&(e.y1-=n),e.x2!==void 0&&(e.x2-=t),e.y2!==void 0&&(e.y2-=n),e.x!==void 0&&(e.x-=t),e.y!==void 0&&(e.y-=n),!0),e}))},e.NORMALIZE_HVZ=function(e,t,n){return e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),i((function(r,i,a,o,s){if(isNaN(o)&&!(r.type&r9.MOVE_TO))throw Error(`path must start with moveto`);return t&&r.type&r9.HORIZ_LINE_TO&&(r.type=r9.LINE_TO,r.y=r.relative?0:a),n&&r.type&r9.VERT_LINE_TO&&(r.type=r9.LINE_TO,r.x=r.relative?0:i),e&&r.type&r9.CLOSE_PATH&&(r.type=r9.LINE_TO,r.x=r.relative?o-i:o,r.y=r.relative?s-a:s),r.type&r9.ARC&&(r.rX===0||r.rY===0)&&(r.type=r9.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(e){e===void 0&&(e=0),Z7(e);var t=NaN,n=NaN,r=NaN,a=NaN;return i((function(i,o,s,c,l){var u=Math.abs,d=!1,f=0,p=0;if(i.type&r9.SMOOTH_CURVE_TO&&(f=isNaN(t)?0:o-t,p=isNaN(n)?0:s-n),i.type&(r9.CURVE_TO|r9.SMOOTH_CURVE_TO)?(t=i.relative?o+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(t=NaN,n=NaN),i.type&r9.SMOOTH_QUAD_TO?(r=isNaN(r)?o:2*o-r,a=isNaN(a)?s:2*s-a):i.type&r9.QUAD_TO?(r=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(r=NaN,a=NaN),i.type&r9.LINE_COMMANDS||i.type&r9.ARC&&(i.rX===0||i.rY===0||!i.lArcFlag)||i.type&r9.CURVE_TO||i.type&r9.SMOOTH_CURVE_TO||i.type&r9.QUAD_TO||i.type&r9.SMOOTH_QUAD_TO){var m=i.x===void 0?0:i.relative?i.x:i.x-o,h=i.y===void 0?0:i.relative?i.y:i.y-s;f=isNaN(r)?i.x1===void 0?f:i.relative?i.x:i.x1-o:r-o,p=isNaN(a)?i.y1===void 0?p:i.relative?i.y:i.y1-s:a-s;var g=i.x2===void 0?0:i.relative?i.x:i.x2-o,v=i.y2===void 0?0:i.relative?i.y:i.y2-s;u(m)<=e&&u(h)<=e&&u(f)<=e&&u(p)<=e&&u(g)<=e&&u(v)<=e&&(d=!0)}return i.type&r9.CLOSE_PATH&&u(o-c)<=e&&u(s-l)<=e&&(d=!0),d?[]:i}))},e.MATRIX=a,e.ROTATE=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=0),Z7(e,t,n);var r=Math.sin(e),i=Math.cos(e);return a(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return t===void 0&&(t=0),Z7(e,t),a(1,0,0,1,e,t)},e.SCALE=function(e,t){return t===void 0&&(t=e),Z7(e,t),a(e,0,0,t,0,0)},e.SKEW_X=function(e){return Z7(e),a(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return Z7(e),a(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return e===void 0&&(e=0),Z7(e),a(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return e===void 0&&(e=0),Z7(e),a(1,0,0,-1,0,e)},e.A_TO_C=function(){return i((function(e,t,n){return r9.ARC===e.type?(function(e,t,n){var r,i,a,o;e.cX||$7(e,t,n);for(var s=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-s,l=Math.ceil(c/90),u=Array(l),d=t,f=n,p=0;p<l;p++){var m=Mgt(e.phi1,e.phi2,p/l),h=Mgt(e.phi1,e.phi2,(p+1)/l),g=h-m,v=4/3*Math.tan(g*t9/4),y=[Math.cos(m*t9)-v*Math.sin(m*t9),Math.sin(m*t9)+v*Math.cos(m*t9)],b=y[0],x=y[1],S=[Math.cos(h*t9),Math.sin(h*t9)],C=S[0],w=S[1],T=[C+v*Math.sin(h*t9),w-v*Math.cos(h*t9)],E=T[0],D=T[1];u[p]={relative:e.relative,type:r9.CURVE_TO};var O=function(t,n){var r=X7([t*e.rX,n*e.rY],e.xRot),i=r[0],a=r[1];return[e.cX+i,e.cY+a]};r=O(b,x),u[p].x1=r[0],u[p].y1=r[1],i=O(E,D),u[p].x2=i[0],u[p].y2=i[1],a=O(C,w),u[p].x=a[0],u[p].y=a[1],e.relative&&(u[p].x1-=d,u[p].y1-=f,u[p].x2-=d,u[p].y2-=f,u[p].x-=d,u[p].y-=f),d=(o=[u[p].x,u[p].y])[0],f=o[1]}return u})(e,e.relative?0:t,e.relative?0:n):e}))},e.ANNOTATE_ARCS=function(){return i((function(e,t,n){return e.relative&&(t=0,n=0),r9.ARC===e.type&&$7(e,t,n),e}))},e.CLONE=o,e.CALCULATE_BOUNDS=function(){var e=function(e){var t={};for(var n in e)t[n]=e[n];return t},a=t(),o=r(),s=n(),c=i((function(t,n,r){var i=s(o(a(e(t))));function l(e){e>c.maxX&&(c.maxX=e),e<c.minX&&(c.minX=e)}function u(e){e>c.maxY&&(c.maxY=e),e<c.minY&&(c.minY=e)}if(i.type&r9.DRAWING_COMMANDS&&(l(n),u(r)),i.type&r9.HORIZ_LINE_TO&&l(i.x),i.type&r9.VERT_LINE_TO&&u(i.y),i.type&r9.LINE_TO&&(l(i.x),u(i.y)),i.type&r9.CURVE_TO){l(i.x),u(i.y);for(var d=0,f=Pgt(n,i.x1,i.x2,i.x);d<f.length;d++)0<(k=f[d])&&1>k&&l(Fgt(n,i.x1,i.x2,i.x,k));for(var p=0,m=Pgt(r,i.y1,i.y2,i.y);p<m.length;p++)0<(k=m[p])&&1>k&&u(Fgt(r,i.y1,i.y2,i.y,k))}if(i.type&r9.ARC){l(i.x),u(i.y),$7(i,n,r);for(var h=i.xRot/180*Math.PI,g=Math.cos(h)*i.rX,v=Math.sin(h)*i.rX,y=-Math.sin(h)*i.rY,b=Math.cos(h)*i.rY,x=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],S=x[0],C=x[1],w=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<S?r+360:r},T=0,E=jgt(y,-g,0).map(w);T<E.length;T++)(k=E[T])>S&&k<C&&l(Ngt(i.cX,g,y,k));for(var D=0,O=jgt(b,-v,0).map(w);D<O.length;D++){var k;(k=O[D])>S&&k<C&&u(Ngt(i.cY,v,b,k))}}return t}));return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(e9||={});var n9,Igt=(function(){function e(){}return e.prototype.round=function(e){return this.transform(e9.ROUND(e))},e.prototype.toAbs=function(){return this.transform(e9.TO_ABS())},e.prototype.toRel=function(){return this.transform(e9.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(e9.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(e9.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(e9.QT_TO_C())},e.prototype.aToC=function(){return this.transform(e9.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(e9.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(e9.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(e9.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(e9.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,i,a){return this.transform(e9.MATRIX(e,t,n,r,i,a))},e.prototype.skewX=function(e){return this.transform(e9.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(e9.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(e9.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(e9.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(e9.ANNOTATE_ARCS())},e})(),Lgt=function(e){return e===` `||e===` `||e===`\r`||e===`
|
|
1412
1412
|
`},Rgt=function(e){return 48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57},zgt=(function(e){function t(){var t=e.call(this)||this;return t.curNumber=``,t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return kgt(t,e),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(` `,e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw SyntaxError(`Unterminated command at the path end.`);return e},t.prototype.parse=function(e,t){var n=this;t===void 0&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<e.length;i++){var a=e[i],o=!(this.curCommandType!==r9.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!==`0`&&this.curNumber!==`1`),s=Rgt(a)&&(this.curNumber===`0`&&a===`0`||o);if(!Rgt(a)||s)if(a!==`e`&&a!==`E`)if(a!==`-`&&a!==`+`||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!==`.`||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var c=Number(this.curNumber);if(isNaN(c))throw SyntaxError(`Invalid number ending at `+i);if(this.curCommandType===r9.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw SyntaxError(`Expected positive number, got "`+c+`" at index "`+i+`"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!==`0`&&this.curNumber!==`1`)throw SyntaxError(`Expected a flag, got "`+this.curNumber+`" at index "`+i+`"`)}this.curArgs.push(c),this.curArgs.length===Bgt[this.curCommandType]&&(r9.HORIZ_LINE_TO===this.curCommandType?r({type:r9.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):r9.VERT_LINE_TO===this.curCommandType?r({type:r9.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===r9.MOVE_TO||this.curCommandType===r9.LINE_TO||this.curCommandType===r9.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),r9.MOVE_TO===this.curCommandType&&(this.curCommandType=r9.LINE_TO)):this.curCommandType===r9.CURVE_TO?r({type:r9.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===r9.SMOOTH_CURVE_TO?r({type:r9.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===r9.QUAD_TO?r({type:r9.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===r9.ARC&&r({type:r9.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber=``,this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Lgt(a))if(a===`,`&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!==`+`&&a!==`-`&&a!==`.`)if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw SyntaxError(`Unterminated command at index `+i+`.`);if(!this.canParseCommandOrComma)throw SyntaxError(`Unexpected character "`+a+`" at index `+i+`. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a!==`z`&&a!==`Z`)if(a===`h`||a===`H`)this.curCommandType=r9.HORIZ_LINE_TO,this.curCommandRelative=a===`h`;else if(a===`v`||a===`V`)this.curCommandType=r9.VERT_LINE_TO,this.curCommandRelative=a===`v`;else if(a===`m`||a===`M`)this.curCommandType=r9.MOVE_TO,this.curCommandRelative=a===`m`;else if(a===`l`||a===`L`)this.curCommandType=r9.LINE_TO,this.curCommandRelative=a===`l`;else if(a===`c`||a===`C`)this.curCommandType=r9.CURVE_TO,this.curCommandRelative=a===`c`;else if(a===`s`||a===`S`)this.curCommandType=r9.SMOOTH_CURVE_TO,this.curCommandRelative=a===`s`;else if(a===`q`||a===`Q`)this.curCommandType=r9.QUAD_TO,this.curCommandRelative=a===`q`;else if(a===`t`||a===`T`)this.curCommandType=r9.SMOOTH_QUAD_TO,this.curCommandRelative=a===`t`;else{if(a!==`a`&&a!==`A`)throw SyntaxError(`Unexpected character "`+a+`" at index `+i+`.`);this.curCommandType=r9.ARC,this.curCommandRelative=a===`a`}else t.push({type:r9.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal=a===`.`}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){n===void 0&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;r++){var a=i[r],o=e(a);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},t})(Igt),r9=(function(e){function t(n){var r=e.call(this)||this;return r.commands=typeof n==`string`?t.parse(n):n,r}return kgt(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=e9.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var i=e(r[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return Agt(e)},t.parse=function(e){var t=new zgt,n=[];return t.parse(e,n),t.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t})(Igt),Bgt=((n9={})[r9.MOVE_TO]=2,n9[r9.LINE_TO]=2,n9[r9.HORIZ_LINE_TO]=1,n9[r9.VERT_LINE_TO]=1,n9[r9.CLOSE_PATH]=0,n9[r9.QUAD_TO]=4,n9[r9.SMOOTH_QUAD_TO]=2,n9[r9.CURVE_TO]=6,n9[r9.SMOOTH_CURVE_TO]=4,n9[r9.ARC]=7,n9),Vgt={},Hgt;function Ugt(){if(Hgt)return Vgt;Hgt=1;var e=P8().PROPER,t=W8(),n=O8(),r=o7(),i=v6(),a=w7(),o=`toString`,s=RegExp.prototype,c=s[o],l=i(function(){return c.call({source:`a`,flags:`b`})!==`/a/b`}),u=e&&c.name!==o;return(l||u)&&t(s,o,function(){var e=n(this),t=r(e.source),i=r(a(e));return`/`+t+`/`+i},{unsafe:!0}),Vgt}Ugt();function i9(e){"@babel/helpers - typeof";return i9=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i9(e)}function Wgt(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var Ggt=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Kgt=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function qgt(e,t,n,r,i){if(typeof e==`string`&&(e=document.getElementById(e)),!e||i9(e)!==`object`||!(`getContext`in e))throw TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=e.getContext(`2d`);try{return a.getImageData(t,n,r,i)}catch(e){throw Error(`unable to access image data: `+e)}}function Jgt(e,t,n,r,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=qgt(e,t,n,r,i);o=Ygt(o,t,n,r,i,a),e.getContext(`2d`).putImageData(o,t,n)}}function Ygt(e,t,n,r,i,a){for(var o=e.data,s=2*a+1,c=r-1,l=i-1,u=a+1,d=u*(u+1)/2,f=new Xgt,p=f,m,h=1;h<s;h++)p=p.next=new Xgt,h===u&&(m=p);p.next=f;for(var g=null,v=null,y=0,b=0,x=Ggt[a],S=Kgt[a],C=0;C<i;C++){p=f;for(var w=o[b],T=o[b+1],E=o[b+2],D=o[b+3],O=0;O<u;O++)p.r=w,p.g=T,p.b=E,p.a=D,p=p.next;for(var k=0,A=0,j=0,M=0,N=u*w,P=u*T,F=u*E,I=u*D,L=d*w,R=d*T,z=d*E,B=d*D,V=1;V<u;V++){var H=b+((c<V?c:V)<<2),ee=o[H],te=o[H+1],ne=o[H+2],re=o[H+3],ie=u-V;L+=(p.r=ee)*ie,R+=(p.g=te)*ie,z+=(p.b=ne)*ie,B+=(p.a=re)*ie,k+=ee,A+=te,j+=ne,M+=re,p=p.next}g=f,v=m;for(var ae=0;ae<r;ae++){var oe=B*x>>>S;if(o[b+3]=oe,oe!==0){var se=255/oe;o[b]=(L*x>>>S)*se,o[b+1]=(R*x>>>S)*se,o[b+2]=(z*x>>>S)*se}else o[b]=o[b+1]=o[b+2]=0;L-=N,R-=P,z-=F,B-=I,N-=g.r,P-=g.g,F-=g.b,I-=g.a;var U=ae+a+1;U=y+(U<c?U:c)<<2,k+=g.r=o[U],A+=g.g=o[U+1],j+=g.b=o[U+2],M+=g.a=o[U+3],L+=k,R+=A,z+=j,B+=M,g=g.next;var W=v,ce=W.r,le=W.g,ue=W.b,de=W.a;N+=ce,P+=le,F+=ue,I+=de,k-=ce,A-=le,j-=ue,M-=de,v=v.next,b+=4}y+=r}for(var fe=0;fe<r;fe++){b=fe<<2;var pe=o[b],me=o[b+1],he=o[b+2],ge=o[b+3],_e=u*pe,ve=u*me,ye=u*he,be=u*ge,xe=d*pe,Se=d*me,Ce=d*he,we=d*ge;p=f;for(var Te=0;Te<u;Te++)p.r=pe,p.g=me,p.b=he,p.a=ge,p=p.next;for(var Ee=r,De=0,Oe=0,ke=0,Ae=0,je=1;je<=a;je++){b=Ee+fe<<2;var Me=u-je;xe+=(p.r=pe=o[b])*Me,Se+=(p.g=me=o[b+1])*Me,Ce+=(p.b=he=o[b+2])*Me,we+=(p.a=ge=o[b+3])*Me,Ae+=pe,De+=me,Oe+=he,ke+=ge,p=p.next,je<l&&(Ee+=r)}b=fe,g=f,v=m;for(var Ne=0;Ne<i;Ne++){var Pe=b<<2;o[Pe+3]=ge=we*x>>>S,ge>0?(ge=255/ge,o[Pe]=(xe*x>>>S)*ge,o[Pe+1]=(Se*x>>>S)*ge,o[Pe+2]=(Ce*x>>>S)*ge):o[Pe]=o[Pe+1]=o[Pe+2]=0,xe-=_e,Se-=ve,Ce-=ye,we-=be,_e-=g.r,ve-=g.g,ye-=g.b,be-=g.a,Pe=fe+((Pe=Ne+u)<l?Pe:l)*r<<2,xe+=Ae+=g.r=o[Pe],Se+=De+=g.g=o[Pe+1],Ce+=Oe+=g.b=o[Pe+2],we+=ke+=g.a=o[Pe+3],g=g.next,_e+=pe=v.r,ve+=me=v.g,ye+=he=v.b,be+=ge=v.a,Ae-=pe,De-=me,Oe-=he,ke-=ge,v=v.next,b+=r}}return e}var Xgt=function e(){Wgt(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function Zgt(){var{DOMParser:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return i7(function*(){var t=yield(yield fetch(e)).blob();return yield createImageBitmap(t)})()}};return(typeof DOMParser<`u`||typeof e>`u`)&&Reflect.deleteProperty(t,`DOMParser`),t}function Qgt(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var $gt=Object.freeze({__proto__:null,offscreen:Zgt,node:Qgt});function a9(e){return e.replace(/(?!\u3000)\s+/gm,` `)}function e_t(e){return e.replace(/^[\n \t]+/,``)}function t_t(e){return e.replace(/[\n \t]+$/,``)}function o9(e){return((e||``).match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var n_t=/^[A-Z-]+$/;function r_t(e){return n_t.test(e)?e.toLowerCase():e}function s9(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function i_t(e){if(!e.startsWith(`rgb`))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(e,n)=>t--&&n?String(Math.round(parseFloat(e))):e)}var a_t=/(\[[^\]]+\])/g,o_t=/(#[^\s+>~.[:]+)/g,s_t=/(\.[^\s+>~.[:]+)/g,c_t=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,l_t=/(:[\w-]+\([^)]*\))/gi,u_t=/(:[^\s+>~.[:]+)/g,d_t=/([^\s+>~.[:]+)/g;function c9(e,t){var n=t.exec(e);return n?[e.replace(t,` `),n.length]:[e,0]}function f_t(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g,` $1 `).replace(/{[\s\S]*/gm,` `),r=0;return[n,r]=c9(n,a_t),t[1]+=r,[n,r]=c9(n,o_t),t[0]+=r,[n,r]=c9(n,s_t),t[1]+=r,[n,r]=c9(n,c_t),t[2]+=r,[n,r]=c9(n,l_t),t[1]+=r,[n,r]=c9(n,u_t),t[1]+=r,n=n.replace(/[*\s+>~]/g,` `).replace(/[#.]/g,` `),[n,r]=c9(n,d_t),t[2]+=r,t.join(``)}var l9=1e-8;function u9(e){return Math.sqrt(e[0]**2+e[1]**2)}function d9(e,t){return(e[0]*t[0]+e[1]*t[1])/(u9(e)*u9(t))}function f9(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(d9(e,t))}function p9(e){return e*e*e}function m9(e){return 3*e*e*(1-e)}function h9(e){return 3*e*(1-e)*(1-e)}function g9(e){return(1-e)*(1-e)*(1-e)}function _9(e){return e*e}function v9(e){return 2*e*(1-e)}function y9(e){return(1-e)*(1-e)}class b9{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new b9(e,`EMPTY`,``)}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:` `,{document:t,name:n}=this;return a9(this.getString()).trim().split(e).map(e=>new b9(t,n,e))}hasValue(e){var{value:t}=this;return t!==null&&t!==``&&(e||t!==0)&&typeof t<`u`}isString(e){var{value:t}=this,n=typeof t==`string`;return!n||!e?n:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith(`px`):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>`u`||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>`u`?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>`u`||this.hasValue()?typeof this.value>`u`?``:String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=i_t(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,``)}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[n,r]=typeof e==`boolean`?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize(`x`),i.computeSize(`y`));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize(`x`),i.computeSize(`y`));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize(`x`);case this.isString(/vh$/):return this.getNumber()/100*i.computeSize(`y`);case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var a=this.getNumber();return t&&a<1?a*i.computeSize(n):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&=t[1],t||=e,this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient==`function`)return n.createGradient(this.document.ctx,e,t);if(typeof n.createPattern==`function`){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute(`patternTransform`);n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute(`patternTransform`,!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?b9.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,r=0,i=0;i<n&&(t[i]===`,`&&r++,r!==3);i++);if(e.hasValue()&&this.isString()&&r!==3){var a=new J7(t);a.ok&&(a.alpha=e.getNumber(),t=a.toRGBA())}return new b9(this.document,this.name,t)}}b9.textBaselineMapping={baseline:`alphabetic`,"before-edge":`top`,"text-before-edge":`top`,middle:`middle`,central:`middle`,"after-edge":`bottom`,"text-after-edge":`bottom`,ideographic:`ideographic`,alphabetic:`alphabetic`,hanging:`hanging`,mathematical:`alphabetic`};class p_t{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e==`number`?e:e===`x`?this.width:e===`y`?this.height:Math.sqrt(this.width**2+this.height**2)/Math.sqrt(2)}}class x9{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[n=t,r=t]=o9(e);return new x9(n,r)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=t,r=n]=o9(e);return new x9(n,r)}static parsePath(e){for(var t=o9(e),n=t.length,r=[],i=0;i<n;i+=2)r.push(new x9(t[i],t[i+1]));return r}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}class m_t{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=``),t.forEach((e,t)=>{for(var{run:r}=e,i=n[t];i;)r(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:a,y:o}=n;!r[i]&&t.isPointInPath&&t.isPointInPath(a,o)&&(r[i]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:a,y:o}=n;!r[i]&&t.isPointInBox(a,o)&&(r[i]=e)})}}mapXY(e,t){for(var{window:n,ctx:r}=this.screen,i=new x9(e,t),a=r.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onclick`,x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onmousemove`,x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}}var h_t=typeof window<`u`?window:null,g_t=typeof fetch<`u`?fetch.bind(void 0):null;class S9{constructor(e){var{fetch:t=g_t,window:n=h_t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new p_t,this.mouse=new m_t(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle=`rgba(0,0,0,0)`,e.lineCap=`butt`,e.lineJoin=`miter`,e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:i,desiredWidth:a,height:o,desiredHeight:s,minX:c=0,minY:l=0,refX:u,refY:d,clip:f=!1,clipX:p=0,clipY:m=0}=e,[h,g]=a9(r).replace(/^defer\s/,``).split(` `),v=h||`xMidYMid`,y=g||`meet`,b=i/a,x=o/s,S=Math.min(b,x),C=Math.max(b,x),w=a,T=s;y===`meet`&&(w*=S,T*=S),y===`slice`&&(w*=C,T*=C);var E=new b9(t,`refX`,u),D=new b9(t,`refY`,d),O=E.hasValue()&&D.hasValue();if(O&&n.translate(-S*E.getPixels(`x`),-S*D.getPixels(`y`)),f){var k=S*p,A=S*m;n.beginPath(),n.moveTo(k,A),n.lineTo(i,A),n.lineTo(i,o),n.lineTo(k,o),n.closePath(),n.clip()}if(!O){var j=y===`meet`&&S===x,M=y===`slice`&&C===x,N=y===`meet`&&S===b,P=y===`slice`&&C===b;v.startsWith(`xMid`)&&(j||M)&&n.translate(i/2-w/2,0),v.endsWith(`YMid`)&&(N||P)&&n.translate(0,o/2-T/2),v.startsWith(`xMax`)&&(j||M)&&n.translate(i-w,0),v.endsWith(`YMax`)&&(N||P)&&n.translate(0,o-T)}switch(!0){case v===`none`:n.scale(b,x);break;case y===`meet`:n.scale(S,S);break;case y===`slice`:n.scale(C,C);break}n.translate(-c,-l)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:o,scaleWidth:s,scaleHeight:c,offsetX:l,offsetY:u}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:d,mouse:f}=this,p=1e3/d;if(this.frameDuration=p,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,i,a,s,c,l,u),t){var m=Date.now(),h=m,g=0,v=()=>{m=Date.now(),g=m-h,g>=p&&(h=m-g%p,this.shouldUpdate(r,o)&&(this.render(e,i,a,s,c,l,u),f.runEvents())),this.intervalId=G7(v)};n||f.start(),this.intervalId=G7(v)}}stop(){this.intervalId&&=(G7.cancel(this.intervalId),null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this;if(this.animations.reduce((e,t)=>t.update(n)||e,!1))return!0}return!!(typeof t==`function`&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,r,i,a,o){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:c,viewPort:l,ctx:u,isFirstRender:d}=this,f=u.canvas;l.clear(),f.width&&f.height?l.setCurrent(f.width,f.height):l.setCurrent(s,c);var p=e.getStyle(`width`),m=e.getStyle(`height`);!t&&(d||typeof r!=`number`&&typeof i!=`number`)&&(p.hasValue()&&(f.width=p.getPixels(`x`),f.style&&(f.style.width=`${f.width}px`)),m.hasValue()&&(f.height=m.getPixels(`y`),f.style&&(f.style.height=`${f.height}px`)));var h=f.clientWidth||f.width,g=f.clientHeight||f.height;if(t&&p.hasValue()&&m.hasValue()&&(h=p.getPixels(`x`),g=m.getPixels(`y`)),l.setCurrent(h,g),typeof a==`number`&&e.getAttribute(`x`,!0).setValue(a),typeof o==`number`&&e.getAttribute(`y`,!0).setValue(o),typeof r==`number`||typeof i==`number`){var v=o9(e.getAttribute(`viewBox`).getString()),y=0,b=0;if(typeof r==`number`){var x=e.getStyle(`width`);x.hasValue()?y=x.getPixels(`x`)/r:isNaN(v[2])||(y=v[2]/r)}if(typeof i==`number`){var S=e.getStyle(`height`);S.hasValue()?b=S.getPixels(`y`)/i:isNaN(v[3])||(b=v[3]/i)}y||=b,b||=y,e.getAttribute(`width`,!0).setValue(r),e.getAttribute(`height`,!0).setValue(i);var C=e.getStyle(`transform`,!0,!0);C.setValue(`${C.getString()} scale(${1/y}, ${1/b})`)}n||u.clearRect(0,0,h,g),e.render(u),d&&(this.isFirstRender=!1)}}S9.defaultWindow=h_t,S9.defaultFetch=g_t;var{defaultFetch:__t}=S9,v_t=typeof DOMParser<`u`?DOMParser:null;class C9{constructor(){var{fetch:e=__t,DOMParser:t=v_t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return i7(function*(){return e.startsWith(`<`)?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,`image/svg+xml`))}catch{return this.checkDocument(t.parseFromString(e,`text/xml`))}}checkDocument(e){var t=e.getElementsByTagName(`parsererror`)[0];if(t)throw Error(t.textContent);return e}load(e){var t=this;return i7(function*(){var n=yield(yield t.fetch(e)).text();return t.parseFromString(n)})()}}class y_t{constructor(e,t){this.type=`translate`,this.point=null,this.point=x9.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class b_t{constructor(e,t,n){this.type=`rotate`,this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=o9(t);this.angle=new b9(e,`angle`,r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:i,angle:a}=this,o=t+r.getPixels(`x`),s=n+i.getPixels(`y`);e.translate(o,s),e.rotate(a.getRadians()),e.translate(-o,-s)}unapply(e){var{cx:t,cy:n,originX:r,originY:i,angle:a}=this,o=t+r.getPixels(`x`),s=n+i.getPixels(`y`);e.translate(o,s),e.rotate(-1*a.getRadians()),e.translate(-o,-s)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class x_t{constructor(e,t,n){this.type=`scale`,this.scale=null,this.originX=null,this.originY=null;var r=x9.parseScale(t);(r.x===0||r.y===0)&&(r.x=l9,r.y=l9),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,a=r.getPixels(`x`),o=i.getPixels(`y`);e.translate(a,o),e.scale(t,n||t),e.translate(-a,-o)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,a=r.getPixels(`x`),o=i.getPixels(`y`);e.translate(a,o),e.scale(1/t,1/n||t),e.translate(-a,-o)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class w9{constructor(e,t,n){this.type=`matrix`,this.matrix=[],this.originX=null,this.originY=null,this.matrix=o9(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,i=t.getPixels(`x`),a=n.getPixels(`y`);e.translate(i,a),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-a)}unapply(e){var{originX:t,originY:n,matrix:r}=this,i=r[0],a=r[2],o=r[4],s=r[1],c=r[3],l=r[5],u=0,d=0,f=1,p=1/(i*(c*f-l*d)-a*(s*f-l*u)+o*(s*d-c*u)),m=t.getPixels(`x`),h=n.getPixels(`y`);e.translate(m,h),e.transform(p*(c*f-l*d),p*(l*u-s*f),p*(o*d-a*f),p*(i*f-o*u),p*(a*l-o*c),p*(o*s-i*l)),e.translate(-m,-h)}applyToPoint(e){e.applyTransform(this.matrix)}}class T9 extends w9{constructor(e,t,n){super(e,t,n),this.type=`skew`,this.angle=null,this.angle=new b9(e,`angle`,t)}}class S_t extends T9{constructor(e,t,n){super(e,t,n),this.type=`skewX`,this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class C_t extends T9{constructor(e,t,n){super(e,t,n),this.type=`skewY`,this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function w_t(e){return a9(e).trim().replace(/\)([a-zA-Z])/g,`) $1`).replace(/\)(\s?,\s?)/g,`) `).split(/\s(?=[a-z])/)}function T_t(e){var[t,n]=e.split(`(`);return[t.trim(),n.trim().replace(`)`,``)]}class E9{constructor(e,t,n){this.document=e,this.transforms=[],w_t(t).forEach(e=>{if(e!==`none`){var[t,r]=T_t(e),i=E9.transformTypes[t];typeof i<`u`&&this.transforms.push(new i(this.document,r,n))}})}static fromElement(e,t){var n=t.getStyle(`transform`,!1,!0),[r,i=r]=t.getStyle(`transform-origin`,!1,!0).split(),a=[r,i];return n.hasValue()?new E9(e,n.getString(),a):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length-1;n>=0;n--)t[n].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r<n;r++)t[r].applyToPoint(e)}}E9.transformTypes={translate:y_t,rotate:b_t,scale:x_t,matrix:w9,skewX:S_t,skewY:C_t};let D9=class e{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue=``,this.parent=null,this.children=[],!(!t||t.nodeType!==1)){Array.from(t.attributes).forEach(t=>{var n=r_t(t.nodeName);this.attributes[n]=new b9(e,n,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute(`style`).hasValue()&&this.getAttribute(`style`).getString().split(`;`).map(e=>e.trim()).forEach(t=>{if(t){var[n,r]=t.split(`:`).map(e=>e.trim());this.styles[n]=new b9(e,n,r)}});var{definitions:r}=e,i=this.getAttribute(`id`);i.hasValue()&&(r[i.getString()]||(r[i.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(t.nodeType===1)this.addChild(t);else if(n&&(t.nodeType===3||t.nodeType===4)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.attributes[e];if(!n&&t){var r=new b9(this.document,e,``);return this.attributes[e]=r,r}return n||b9.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e===`href`||e.endsWith(`:href`))return this.attributes[e];return b9.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:a}=this;if(a){var o=a.getStyle(e);if(o!=null&&o.hasValue())return o}}if(t){var s=new b9(this.document,e,``);return this.styles[e]=s,s}return r||b9.empty(this.document)}render(e){if(!(this.getStyle(`display`).getString()===`none`||this.getStyle(`visibility`).getString()===`hidden`)){if(e.save(),this.getStyle(`mask`).hasValue()){var t=this.getStyle(`mask`).getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle(`filter`).getValue(`none`)!==`none`){var n=this.getStyle(`filter`).getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=E9.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle(`clip-path`,!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(t){var n=t instanceof e?t:this.document.createElement(t);n.parent=this,e.ignoreChildTypes.includes(n.type)||this.children.push(n)}matchesSelector(e){var{node:t}=this;if(typeof t.matches==`function`)return t.matches(e);var n=t.getAttribute?.call(t,`class`);return!n||n===``?!1:n.split(` `).some(t=>`.${t}`===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith(`@`)&&this.matchesSelector(n)){var r=e[n],i=t[n];if(r)for(var a in r){var o=this.stylesSpecificity[a];typeof o>`u`&&(o=`000`),i>=o&&(this.styles[a]=r[a],this.stylesSpecificity[a]=i)}}}removeStyles(e,t){return t.reduce((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(``),[...t,[n,i]]},[])}restoreStyles(e,t){t.forEach(t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)})}isFirstChild(){return this.parent?.children.indexOf(this)===0}};D9.ignoreChildTypes=[`title`];class E_t extends D9{constructor(e,t,n){super(e,t,n)}}function D_t(e){var t=e.trim();return/^('|")/.test(t)?t:`"${t}"`}function O_t(e){return typeof process>`u`?e:e.trim().split(`,`).map(D_t).join(`,`)}function k_t(e){if(!e)return``;var t=e.trim().toLowerCase();switch(t){case`normal`:case`italic`:case`oblique`:case`inherit`:case`initial`:case`unset`:return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:``}}function A_t(e){if(!e)return``;var t=e.trim().toLowerCase();switch(t){case`normal`:case`bold`:case`lighter`:case`bolder`:case`inherit`:case`initial`:case`unset`:return t;default:return/^[\d.]+$/.test(t)?t:``}}class O9{constructor(e,t,n,r,i,a){var o=a?typeof a==`string`?O9.parse(a):a:{};this.fontFamily=i||o.fontFamily,this.fontSize=r||o.fontSize,this.fontStyle=e||o.fontStyle,this.fontWeight=n||o.fontWeight,this.fontVariant=t||o.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,n=``,r=``,i=``,a=``,o=``,s=a9(e).trim().split(` `),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach(e=>{switch(!0){case!c.fontStyle&&O9.styles.includes(e):e!==`inherit`&&(n=e),c.fontStyle=!0;break;case!c.fontVariant&&O9.variants.includes(e):e!==`inherit`&&(r=e),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&O9.weights.includes(e):e!==`inherit`&&(i=e),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:e!==`inherit`&&([a]=e.split(`/`)),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:e!==`inherit`&&(o+=e)}}),new O9(n,r,i,a,o,t)}toString(){return[k_t(this.fontStyle),this.fontVariant,A_t(this.fontWeight),this.fontSize,O_t(this.fontFamily)].join(` `).trim()}}O9.styles=`normal|italic|oblique|inherit`,O9.variants=`normal|small-caps|inherit`,O9.weights=`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit`;class k9{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<`u`&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<`u`&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:i}=e;this.addPoint(t,n),this.addPoint(r,i)}}sumCubic(e,t,n,r,i){return(1-e)**3*t+3*(1-e)**2*e*n+3*(1-e)*e**2*r+e**3*i}bezierCurveAdd(e,t,n,r,i){var a=6*t-12*n+6*r,o=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(o===0){if(a===0)return;var c=-s/a;0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,r,i)):this.addY(this.sumCubic(c,t,n,r,i)));return}var l=a**2-4*s*o;if(!(l<0)){var u=(-a+Math.sqrt(l))/(2*o);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)));var d=(-a-Math.sqrt(l))/(2*o);0<d&&d<1&&(e?this.addX(this.sumCubic(d,t,n,r,i)):this.addY(this.sumCubic(d,t,n,r,i)))}}addBezierCurve(e,t,n,r,i,a,o,s){this.addPoint(e,t),this.addPoint(o,s),this.bezierCurveAdd(!0,e,n,i,o),this.bezierCurveAdd(!1,t,r,a,s)}addQuadraticCurve(e,t,n,r,i,a){var o=e+.6666666666666666*(n-e),s=t+2/3*(r-t),c=o+1/3*(i-e),l=s+1/3*(a-t);this.addBezierCurve(e,t,o,c,s,l,i,a)}isPointInBox(e,t){var{x1:n,y1:r,x2:i,y2:a}=this;return n<=e&&e<=i&&r<=t&&t<=a}}class A9 extends r9{constructor(e){super(e.replace(/([+\-.])\s+/gm,`$1`).replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,``)),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new x9(0,0),this.control=new x9(0,0),this.current=new x9(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`x`,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`y`,n=new x9(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==r9.CURVE_TO&&e!==r9.SMOOTH_CURVE_TO&&e!==r9.QUAD_TO&&e!==r9.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:i}}=this;return new x9(2*t-r,2*n-i)}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n]){for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}}return e}}class j9 extends D9{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var n=t.getStyle(`opacity`,!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var n=this.getStyle(`fill`),r=this.getStyle(`fill-opacity`),i=this.getStyle(`stroke`),a=this.getStyle(`stroke-opacity`);if(n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,r);o&&(e.fillStyle=o)}else if(n.hasValue()){n.getString()===`currentColor`&&n.setValue(this.getStyle(`color`).getColor());var s=n.getColor();s!==`inherit`&&(e.fillStyle=s===`none`?`rgba(0,0,0,0)`:s)}if(r.hasValue()&&(e.fillStyle=new b9(this.document,`fill`,e.fillStyle).addOpacity(r).getColor()),i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(e.strokeStyle=c)}else if(i.hasValue()){i.getString()===`currentColor`&&i.setValue(this.getStyle(`color`).getColor());var l=i.getString();l!==`inherit`&&(e.strokeStyle=l===`none`?`rgba(0,0,0,0)`:l)}a.hasValue()&&(e.strokeStyle=new b9(this.document,`stroke`,e.strokeStyle).addOpacity(a).getString());var u=this.getStyle(`stroke-width`);u.hasValue()&&(e.lineWidth=u.getPixels()||l9);var d=this.getStyle(`stroke-linecap`),f=this.getStyle(`stroke-linejoin`),p=this.getStyle(`stroke-miterlimit`),m=this.getStyle(`stroke-dasharray`),h=this.getStyle(`stroke-dashoffset`);if(d.hasValue()&&(e.lineCap=d.getString()),f.hasValue()&&(e.lineJoin=f.getString()),p.hasValue()&&(e.miterLimit=p.getNumber()),m.hasValue()&&m.getString()!==`none`){var g=o9(m.getString());typeof e.setLineDash<`u`?e.setLineDash(g):typeof e.webkitLineDash<`u`?e.webkitLineDash=g:typeof e.mozDash<`u`&&!(g.length===1&&g[0]===0)&&(e.mozDash=g);var v=h.getPixels();typeof e.lineDashOffset<`u`?e.lineDashOffset=v:typeof e.webkitLineDashOffset<`u`?e.webkitLineDashOffset=v:typeof e.mozDashOffset<`u`&&(e.mozDashOffset=v)}}if(this.modifiedEmSizeStack=!1,typeof e.font<`u`){var y=this.getStyle(`font`),b=this.getStyle(`font-style`),x=this.getStyle(`font-variant`),S=this.getStyle(`font-weight`),C=this.getStyle(`font-size`),w=this.getStyle(`font-family`),T=new O9(b.getString(),x.getString(),S.getString(),C.hasValue()?`${C.getPixels(!0)}px`:``,w.getString(),O9.parse(y.getString(),e.font));b.setValue(T.fontStyle),x.setValue(T.fontVariant),S.setValue(T.fontWeight),C.setValue(T.fontSize),w.setValue(T.fontFamily),e.font=T.toString(),C.isPixels()&&(this.document.emSize=C.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class M9 extends j9{constructor(e,t,n){super(e,t,n),this.type=`path`,this.pathParser=null,this.pathParser=new A9(this.getAttribute(`d`).getString())}path(e){var{pathParser:t}=this,n=new k9;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case A9.MOVE_TO:this.pathM(e,n);break;case A9.LINE_TO:this.pathL(e,n);break;case A9.HORIZ_LINE_TO:this.pathH(e,n);break;case A9.VERT_LINE_TO:this.pathV(e,n);break;case A9.CURVE_TO:this.pathC(e,n);break;case A9.SMOOTH_CURVE_TO:this.pathS(e,n);break;case A9.QUAD_TO:this.pathQ(e,n);break;case A9.SMOOTH_QUAD_TO:this.pathT(e,n);break;case A9.ARC:this.pathA(e,n);break;case A9.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles();return t.map((e,t)=>[e,n[t]])}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle(`fill-rule`);e.fillStyle!==``&&(t.getString(`inherit`)===`inherit`?e.fill():e.fill(t.getString())),e.strokeStyle!==``&&(this.getAttribute(`vector-effect`).getString()===`non-scaling-stroke`?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle(`marker-start`),a=this.getStyle(`marker-mid`),o=this.getStyle(`marker-end`);if(i.isUrlDefinition()){var s=i.getDefinition(),[c,l]=n[0];s.render(e,c,l)}if(a.isUrlDefinition())for(var u=a.getDefinition(),d=1;d<r;d++){var[f,p]=n[d];u.render(e,f,p)}if(o.isUrlDefinition()){var m=o.getDefinition(),[h,g]=n[r];m.render(e,h,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:r}=M9.pathM(n),{x:i,y:a}=r;n.addMarker(r),t.addPoint(i,a),e&&e.moveTo(i,a)}static pathL(e){var{current:t}=e;return{current:t,point:e.getAsCurrentPoint()}}pathL(e,t){var{pathParser:n}=this,{current:r,point:i}=M9.pathL(n),{x:a,y:o}=i;n.addMarker(i,r),t.addPoint(a,o),e&&e.lineTo(a,o)}static pathH(e){var{current:t,command:n}=e,r=new x9((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}pathH(e,t){var{pathParser:n}=this,{current:r,point:i}=M9.pathH(n),{x:a,y:o}=i;n.addMarker(i,r),t.addPoint(a,o),e&&e.lineTo(a,o)}static pathV(e){var{current:t,command:n}=e,r=new x9(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}pathV(e,t){var{pathParser:n}=this,{current:r,point:i}=M9.pathV(n),{x:a,y:o}=i;n.addMarker(i,r),t.addPoint(a,o),e&&e.lineTo(a,o)}static pathC(e){var{current:t}=e;return{current:t,point:e.getPoint(`x1`,`y1`),controlPoint:e.getAsControlPoint(`x2`,`y2`),currentPoint:e.getAsCurrentPoint()}}pathC(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:a,currentPoint:o}=M9.pathC(n);n.addMarker(o,a,i),t.addBezierCurve(r.x,r.y,i.x,i.y,a.x,a.y,o.x,o.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,o.x,o.y)}static pathS(e){var{current:t}=e;return{current:t,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint(`x2`,`y2`),currentPoint:e.getAsCurrentPoint()}}pathS(e,t){var{pathParser:n}=this,{current:r,point:i,controlPoint:a,currentPoint:o}=M9.pathS(n);n.addMarker(o,a,i),t.addBezierCurve(r.x,r.y,i.x,i.y,a.x,a.y,o.x,o.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,o.x,o.y)}static pathQ(e){var{current:t}=e;return{current:t,controlPoint:e.getAsControlPoint(`x1`,`y1`),currentPoint:e.getAsCurrentPoint()}}pathQ(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:a}=M9.pathQ(n);n.addMarker(a,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();return e.control=n,{current:t,controlPoint:n,currentPoint:e.getAsCurrentPoint()}}pathT(e,t){var{pathParser:n}=this,{current:r,controlPoint:i,currentPoint:a}=M9.pathT(n);n.addMarker(a,i,i),t.addQuadraticCurve(r.x,r.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(e){var{current:t,command:n}=e,{rX:r,rY:i,xRot:a,lArcFlag:o,sweepFlag:s}=n,c=Math.PI/180*a,l=e.getAsCurrentPoint(),u=new x9(Math.cos(c)*(t.x-l.x)/2+Math.sin(c)*(t.y-l.y)/2,-Math.sin(c)*(t.x-l.x)/2+Math.cos(c)*(t.y-l.y)/2),d=u.x**2/r**2+u.y**2/i**2;d>1&&(r*=Math.sqrt(d),i*=Math.sqrt(d));var f=(o===s?-1:1)*Math.sqrt((r**2*i**2-r**2*u.y**2-i**2*u.x**2)/(r**2*u.y**2+i**2*u.x**2));isNaN(f)&&(f=0);var p=new x9(f*r*u.y/i,f*-i*u.x/r),m=new x9((t.x+l.x)/2+Math.cos(c)*p.x-Math.sin(c)*p.y,(t.y+l.y)/2+Math.sin(c)*p.x+Math.cos(c)*p.y),h=f9([1,0],[(u.x-p.x)/r,(u.y-p.y)/i]),g=[(u.x-p.x)/r,(u.y-p.y)/i],v=[(-u.x-p.x)/r,(-u.y-p.y)/i],y=f9(g,v);return d9(g,v)<=-1&&(y=Math.PI),d9(g,v)>=1&&(y=0),{currentPoint:l,rX:r,rY:i,sweepFlag:s,xAxisRotation:c,centp:m,a1:h,ad:y}}pathA(e,t){var{pathParser:n}=this,{currentPoint:r,rX:i,rY:a,sweepFlag:o,xAxisRotation:s,centp:c,a1:l,ad:u}=M9.pathA(n),d=1-o?1:-1,f=l+u/2*d,p=new x9(c.x+i*Math.cos(f),c.y+a*Math.sin(f));if(n.addMarkerAngle(p,f-d*Math.PI/2),n.addMarkerAngle(r,f-d*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(l)&&!isNaN(u)){var m=i>a?i:a,h=i>a?1:i/a,g=i>a?a/i:1;e.translate(c.x,c.y),e.rotate(s),e.scale(h,g),e.arc(0,0,m,l,l+u,!!(1-o)),e.scale(1/h,1/g),e.rotate(-s),e.translate(-c.x,-c.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){M9.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class N9 extends M9{constructor(e,t,n){super(e,t,n),this.type=`glyph`,this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber(),this.unicode=this.getAttribute(`unicode`).getString(),this.arabicForm=this.getAttribute(`arabic-form`).getString()}}class P9 extends j9{constructor(e,t,n){super(e,t,new.target===P9?!0:n),this.type=`text`,this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var n=this.getStyle(`dominant-baseline`).getTextBaseline()||this.getStyle(`alignment-baseline`).getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=1/0,this.maxX=-1/0}getBoundingBox(e){if(this.type!==`text`)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,r)=>{var i=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:e,parent:t}=this,n=O9.parse(e.ctx.font).fontSize;return t.getStyle(`font-size`).getNumber(n)}getTElementBoundingBox(e){var t=this.getFontSize();return new k9(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],i=null;if(e.isArabic){var a=t.length,o=t[n-1],s=t[n+1],c=`isolated`;if((n===0||o===` `)&&n<a-1&&s!==` `&&(c=`terminal`),n>0&&o!==` `&&n<a-1&&s!==` `&&(c=`medial`),n>0&&o!==` `&&(n===a-1||s===` `)&&(c=`initial`),typeof e.glyphs[r]<`u`){var l=e.glyphs[r];i=l instanceof N9?l:l[c]}}else i=e.glyphs[r];return i||=e.missingGlyph,i}getText(){return``}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,a=a9(t.textContent||``);return r===0&&(a=e_t(a)),r===i&&(a=t_t(a)),a}renderChildren(e){if(this.type!==`text`){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,n)=>{this.renderChild(e,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),i=n.getStyle(`font-family`).getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,o=O9.parse(t.ctx.font),s=n.getStyle(`font-size`).getNumber(o.fontSize),c=n.getStyle(`font-style`).getString(o.fontStyle),l=s/a,u=i.isRTL?r.split(``).reverse().join(``):r,d=o9(n.getAttribute(`dx`).getString()),f=u.length,p=0;p<f;p++){var m=this.getGlyph(i,u,p);e.translate(this.x,this.y),e.scale(l,-l);var h=e.lineWidth;e.lineWidth=e.lineWidth*a/s,c===`italic`&&e.transform(1,0,.4,1,0,0),m.render(e),c===`italic`&&e.transform(1,0,-.4,1,0,0),e.lineWidth=h,e.scale(1/l,-1/l),e.translate(-this.x,-this.y),this.x+=s*(m.horizAdvX||i.horizAdvX)/a,typeof d[p]<`u`&&!isNaN(d[p])&&(this.x+=d[p])}return}var{x:g,y:v}=this;e.fillStyle&&e.fillText(r,g,v),e.strokeStyle&&e.strokeText(r,g,v)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle(`text-anchor`).getString(`start`),n=!1,r=0;r=t===`start`&&!n||t===`end`&&n?e.x-this.minX:t===`end`&&!n||t===`start`&&n?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=r;this.minX=1/0,this.maxX=-1/0,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,r)}):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var i=n.children[r];if(typeof i.measureText!=`function`)return i;e.save(),i.setContext(e,!0);var a=i.getAttribute(`x`),o=i.getAttribute(`y`),s=i.getAttribute(`dx`),c=i.getAttribute(`dy`),l=i.getStyle(`font-family`).getDefinition(),u=!!l&&l.isRTL;r===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute(`x`)),o.hasValue()||o.setValue(i.getInheritedAttribute(`y`)),s.hasValue()||s.setValue(i.getInheritedAttribute(`dx`)),c.hasValue()||c.setValue(i.getInheritedAttribute(`dy`)));var d=i.measureText(e);return u&&(t.x-=d),a.hasValue()?(t.applyAnchoring(),i.x=a.getPixels(`x`),s.hasValue()&&(i.x+=s.getPixels(`x`))):(s.hasValue()&&(t.x+=s.getPixels(`x`)),i.x=t.x),t.x=i.x,u||(t.x+=d),o.hasValue()?(i.y=o.getPixels(`y`),c.hasValue()&&(i.y+=c.getPixels(`y`))):(c.hasValue()&&(t.y+=c.getPixels(`y`)),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+d),t.maxX=Math.max(t.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,r){var i=n.children[r];if(typeof i.getBoundingBox!=`function`)return null;var a=i.getBoundingBox(e);return a?(i.children.forEach((n,r)=>{var o=t.getChildBoundingBox(e,t,i,r);a.addBoundingBox(o)}),a):null}renderChild(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach((n,r)=>{t.renderChild(e,t,i,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle(`font-family`).getDefinition();if(r){for(var i=this.getFontSize(),a=r.isRTL?t.split(``).reverse().join(``):t,o=o9(n.getAttribute(`dx`).getString()),s=a.length,c=0,l=0;l<s;l++){var u=this.getGlyph(r,a,l);c+=(u.horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,typeof o[l]<`u`&&!isNaN(o[l])&&(c+=o[l])}return c}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:d}=e.measureText(t);return this.clearContext(e),e.restore(),d}getInheritedAttribute(e){for(var t=this;t instanceof P9&&t.isFirstChild();){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue(`0`);t=t.parent}return null}}class F9 extends P9{constructor(e,t,n){super(e,t,new.target===F9?!0:n),this.type=`tspan`,this.text=this.children.length>0?``:this.getTextFromNode()}getText(){return this.text}}class j_t extends F9{constructor(){super(...arguments),this.type=`textNode`}}let I9=class extends j9{constructor(){super(...arguments),this.type=`svg`,this.root=!1}setContext(e){var{document:t}=this,{screen:n,window:r}=t,i=e.canvas;if(n.setDefaults(e),i.style&&typeof e.font<`u`&&r&&typeof r.getComputedStyle<`u`){e.font=r.getComputedStyle(i).getPropertyValue(`font`);var a=new b9(t,`fontSize`,O9.parse(e.font).fontSize);a.hasValue()&&(t.rootEmSize=a.getPixels(`y`),t.emSize=t.rootEmSize)}this.getAttribute(`x`).hasValue()||this.getAttribute(`x`,!0).setValue(0),this.getAttribute(`y`).hasValue()||this.getAttribute(`y`,!0).setValue(0);var{width:o,height:s}=n.viewPort;this.getStyle(`width`).hasValue()||this.getStyle(`width`,!0).setValue(`100%`),this.getStyle(`height`).hasValue()||this.getStyle(`height`,!0).setValue(`100%`),this.getStyle(`color`).hasValue()||this.getStyle(`color`,!0).setValue(`black`);var c=this.getAttribute(`refX`),l=this.getAttribute(`refY`),u=this.getAttribute(`viewBox`),d=u.hasValue()?o9(u.getString()):null,f=!this.root&&this.getStyle(`overflow`).getValue(`hidden`)!==`visible`,p=0,m=0,h=0,g=0;d&&(p=d[0],m=d[1]),this.root||(o=this.getStyle(`width`).getPixels(`x`),s=this.getStyle(`height`).getPixels(`y`),this.type===`marker`&&(h=p,g=m,p=0,m=0)),n.viewPort.setCurrent(o,s),this.node&&(!this.parent||this.node.parentNode?.nodeName===`foreignObject`)&&this.getStyle(`transform`,!1,!0).hasValue()&&!this.getStyle(`transform-origin`,!1,!0).hasValue()&&this.getStyle(`transform-origin`,!0,!0).setValue(`50% 50%`),super.setContext(e),e.translate(this.getAttribute(`x`).getPixels(`x`),this.getAttribute(`y`).getPixels(`y`)),d&&(o=d[2],s=d[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:s,minX:p,minY:m,refX:c.getValue(),refY:l.getValue(),clip:f,clipX:h,clipY:g}),d&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,s))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.getAttribute(`width`,!0),i=this.getAttribute(`height`,!0),a=this.getAttribute(`viewBox`),o=this.getAttribute(`style`),s=r.getNumber(0),c=i.getNumber(0);if(n)if(typeof n==`string`)this.getAttribute(`preserveAspectRatio`,!0).setValue(n);else{var l=this.getAttribute(`preserveAspectRatio`);l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,`$1`))}if(r.setValue(e),i.setValue(t),a.hasValue()||a.setValue(`0 0 ${s||e} ${c||t}`),o.hasValue()){var u=this.getStyle(`width`),d=this.getStyle(`height`);u.hasValue()&&u.setValue(`${e}px`),d.hasValue()&&d.setValue(`${t}px`)}}};class L9 extends M9{constructor(){super(...arguments),this.type=`rect`}path(e){var t=this.getAttribute(`x`).getPixels(`x`),n=this.getAttribute(`y`).getPixels(`y`),r=this.getStyle(`width`,!1,!0).getPixels(`x`),i=this.getStyle(`height`,!1,!0).getPixels(`y`),a=this.getAttribute(`rx`),o=this.getAttribute(`ry`),s=a.getPixels(`x`),c=o.getPixels(`y`);if(a.hasValue()&&!o.hasValue()&&(c=s),o.hasValue()&&!a.hasValue()&&(s=c),s=Math.min(s,r/2),c=Math.min(c,i/2),e){var l=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+l*s,n,t+r,n+c-l*c,t+r,n+c),e.lineTo(t+r,n+i-c),e.bezierCurveTo(t+r,n+i-c+l*c,t+r-s+l*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-l*s,n+i,t,n+i-c+l*c,t,n+i-c),e.lineTo(t,n+c),e.bezierCurveTo(t,n+c-l*c,t+s-l*s,n,t+s,n),e.closePath())}return new k9(t,n,t+r,n+i)}getMarkers(){return null}}class M_t extends M9{constructor(){super(...arguments),this.type=`circle`}path(e){var t=this.getAttribute(`cx`).getPixels(`x`),n=this.getAttribute(`cy`).getPixels(`y`),r=this.getAttribute(`r`).getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,Math.PI*2,!1),e.closePath()),new k9(t-r,n-r,t+r,n+r)}getMarkers(){return null}}class N_t extends M9{constructor(){super(...arguments),this.type=`ellipse`}path(e){var t=4*((Math.sqrt(2)-1)/3),n=this.getAttribute(`rx`).getPixels(`x`),r=this.getAttribute(`ry`).getPixels(`y`),i=this.getAttribute(`cx`).getPixels(`x`),a=this.getAttribute(`cy`).getPixels(`y`);return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,a),e.bezierCurveTo(i+n,a+t*r,i+t*n,a+r,i,a+r),e.bezierCurveTo(i-t*n,a+r,i-n,a+t*r,i-n,a),e.bezierCurveTo(i-n,a-t*r,i-t*n,a-r,i,a-r),e.bezierCurveTo(i+t*n,a-r,i+n,a-t*r,i+n,a),e.closePath()),new k9(i-n,a-r,i+n,a+r)}getMarkers(){return null}}class P_t extends M9{constructor(){super(...arguments),this.type=`line`}getPoints(){return[new x9(this.getAttribute(`x1`).getPixels(`x`),this.getAttribute(`y1`).getPixels(`y`)),new x9(this.getAttribute(`x2`).getPixels(`x`),this.getAttribute(`y2`).getPixels(`y`))]}path(e){var[{x:t,y:n},{x:r,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,i)),new k9(t,n,r,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class R9 extends M9{constructor(e,t,n){super(e,t,n),this.type=`polyline`,this.points=[],this.points=x9.parsePath(this.getAttribute(`points`).getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,i=new k9(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach(t=>{var{x:n,y:r}=t;i.addPoint(n,r),e&&e.lineTo(n,r)}),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((r,i)=>{i!==t&&n.push([r,r.angleTo(e[i+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class F_t extends R9{constructor(){super(...arguments),this.type=`polygon`}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}}class I_t extends D9{constructor(){super(...arguments),this.type=`pattern`}createPattern(e,t,n){var r=this.getStyle(`width`).getPixels(`x`,!0),i=this.getStyle(`height`).getPixels(`y`,!0),a=new I9(this.document,null);a.attributes.viewBox=new b9(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),a.attributes.width=new b9(this.document,`width`,`${r}px`),a.attributes.height=new b9(this.document,`height`,`${i}px`),a.attributes.transform=new b9(this.document,`transform`,this.getAttribute(`patternTransform`).getValue()),a.children=this.children;var o=this.document.createCanvas(r,i),s=o.getContext(`2d`),c=this.getAttribute(`x`),l=this.getAttribute(`y`);c.hasValue()&&l.hasValue()&&s.translate(c.getPixels(`x`,!0),l.getPixels(`y`,!0)),n.hasValue()?this.styles[`fill-opacity`]=n:Reflect.deleteProperty(this.styles,`fill-opacity`);for(var u=-1;u<=1;u++)for(var d=-1;d<=1;d++)s.save(),a.attributes.x=new b9(this.document,`x`,u*o.width),a.attributes.y=new b9(this.document,`y`,d*o.height),a.render(s),s.restore();return e.createPattern(o,`repeat`)}}class L_t extends D9{constructor(){super(...arguments),this.type=`marker`}render(e,t,n){if(t){var{x:r,y:i}=t,a=this.getAttribute(`orient`).getString(`auto`),o=this.getAttribute(`markerUnits`).getString(`strokeWidth`);e.translate(r,i),a===`auto`&&e.rotate(n),o===`strokeWidth`&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new I9(this.document,null);s.type=this.type,s.attributes.viewBox=new b9(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),s.attributes.refX=new b9(this.document,`refX`,this.getAttribute(`refX`).getValue()),s.attributes.refY=new b9(this.document,`refY`,this.getAttribute(`refY`).getValue()),s.attributes.width=new b9(this.document,`width`,this.getAttribute(`markerWidth`).getValue()),s.attributes.height=new b9(this.document,`height`,this.getAttribute(`markerHeight`).getValue()),s.attributes.overflow=new b9(this.document,`overflow`,this.getAttribute(`overflow`).getValue()),s.attributes.fill=new b9(this.document,`fill`,this.getAttribute(`fill`).getColor(`black`)),s.attributes.stroke=new b9(this.document,`stroke`,this.getAttribute(`stroke`).getValue(`none`)),s.children=this.children,s.render(e),e.restore(),o===`strokeWidth`&&e.scale(1/e.lineWidth,1/e.lineWidth),a===`auto`&&e.rotate(-n),e.translate(-r,-i)}}}class R_t extends D9{constructor(){super(...arguments),this.type=`defs`}render(){}}class z9 extends j9{constructor(){super(...arguments),this.type=`g`}getBoundingBox(e){var t=new k9;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class B9 extends D9{constructor(e,t,n){super(e,t,n),this.attributesToInherit=[`gradientUnits`],this.stops=[];var{stops:r,children:i}=this;i.forEach(e=>{e.type===`stop`&&r.push(e)})}getGradientUnits(){return this.getAttribute(`gradientUnits`).getString(`objectBoundingBox`)}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,a=this.getGradient(e,t);if(!a)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(e=>{a.addColorStop(e.offset,this.addParentOpacity(n,e.color))}),this.getAttribute(`gradientTransform`).hasValue()){var{document:o}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:c}=o.screen,[l]=c.viewPorts,u=new L9(o,null);u.attributes.x=new b9(o,`x`,-s/3),u.attributes.y=new b9(o,`y`,-s/3),u.attributes.width=new b9(o,`width`,s),u.attributes.height=new b9(o,`height`,s);var d=new z9(o,null);d.attributes.transform=new b9(o,`transform`,this.getAttribute(`gradientTransform`).getValue()),d.children=[u];var f=new I9(o,null);f.attributes.x=new b9(o,`x`,0),f.attributes.y=new b9(o,`y`,0),f.attributes.width=new b9(o,`width`,l.width),f.attributes.height=new b9(o,`height`,l.height),f.children=[d];var p=o.createCanvas(l.width,l.height),m=p.getContext(`2d`);return m.fillStyle=a,f.render(m),m.createPattern(p,`no-repeat`)}return a}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){return e.hasValue()?new b9(this.document,`color`,t).addOpacity(e).getColor():t}}class z_t extends B9{constructor(e,t,n){super(e,t,n),this.type=`linearGradient`,this.attributesToInherit.push(`x1`,`y1`,`x2`,`y2`)}getGradient(e,t){var n=this.getGradientUnits()===`objectBoundingBox`,r=n?t.getBoundingBox(e):null;if(n&&!r)return null;!this.getAttribute(`x1`).hasValue()&&!this.getAttribute(`y1`).hasValue()&&!this.getAttribute(`x2`).hasValue()&&!this.getAttribute(`y2`).hasValue()&&(this.getAttribute(`x1`,!0).setValue(0),this.getAttribute(`y1`,!0).setValue(0),this.getAttribute(`x2`,!0).setValue(1),this.getAttribute(`y2`,!0).setValue(0));var i=n?r.x+r.width*this.getAttribute(`x1`).getNumber():this.getAttribute(`x1`).getPixels(`x`),a=n?r.y+r.height*this.getAttribute(`y1`).getNumber():this.getAttribute(`y1`).getPixels(`y`),o=n?r.x+r.width*this.getAttribute(`x2`).getNumber():this.getAttribute(`x2`).getPixels(`x`),s=n?r.y+r.height*this.getAttribute(`y2`).getNumber():this.getAttribute(`y2`).getPixels(`y`);return i===o&&a===s?null:e.createLinearGradient(i,a,o,s)}}class B_t extends B9{constructor(e,t,n){super(e,t,n),this.type=`radialGradient`,this.attributesToInherit.push(`cx`,`cy`,`r`,`fx`,`fy`,`fr`)}getGradient(e,t){var n=this.getGradientUnits()===`objectBoundingBox`,r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute(`cx`).hasValue()||this.getAttribute(`cx`,!0).setValue(`50%`),this.getAttribute(`cy`).hasValue()||this.getAttribute(`cy`,!0).setValue(`50%`),this.getAttribute(`r`).hasValue()||this.getAttribute(`r`,!0).setValue(`50%`);var i=n?r.x+r.width*this.getAttribute(`cx`).getNumber():this.getAttribute(`cx`).getPixels(`x`),a=n?r.y+r.height*this.getAttribute(`cy`).getNumber():this.getAttribute(`cy`).getPixels(`y`),o=i,s=a;this.getAttribute(`fx`).hasValue()&&(o=n?r.x+r.width*this.getAttribute(`fx`).getNumber():this.getAttribute(`fx`).getPixels(`x`)),this.getAttribute(`fy`).hasValue()&&(s=n?r.y+r.height*this.getAttribute(`fy`).getNumber():this.getAttribute(`fy`).getPixels(`y`));var c=n?(r.width+r.height)/2*this.getAttribute(`r`).getNumber():this.getAttribute(`r`).getPixels(),l=this.getAttribute(`fr`).getPixels();return e.createRadialGradient(o,s,l,i,a,c)}}class V_t extends D9{constructor(e,t,n){super(e,t,n),this.type=`stop`;var r=Math.max(0,Math.min(1,this.getAttribute(`offset`).getNumber())),i=this.getStyle(`stop-opacity`),a=this.getStyle(`stop-color`,!0);a.getString()===``&&a.setValue(`#000`),i.hasValue()&&(a=a.addOpacity(i)),this.offset=r,this.color=a.getColor()}}class V9 extends D9{constructor(e,t,n){super(e,t,n),this.type=`animate`,this.duration=0,this.initialValue=null,this.initialUnits=``,this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute(`begin`).getMilliseconds(),this.maxDuration=this.begin+this.getAttribute(`dur`).getMilliseconds(),this.from=this.getAttribute(`from`),this.to=this.getAttribute(`to`),this.values=new b9(e,`values`,null);var r=this.getAttribute(`values`);r.hasValue()&&this.values.setValue(r.getString().split(`;`))}getProperty(){var e=this.getAttribute(`attributeType`).getString(),t=this.getAttribute(`attributeName`).getString();return e===`CSS`?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*t;return e===`%`&&(i*=100),`${i}${e}`}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute(`fill`).getString(`remove`);if(this.getAttribute(`repeatCount`).getString()===`indefinite`||this.getAttribute(`repeatDur`).getString()===`indefinite`)this.duration=0;else if(r===`freeze`&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if(r===`remove`&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),o=this.getAttribute(`type`);o.hasValue()&&(a=`${o.getString()}(${a})`),n.setValue(a),i=!0}return i}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=n.progress*(t.getValue().length-1),i=Math.floor(r),a=Math.ceil(r);n.from=new b9(e,`from`,parseFloat(t.getValue()[i])),n.to=new b9(e,`to`,parseFloat(t.getValue()[a])),n.progress=(r-i)/(a-i)}else n.from=this.from,n.to=this.to;return n}}class H_t extends V9{constructor(){super(...arguments),this.type=`animateColor`}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=new J7(t.getColor()),i=new J7(n.getColor());if(r.ok&&i.ok){var a=r.r+(i.r-r.r)*e,o=r.g+(i.g-r.g)*e,s=r.b+(i.b-r.b)*e;return`rgb(${Math.floor(a)}, ${Math.floor(o)}, ${Math.floor(s)})`}return this.getAttribute(`from`).getColor()}}class U_t extends V9{constructor(){super(...arguments),this.type=`animateTransform`}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),r=o9(t.getString()),i=o9(n.getString());return r.map((t,n)=>t+(i[n]-t)*e).join(` `)}}class W_t extends D9{constructor(e,t,n){super(e,t,n),this.type=`font`,this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber();var{definitions:r}=e,{children:i}=this;for(var a of i)switch(a.type){case`font-face`:this.fontFace=a;var o=a.getStyle(`font-family`);o.hasValue()&&(r[o.getString()]=this);break;case`missing-glyph`:this.missingGlyph=a;break;case`glyph`:var s=a;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[s.unicode]>`u`&&(this.glyphs[s.unicode]=Object.create(null)),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s;break}}render(){}}class G_t extends D9{constructor(e,t,n){super(e,t,n),this.type=`font-face`,this.ascent=this.getAttribute(`ascent`).getNumber(),this.descent=this.getAttribute(`descent`).getNumber(),this.unitsPerEm=this.getAttribute(`units-per-em`).getNumber()}}class K_t extends M9{constructor(){super(...arguments),this.type=`missing-glyph`,this.horizAdvX=0}}class q_t extends P9{constructor(){super(...arguments),this.type=`tref`}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return``}}class J_t extends P9{constructor(e,t,n){super(e,t,n),this.type=`a`;var{childNodes:r}=t,i=r[0],a=r.length>0&&Array.from(r).every(e=>e.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):``}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:i}=t.screen,a=new b9(t,`fontSize`,O9.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new k9(n,r-a.getPixels(`y`),n+this.measureText(e),r))}else if(this.children.length>0){var o=new z9(this.document,null);o.children=this.children,o.parent=this,o.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor=`pointer`}}function Y_t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Y_t(Object(n),!0).forEach(function(t){mR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y_t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class X_t extends P9{constructor(e,t,n){super(e,t,n),this.type=`textPath`,this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([[``,0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(t=>{var{type:n,points:r}=t;switch(n){case A9.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case A9.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case A9.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case A9.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case A9.ARC:var[i,a,o,s,c,l,u,d]=r,f=o>s?o:s,p=o>s?1:o/s,m=o>s?s/o:1;e&&(e.translate(i,a),e.rotate(u),e.scale(p,m),e.arc(0,0,f,c,c+l,!!(1-d)),e.scale(1/p,1/m),e.rotate(-u),e.translate(-i,-a));break;case A9.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle(`text-decoration`).getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=e.fillStyle;t===`underline`&&e.beginPath(),r.forEach((r,i)=>{var{p0:a,p1:o,rotation:s,text:c}=r;e.save(),e.translate(a.x,a.y),e.rotate(s),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),t===`underline`&&(i===0&&e.moveTo(a.x,a.y+n/8),e.lineTo(o.x,o.y+n/5))}),t===`underline`&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,i,a,o,s,c){var l=a,u=this.measureText(e,s);s===` `&&t===`justify`&&n<r&&(u+=(r-n)/i),c>-1&&(l+=this.getLetterSpacingAt(c));var d=this.textHeight/20,f=this.getEquidistantPointOnPath(l,d,0),p=this.getEquidistantPointOnPath(l+u,d,0),m={p0:f,p1:p},h=f&&p?Math.atan2(p.y-f.y,p.x-f.x):0;if(o){var g=Math.cos(Math.PI/2+h)*o,v=Math.cos(-h)*o;m.p0=H9(H9({},f),{},{x:f.x+g,y:f.y+v}),m.p1=H9(H9({},p),{},{x:p.x+g,y:p.y+v})}return l+=u,{offset:l,segment:m,rotation:h}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(``),r=t.split(` `).length-1,i=this.parent.getAttribute(`dx`).split().map(e=>e.getPixels(`x`)),a=this.parent.getAttribute(`dy`).getPixels(`y`),o=this.parent.getStyle(`text-anchor`).getString(`start`),s=this.getStyle(`letter-spacing`),c=this.parent.getStyle(`letter-spacing`),l=0;!s.hasValue()||s.getValue()===`inherit`?l=c.getPixels():s.hasValue()&&s.getValue()!==`initial`&&s.getValue()!==`unset`&&(l=s.getPixels());var u=[],d=t.length;this.letterSpacingCache=u;for(var f=0;f<d;f++)u.push(typeof i[f]<`u`?i[f]:l);var p=u.reduce((e,t,n)=>n===0?0:e+t||0,0),m=this.measureText(e),h=Math.max(m+p,0);this.textWidth=m,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),v=this.getStyle(`startOffset`).getNumber(0)*g,y=0;(o===`middle`||o===`center`)&&(y=-h/2),(o===`end`||o===`right`)&&(y=-h),y+=v,n.forEach((t,i)=>{var{offset:s,segment:c,rotation:l}=this.findSegmentToFitChar(e,o,h,g,r,y,a,t,i);y=s,!(!c.p0||!c.p1)&&this.glyphInfo.push({text:n[i],p0:c.p0,p1:c.p1,rotation:l})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:r}=n,i=r?r.x:0,a=r?r.y:0,o=n.next(),s=o.type,c=[];switch(o.type){case A9.MOVE_TO:this.pathM(n,c);break;case A9.LINE_TO:s=this.pathL(n,c);break;case A9.HORIZ_LINE_TO:s=this.pathH(n,c);break;case A9.VERT_LINE_TO:s=this.pathV(n,c);break;case A9.CURVE_TO:this.pathC(n,c);break;case A9.SMOOTH_CURVE_TO:s=this.pathS(n,c);break;case A9.QUAD_TO:this.pathQ(n,c);break;case A9.SMOOTH_QUAD_TO:s=this.pathT(n,c);break;case A9.ARC:c=this.pathA(n);break;case A9.CLOSE_PATH:M9.pathZ(n);break}o.type===A9.CLOSE_PATH?t.push({type:A9.CLOSE_PATH,points:[],pathLength:0}):t.push({type:s,points:c,start:{x:i,y:a},pathLength:this.calcLength(i,a,s,c)})}return t}pathM(e,t){var{x:n,y:r}=M9.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=M9.pathL(e).point;return t.push(n,r),A9.LINE_TO}pathH(e,t){var{x:n,y:r}=M9.pathH(e).point;return t.push(n,r),A9.LINE_TO}pathV(e,t){var{x:n,y:r}=M9.pathV(e).point;return t.push(n,r),A9.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:i}=M9.pathC(e);t.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:i}=M9.pathS(e);return t.push(n.x,n.y,r.x,r.y,i.x,i.y),A9.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=M9.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=M9.pathT(e);return t.push(n.x,n.y,r.x,r.y),A9.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:i,centp:a,a1:o,ad:s}=M9.pathA(e);return r===0&&s>0&&(s-=2*Math.PI),r===1&&s<0&&(s+=2*Math.PI),[a.x,a.y,t,n,o,s,i,r]}calcLength(e,t,n,r){var i=0,a=null,o=null,s=0;switch(n){case A9.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case A9.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case A9.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case A9.ARC:i=0;var c=r[4],l=r[5],u=r[4]+l,d=Math.PI/180;if(Math.abs(c-u)<d&&(d=Math.abs(c-u)),a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),l<0)for(s=c-d;s>u;s-=d)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=c+d;s<u;s+=d)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),i}return 0}getPointOnLine(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,s=(i-n)/(r-t+l9),c=Math.sqrt(e*e/(1+s*s));r<t&&(c*=-1);var l=s*c,u=null;if(r===t)u={x:a,y:o+l};else if((o-n)/(a-t+l9)===s)u={x:a+c,y:o+l};else{var d=0,f=0,p=this.getLineLength(t,n,r,i);if(p<l9)return null;var m=(a-t)*(r-t)+(o-n)*(i-n);m/=p*p,d=t+m*(r-t),f=n+m*(i-n);var h=this.getLineLength(a,o,d,f),g=Math.sqrt(e*e-h*h);c=Math.sqrt(g*g/(1+s*s)),r<t&&(c*=-1),l=s*c,u={x:d+c,y:f+l}}return u}getPointOnPath(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||n+a.pathLength+5e-5<e)){n+=a.pathLength;continue}var o=e-n,s=0;switch(a.type){case A9.LINE_TO:r=this.getPointOnLine(o,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case A9.ARC:var c=a.points[4],l=a.points[5],u=a.points[4]+l;if(s=c+o/a.pathLength*l,l<0&&s<u||l>=0&&s>u)break;r=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case A9.CURVE_TO:s=o/a.pathLength,s>1&&(s=1),r=this.getPointOnCubicBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case A9.QUAD_TO:s=o/a.pathLength,s>1&&(s=1),r=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(r)return r;break}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,i,a,o,s,c){return{x:s*p9(e)+a*m9(e)+r*h9(e)+t*g9(e),y:c*p9(e)+o*m9(e)+i*h9(e)+n*g9(e)}}getPointOnQuadraticBezier(e,t,n,r,i,a,o){return{x:a*_9(e)+r*v9(e)+t*y9(e),y:o*_9(e)+i*v9(e)+n*y9(e)}}getPointOnEllipticalArc(e,t,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*o-c.y*s),y:t+(c.x*s+c.y*o)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var a=0,o=0;o<=n;o+=r){var s=this.getPointOnPath(o),c=this.getPointOnPath(o+r);!s||!c||(a+=this.getLineLength(s.x,s.y,c.x,c.y),a>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var Z_t=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Q_t extends j9{constructor(e,t,n){super(e,t,n),this.type=`image`,this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(`.svg`)||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(e){var t=this;return i7(function*(){try{t.image=yield t.document.createImage(e)}catch(t){console.error(`Error while loading image "${e}":`,t)}t.loaded=!0})()}loadSvg(e){var t=this;return i7(function*(){var n=Z_t.exec(e);if(n){var r=n[5];n[4]===`base64`?t.image=atob(r):t.image=decodeURIComponent(r)}else try{t.image=yield(yield t.document.fetch(e)).text()}catch(t){console.error(`Error while loading image "${e}":`,t)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:r}=this,i=this.getAttribute(`x`).getPixels(`x`),a=this.getAttribute(`y`).getPixels(`y`),o=this.getStyle(`width`).getPixels(`x`),s=this.getStyle(`height`).getPixels(`y`);if(!(!r||!n||!o||!s)){if(e.save(),e.translate(i,a),this.isSvg){var c=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s});c.document.documentElement.parent=this,c.render()}else{var l=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:o,desiredWidth:l.width,height:s,desiredHeight:l.height}),this.loaded&&(typeof l.complete>`u`||l.complete)&&e.drawImage(l,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute(`x`).getPixels(`x`),t=this.getAttribute(`y`).getPixels(`y`),n=this.getStyle(`width`).getPixels(`x`),r=this.getStyle(`height`).getPixels(`y`);return new k9(e,t,e+n,t+r)}}class $_t extends j9{constructor(){super(...arguments),this.type=`symbol`}render(e){}}class evt{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return i7(function*(){try{var{document:r}=n,i=(yield r.canvg.parser.load(t)).getElementsByTagName(`font`);Array.from(i).forEach(t=>{var n=r.createElement(t);r.definitions[e]=n})}catch(e){console.error(`Error while loading font "${t}":`,e)}n.loaded=!0})()}}class U9 extends D9{constructor(e,t,n){super(e,t,n),this.type=`style`,a9(Array.from(t.childNodes).map(e=>e.textContent).join(``).replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,``).replace(/@import.*;/g,``)).split(`}`).forEach(t=>{var n=t.trim();if(n){var r=n.split(`{`),i=r[0].split(`,`),a=r[1].split(`;`);i.forEach(t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(a.forEach(t=>{var n=t.indexOf(`:`),i=t.substr(0,n).trim(),a=t.substr(n+1,t.length-n).trim();i&&a&&(r[i]=new b9(e,i,a))}),e.styles[n]=r,e.stylesSpecificity[n]=f_t(n),n===`@font-face`){var i=r[`font-family`].getString().replace(/"|'/g,``);r.src.getString().split(`,`).forEach(t=>{if(t.indexOf(`format("svg")`)>0){var n=s9(t);n&&new evt(e).load(i,n)}})}}})}})}}U9.parseExternalUrl=s9;class tvt extends j9{constructor(){super(...arguments),this.type=`use`}setContext(e){super.setContext(e);var t=this.getAttribute(`x`),n=this.getAttribute(`y`);t.hasValue()&&e.translate(t.getPixels(`x`),0),n.hasValue()&&e.translate(0,n.getPixels(`y`))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if(n.type===`symbol`&&(r=new I9(t,null),r.attributes.viewBox=new b9(t,`viewBox`,n.getAttribute(`viewBox`).getString()),r.attributes.preserveAspectRatio=new b9(t,`preserveAspectRatio`,n.getAttribute(`preserveAspectRatio`).getString()),r.attributes.overflow=new b9(t,`overflow`,n.getAttribute(`overflow`).getString()),r.children=n.children,n.styles.opacity=new b9(t,`opacity`,this.calculateOpacity())),r.type===`svg`){var i=this.getStyle(`width`,!1,!0),a=this.getStyle(`height`,!1,!0);i.hasValue()&&(r.attributes.width=new b9(t,`width`,i.getString())),a.hasValue()&&(r.attributes.height=new b9(t,`height`,a.getString()))}var o=r.parent;r.parent=this,r.render(e),r.parent=o}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return E9.fromElement(e,t)}get element(){return this.cachedElement||=this.getHrefAttribute().getDefinition(),this.cachedElement}}function W9(e,t,n,r,i,a){return e[n*r*4+t*4+a]}function G9(e,t,n,r,i,a,o){e[n*r*4+t*4+a]=o}function K9(e,t,n){return e[t]*n}function q9(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}class J9 extends D9{constructor(e,t,n){super(e,t,n),this.type=`feColorMatrix`;var r=o9(this.getAttribute(`values`).getString());switch(this.getAttribute(`type`).getString(`matrix`)){case`saturate`:var i=r[0];r=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case`hueRotate`:var a=r[0]*Math.PI/180;r=[q9(a,.213,.787,-.213),q9(a,.715,-.715,-.715),q9(a,.072,-.072,.928),0,0,q9(a,.213,-.213,.143),q9(a,.715,.285,.14),q9(a,.072,-.072,-.283),0,0,q9(a,.213,-.213,-.787),q9(a,.715,-.715,.715),q9(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case`luminanceToAlpha`:r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=r,this.includeOpacity=this.getAttribute(`includeOpacity`).hasValue()}apply(e,t,n,r,i){for(var{includeOpacity:a,matrix:o}=this,s=e.getImageData(0,0,r,i),c=0;c<i;c++)for(var l=0;l<r;l++){var u=W9(s.data,l,c,r,i,0),d=W9(s.data,l,c,r,i,1),f=W9(s.data,l,c,r,i,2),p=W9(s.data,l,c,r,i,3),m=K9(o,0,u)+K9(o,1,d)+K9(o,2,f)+K9(o,3,p)+K9(o,4,1),h=K9(o,5,u)+K9(o,6,d)+K9(o,7,f)+K9(o,8,p)+K9(o,9,1),g=K9(o,10,u)+K9(o,11,d)+K9(o,12,f)+K9(o,13,p)+K9(o,14,1),v=K9(o,15,u)+K9(o,16,d)+K9(o,17,f)+K9(o,18,p)+K9(o,19,1);a&&(m=0,h=0,g=0,v*=p/255),G9(s.data,l,c,r,i,0,m),G9(s.data,l,c,r,i,1,h),G9(s.data,l,c,r,i,2,g),G9(s.data,l,c,r,i,3,v)}e.clearRect(0,0,r,i),e.putImageData(s,0,0)}}class Y9 extends D9{constructor(){super(...arguments),this.type=`mask`}apply(e,t){var{document:n}=this,r=this.getAttribute(`x`).getPixels(`x`),i=this.getAttribute(`y`).getPixels(`y`),a=this.getStyle(`width`).getPixels(`x`),o=this.getStyle(`height`).getPixels(`y`);if(!a&&!o){var s=new k9;this.children.forEach(t=>{s.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(s.x1),i=Math.floor(s.y1),a=Math.floor(s.width),o=Math.floor(s.height)}var c=this.removeStyles(t,Y9.ignoreStyles),l=n.createCanvas(r+a,i+o),u=l.getContext(`2d`);n.screen.setDefaults(u),this.renderChildren(u),new J9(n,{nodeType:1,childNodes:[],attributes:[{nodeName:`type`,value:`luminanceToAlpha`},{nodeName:`includeOpacity`,value:`true`}]}).apply(u,0,0,r+a,i+o);var d=n.createCanvas(r+a,i+o),f=d.getContext(`2d`);n.screen.setDefaults(f),t.render(f),f.globalCompositeOperation=`destination-in`,f.fillStyle=u.createPattern(l,`no-repeat`),f.fillRect(0,0,r+a,i+o),e.fillStyle=f.createPattern(d,`no-repeat`),e.fillRect(0,0,r+a,i+o),this.restoreStyles(t,c)}render(e){}}Y9.ignoreStyles=[`mask`,`transform`,`clip-path`];var nvt=()=>{};class rvt extends D9{constructor(){super(...arguments),this.type=`clipPath`}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:i}=e;n&&(n.beginPath=nvt,n.closePath=nvt),Reflect.apply(r,e,[]),this.children.forEach(r=>{if(!(typeof r.path>`u`)){var a=typeof r.elementTransform<`u`?r.elementTransform():null;a||=E9.fromElement(t,r),a&&a.apply(e),r.path(e),n&&(n.closePath=i),a&&a.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}render(e){}}class X9 extends D9{constructor(){super(...arguments),this.type=`filter`}apply(e,t){var{document:n,children:r}=this,i=t.getBoundingBox(e);if(i){var a=0,o=0;r.forEach(e=>{var t=e.extraFilterDistance||0;a=Math.max(a,t),o=Math.max(o,t)});var s=Math.floor(i.width),c=Math.floor(i.height),l=s+2*a,u=c+2*o;if(!(l<1||u<1)){var d=Math.floor(i.x),f=Math.floor(i.y),p=this.removeStyles(t,X9.ignoreStyles),m=n.createCanvas(l,u),h=m.getContext(`2d`);n.screen.setDefaults(h),h.translate(-d+a,-f+o),t.render(h),r.forEach(e=>{typeof e.apply==`function`&&e.apply(h,0,0,l,u)}),e.drawImage(m,0,0,l,u,d-a,f-o,l,u),this.restoreStyles(t,p)}}}render(e){}}X9.ignoreStyles=[`filter`,`transform`,`clip-path`];class ivt extends D9{constructor(e,t,n){super(e,t,n),this.type=`feDropShadow`,this.addStylesFromStyleDefinition()}apply(e,t,n,r,i){}}class avt extends D9{constructor(){super(...arguments),this.type=`feMorphology`}apply(e,t,n,r,i){}}class ovt extends D9{constructor(){super(...arguments),this.type=`feComposite`}apply(e,t,n,r,i){}}class svt extends D9{constructor(e,t,n){super(e,t,n),this.type=`feGaussianBlur`,this.blurRadius=Math.floor(this.getAttribute(`stdDeviation`).getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,i){var{document:a,blurRadius:o}=this,s=a.window?a.window.document.body:null,c=e.canvas;c.id=a.getUniqueId(),s&&(c.style.display=`none`,s.appendChild(c)),Jgt(c,t,n,r,i,o),s&&s.removeChild(c)}}class cvt extends D9{constructor(){super(...arguments),this.type=`title`}}class lvt extends D9{constructor(){super(...arguments),this.type=`desc`}}var uvt={svg:I9,rect:L9,circle:M_t,ellipse:N_t,line:P_t,polyline:R9,polygon:F_t,path:M9,pattern:I_t,marker:L_t,defs:R_t,linearGradient:z_t,radialGradient:B_t,stop:V_t,animate:V9,animateColor:H_t,animateTransform:U_t,font:W_t,"font-face":G_t,"missing-glyph":K_t,glyph:N9,text:P9,tspan:F9,tref:q_t,a:J_t,textPath:X_t,image:Q_t,g:z9,symbol:$_t,style:U9,use:tvt,mask:Y9,clipPath:rvt,filter:X9,feDropShadow:ivt,feMorphology:avt,feComposite:ovt,feColorMatrix:J9,feGaussianBlur:svt,title:cvt,desc:lvt};function dvt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fvt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dvt(Object(n),!0).forEach(function(t){mR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dvt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pvt(e,t){var n=document.createElement(`canvas`);return n.width=e,n.height=t,n}function mvt(e){return hvt.apply(this,arguments)}function hvt(){return hvt=i7(function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=document.createElement(`img`);return t&&(n.crossOrigin=`Anonymous`),new Promise((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,i,a)=>{r(a)},n.src=e})}),hvt.apply(this,arguments)}class Z9{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:r=Z9.createCanvas,createImage:i=Z9.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=r,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t==`boolean`?(n,r)=>e(n,typeof r==`boolean`?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return`canvg${++this.uniqueId}`}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,``),n=Z9.elementTypes[t];return typeof n<`u`?new n(this,e):new E_t(this,e)}createTextNode(e){return new j_t(this,e)}setViewBox(e){this.screen.setViewBox(fvt({document:this},e))}}Z9.createCanvas=pvt,Z9.createImage=mvt,Z9.elementTypes=uvt;function gvt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gvt(Object(n),!0).forEach(function(t){mR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gvt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class $9{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new C9(n),this.screen=new S9(e,n),this.options=n;var r=new Z9(this,n),i=r.createDocumentElement(t);this.document=r,this.documentElement=i}static from(e,t){var n=arguments;return i7(function*(){var r=n.length>2&&n[2]!==void 0?n[2]:{};return new $9(e,yield new C9(r).parse(t),r)})()}static fromString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new $9(e,new C9(n).parseFromString(t),n)}fork(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $9.from(e,t,Q9(Q9({},this.options),n))}forkString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $9.fromString(e,t,Q9(Q9({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return i7(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};t.start(Q9({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,Q9(Q9({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,n)}}let _vt=Object.freeze(Object.defineProperty({__proto__:null,AElement:J_t,AnimateColorElement:H_t,AnimateElement:V9,AnimateTransformElement:U_t,BoundingBox:k9,CB1:p9,CB2:m9,CB3:h9,CB4:g9,Canvg:$9,CircleElement:M_t,ClipPathElement:rvt,DefsElement:R_t,DescElement:lvt,Document:Z9,Element:D9,EllipseElement:N_t,FeColorMatrixElement:J9,FeCompositeElement:ovt,FeDropShadowElement:ivt,FeGaussianBlurElement:svt,FeMorphologyElement:avt,FilterElement:X9,Font:O9,FontElement:W_t,FontFaceElement:G_t,GElement:z9,GlyphElement:N9,GradientElement:B9,ImageElement:Q_t,LineElement:P_t,LinearGradientElement:z_t,MarkerElement:L_t,MaskElement:Y9,Matrix:w9,MissingGlyphElement:K_t,Mouse:m_t,PSEUDO_ZERO:l9,Parser:C9,PathElement:M9,PathParser:A9,PatternElement:I_t,Point:x9,PolygonElement:F_t,PolylineElement:R9,Property:b9,QB1:_9,QB2:v9,QB3:y9,RadialGradientElement:B_t,RectElement:L9,RenderedElement:j9,Rotate:b_t,SVGElement:I9,SVGFontLoader:evt,Scale:x_t,Screen:S9,Skew:T9,SkewX:S_t,SkewY:C_t,StopElement:V_t,StyleElement:U9,SymbolElement:$_t,TRefElement:q_t,TSpanElement:F9,TextElement:P9,TextPathElement:X_t,TitleElement:cvt,Transform:E9,Translate:y_t,UnknownElement:E_t,UseElement:tvt,ViewPort:p_t,compressSpaces:a9,default:$9,getSelectorSpecificity:f_t,normalizeAttributeName:r_t,normalizeColor:i_t,parseExternalUrl:s9,presets:$gt,toNumbers:o9,trimLeft:e_t,trimRight:t_t,vectorMagnitude:u9,vectorsAngle:f9,vectorsRatio:d9},Symbol.toStringTag,{value:`Module`}));return dut}))})),a=e.n(((e,t)=>{t.exports=i()})),o=e.o(a(),1),s=e.t(),c=({ticket:e,onLeft:i})=>{let a=(0,r.useRef)(null),c=(0,r.useRef)(!1),[l,u]=(0,r.useState)(!1),d=t.t(e=>e.setJoined);return(0,r.useEffect)(()=>{let t=a.current;if(t===null||c.current)return;c.current=!0;let n=()=>{d(!1),i()};return o.default.onSessionClosed(n),o.default.joinSession(t,{videoSDKJWT:e.token,sessionName:e.roomId,userName:e.participantName,sessionPasscode:``}).then(()=>{d(!0)}).catch(()=>{u(!0)}),()=>{o.default.offSessionClosed(n),o.default.closeSession(t)}},[e,i,d]),l?(0,s.jsx)(n.t,{onLeave:i}):(0,s.jsx)(`div`,{ref:a,className:n.n.fill})};exports.ZoomMeetingExperience=c;
|
|
1413
|
-
//# sourceMappingURL=ZoomMeetingExperience-
|
|
1413
|
+
//# sourceMappingURL=ZoomMeetingExperience-Bk31KY_k.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, s as t, t as n } from "./jsx-runtime-DkX7fJRX.js";
|
|
2
|
-
import { t as r } from "./use-active-meeting-store-
|
|
3
|
-
import { n as i, t as a } from "./ExperienceError-
|
|
2
|
+
import { t as r } from "./use-active-meeting-store-BZFagv6v.js";
|
|
3
|
+
import { n as i, t as a } from "./ExperienceError-D9S8PQbQ.js";
|
|
4
4
|
import { useEffect as o, useRef as s, useState as c } from "react";
|
|
5
5
|
//#region node_modules/@zoom/videosdk-ui-toolkit/dist/videosdk-ui-toolkit.min.umd.js
|
|
6
6
|
var l = /* @__PURE__ */ e(((e, t) => {
|
|
@@ -219627,4 +219627,4 @@ Stack: ${e?.error?.stack ?? e?.stack}`, "JS_ERROR", e);
|
|
|
219627
219627
|
//#endregion
|
|
219628
219628
|
export { f as ZoomMeetingExperience };
|
|
219629
219629
|
|
|
219630
|
-
//# sourceMappingURL=ZoomMeetingExperience-
|
|
219630
|
+
//# sourceMappingURL=ZoomMeetingExperience-k_A10vQd.js.map
|