@playkit-js/unisphere-service 0.0.17-canary.0-e5f111c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +99 -0
  3. package/dist/index.d.ts +40 -0
  4. package/dist/playkit-unisphere-service.js +3 -0
  5. package/dist/playkit-unisphere-service.js.LICENSE.txt +1 -0
  6. package/dist/playkit-unisphere-service.js.map +1 -0
  7. package/dist/tsdoc-metadata.json +11 -0
  8. package/package.json +100 -0
  9. package/src/components/close-button/close-button.tsx +25 -0
  10. package/src/components/close-button/index.ts +1 -0
  11. package/src/components/container-element/container-element.tsx +13 -0
  12. package/src/components/container-element/index.ts +1 -0
  13. package/src/components/index.ts +4 -0
  14. package/src/components/sidepanel-buttons-container/index.ts +1 -0
  15. package/src/components/sidepanel-buttons-container/sidepanel-buttons-container.tsx +40 -0
  16. package/src/components/upper-bar-icon/index.ts +1 -0
  17. package/src/components/upper-bar-icon/upper-bar-icon.tsx +23 -0
  18. package/src/index.ts +6 -0
  19. package/src/services/container/container-manager.ts +25 -0
  20. package/src/services/container/index.ts +1 -0
  21. package/src/services/container/producers/base-container-producer.ts +37 -0
  22. package/src/services/container/producers/container-producer.ts +8 -0
  23. package/src/services/container/producers/index.ts +3 -0
  24. package/src/services/container/producers/sidepanel-container-producer.scss +59 -0
  25. package/src/services/container/producers/sidepanel-container-producer.tsx +67 -0
  26. package/src/services/container/producers/simple-container-producer.tsx +27 -0
  27. package/src/services/index.ts +3 -0
  28. package/src/services/unisphere/index.ts +4 -0
  29. package/src/services/unisphere/unisphere-base-service.ts +35 -0
  30. package/src/services/unisphere/unisphere-element-service.ts +25 -0
  31. package/src/services/unisphere/unisphere-event-service.ts +36 -0
  32. package/src/services/unisphere/unisphere-runtime-service.ts +17 -0
  33. package/src/services/unisphere/unisphere-storage-service.ts +42 -0
  34. package/src/services/unisphere/unisphere-workspace-service.ts +25 -0
  35. package/src/services/utils/index.ts +1 -0
  36. package/src/services/utils/utils.ts +9 -0
  37. package/src/types/container-types.ts +6 -0
  38. package/src/types/global.d.ts +1 -0
  39. package/src/types/index.ts +5 -0
  40. package/src/types/integrations.ts +38 -0
  41. package/src/types/service-keys.ts +6 -0
  42. package/src/types/unisphere-event.ts +3 -0
  43. package/src/types/unisphere-plugin-config.ts +38 -0
  44. package/src/types/unisphere-storage-keys.ts +9 -0
  45. package/src/unisphere-plugin-manager.tsx +254 -0
  46. package/src/unisphere-plugin.ts +45 -0
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ [![](https://img.shields.io/npm/v/@playkit-js/plugin-example/latest.svg)](https://www.npmjs.com/package/@playkit-js/plugin-example)
2
+ [![](https://img.shields.io/npm/v/@playkit-js/plugin-example/canary.svg)](https://www.npmjs.com/package/@playkit-js/plugin-example/v/canary)
3
+
4
+ # playkit-js-plugin-example
5
+
6
+ This is a template repository for kaltura-player plugins.
7
+ You can create a new plugin based on this template by using the "Use this template" menu.
8
+
9
+ Files and folders that need to be changed after cloning the repository:
10
+ - /README.md
11
+ - /package.json
12
+ - /webpack.config.js
13
+ - /cypress
14
+ - /demo
15
+ - /translations
16
+
17
+ Some other things to note:
18
+ Update this README file and add information about the plugin, note that the build status in the top of the file above needs to be updated to point to the build pipeline of your new plugin.
19
+
20
+ Search for all instance of the string "plugin-example" in the project.
21
+
22
+ Make sure to update the repository settings - teams, branch protection rules, autolink references and secrets.
23
+ You can copy the definition from any of our other repositories.
24
+ Adding secrets to the repository requires assistance from IT.
25
+ Don't forget to add the repository to [playkit-js-bump-release](https://github.com/kaltura/playkit-js-bump-release/edit/main/player-dependencies.txt).
26
+
27
+ ## Features
28
+
29
+ ## Getting started with development
30
+
31
+ ```sh
32
+ # First, checkout the repository and install the required dependencies
33
+ git clone https://github.com/kaltura/playkit-js-plugin-example.git
34
+
35
+ # Navigate to the repo dir
36
+ cd playkit-js-plugin-example
37
+
38
+ # Run dev-server for demo page (recompiles on file-watch, and write to actual dist fs artifacts)
39
+ npm run dev
40
+
41
+ The dev server will host files on port 8000. Once started, the demo can be found running at http://localhost:8000/.
42
+
43
+ ### Linter (ESlint)
44
+
45
+ Run linter:
46
+
47
+ ```
48
+ npm run lint:check
49
+ ```
50
+
51
+ Run linter with auto-fix mode:
52
+
53
+ ```
54
+ npm run lint:fix
55
+ ```
56
+
57
+ ### Formatting Code
58
+
59
+ Run prettier to format code
60
+
61
+ ```
62
+ npm run prettier:fix
63
+ ```
64
+
65
+ ### Type Check
66
+
67
+ Run type-check to verify TypeScript types
68
+
69
+ ```
70
+ npm run types:check
71
+ ```
72
+
73
+ ### Automated tests (Mocha/Karma)
74
+
75
+ Run all tests at once:
76
+
77
+ ```
78
+ npm test
79
+ ```
80
+
81
+ Run unit tests in watch mode:
82
+
83
+ ```
84
+ npm run test:watch
85
+ ```
86
+
87
+ ## Design
88
+
89
+ ## API docs
90
+
91
+ ## Usage guide
92
+
93
+ ## Demo
94
+
95
+ ## Compatibility
96
+
97
+ ## License
98
+
99
+ This project is licensed under the AGPL-3.0 License - see the [LICENSE](LICENSE) file for details
@@ -0,0 +1,40 @@
1
+ declare interface UnisphereIntegrationButton {
2
+ id: string;
3
+ icon: string;
4
+ tooltip: string;
5
+ visible?: boolean;
6
+ onClick?: () => void;
7
+ }
8
+
9
+ declare interface UnisphereIntegrationHeader {
10
+ type: string;
11
+ title: string;
12
+ showCloseButton: boolean;
13
+ buttons: UnisphereIntegrationButton[];
14
+ }
15
+
16
+ declare interface UnisphereIntegrationLayout {
17
+ presets: string[];
18
+ type: string;
19
+ header: UnisphereIntegrationLayoutHeader;
20
+ sidepanel: UnisphereIntegrationSidepanel;
21
+ mountWhileHidden: boolean;
22
+ }
23
+
24
+ declare interface UnisphereIntegrationLayoutHeader {
25
+ icon: string;
26
+ tooltip: string;
27
+ }
28
+
29
+ export declare interface UnisphereIntegrations {
30
+ schema: number;
31
+ layouts: UnisphereIntegrationLayout[];
32
+ }
33
+
34
+ declare interface UnisphereIntegrationSidepanel {
35
+ header: UnisphereIntegrationHeader;
36
+ visualType: string;
37
+ visualSettings: Record<string, any>;
38
+ }
39
+
40
+ export { }
@@ -0,0 +1,3 @@
1
+ /*! For license information please see playkit-unisphere-service.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("KalturaPlayer",[],t):"object"==typeof exports?exports.KalturaPlayer=t():(e.KalturaPlayer=e.KalturaPlayer||{},e.KalturaPlayer.plugins=e.KalturaPlayer.plugins||{},e.KalturaPlayer.plugins["unisphere-service"]=t())}(self,()=>(()=>{var e={51:(e,t,r)=>{var n=r(114),o=r(535),i=r(507),a=r(313),u=r(929),c=r(315),s=r(961);function l(){"use strict";var t=o(),r=t.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function d(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,h[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,s(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,r,n,o){return t.w(d(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:u,async:function(e,t,r,n,o){return(p(t)?a:i)(d(e),t,r,n,o)},keys:c,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},88:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},114:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},278:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},292:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],u=0;u<e.length;u++){var c=e[u],s=n.base?c[0]+n.base:c[0],l=i[s]||0,f="".concat(s," ").concat(l);i[s]=l+1;var p=r(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var d=o(h,n);n.byIndex=u,t.splice(u,0,{identifier:f,updater:d,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var u=r(i[a]);t[u].references--}for(var c=n(e,o),s=0;s<i.length;s++){var l=r(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},296:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})}},313:(e,t,r)=>{var n=r(535),o=r(929);e.exports=function(e,t,r,i,a){return new o(n().w(e,t,r,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},315:e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},360:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,a&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var u=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(u,c[t]):e.appendChild(u)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},383:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},507:(e,t,r)=>{var n=r(313);e.exports=function(e,t,r,o,i){var a=n(e,t,r,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},535:(e,t,r)=>{var n=r(736);function o(){var t,r,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(e,o,i,a){var u=o&&o.prototype instanceof l?o:l,c=Object.create(u.prototype);return n(c,"_invoke",function(e,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,a=0,u=t,p.n=r,s}};function h(e,n){for(a=e,u=n,r=0;!f&&c&&!o&&r<l.length;r++){var o,i=l[r],h=p.p,d=i[2];e>3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=e<2&&h<i[1])?(a=0,p.v=n,p.n=i[1]):h<d&&(o=e<3||i[0]>n||n>d)&&(i[4]=e,i[5]=n,p.n=d,a=0))}if(o||e>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(r=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((r=(f=p.n<0)?u:e.call(n,p))!==s)break}catch(e){i=t,a=1,u=e}finally{c=1}}return{value:r,done:f}}}(e,i,a),!0),c}var s={};function l(){}function f(){}function p(){}r=Object.getPrototypeOf;var h=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),d=p.prototype=l.prototype=Object.create(h);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=p,n(d,"constructor",p),n(p,"constructor",f),f.displayName="GeneratorFunction",n(p,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,a,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m:v}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},564:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},736:e=>{function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},790:(e,t,r)=>{var n=r(51)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},877:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,Ck:()=>f,PB:()=>c,Ui:()=>s,nY:()=>u,qA:()=>l});var n=r(942),o=r.n(n),i=r(278),a=r.n(i)()(o());a.push([e.id,".sidepanel-container-producer__sidepanel-container___wwQyy{background:rgba(0,0,0,.6);height:100%;display:flex;flex-direction:column}.sidepanel-container-producer__sidepanel-header___CuNlB{display:flex;align-items:center;width:100%;padding:16px 16px 0 16px;gap:8px}.sidepanel-container-producer__sidepanel-title___ZLiz7{color:#fff;flex:1;min-width:0;font-size:16px;font-weight:700;line-height:100%;letter-spacing:.01em;margin:0;justify-content:center}.sidepanel-container-producer__sidepanel-buttons-container___YAez9{display:flex;align-items:center;justify-content:center;line-height:100%}.sidepanel-container-producer__sidepanel-button___YPN3t{background:none !important;border:none !important;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;flex-shrink:0;transition:background-color .2s ease;width:32px;height:32px}.sidepanel-container-producer__sidepanel-button___YPN3t:focus-visible{outline:2px solid hsla(0,0%,100%,.6);outline-offset:2px}.sidepanel-container-producer__sidepanel-content___G0WEt{flex:1;overflow:auto;height:100%}","",{version:3,sources:["webpack://./services/container/producers/sidepanel-container-producer.scss"],names:[],mappings:"AAAA,2DACE,yBAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CAGF,wDACE,YAAA,CACA,kBAAA,CACA,UAAA,CACA,wBAAA,CACA,OAAA,CAGF,uDACE,UAAA,CACA,MAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACA,QAAA,CACA,sBAAA,CAGF,mEACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,gBAAA,CAGF,wDACE,0BAAA,CACA,sBAAA,CACA,cAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,SAAA,CACA,iBAAA,CACA,aAAA,CACA,oCAAA,CACA,UAAA,CACA,WAAA,CAEA,sEACE,oCAAA,CACA,kBAAA,CAIJ,yDACE,MAAA,CACA,aAAA,CACA,WAAA",sourcesContent:[".sidepanel-container {\n background: rgba(0, 0, 0, 0.6);\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.sidepanel-header {\n display: flex;\n align-items: center;\n width: 100%;\n padding: 16px 16px 0 16px;\n gap: 8px;\n}\n\n.sidepanel-title {\n color: #FFFFFF;\n flex: 1;\n min-width: 0;\n font-size: 16px;\n font-weight: 700;\n line-height: 100%;\n letter-spacing: 0.01em;\n margin: 0;\n justify-content: center;\n}\n\n.sidepanel-buttons-container {\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 100%;\n}\n\n.sidepanel-button {\n background: none !important;\n border: none !important;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border-radius: 4px;\n flex-shrink: 0;\n transition: background-color 0.2s ease;\n width: 32px;\n height: 32px;\n\n &:focus-visible {\n outline: 2px solid rgba(255, 255, 255, 0.6);\n outline-offset: 2px;\n }\n}\n\n.sidepanel-content {\n flex: 1;\n overflow: auto;\n height: 100%;\n}\n"],sourceRoot:""}]);var u="sidepanel-container-producer__sidepanel-container___wwQyy",c="sidepanel-container-producer__sidepanel-header___CuNlB",s="sidepanel-container-producer__sidepanel-title___ZLiz7",l="sidepanel-container-producer__sidepanel-buttons-container___YAez9",f="sidepanel-container-producer__sidepanel-button___YPN3t";const p=a},929:(e,t,r)=>{var n=r(114),o=r(736);e.exports=function e(t,r){function i(e,o,a,u){try{var c=t[e](o),s=c.value;return s instanceof n?r.resolve(s.v).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):r.resolve(s).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,u)})}catch(e){u(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,n){function o(){return new r(function(t,r){i(e,n,t,r)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},942:e=>{"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},961:(e,t,r)=>{var n=r(564).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=KalturaPlayer;function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function f(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,u,"next",e)}function u(e){p(i,n,o,a,u,"throw",e)}a(void 0)})}}var d=r(790),v=r.n(d);const y=KalturaPlayer.ui.preact;var g=function(e){return e.MEDIA_SEEK_TO_TIME="kaltura-player.events.media.seek-to-time",e}({}),m=function(e){return e.SELECTED_CHAPTER="selectedChapter",e.CURRENT_TIME="currentTime",e.IS_PAUSED="isPaused",e.PLAYER_SESSION="player-session",e.IS_SMALL_SIZE="isSmallSize",e}(m||{}),b=function(e){return e.SIDE_PANELS_MANAGER="sidePanelsManager",e.UPPER_BAR_MANAGER="upperBarManager",e}(b||{}),w=function(e){return e.SIDEPANEL="sidepanel",e.SIMPLE="simple",e}(w||{}),S=function(e){return["Playback"].includes(e)},E=e.ui.components.Tooltip,A=function(e){var t=e.onClick,r=e.className;return(0,y.h)("button",{"data-testid":"player_unisphere_closeButton",className:r,onClick:t},(0,y.h)(E,{label:"Close",type:"bottom"},(0,y.h)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,y.h)("path",{d:"M15.6592 14.245L10.7048 9.29061C10.317 8.9028 9.68581 8.90476 9.29528 9.29528C8.90204 9.68853 8.90267 10.3169 9.29061 10.7048L14.245 15.6592L9.29061 20.6137C8.9028 21.0015 8.90476 21.6327 9.29528 22.0232C9.68853 22.4165 10.3169 22.4158 10.7048 22.0279L15.6592 17.0735L20.6137 22.0279C21.0015 22.4157 21.6327 22.4137 22.0232 22.0232C22.4165 21.63 22.4158 21.0016 22.0279 20.6137L17.0735 15.6592L22.0279 10.7048C22.4157 10.317 22.4137 9.68581 22.0232 9.29528C21.63 8.90204 21.0016 8.90267 20.6137 9.29061L15.6592 14.245Z",fill:"white"}))))},x=function(e){var t;return(0,y.h)("div",{"data-testid":"player_unisphere_containerElement",style:null!==(t=e.style)&&void 0!==t?t:{},id:e.id})},O=e.ui.components.Tooltip,I=function(e){var t=e.buttons,r=e.buttonClassName,n=e.containerClassName;return(0,y.h)("div",{"data-testid":"player_unisphere_sidepanelButtons",className:n},t.filter(function(e){return!1!==e.visible}).map(function(e){return(0,y.h)("button",{"data-testid":"player_unisphere_sidepanelButton",key:e.id,className:r,title:e.tooltip,onClick:function(){e.onClick&&e.onClick()}},(0,y.h)(O,{label:e.tooltip,type:"bottom"},(0,y.h)("svg",{id:"unisphere-icon-".concat(e.id),width:"24px",height:"32px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,y.h)("path",{d:e.icon,fill:"white"}))))}))},P=e.ui.components,_=P.Tooltip,R=P.Icon,k=function(t){var r=t.id,n=t.label,o=t.iconPath;return(0,y.h)(_,{label:n,type:"bottom"},(0,y.h)("button",{type:"button","data-testid":"player_unisphere_upperBarIcon","aria-label":n,className:e.ui.style.upperBarIcon},(0,y.h)(R,{id:"unisphere-icon-".concat(r),height:32,width:32,viewBox:"0 0 32 32",path:o})))},j=function(){function e(){t(this,e)}return a(e,null,[{key:"set",value:function(t){e.workspaceInstance=t}},{key:"get",value:function(){return e.workspaceInstance}},{key:"destroy",value:function(){try{this.workspaceInstance.kill()}catch(e){}e.workspaceInstance=null}}])}();function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}f(j,"workspaceInstance",null);var L,N=function(){function e(){t(this,e)}return a(e,null,[{key:"addToUnsubscribeMap",value:function(t){return e.unsubscribeMap.set(e.sequence,t),++e.sequence,e.sequence}},{key:"unsubscribeAll",value:function(){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e.unsubscribeMap);try{for(r.s();!(t=r.n()).done;){var n=T(t.value,2),o=n[0];(0,n[1])(),e.unsubscribeMap.delete(o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"unsubscribe",value:function(t){var r=e.unsubscribeMap.get(t);r&&(r(),e.unsubscribeMap.delete(t))}}])}();function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}f(N,"unsubscribeMap",new Map),f(N,"sequence",-1),f(function(e){function r(){return t(this,r),e=this,o=arguments,n=c(n=r),u(e,U()?Reflect.construct(n,o||[],c(e).constructor):n.apply(e,o));var e,n,o}return l(r,e),a(r)}(N),"get",function(){var e=h(v().mark(function e(t){var r,n,o,i,a,u;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.widgetId,n=t.context,o=t.settings,i=j.get(),e.prev=1,e.next=2,null==i?void 0:i.loadRuntime(r,n,o||{});case 2:return a=e.sent,e.abrupt("return",a?null==a?void 0:a.runtime:null);case 3:return e.prev=3,u=e.catch(1),e.abrupt("return",Promise.reject(u));case 4:case"end":return e.stop()}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}());var B,F="unisphere.service.pub-sub",$=function(e){function r(){return t(this,r),e=this,o=arguments,n=c(n=r),u(e,D()?Reflect.construct(n,o||[],c(e).constructor):n.apply(e,o));var e,n,o}return l(r,e),a(r,null,[{key:"destroy",value:function(){r.unsubscribeAll()}}])}(N);function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}L=$,f($,"subscribe",function(e,t){var r=j.get(),n=null==r?void 0:r.getService(F);if(n){var o=n.subscribe(e,t);return L.addToUnsubscribeMap(o)}return-1}),f($,"emit",function(e,t){var r=j.get(),n=null==r?void 0:r.getService(F);null==n||n.emit({id:e,version:"1.0.0",payload:t})});var H="player",G="unisphere.service.storage",q=function(e){function r(){return t(this,r),e=this,o=arguments,n=c(n=r),u(e,z()?Reflect.construct(n,o||[],c(e).constructor):n.apply(e,o));var e,n,o}return l(r,e),a(r,null,[{key:"destroy",value:function(){r.unsubscribeAll()}}])}(N);B=q,f(q,"update",function(e,t){var r=j.get(),n=null==r?void 0:r.getService(G);null==n||n.update(H,e,t)}),f(q,"get",function(e){var t=j.get(),r=null==t?void 0:t.getService(G);return r?r.get(H,e):null}),f(q,"subscribe",function(e,t){var r=j.get(),n=null==r?void 0:r.getService(G);if(n){var o=n.subscribe(t,{namespace:H,property:e,emitLastValue:!0});B.addToUnsubscribeMap(o)}});const W=KalturaPlayer.core;function V(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+W.Utils.Generator.uniqueId(10)}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var K=function(){return a(function e(){t(this,e),f(this,"_disposers",new Map)},[{key:"generateId",value:function(e){return V("".concat(e.containerType,"_container_"))}},{key:"getSidePanelsManager",value:function(e){return e.getService(b.SIDE_PANELS_MANAGER)}},{key:"addDisposer",value:function(e,t){this._disposers.set(e,t)}},{key:"dispose",value:function(e){var t=this._disposers.get(e);t&&(t(),this._disposers.delete(e))}},{key:"destroy",value:function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this._disposers);try{for(t.s();!(e=t.n()).done;){var r=T(e.value,1)[0];this.dispose(r)}}catch(e){t.e(e)}finally{t.f()}}}])}(),J=r(292),Q=r.n(J),X=r(360),Z=r.n(X),ee=r(383),te=r.n(ee),re=r(296),ne=r.n(re),oe=r(88),ie=r.n(oe),ae=r(877),ue={attributes:{id:"@playkit-js/unisphere-service"}};function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ce=function(){return!!e})()}ue.setAttributes=ne(),ue.insert=te().bind(null,"head"),ue.domAPI=Z(),ue.insertStyleElement=ie(),Q()(ae.Ay,ue),ae.Ay&&ae.Ay.locals&&ae.Ay.locals;var se=function(e){function r(){return t(this,r),e=this,o=arguments,n=c(n=r),u(e,ce()?Reflect.construct(n,o||[],c(e).constructor):n.apply(e,o));var e,n,o}return l(r,e),a(r,[{key:"createContainer",value:function(e,t){var r,n=this,o=this.generateId(t),i=t.unisphereArea,a=t.position,u=t.expandMode,c=t.presets,s=t.layout;console.log("Creating side panel with containerId:",o);var l=null===(r=this.getSidePanelsManager(e))||void 0===r?void 0:r.add({label:o,panelComponent:function(){return n.createSidepanelComponent(s,o,l,e)},presets:c,position:a,expandMode:u});return"number"==typeof l?(this.addDisposer(o,function(){var t;null===(t=n.getSidePanelsManager(e))||void 0===t||t.remove(l)}),q.update(i,{upperBarIcon:{panelId:l}}),o):null}},{key:"createSidepanelComponent",value:function(e,t,r,n){var o=this;return(0,y.h)("div",{"data-testid":"player_unisphere_sidepanelComponent",className:ae.nY},(0,y.h)("div",{"data-testid":"player_unisphere_sidepanelHeader",className:ae.PB},(0,y.h)("h3",{"data-testid":"player_unisphere_sidepanelTitle",className:ae.Ui},"buttons"===e.sidepanel.header.type?e.sidepanel.header.title:""),e.sidepanel.header.buttons&&(0,y.h)(I,{buttons:e.sidepanel.header.buttons,buttonClassName:ae.Ck,containerClassName:ae.qA}),e.sidepanel.header.showCloseButton&&(0,y.h)(A,{className:ae.Ck,onClick:function(){var e;return null===(e=o.getSidePanelsManager(n))||void 0===e?void 0:e.deactivateItem(r)}})),(0,y.h)(x,{style:{flex:"1",overflow:"auto",height:"100%"},id:t}))}}])}(K);function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(le=function(){return!!e})()}var fe=function(e){function r(){return t(this,r),e=this,o=arguments,n=c(n=r),u(e,le()?Reflect.construct(n,o||[],c(e).constructor):n.apply(e,o));var e,n,o}return l(r,e),a(r,[{key:"createContainer",value:function(e,t){var r=this.generateId(t),n=t.playerArea,o=t.presets,i=e.ui.addComponent({label:r,presets:o,area:n,get:function(){return(0,y.h)(x,{style:{width:"inherit"},id:r})}});return this.addDisposer(r,i),r}}])}(K);function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var he=function(){return a(function e(r){t(this,e),f(this,"containerProducers",new Map),this.player=r,this.containerProducers.set(w.SIDEPANEL,new se),this.containerProducers.set(w.SIMPLE,new fe)},[{key:"createContainer",value:function(e){var t=this.containerProducers.get(e.containerType);return t?t.createContainer(this.player,e):null}},{key:"destroy",value:function(){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return pe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(this.containerProducers);try{for(t.s();!(e=t.n()).done;){var r,n=T(e.value,1)[0];null===(r=this.containerProducers.get(n))||void 0===r||r.destroy()}}catch(e){t.e(e)}finally{t.f()}}}])}(),de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ve=function(e){return e&&e.Math===Math&&e},ye=ve("object"==typeof globalThis&&globalThis)||ve("object"==typeof window&&window)||ve("object"==typeof self&&self)||ve("object"==typeof de&&de)||ve("object"==typeof de&&de)||function(){return this}()||Function("return this")(),ge={},me=function(e){try{return!!e()}catch(e){return!0}},be=!me(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),we=!me(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Se=we,Ee=Function.prototype.call,Ae=Se?Ee.bind(Ee):function(){return Ee.apply(Ee,arguments)},xe={},Oe={}.propertyIsEnumerable,Ie=Object.getOwnPropertyDescriptor,Pe=Ie&&!Oe.call({1:2},1);xe.f=Pe?function(e){var t=Ie(this,e);return!!t&&t.enumerable}:Oe;var _e,Re,ke=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},je=we,Ce=Function.prototype,Te=Ce.call,Me=je&&Ce.bind.bind(Te,Te),Le=je?Me:function(e){return function(){return Te.apply(e,arguments)}},Ne=Le,Ue=Ne({}.toString),De=Ne("".slice),Be=function(e){return De(Ue(e),8,-1)},Fe=me,$e=Be,ze=Object,He=Le("".split),Ge=Fe(function(){return!ze("z").propertyIsEnumerable(0)})?function(e){return"String"===$e(e)?He(e,""):ze(e)}:ze,qe=function(e){return null==e},We=qe,Ve=TypeError,Ye=function(e){if(We(e))throw new Ve("Can't call method on "+e);return e},Ke=Ge,Je=Ye,Qe=function(e){return Ke(Je(e))},Xe="object"==typeof document&&document.all,Ze=void 0===Xe&&void 0!==Xe?function(e){return"function"==typeof e||e===Xe}:function(e){return"function"==typeof e},et=Ze,tt=function(e){return"object"==typeof e?null!==e:et(e)},rt=ye,nt=Ze,ot=function(e,t){return arguments.length<2?(r=rt[e],nt(r)?r:void 0):rt[e]&&rt[e][t];var r},it=Le({}.isPrototypeOf),at=ye.navigator,ut=at&&at.userAgent,ct=ye,st=ut?String(ut):"",lt=ct.process,ft=ct.Deno,pt=lt&&lt.versions||ft&&ft.version,ht=pt&&pt.v8;ht&&(Re=(_e=ht.split("."))[0]>0&&_e[0]<4?1:+(_e[0]+_e[1])),!Re&&st&&(!(_e=st.match(/Edge\/(\d+)/))||_e[1]>=74)&&(_e=st.match(/Chrome\/(\d+)/))&&(Re=+_e[1]);var dt=Re,vt=me,yt=ye.String,gt=!!Object.getOwnPropertySymbols&&!vt(function(){var e=Symbol("symbol detection");return!yt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dt&&dt<41}),mt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=ot,wt=Ze,St=it,Et=Object,At=mt?function(e){return"symbol"==typeof e}:function(e){var t=bt("Symbol");return wt(t)&&St(t.prototype,Et(e))},xt=String,Ot=function(e){try{return xt(e)}catch(e){return"Object"}},It=Ze,Pt=Ot,_t=TypeError,Rt=function(e){if(It(e))return e;throw new _t(Pt(e)+" is not a function")},kt=Rt,jt=qe,Ct=function(e,t){var r=e[t];return jt(r)?void 0:kt(r)},Tt=Ae,Mt=Ze,Lt=tt,Nt=TypeError,Ut={exports:{}},Dt=ye,Bt=Object.defineProperty,Ft=function(e,t){try{Bt(Dt,e,{value:t,configurable:!0,writable:!0})}catch(r){Dt[e]=t}return t},$t=ye,zt=Ft,Ht="__core-js_shared__",Gt=Ut.exports=$t[Ht]||zt(Ht,{});(Gt.versions||(Gt.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Ut.exports,Wt=qt,Vt=function(e,t){return Wt[e]||(Wt[e]=t||{})},Yt=Ye,Kt=Object,Jt=function(e){return Kt(Yt(e))},Qt=Jt,Xt=Le({}.hasOwnProperty),Zt=Object.hasOwn||function(e,t){return Xt(Qt(e),t)},er=Le,tr=0,rr=Math.random(),nr=er(1.1.toString),or=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nr(++tr+rr,36)},ir=Vt,ar=Zt,ur=or,cr=gt,sr=mt,lr=ye.Symbol,fr=ir("wks"),pr=sr?lr.for||lr:lr&&lr.withoutSetter||ur,hr=function(e){return ar(fr,e)||(fr[e]=cr&&ar(lr,e)?lr[e]:pr("Symbol."+e)),fr[e]},dr=Ae,vr=tt,yr=At,gr=Ct,mr=TypeError,br=hr("toPrimitive"),wr=function(e,t){if(!vr(e)||yr(e))return e;var r,n=gr(e,br);if(n){if(void 0===t&&(t="default"),r=dr(n,e,t),!vr(r)||yr(r))return r;throw new mr("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Mt(r=e.toString)&&!Lt(n=Tt(r,e)))return n;if(Mt(r=e.valueOf)&&!Lt(n=Tt(r,e)))return n;if("string"!==t&&Mt(r=e.toString)&&!Lt(n=Tt(r,e)))return n;throw new Nt("Can't convert object to primitive value")}(e,t)},Sr=At,Er=function(e){var t=wr(e,"string");return Sr(t)?t:t+""},Ar=tt,xr=ye.document,Or=Ar(xr)&&Ar(xr.createElement),Ir=function(e){return Or?xr.createElement(e):{}},Pr=Ir,_r=!be&&!me(function(){return 7!==Object.defineProperty(Pr("div"),"a",{get:function(){return 7}}).a}),Rr=be,kr=Ae,jr=xe,Cr=ke,Tr=Qe,Mr=Er,Lr=Zt,Nr=_r,Ur=Object.getOwnPropertyDescriptor;ge.f=Rr?Ur:function(e,t){if(e=Tr(e),t=Mr(t),Nr)try{return Ur(e,t)}catch(e){}if(Lr(e,t))return Cr(!kr(jr.f,e,t),e[t])};var Dr={},Br=be&&me(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Fr=tt,$r=String,zr=TypeError,Hr=function(e){if(Fr(e))return e;throw new zr($r(e)+" is not an object")},Gr=be,qr=_r,Wr=Br,Vr=Hr,Yr=Er,Kr=TypeError,Jr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,Xr="enumerable",Zr="configurable",en="writable";Dr.f=Gr?Wr?function(e,t,r){if(Vr(e),t=Yr(t),Vr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&en in r&&!r[en]){var n=Qr(e,t);n&&n[en]&&(e[t]=r.value,r={configurable:Zr in r?r[Zr]:n[Zr],enumerable:Xr in r?r[Xr]:n[Xr],writable:!1})}return Jr(e,t,r)}:Jr:function(e,t,r){if(Vr(e),t=Yr(t),Vr(r),qr)try{return Jr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Kr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var tn=Dr,rn=ke,nn=be?function(e,t,r){return tn.f(e,t,rn(1,r))}:function(e,t,r){return e[t]=r,e},on={exports:{}},an=be,un=Zt,cn=Function.prototype,sn=an&&Object.getOwnPropertyDescriptor,ln=un(cn,"name"),fn={PROPER:ln&&"something"===function(){}.name,CONFIGURABLE:ln&&(!an||an&&sn(cn,"name").configurable)},pn=Ze,hn=qt,dn=Le(Function.toString);pn(hn.inspectSource)||(hn.inspectSource=function(e){return dn(e)});var vn,yn,gn,mn=hn.inspectSource,bn=Ze,wn=ye.WeakMap,Sn=bn(wn)&&/native code/.test(String(wn)),En=or,An=Vt("keys"),xn=function(e){return An[e]||(An[e]=En(e))},On={},In=Sn,Pn=ye,_n=tt,Rn=nn,kn=Zt,jn=qt,Cn=xn,Tn=On,Mn="Object already initialized",Ln=Pn.TypeError,Nn=Pn.WeakMap;if(In||jn.state){var Un=jn.state||(jn.state=new Nn);Un.get=Un.get,Un.has=Un.has,Un.set=Un.set,vn=function(e,t){if(Un.has(e))throw new Ln(Mn);return t.facade=e,Un.set(e,t),t},yn=function(e){return Un.get(e)||{}},gn=function(e){return Un.has(e)}}else{var Dn=Cn("state");Tn[Dn]=!0,vn=function(e,t){if(kn(e,Dn))throw new Ln(Mn);return t.facade=e,Rn(e,Dn,t),t},yn=function(e){return kn(e,Dn)?e[Dn]:{}},gn=function(e){return kn(e,Dn)}}var Bn={set:vn,get:yn,has:gn,enforce:function(e){return gn(e)?yn(e):vn(e,{})},getterFor:function(e){return function(t){var r;if(!_n(t)||(r=yn(t)).type!==e)throw new Ln("Incompatible receiver, "+e+" required");return r}}},Fn=Le,$n=me,zn=Ze,Hn=Zt,Gn=be,qn=fn.CONFIGURABLE,Wn=mn,Vn=Bn.enforce,Yn=Bn.get,Kn=String,Jn=Object.defineProperty,Qn=Fn("".slice),Xn=Fn("".replace),Zn=Fn([].join),eo=Gn&&!$n(function(){return 8!==Jn(function(){},"length",{value:8}).length}),to=String(String).split("String"),ro=on.exports=function(e,t,r){"Symbol("===Qn(Kn(t),0,7)&&(t="["+Xn(Kn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Hn(e,"name")||qn&&e.name!==t)&&(Gn?Jn(e,"name",{value:t,configurable:!0}):e.name=t),eo&&r&&Hn(r,"arity")&&e.length!==r.arity&&Jn(e,"length",{value:r.arity});try{r&&Hn(r,"constructor")&&r.constructor?Gn&&Jn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Vn(e);return Hn(n,"source")||(n.source=Zn(to,"string"==typeof t?t:"")),e};Function.prototype.toString=ro(function(){return zn(this)&&Yn(this).source||Wn(this)},"toString");var no=on.exports,oo=Ze,io=Dr,ao=no,uo=Ft,co=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(oo(r)&&ao(r,i,n),n.global)o?e[t]=r:uo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:io.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},so={},lo=Math.ceil,fo=Math.floor,po=Math.trunc||function(e){var t=+e;return(t>0?fo:lo)(t)},ho=function(e){var t=+e;return t!=t||0===t?0:po(t)},vo=ho,yo=Math.max,go=Math.min,mo=ho,bo=Math.min,wo=function(e){var t=mo(e);return t>0?bo(t,9007199254740991):0},So=wo,Eo=function(e){return So(e.length)},Ao=Qe,xo=Eo,Oo=function(e){return function(t,r,n){var o=Ao(t),i=xo(o);if(0===i)return!e&&-1;var a,u=function(e,t){var r=vo(e);return r<0?yo(r+t,0):go(r,t)}(n,i);if(e&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},Io={includes:Oo(!0),indexOf:Oo(!1)},Po=Zt,_o=Qe,Ro=Io.indexOf,ko=On,jo=Le([].push),Co=function(e,t){var r,n=_o(e),o=0,i=[];for(r in n)!Po(ko,r)&&Po(n,r)&&jo(i,r);for(;t.length>o;)Po(n,r=t[o++])&&(~Ro(i,r)||jo(i,r));return i},To=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mo=Co,Lo=To.concat("length","prototype");so.f=Object.getOwnPropertyNames||function(e){return Mo(e,Lo)};var No={};No.f=Object.getOwnPropertySymbols;var Uo=ot,Do=so,Bo=No,Fo=Hr,$o=Le([].concat),zo=Uo("Reflect","ownKeys")||function(e){var t=Do.f(Fo(e)),r=Bo.f;return r?$o(t,r(e)):t},Ho=Zt,Go=zo,qo=ge,Wo=Dr,Vo=function(e,t,r){for(var n=Go(t),o=Wo.f,i=qo.f,a=0;a<n.length;a++){var u=n[a];Ho(e,u)||r&&Ho(r,u)||o(e,u,i(t,u))}},Yo=me,Ko=Ze,Jo=/#|\.prototype\./,Qo=function(e,t){var r=Zo[Xo(e)];return r===ti||r!==ei&&(Ko(t)?Yo(t):!!t)},Xo=Qo.normalize=function(e){return String(e).replace(Jo,".").toLowerCase()},Zo=Qo.data={},ei=Qo.NATIVE="N",ti=Qo.POLYFILL="P",ri=Qo,ni=ye,oi=ge.f,ii=nn,ai=co,ui=Ft,ci=Vo,si=ri,li=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?ni:s?ni[u]||ui(u,{}):ni[u]&&ni[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=oi(r,n))&&a.value:r[n],!si(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ci(i,o)}(e.sham||o&&o.sham)&&ii(i,"sham",!0),ai(r,n,i,e)}},fi=Be,pi=be,hi=Array.isArray||function(e){return"Array"===fi(e)},di=TypeError,vi=Object.getOwnPropertyDescriptor,yi=pi&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),gi=TypeError,mi=Jt,bi=Eo,wi=yi?function(e,t){if(hi(e)&&!vi(e,"length").writable)throw new di("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};li({target:"Array",proto:!0,arity:1,forced:me(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=mi(this),r=bi(t),n=arguments.length;!function(e){if(e>9007199254740991)throw gi("Maximum allowed index exceeded")}(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return wi(t,r),r}});var Si={},Ei=Co,Ai=To,xi=Object.keys||function(e){return Ei(e,Ai)},Oi=be,Ii=Br,Pi=Dr,_i=Hr,Ri=Qe,ki=xi;Si.f=Oi&&!Ii?Object.defineProperties:function(e,t){_i(e);for(var r,n=Ri(t),o=ki(t),i=o.length,a=0;i>a;)Pi.f(e,r=o[a++],n[r]);return e};var ji,Ci=ot("document","documentElement"),Ti=Hr,Mi=Si,Li=To,Ni=On,Ui=Ci,Di=Ir,Bi="prototype",Fi="script",$i=xn("IE_PROTO"),zi=function(){},Hi=function(e){return"<"+Fi+">"+e+"</"+Fi+">"},Gi=function(e){e.write(Hi("")),e.close();var t=e.parentWindow.Object;return e=null,t},qi=function(){try{ji=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;qi="undefined"!=typeof document?document.domain&&ji?Gi(ji):(t=Di("iframe"),r="java"+Fi+":",t.style.display="none",Ui.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Hi("document.F=Object")),e.close(),e.F):Gi(ji);for(var n=Li.length;n--;)delete qi[Bi][Li[n]];return qi()};Ni[$i]=!0;var Wi=Object.create||function(e,t){var r;return null!==e?(zi[Bi]=Ti(e),r=new zi,zi[Bi]=null,r[$i]=e):r=qi(),void 0===t?r:Mi.f(r,t)},Vi=hr,Yi=Wi,Ki=Dr.f,Ji=Vi("unscopables"),Qi=Array.prototype;void 0===Qi[Ji]&&Ki(Qi,Ji,{configurable:!0,value:Yi(null)});var Xi,Zi,ea,ta=function(e){Qi[Ji][e]=!0},ra={},na=!me(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),oa=Zt,ia=Ze,aa=Jt,ua=na,ca=xn("IE_PROTO"),sa=Object,la=sa.prototype,fa=ua?sa.getPrototypeOf:function(e){var t=aa(e);if(oa(t,ca))return t[ca];var r=t.constructor;return ia(r)&&t instanceof r?r.prototype:t instanceof sa?la:null},pa=me,ha=Ze,da=tt,va=fa,ya=co,ga=hr("iterator"),ma=!1;[].keys&&("next"in(ea=[].keys())?(Zi=va(va(ea)))!==Object.prototype&&(Xi=Zi):ma=!0);var ba=!da(Xi)||pa(function(){var e={};return Xi[ga].call(e)!==e});ba&&(Xi={}),ha(Xi[ga])||ya(Xi,ga,function(){return this});var wa={IteratorPrototype:Xi,BUGGY_SAFARI_ITERATORS:ma},Sa=Dr.f,Ea=Zt,Aa=hr("toStringTag"),xa=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Ea(e,Aa)&&Sa(e,Aa,{configurable:!0,value:t})},Oa=wa.IteratorPrototype,Ia=Wi,Pa=ke,_a=xa,Ra=ra,ka=function(){return this},ja=Le,Ca=Rt,Ta=function(e,t,r){try{return ja(Ca(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Ma=tt,La=String,Na=TypeError,Ua=Ta,Da=tt,Ba=Ye,Fa=function(e){if(function(e){return Ma(e)||null===e}(e))return e;throw new Na("Can't set "+La(e)+" as a prototype")},$a=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ua(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Ba(r),Fa(n),Da(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),za=li,Ha=Ae,Ga=Ze,qa=fa,Wa=$a,Va=xa,Ya=nn,Ka=co,Ja=ra,Qa=fn.PROPER,Xa=fn.CONFIGURABLE,Za=wa.IteratorPrototype,eu=wa.BUGGY_SAFARI_ITERATORS,tu=hr("iterator"),ru="keys",nu="values",ou="entries",iu=function(){return this},au=function(e,t){return{value:e,done:t}},uu=Qe,cu=ta,su=ra,lu=Bn,fu=Dr.f,pu=au,hu=be,du="Array Iterator",vu=lu.set,yu=lu.getterFor(du),gu=function(e,t,r,n,o,i,a){!function(e,t,r,n){var o=t+" Iterator";e.prototype=Ia(Oa,{next:Pa(+!n,r)}),_a(e,o,!1),Ra[o]=ka}(r,t,n);var u,c,s,l=function(e){if(e===o&&v)return v;if(!eu&&e&&e in h)return h[e];switch(e){case ru:case nu:case ou:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[tu]||h["@@iterator"]||o&&h[o],v=!eu&&d||l(o),y="Array"===t&&h.entries||d;if(y&&(u=qa(y.call(new e)))!==Object.prototype&&u.next&&(qa(u)!==Za&&(Wa?Wa(u,Za):Ga(u[tu])||Ka(u,tu,iu)),Va(u,f,!0)),Qa&&o===nu&&d&&d.name!==nu&&(Xa?Ya(h,"name",nu):(p=!0,v=function(){return Ha(d,this)})),o)if(c={values:l(nu),keys:i?v:l(ru),entries:l(ou)},a)for(s in c)(eu||p||!(s in h))&&Ka(h,s,c[s]);else za({target:t,proto:!0,forced:eu||p},c);return h[tu]!==v&&Ka(h,tu,v,{name:o}),Ja[t]=v,c}(Array,"Array",function(e,t){vu(this,{type:du,target:uu(e),index:0,kind:t})},function(){var e=yu(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,pu(void 0,!0);switch(e.kind){case"keys":return pu(r,!1);case"values":return pu(t[r],!1)}return pu([r,t[r]],!1)},"values"),mu=su.Arguments=su.Array;if(cu("keys"),cu("values"),cu("entries"),hu&&"values"!==mu.name)try{fu(mu,"name",{value:"values"})}catch(e){}var bu=it,wu=TypeError,Su=no,Eu=Dr,Au=be,xu=Dr,Ou=ke,Iu=li,Pu=ye,_u=Hr,Ru=Ze,ku=fa,ju=me,Cu=Zt,Tu=wa.IteratorPrototype,Mu=be,Lu="constructor",Nu="Iterator",Uu=hr("toStringTag"),Du=TypeError,Bu=Pu[Nu],Fu=!Ru(Bu)||Bu.prototype!==Tu||!ju(function(){Bu({})}),$u=function(){if(function(e,t){if(bu(t,e))return e;throw new wu("Incorrect invocation")}(this,Tu),ku(this)===Tu)throw new Du("Abstract class Iterator not directly constructable")},zu=function(e,t){Mu?function(e,t,r){r.get&&Su(r.get,t,{getter:!0}),r.set&&Su(r.set,t,{setter:!0}),Eu.f(e,t,r)}(Tu,e,{configurable:!0,get:function(){return t},set:function(t){if(_u(this),this===Tu)throw new Du("You can't redefine this property");Cu(this,e)?this[e]=t:function(e,t,r){Au?xu.f(e,t,Ou(0,r)):e[t]=r}(this,e,t)}}):Tu[e]=t};Cu(Tu,Uu)||zu(Uu,Nu),!Fu&&Cu(Tu,Lu)&&Tu[Lu]!==Object||zu(Lu,$u),$u.prototype=Tu,Iu({global:!0,constructor:!0,forced:Fu},{Iterator:$u});var Hu=function(e){return{iterator:e,next:e.next,done:!1}},Gu=co,qu=Ae,Wu=Hr,Vu=Ct,Yu=function(e,t,r){var n,o;Wu(e);try{if(!(n=Vu(e,"return"))){if("throw"===t)throw r;return r}n=qu(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Wu(n),r},Ku=Yu,Ju=Ae,Qu=Wi,Xu=nn,Zu=Bn,ec=Ct,tc=wa.IteratorPrototype,rc=au,nc=Yu,oc=hr("toStringTag"),ic="IteratorHelper",ac="WrapForValidIterator",uc="normal",cc="throw",sc=Zu.set,lc=function(e){var t=Zu.getterFor(e?ac:ic);return function(e,t,r){for(var n in t)Gu(e,n,t[n],r);return e}(Qu(tc),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return rc(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:rc(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=ec(n,"return");return o?Ju(o,n):rc(void 0,!0)}if(r.inner)try{nc(r.inner.iterator,uc)}catch(e){return nc(n,cc,e)}if(r.openIters)try{!function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=Ku(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r}(r.openIters,uc)}catch(e){return nc(n,cc,e)}return n&&nc(n,uc),rc(void 0,!0)}})},fc=lc(!0),pc=lc(!1);Xu(pc,oc,"Iterator Helper");var hc=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?ac:ic,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,sc(this,o)};return n.prototype=t?fc:pc,n},dc=Hr,vc=Yu,yc=function(e,t,r,n){try{return n?t(dc(r)[0],r[1]):t(r)}catch(t){vc(e,"throw",t)}},gc=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}},mc=ye,bc=function(e,t){var r=mc.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},wc=li,Sc=Ae,Ec=Rt,Ac=Hr,xc=Hu,Oc=hc,Ic=yc,Pc=Yu,_c=bc,Rc=!gc("filter",function(){}),kc=!Rc&&_c("filter",TypeError),jc=Rc||kc,Cc=Oc(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=Ac(Sc(o,r)),this.done=!!e.done)return;if(t=e.value,Ic(r,n,[t,this.counter++],!0))return t}});wc({target:"Iterator",proto:!0,real:!0,forced:jc},{filter:function(e){Ac(this);try{Ec(e)}catch(e){Pc(this,"throw",e)}return kc?Sc(kc,this,e):new Cc(xc(this),{predicate:e})}});var Tc=Be,Mc=Le,Lc=function(e){if("Function"===Tc(e))return Mc(e)},Nc=Rt,Uc=we,Dc=Lc(Lc.bind),Bc=ra,Fc=hr("iterator"),$c=Array.prototype,zc={};zc[hr("toStringTag")]="z";var Hc="[object z]"===String(zc),Gc=Ze,qc=Be,Wc=hr("toStringTag"),Vc=Object,Yc="Arguments"===qc(function(){return arguments}()),Kc=Hc?qc:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Vc(e),Wc))?r:Yc?qc(t):"Object"===(n=qc(t))&&Gc(t.callee)?"Arguments":n},Jc=Kc,Qc=Ct,Xc=qe,Zc=ra,es=hr("iterator"),ts=function(e){if(!Xc(e))return Qc(e,es)||Qc(e,"@@iterator")||Zc[Jc(e)]},rs=Ae,ns=Rt,os=Hr,is=Ot,as=ts,us=TypeError,cs=Ae,ss=Hr,ls=Ot,fs=Eo,ps=it,hs=ts,ds=Yu,vs=TypeError,ys=function(e,t){this.stopped=e,this.result=t},gs=ys.prototype,ms=function(e,t,r){var n,o,i,a,u,c,s,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=function(e,t){return Nc(e),void 0===t?e:Uc?Dc(e,t):function(){return e.apply(t,arguments)}}(t,f),g=function(e){return n&&ds(n,"normal"),new ys(!0,e)},m=function(e){return p?(ss(e),v?y(e[0],e[1],g):y(e[0],e[1])):v?y(e,g):y(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(o=hs(e)))throw new vs(ls(e)+" is not iterable");if(void 0!==(l=o)&&(Bc.Array===l||$c[Fc]===l)){for(i=0,a=fs(e);a>i;i++)if((u=m(e[i]))&&ps(gs,u))return u;return new ys(!1)}n=function(e,t){var r=arguments.length<2?as(e):t;if(ns(r))return os(rs(r,e));throw new us(is(e)+" is not iterable")}(e,o)}for(c=h?e.next:n.next;!(s=cs(c,n)).done;){try{u=m(s.value)}catch(e){ds(n,"throw",e)}if("object"==typeof u&&u&&ps(gs,u))return u}return new ys(!1)},bs=li,ws=Ae,Ss=ms,Es=Rt,As=Hr,xs=Hu,Os=Yu,Is=bc("forEach",TypeError);bs({target:"Iterator",proto:!0,real:!0,forced:Is},{forEach:function(e){As(this);try{Es(e)}catch(e){Os(this,"throw",e)}if(Is)return ws(Is,this,e);var t=xs(this),r=0;Ss(t,function(t){e(t,r++)},{IS_RECORD:!0})}});var Ps=be,_s=Le,Rs=Ae,ks=me,js=xi,Cs=No,Ts=xe,Ms=Jt,Ls=Ge,Ns=Object.assign,Us=Object.defineProperty,Ds=_s([].concat),Bs=!Ns||ks(function(){if(Ps&&1!==Ns({b:1},Ns(Us({},"a",{enumerable:!0,get:function(){Us(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==Ns({},e)[r]||js(Ns({},t)).join("")!==n})?function(e,t){for(var r=Ms(e),n=arguments.length,o=1,i=Cs.f,a=Ts.f;n>o;)for(var u,c=Ls(arguments[o++]),s=i?Ds(js(c),i(c)):js(c),l=s.length,f=0;l>f;)u=s[f++],Ps&&!Rs(a,c,u)||(r[u]=c[u]);return r}:Ns,Fs=Bs;li({target:"Object",stat:!0,arity:2,forced:Object.assign!==Fs},{assign:Fs});var $s=Kc,zs=String,Hs=function(e){if("Symbol"===$s(e))throw new TypeError("Cannot convert a Symbol value to a string");return zs(e)},Gs=me,qs=ye.RegExp,Ws=!Gs(function(){var e=!0;try{qs(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(qs.prototype,"flags").get.call(t)!==n||r!==n}),Vs=Hr,Ys=function(){var e=Vs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ks=Ae,Js=Zt,Qs=it,Xs=Ws,Zs=Ys,el=RegExp.prototype,tl=Xs?function(e){return e.flags}:function(e){return Xs||!Qs(el,e)||Js(e,"flags")?e.flags:Ks(Zs,e)},rl=fn.PROPER,nl=co,ol=Hr,il=Hs,al=me,ul=tl,cl="toString",sl=RegExp.prototype,ll=sl[cl],fl=al(function(){return"/a/b"!==ll.call({source:"a",flags:"b"})}),pl=rl&&ll.name!==cl;(fl||pl)&&nl(sl,cl,function(){var e=ol(this);return"/"+il(e.source)+"/"+il(ul(e))},{unsafe:!0});var hl=Ir("span").classList,dl=hl&&hl.constructor&&hl.constructor.prototype,vl=dl===Object.prototype?void 0:dl,yl=ye,gl={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},ml=vl,bl=gu,wl=nn,Sl=xa,El=hr("iterator"),Al=bl.values,xl=function(e,t){if(e){if(e[El]!==Al)try{wl(e,El,Al)}catch(t){e[El]=Al}if(Sl(e,t,!0),gl[t])for(var r in bl)if(e[r]!==bl[r])try{wl(e,r,bl[r])}catch(t){e[r]=bl[r]}}};for(var Ol in gl)xl(yl[Ol]&&yl[Ol].prototype,Ol);xl(ml,"DOMTokenList");const Il=()=>Date.now().toString(36)+Math.random().toString(36).substring(2);let Pl=window.unisphere;function _l(e,t,r){return e in Pl?{value:Pl[e],isNew:!1}:(null==t||t.debug(`${e} not found on 'window.unisphere', creating with default value`,{data:{defaultValue:r}}),Pl[e]=r,{value:r,isNew:!0})}"unisphere"in window||(Pl=window.unisphere={});class Rl{static createWorkspaceLogger(e){return new Rl(e)}kill(){this._killed=!0,this._loggersStore.clear()}constructor(e){this.workspaceName=e,this._killed=!1,this._loggersStore=new Map}getLogger(e){return this.getOrCreateLogger("legacy",e)}getOrCreateLogger(e,t,r){const n=[e,t,null==r?void 0:r.scope,null==r?void 0:r.widgetName,null==r?void 0:r.runtimeName].filter(Boolean).join("."),o=this._loggersStore.get(n);if(o)return o;const i=new jl({type:e,name:t,workspaceName:this.workspaceName,widgetName:null==r?void 0:r.widgetName,scope:null==r?void 0:r.scope,runtimeName:null==r?void 0:r.runtimeName});return this._loggersStore.set(n,i),i}}function kl(){const{value:e}=_l("loggers",null,{interceptors:[],logMessages:[],logToConsole:!0,logLevel:"warn"});return e}class jl{constructor(e){this._options=e;const t=kl();this._globalLoggers=t}createContextualGroup(){const e=this._options.contextId?`${this._options.contextId}.${Il()}`:Il();return new jl(Object.assign(Object.assign({},this._options),{contextId:e}))}cloneLogger(e){return new jl(Object.assign(Object.assign({},this._options),{type:e.newType,name:e.newName}))}logMessage(e,t,r,n,o){const i={salt:Math.random().toString(36).substring(4),type:this._options.type,name:this._options.name,workspaceName:this._options.workspaceName,widgetName:(null==o?void 0:o.widgetName)||this._options.widgetName,runtimeName:(null==o?void 0:o.runtimeName)||this._options.runtimeName,scope:this._options.scope,time:(new Date).toISOString(),message:t,data:r,error:n,level:e,contextId:this._options.contextId},a=kl();if(a.logMessages.push(i),a.interceptors.forEach(e=>{e(i)}),this.shouldLog(e,a.logLevel)){const t={type:i.type,name:i.name,workspaceName:i.workspaceName,widgetName:i.widgetName,runtimeName:i.runtimeName,scope:i.scope,contextId:this._options.contextId},r=`${i.time} [Unisphere] ${i.message}`;switch(e){case"debug":console.debug(r,i.data,t);break;case"log":console.log(r,i.data,t);break;case"warn":console.warn(r,{data:i.data,error:i.error},t);break;case"error":console.error(r,{data:i.data,error:i.error},t)}}}shouldLog(e,t){const r=["debug","log","warn","error"];return r.indexOf(e)>=r.indexOf(t)}log(e,t){this.logMessage("log",e,null==t?void 0:t.data,null,(null==t?void 0:t.overrides)||null)}debug(e,t){this.logMessage("debug",e,null==t?void 0:t.data,null,(null==t?void 0:t.overrides)||null)}warn(e,t){this.logMessage("warn",e,null==t?void 0:t.data,(null==t?void 0:t.error)||null,(null==t?void 0:t.overrides)||null)}error(e,t){this.logMessage("error",e,null==t?void 0:t.data,(null==t?void 0:t.error)||null,(null==t?void 0:t.overrides)||null)}}var Cl=Io.includes,Tl=ta;li({target:"Array",proto:!0,forced:me(function(){return!Array(1).includes()})},{includes:function(e){return Cl(this,e,arguments.length>1?arguments[1]:void 0)}}),Tl("includes");var Ml=li,Ll=Ae,Nl=Rt,Ul=Hr,Dl=Hu,Bl=hc,Fl=yc,$l=Yu,zl=bc,Hl=!gc("map",function(){}),Gl=!Hl&&zl("map",TypeError),ql=Hl||Gl,Wl=Bl(function(){var e=this.iterator,t=Ul(Ll(this.next,e));if(!(this.done=!!t.done))return Fl(e,this.mapper,[t.value,this.counter++],!0)});Ml({target:"Iterator",proto:!0,real:!0,forced:ql},{map:function(e){Ul(this);try{Nl(e)}catch(e){$l(this,"throw",e)}return Gl?Ll(Gl,this,e):new Wl(Dl(this),{mapper:e})}});var Vl=li,Yl=Ae,Kl=ms,Jl=Rt,Ql=Hr,Xl=Hu,Zl=Yu,ef=bc("some",TypeError);Vl({target:"Iterator",proto:!0,real:!0,forced:ef},{some:function(e){Ql(this);try{Jl(e)}catch(e){Zl(this,"throw",e)}if(ef)return Yl(ef,this,e);var t=Xl(this),r=0;return Kl(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var tf=tt,rf=Be,nf=hr("match"),of=TypeError,af=hr("match"),uf=li,cf=function(e){if(function(e){var t;return tf(e)&&(void 0!==(t=e[nf])?!!t:"RegExp"===rf(e))}(e))throw new of("The method doesn't accept regular expressions");return e},sf=Ye,lf=Hs,ff=Le("".indexOf);uf({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[af]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~ff(lf(sf(this)),lf(cf(e)),arguments.length>1?arguments[1]:void 0)}});const pf={type:"or",properties:[{type:"custom",condition:(e,t)=>e&&"DIV"===e.tagName?[]:[{path:t,message:"Expected HTMLElement"}]},{type:"primitive",value:"string"},{type:"or",properties:[{type:"object",properties:{target:{type:"literal",value:"element"},elementId:{type:"primitive",value:"string"}}},{type:"object",properties:{target:{type:"literal",value:"body"},classNames:{type:"primitive",value:"string",optional:!0},style:{optional:!0,type:"map",value:{type:"primitive",value:"string"}}}}]}]};Object.assign(Object.assign({},pf),{optional:!0}),Object.assign(Object.assign({},pf),{optional:!1});var hf=Le,df=Set.prototype,vf={Set,add:hf(df.add),has:hf(df.has),remove:hf(df.delete),proto:df},yf=vf.has,gf=function(e){return yf(e),e},mf=Ae,bf=function(e,t,r){for(var n,o,i=r?e:e.iterator,a=e.next;!(n=mf(a,i)).done;)if(void 0!==(o=t(n.value)))return o},wf=Le,Sf=bf,Ef=vf.Set,Af=vf.proto,xf=wf(Af.forEach),Of=wf(Af.keys),If=Of(new Ef).next,Pf=function(e,t,r){return r?Sf({iterator:Of(e),next:If},t):xf(e,t)},_f=Pf,Rf=vf.Set,kf=vf.add,jf=function(e){var t=new Rf;return _f(e,function(e){kf(t,e)}),t},Cf=Ta(vf.proto,"size","get")||function(e){return e.size},Tf=Rt,Mf=Hr,Lf=Ae,Nf=ho,Uf=Hu,Df="Invalid size",Bf=RangeError,Ff=TypeError,$f=Math.max,zf=function(e,t){this.set=e,this.size=$f(t,0),this.has=Tf(e.has),this.keys=Tf(e.keys)};zf.prototype={getIterator:function(){return Uf(Mf(Lf(this.keys,this.set)))},includes:function(e){return Lf(this.has,this.set,e)}};var Hf=function(e){Mf(e);var t=+e.size;if(t!=t)throw new Ff(Df);var r=Nf(t);if(r<0)throw new Bf(Df);return new zf(e,r)},Gf=gf,qf=jf,Wf=Cf,Vf=Hf,Yf=Pf,Kf=bf,Jf=vf.has,Qf=vf.remove,Xf=ot,Zf=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},ep=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}},tp=function(e,t){var r=Xf("Set");try{(new r)[e](Zf(0));try{return(new r)[e](Zf(-1)),!1}catch(o){if(!t)return!0;try{return(new r)[e](ep(-1/0)),!1}catch(o){var n=new r;return n.add(1),n.add(2),t(n[e](ep(1/0)))}}}catch(e){return!1}},rp=me;li({target:"Set",proto:!0,real:!0,forced:!tp("difference",function(e){return 0===e.size})||rp(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:function(e){var t=Gf(this),r=Vf(e),n=qf(t);return Wf(t)<=r.size?Yf(t,function(e){r.includes(e)&&Qf(n,e)}):Kf(r.getIterator(),function(e){Jf(n,e)&&Qf(n,e)}),n}});var np=gf,op=Cf,ip=Hf,ap=Pf,up=bf,cp=vf.Set,sp=vf.add,lp=vf.has,fp=me;li({target:"Set",proto:!0,real:!0,forced:!tp("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||fp(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:function(e){var t=np(this),r=ip(e),n=new cp;return op(t)>r.size?up(r.getIterator(),function(e){lp(t,e)&&sp(n,e)}):ap(t,function(e){r.includes(e)&&sp(n,e)}),n}});var pp=gf,hp=vf.has,dp=Cf,vp=Hf,yp=Pf,gp=bf,mp=Yu;li({target:"Set",proto:!0,real:!0,forced:!tp("isDisjointFrom",function(e){return!e})},{isDisjointFrom:function(e){var t=pp(this),r=vp(e);if(dp(t)<=r.size)return!1!==yp(t,function(e){if(r.includes(e))return!1},!0);var n=r.getIterator();return!1!==gp(n,function(e){if(hp(t,e))return mp(n,"normal",!1)})}});var bp=gf,wp=Cf,Sp=Pf,Ep=Hf;li({target:"Set",proto:!0,real:!0,forced:!tp("isSubsetOf",function(e){return e})},{isSubsetOf:function(e){var t=bp(this),r=Ep(e);return!(wp(t)>r.size)&&!1!==Sp(t,function(e){if(!r.includes(e))return!1},!0)}});var Ap=gf,xp=vf.has,Op=Cf,Ip=Hf,Pp=bf,_p=Yu;li({target:"Set",proto:!0,real:!0,forced:!tp("isSupersetOf",function(e){return!e})},{isSupersetOf:function(e){var t=Ap(this),r=Ip(e);if(Op(t)<r.size)return!1;var n=r.getIterator();return!1!==Pp(n,function(e){if(!xp(t,e))return _p(n,"normal",!1)})}});var Rp=gf,kp=jf,jp=Hf,Cp=bf,Tp=vf.add,Mp=vf.has,Lp=vf.remove,Np=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(e){return!1}},Up=Np;li({target:"Set",proto:!0,real:!0,forced:!tp("symmetricDifference")||!Up("symmetricDifference")},{symmetricDifference:function(e){var t=Rp(this),r=jp(e).getIterator(),n=kp(t);return Cp(r,function(e){Mp(t,e)?Lp(n,e):Tp(n,e)}),n}});var Dp=gf,Bp=vf.add,Fp=jf,$p=Hf,zp=bf,Hp=Np;li({target:"Set",proto:!0,real:!0,forced:!tp("union")||!Hp("union")},{union:function(e){var t=Dp(this),r=$p(e).getIterator(),n=Fp(t);return zp(r,function(e){Bp(n,e)}),n}});var Gp=we,qp=Function.prototype,Wp=qp.apply,Vp=qp.call,Yp="object"==typeof Reflect&&Reflect.apply||(Gp?Vp.bind(Wp):function(){return Vp.apply(Wp,arguments)}),Kp=Dr.f,Jp=Ze,Qp=tt,Xp=$a,Zp=Hs,eh=tt,th=nn,rh=Error,nh=Le("".replace),oh=String(new rh("zxcasd").stack),ih=/\n\s*at [^:]*:[^\n]*/,ah=ih.test(oh),uh=ke,ch=!me(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",uh(1,7)),7!==e.stack)}),sh=nn,lh=ch,fh=Error.captureStackTrace,ph=ot,hh=Zt,dh=nn,vh=it,yh=$a,gh=Vo,mh=function(e,t,r){r in e||Kp(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},bh=function(e,t,r,n){lh&&(fh?fh(e,t):sh(e,"stack",function(e,t){if(ah&&"string"==typeof e&&!rh.prepareStackTrace)for(;t--;)e=nh(e,ih,"");return e}(r,n)))},wh=be,Sh=li,Eh=Yp,Ah=function(e,t,r,n){var o="stackTraceLimit",i=n?2:1,a=e.split("."),u=a[a.length-1],c=ph.apply(null,a);if(c){var s=c.prototype;if(hh(s,"cause")&&delete s.cause,!r)return c;var l=ph("Error"),f=t(function(e,t){var r,o,a,u,l,p=function(e,t){return void 0===e?arguments.length<2?"":t:Zp(e)}(n?t:e,void 0),h=n?new c(e):new c;return void 0!==p&&dh(h,"message",p),bh(h,f,h.stack,2),this&&vh(s,this)&&(r=h,o=this,a=f,Xp&&Jp(u=o.constructor)&&u!==a&&Qp(l=u.prototype)&&l!==a.prototype&&Xp(r,l)),arguments.length>i&&function(e,t){eh(t)&&"cause"in t&&th(e,"cause",t.cause)}(h,arguments[i]),h});f.prototype=s,"Error"!==u?yh?yh(f,l):gh(f,l,{name:!0}):wh&&o in c&&(mh(f,c,o),mh(f,c,"prepareStackTrace")),gh(f,c);try{s.name!==u&&dh(s,"name",u),s.constructor=f}catch(e){}return f}},xh="WebAssembly",Oh=ye[xh],Ih=7!==new Error("e",{cause:7}).cause,Ph=function(e,t){var r={};r[e]=Ah(e,t,Ih),Sh({global:!0,constructor:!0,arity:1,forced:Ih},r)},_h=function(e,t){if(Oh&&Oh[e]){var r={};r[e]=Ah(xh+"."+e,t,Ih),Sh({target:xh,stat:!0,constructor:!0,arity:1,forced:Ih},r)}};Ph("Error",function(e){return function(t){return Eh(e,this,arguments)}}),Ph("EvalError",function(e){return function(t){return Eh(e,this,arguments)}}),Ph("RangeError",function(e){return function(t){return Eh(e,this,arguments)}}),Ph("ReferenceError",function(e){return function(t){return Eh(e,this,arguments)}}),Ph("SyntaxError",function(e){return function(t){return Eh(e,this,arguments)}}),Ph("TypeError",function(e){return function(t){return Eh(e,this,arguments)}}),Ph("URIError",function(e){return function(t){return Eh(e,this,arguments)}}),_h("CompileError",function(e){return function(t){return Eh(e,this,arguments)}}),_h("LinkError",function(e){return function(t){return Eh(e,this,arguments)}}),_h("RuntimeError",function(e){return function(t){return Eh(e,this,arguments)}});var Rh=me,kh=ye.RegExp,jh=Rh(function(){var e=kh("a","y");return e.lastIndex=2,null!==e.exec("abcd")});jh||Rh(function(){return!kh("a","y").sticky});var Ch,Th,Mh=jh||Rh(function(){var e=kh("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),Lh={BROKEN_CARET:Mh},Nh=me,Uh=ye.RegExp,Dh=Nh(function(){var e=Uh(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),Bh=me,Fh=ye.RegExp,$h=Bh(function(){var e=Fh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),zh=Ae,Hh=Le,Gh=Hs,qh=Ys,Wh=Lh,Vh=Wi,Yh=Bn.get,Kh=Dh,Jh=$h,Qh=Vt("native-string-replace",String.prototype.replace),Xh=RegExp.prototype.exec,Zh=Xh,ed=Hh("".charAt),td=Hh("".indexOf),rd=Hh("".replace),nd=Hh("".slice),od=(Th=/b*/g,zh(Xh,Ch=/a/,"a"),zh(Xh,Th,"a"),0!==Ch.lastIndex||0!==Th.lastIndex),id=Wh.BROKEN_CARET,ad=void 0!==/()??/.exec("")[1];(od||ad||id||Kh||Jh)&&(Zh=function(e){var t,r,n,o,i,a,u,c=this,s=Yh(c),l=Gh(e),f=s.raw;if(f)return f.lastIndex=c.lastIndex,t=zh(Zh,f,l),c.lastIndex=f.lastIndex,t;var p=s.groups,h=id&&c.sticky,d=zh(qh,c),v=c.source,y=0,g=l;if(h&&(d=rd(d,"y",""),-1===td(d,"g")&&(d+="g"),g=nd(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ed(l,c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),ad&&(r=new RegExp("^"+v+"$(?!\\s)",d)),od&&(n=c.lastIndex),o=zh(Xh,h?r:c,g),h?o?(o.input=nd(o.input,y),o[0]=nd(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:od&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ad&&o&&o.length>1&&zh(Qh,o[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=Vh(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ud=Zh;li({target:"RegExp",proto:!0,forced:/./.exec!==ud},{exec:ud});var cd=Ae,sd=co,ld=ud,fd=me,pd=hr,hd=nn,dd=pd("species"),vd=RegExp.prototype,yd=Le,gd=ho,md=Hs,bd=Ye,wd=yd("".charAt),Sd=yd("".charCodeAt),Ed=yd("".slice),Ad={charAt:function(e,t){var r,n,o=md(bd(e)),i=gd(t),a=o.length;return i<0||i>=a?"":(r=Sd(o,i))<55296||r>56319||i+1===a||(n=Sd(o,i+1))<56320||n>57343?wd(o,i):Ed(o,i,i+2)}},xd=Ad.charAt,Od=Ae,Id=Hr,Pd=Ze,_d=Be,Rd=ud,kd=TypeError,jd=Ae,Cd=Hr,Td=tt,Md=wo,Ld=Hs,Nd=Ye,Ud=Ct,Dd=function(e,t,r){return t+(r?xd(e,t).length:1)},Bd=tl,Fd=function(e,t){var r=e.exec;if(Pd(r)){var n=Od(r,e,t);return null!==n&&Id(n),n}if("RegExp"===_d(e))return Od(Rd,e,t);throw new kd("RegExp#exec called on incompatible receiver")},$d=Le("".indexOf);!function(e,t,r,n){var o=pd(e),i=!fd(function(){var t={};return t[o]=function(){return 7},7!==""[e](t)}),a=i&&!fd(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[dd]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t});if(!i||!a||r){var u=/./[o],c=t(o,""[e],function(e,t,r,n,o){var a=t.exec;return a===ld||a===vd.exec?i&&!o?{done:!0,value:cd(u,t,r,n)}:{done:!0,value:cd(e,r,t,n)}:{done:!1}});sd(String.prototype,e,c[0]),sd(vd,o,c[1])}n&&hd(vd[o],"sham",!0)}("match",function(e,t,r){return[function(t){var r=Nd(this),n=Td(t)?Ud(t,e):void 0;return n?jd(n,t,r):new RegExp(t)[e](Ld(r))},function(e){var n=Cd(this),o=Ld(e),i=r(t,n,o);if(i.done)return i.value;var a=Ld(Bd(n));if(-1===$d(a,"g"))return Fd(n,o);var u=-1!==$d(a,"u");n.lastIndex=0;for(var c,s=[],l=0;null!==(c=Fd(n,o));){var f=Ld(c[0]);s[l]=f,""===f&&(n.lastIndex=Dd(o,Md(n.lastIndex),u)),l++}return 0===l?null:s}]});class zd{constructor(){this._isOnpremMode="#OnPrem on#"===["#","OnPrem off","#"].join("")}get isOnpremMode(){return this._isOnpremMode}}const Hd=["onorem","onprem","nvq2","nvp1","frp2","irp2"];new class{constructor(e=new zd){this.onprem=e}resolveApiUrl(e){if(!this._baseServerUrl)throw new Error("base server url not initialized, did you remember to set environment config?");return`${this._baseServerUrl}/${e}`}setConfig(e){if(this.onprem.isOnpremMode)this._baseServerUrl=e,this._region="onprem";else{const t=/^https?:\/\/unisphere\.([a-z0-9]+)\.ovp\.kaltura\.com\/v1$/,r=null==e?void 0:e.match(t),n=(null==r?void 0:r[1])||null;if(!n)throw new Error(`cannot load workspace: unknown region mapped in serverUrl, expected format like "http(s)://unisphere.{region}.ovp.kaltura.com/v1", got "${e}"`);if(!this.isSupportedRegion(n))throw new Error(`cannot load workspace: region mapped in serverUrl is not supported, expected one of ${Hd.join(", ")}, got "${n}"`);const o="https:"===window.location.protocol;this._baseServerUrl=`${o?"https":"http"}://unisphere.${n}.ovp.kaltura.com/v1`,this._region=n}}isOnpremMode(){return this.onprem.isOnpremMode}isSupportedRegion(e){return Hd.includes(e)}getRegions(){return Hd}getDefaultRegion(){return"nvp1"}getRegion(){if(!this._region)throw new Error("region not initialized, did you remember to set environment config?");return this._region}};var Gd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},qd=function(e){return e&&e.Math===Math&&e},Wd=qd("object"==typeof globalThis&&globalThis)||qd("object"==typeof window&&window)||qd("object"==typeof self&&self)||qd("object"==typeof Gd&&Gd)||qd("object"==typeof Gd&&Gd)||function(){return this}()||Function("return this")(),Vd={},Yd=function(e){try{return!!e()}catch(e){return!0}},Kd=!Yd(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Jd=!Yd(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Qd=Jd,Xd=Function.prototype.call,Zd=Qd?Xd.bind(Xd):function(){return Xd.apply(Xd,arguments)},ev={},tv={}.propertyIsEnumerable,rv=Object.getOwnPropertyDescriptor,nv=rv&&!tv.call({1:2},1);ev.f=nv?function(e){var t=rv(this,e);return!!t&&t.enumerable}:tv;var ov,iv,av=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uv=Jd,cv=Function.prototype,sv=cv.call,lv=uv&&cv.bind.bind(sv,sv),fv=uv?lv:function(e){return function(){return sv.apply(e,arguments)}},pv=fv,hv=pv({}.toString),dv=pv("".slice),vv=Yd,yv=Object,gv=fv("".split),mv=vv(function(){return!yv("z").propertyIsEnumerable(0)})?function(e){return"String"===function(e){return dv(hv(e),8,-1)}(e)?gv(e,""):yv(e)}:yv,bv=function(e){return null==e},wv=bv,Sv=TypeError,Ev=function(e){if(wv(e))throw new Sv("Can't call method on "+e);return e},Av=mv,xv=Ev,Ov=function(e){return Av(xv(e))},Iv="object"==typeof document&&document.all,Pv=void 0===Iv&&void 0!==Iv?function(e){return"function"==typeof e||e===Iv}:function(e){return"function"==typeof e},_v=Pv,Rv=function(e){return"object"==typeof e?null!==e:_v(e)},kv=Wd,jv=Pv,Cv=function(e,t){return arguments.length<2?(r=kv[e],jv(r)?r:void 0):kv[e]&&kv[e][t];var r},Tv=fv({}.isPrototypeOf),Mv=Wd.navigator,Lv=Mv&&Mv.userAgent,Nv=Wd,Uv=Lv?String(Lv):"",Dv=Nv.process,Bv=Nv.Deno,Fv=Dv&&Dv.versions||Bv&&Bv.version,$v=Fv&&Fv.v8;$v&&(iv=(ov=$v.split("."))[0]>0&&ov[0]<4?1:+(ov[0]+ov[1])),!iv&&Uv&&(!(ov=Uv.match(/Edge\/(\d+)/))||ov[1]>=74)&&(ov=Uv.match(/Chrome\/(\d+)/))&&(iv=+ov[1]);var zv=iv,Hv=Yd,Gv=Wd.String,qv=!!Object.getOwnPropertySymbols&&!Hv(function(){var e=Symbol("symbol detection");return!Gv(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zv&&zv<41}),Wv=qv&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vv=Cv,Yv=Pv,Kv=Tv,Jv=Object,Qv=Wv?function(e){return"symbol"==typeof e}:function(e){var t=Vv("Symbol");return Yv(t)&&Kv(t.prototype,Jv(e))},Xv=String,Zv=Pv,ey=TypeError,ty=function(e){if(Zv(e))return e;throw new ey(function(e){try{return Xv(e)}catch(e){return"Object"}}(e)+" is not a function")},ry=bv,ny=Zd,oy=Pv,iy=Rv,ay=TypeError,uy={exports:{}},cy=Wd,sy=Object.defineProperty,ly=function(e,t){try{sy(cy,e,{value:t,configurable:!0,writable:!0})}catch(r){cy[e]=t}return t},fy=Wd,py=ly,hy="__core-js_shared__",dy=uy.exports=fy[hy]||py(hy,{});(dy.versions||(dy.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var vy,yy=uy.exports,gy=yy,my=function(e,t){return gy[e]||(gy[e]=t||{})},by=Ev,wy=Object,Sy=function(e){return wy(by(e))},Ey=Sy,Ay=fv({}.hasOwnProperty),xy=Object.hasOwn||function(e,t){return Ay(Ey(e),t)},Oy=fv,Iy=0,Py=Math.random(),_y=Oy(1.1.toString),Ry=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_y(++Iy+Py,36)},ky=my,jy=xy,Cy=Ry,Ty=qv,My=Wv,Ly=Wd.Symbol,Ny=ky("wks"),Uy=My?Ly.for||Ly:Ly&&Ly.withoutSetter||Cy,Dy=Zd,By=Rv,Fy=Qv,$y=TypeError,zy=(jy(Ny,vy="toPrimitive")||(Ny[vy]=Ty&&jy(Ly,vy)?Ly[vy]:Uy("Symbol."+vy)),Ny[vy]),Hy=function(e,t){if(!By(e)||Fy(e))return e;var r,n,o=(n=e[zy],ry(n)?void 0:ty(n));if(o){if(void 0===t&&(t="default"),r=Dy(o,e,t),!By(r)||Fy(r))return r;throw new $y("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&oy(r=e.toString)&&!iy(n=ny(r,e)))return n;if(oy(r=e.valueOf)&&!iy(n=ny(r,e)))return n;if("string"!==t&&oy(r=e.toString)&&!iy(n=ny(r,e)))return n;throw new ay("Can't convert object to primitive value")}(e,t)},Gy=Qv,qy=function(e){var t=Hy(e,"string");return Gy(t)?t:t+""},Wy=Rv,Vy=Wd.document,Yy=Wy(Vy)&&Wy(Vy.createElement),Ky=!Kd&&!Yd(function(){return 7!==Object.defineProperty((e="div",Yy?Vy.createElement(e):{}),"a",{get:function(){return 7}}).a;var e}),Jy=Kd,Qy=Zd,Xy=ev,Zy=av,eg=Ov,tg=qy,rg=xy,ng=Ky,og=Object.getOwnPropertyDescriptor;Vd.f=Jy?og:function(e,t){if(e=eg(e),t=tg(t),ng)try{return og(e,t)}catch(e){}if(rg(e,t))return Zy(!Qy(Xy.f,e,t),e[t])};var ig={},ag=Kd&&Yd(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ug=Rv,cg=String,sg=TypeError,lg=function(e){if(ug(e))return e;throw new sg(cg(e)+" is not an object")},fg=Kd,pg=Ky,hg=ag,dg=lg,vg=qy,yg=TypeError,gg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,bg="enumerable",wg="configurable",Sg="writable";ig.f=fg?hg?function(e,t,r){if(dg(e),t=vg(t),dg(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Sg in r&&!r[Sg]){var n=mg(e,t);n&&n[Sg]&&(e[t]=r.value,r={configurable:wg in r?r[wg]:n[wg],enumerable:bg in r?r[bg]:n[bg],writable:!1})}return gg(e,t,r)}:gg:function(e,t,r){if(dg(e),t=vg(t),dg(r),pg)try{return gg(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new yg("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Eg=ig,Ag=av,xg=Kd?function(e,t,r){return Eg.f(e,t,Ag(1,r))}:function(e,t,r){return e[t]=r,e},Og={exports:{}},Ig=Kd,Pg=xy,_g=Function.prototype,Rg=Ig&&Object.getOwnPropertyDescriptor,kg={CONFIGURABLE:Pg(_g,"name")&&(!Ig||Ig&&Rg(_g,"name").configurable)},jg=Pv,Cg=yy,Tg=fv(Function.toString);jg(Cg.inspectSource)||(Cg.inspectSource=function(e){return Tg(e)});var Mg,Lg,Ng,Ug=Cg.inspectSource,Dg=Pv,Bg=Wd.WeakMap,Fg=Dg(Bg)&&/native code/.test(String(Bg)),$g=Ry,zg=my("keys"),Hg={},Gg=Fg,qg=Wd,Wg=xg,Vg=xy,Yg=yy,Kg=Hg,Jg="Object already initialized",Qg=qg.TypeError,Xg=qg.WeakMap;if(Gg||Yg.state){var Zg=Yg.state||(Yg.state=new Xg);Zg.get=Zg.get,Zg.has=Zg.has,Zg.set=Zg.set,Mg=function(e,t){if(Zg.has(e))throw new Qg(Jg);return t.facade=e,Zg.set(e,t),t},Lg=function(e){return Zg.get(e)||{}},Ng=function(e){return Zg.has(e)}}else{var em=function(e){return zg[e]||(zg[e]=$g(e))}("state");Kg[em]=!0,Mg=function(e,t){if(Vg(e,em))throw new Qg(Jg);return t.facade=e,Wg(e,em,t),t},Lg=function(e){return Vg(e,em)?e[em]:{}},Ng=function(e){return Vg(e,em)}}var tm={get:Lg,enforce:function(e){return Ng(e)?Lg(e):Mg(e,{})}},rm=fv,nm=Yd,om=Pv,im=xy,am=Kd,um=kg.CONFIGURABLE,cm=Ug,sm=tm.enforce,lm=tm.get,fm=String,pm=Object.defineProperty,hm=rm("".slice),dm=rm("".replace),vm=rm([].join),ym=am&&!nm(function(){return 8!==pm(function(){},"length",{value:8}).length}),gm=String(String).split("String"),mm=Og.exports=function(e,t,r){"Symbol("===hm(fm(t),0,7)&&(t="["+dm(fm(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!im(e,"name")||um&&e.name!==t)&&(am?pm(e,"name",{value:t,configurable:!0}):e.name=t),ym&&r&&im(r,"arity")&&e.length!==r.arity&&pm(e,"length",{value:r.arity});try{r&&im(r,"constructor")&&r.constructor?am&&pm(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=sm(e);return im(n,"source")||(n.source=vm(gm,"string"==typeof t?t:"")),e};Function.prototype.toString=mm(function(){return om(this)&&lm(this).source||cm(this)},"toString");var bm,wm=Og.exports,Sm=Pv,Em=ig,Am=wm,xm=ly,Om={},Im=Math.ceil,Pm=Math.floor,_m=Math.trunc||function(e){var t=+e;return(t>0?Pm:Im)(t)},Rm=function(e){var t=+e;return t!=t||0===t?0:_m(t)},km=Rm,jm=Math.max,Cm=Math.min,Tm=Rm,Mm=Math.min,Lm=Ov,Nm=function(e){return t=e.length,(r=Tm(t))>0?Mm(r,9007199254740991):0;var t,r},Um={indexOf:(bm=!1,function(e,t,r){var n=Lm(e),o=Nm(n);if(0===o)return-1;var i=function(e,t){var r=km(e);return r<0?jm(r+t,0):Cm(r,t)}(r,o);for(bm;o>i;i++)if(i in n&&n[i]===t)return i||0;return-1})},Dm=xy,Bm=Ov,Fm=Um.indexOf,$m=Hg,zm=fv([].push),Hm=function(e,t){var r,n=Bm(e),o=0,i=[];for(r in n)!Dm($m,r)&&Dm(n,r)&&zm(i,r);for(;t.length>o;)Dm(n,r=t[o++])&&(~Fm(i,r)||zm(i,r));return i},Gm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qm=Hm,Wm=Gm.concat("length","prototype");Om.f=Object.getOwnPropertyNames||function(e){return qm(e,Wm)};var Vm={};Vm.f=Object.getOwnPropertySymbols;var Ym=Cv,Km=Om,Jm=Vm,Qm=lg,Xm=fv([].concat),Zm=Ym("Reflect","ownKeys")||function(e){var t=Km.f(Qm(e)),r=Jm.f;return r?Xm(t,r(e)):t},eb=xy,tb=Zm,rb=Vd,nb=ig,ob=Yd,ib=Pv,ab=/#|\.prototype\./,ub=function(e,t){var r=sb[cb(e)];return r===fb||r!==lb&&(ib(t)?ob(t):!!t)},cb=ub.normalize=function(e){return String(e).replace(ab,".").toLowerCase()},sb=ub.data={},lb=ub.NATIVE="N",fb=ub.POLYFILL="P",pb=ub,hb=Wd,db=Vd.f,vb=xg,yb=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(Sm(r)&&Am(r,i,n),n.global)o?e[t]=r:xm(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Em.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},gb=ly,mb=function(e,t,r){for(var n=tb(t),o=nb.f,i=rb.f,a=0;a<n.length;a++){var u=n[a];eb(e,u)||r&&eb(r,u)||o(e,u,i(t,u))}},bb=pb,wb=Hm,Sb=Gm,Eb=Object.keys||function(e){return wb(e,Sb)},Ab=Kd,xb=fv,Ob=Zd,Ib=Yd,Pb=Eb,_b=Vm,Rb=ev,kb=Sy,jb=mv,Cb=Object.assign,Tb=Object.defineProperty,Mb=xb([].concat),Lb=!Cb||Ib(function(){if(Ab&&1!==Cb({b:1},Cb(Tb({},"a",{enumerable:!0,get:function(){Tb(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==Cb({},e)[r]||Pb(Cb({},t)).join("")!==n})?function(e,t){for(var r=kb(e),n=arguments.length,o=1,i=_b.f,a=Rb.f;n>o;)for(var u,c=jb(arguments[o++]),s=i?Mb(Pb(c),i(c)):Pb(c),l=s.length,f=0;l>f;)u=s[f++],Ab&&!Ob(a,c,u)||(r[u]=c[u]);return r}:Cb,Nb=Lb;!function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?hb:s?hb[u]||gb(u,{}):hb[u]&&hb[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=db(r,n))&&a.value:r[n],!bb(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;mb(i,o)}(e.sham||o&&o.sham)&&vb(i,"sham",!0),yb(r,n,i,e)}}({target:"Object",stat:!0,arity:2,forced:Object.assign!==Nb},{assign:Nb});Object.assign(Object.assign({},pf),{optional:!1});Object.assign(Object.assign({},pf),{optional:!0});var Ub="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Db=function(e){return e&&e.Math===Math&&e},Bb=Db("object"==typeof globalThis&&globalThis)||Db("object"==typeof window&&window)||Db("object"==typeof self&&self)||Db("object"==typeof Ub&&Ub)||Db("object"==typeof Ub&&Ub)||function(){return this}()||Function("return this")(),Fb={},$b=function(e){try{return!!e()}catch(e){return!0}},zb=!$b(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),Hb=!$b(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Gb=Hb,qb=Function.prototype.call,Wb=Gb?qb.bind(qb):function(){return qb.apply(qb,arguments)},Vb={},Yb={}.propertyIsEnumerable,Kb=Object.getOwnPropertyDescriptor,Jb=Kb&&!Yb.call({1:2},1);Vb.f=Jb?function(e){var t=Kb(this,e);return!!t&&t.enumerable}:Yb;var Qb,Xb,Zb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ew=Hb,tw=Function.prototype,rw=tw.call,nw=ew&&tw.bind.bind(rw,rw),ow=ew?nw:function(e){return function(){return rw.apply(e,arguments)}},iw=ow,aw=iw({}.toString),uw=iw("".slice),cw=function(e){return uw(aw(e),8,-1)},sw=$b,lw=cw,fw=Object,pw=ow("".split),hw=sw(function(){return!fw("z").propertyIsEnumerable(0)})?function(e){return"String"===lw(e)?pw(e,""):fw(e)}:fw,dw=function(e){return null==e},vw=dw,yw=TypeError,gw=function(e){if(vw(e))throw new yw("Can't call method on "+e);return e},mw=hw,bw=gw,ww=function(e){return mw(bw(e))},Sw="object"==typeof document&&document.all,Ew=void 0===Sw&&void 0!==Sw?function(e){return"function"==typeof e||e===Sw}:function(e){return"function"==typeof e},Aw=Ew,xw=function(e){return"object"==typeof e?null!==e:Aw(e)},Ow=Bb,Iw=Ew,Pw=function(e,t){return arguments.length<2?(r=Ow[e],Iw(r)?r:void 0):Ow[e]&&Ow[e][t];var r},_w=ow({}.isPrototypeOf),Rw=Bb.navigator,kw=Rw&&Rw.userAgent,jw=kw?String(kw):"",Cw=Bb,Tw=jw,Mw=Cw.process,Lw=Cw.Deno,Nw=Mw&&Mw.versions||Lw&&Lw.version,Uw=Nw&&Nw.v8;Uw&&(Xb=(Qb=Uw.split("."))[0]>0&&Qb[0]<4?1:+(Qb[0]+Qb[1])),!Xb&&Tw&&(!(Qb=Tw.match(/Edge\/(\d+)/))||Qb[1]>=74)&&(Qb=Tw.match(/Chrome\/(\d+)/))&&(Xb=+Qb[1]);var Dw=Xb,Bw=Dw,Fw=$b,$w=Bb.String,zw=!!Object.getOwnPropertySymbols&&!Fw(function(){var e=Symbol("symbol detection");return!$w(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Bw&&Bw<41}),Hw=zw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gw=Pw,qw=Ew,Ww=_w,Vw=Object,Yw=Hw?function(e){return"symbol"==typeof e}:function(e){var t=Gw("Symbol");return qw(t)&&Ww(t.prototype,Vw(e))},Kw=String,Jw=function(e){try{return Kw(e)}catch(e){return"Object"}},Qw=Ew,Xw=Jw,Zw=TypeError,eS=function(e){if(Qw(e))return e;throw new Zw(Xw(e)+" is not a function")},tS=eS,rS=dw,nS=function(e,t){var r=e[t];return rS(r)?void 0:tS(r)},oS=Wb,iS=Ew,aS=xw,uS=TypeError,cS={exports:{}},sS=Bb,lS=Object.defineProperty,fS=function(e,t){try{lS(sS,e,{value:t,configurable:!0,writable:!0})}catch(r){sS[e]=t}return t},pS=Bb,hS=fS,dS="__core-js_shared__",vS=cS.exports=pS[dS]||hS(dS,{});(vS.versions||(vS.versions=[])).push({version:"3.46.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"});var yS=cS.exports,gS=yS,mS=function(e,t){return gS[e]||(gS[e]=t||{})},bS=gw,wS=Object,SS=function(e){return wS(bS(e))},ES=SS,AS=ow({}.hasOwnProperty),xS=Object.hasOwn||function(e,t){return AS(ES(e),t)},OS=ow,IS=0,PS=Math.random(),_S=OS(1.1.toString),RS=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_S(++IS+PS,36)},kS=mS,jS=xS,CS=RS,TS=zw,MS=Hw,LS=Bb.Symbol,NS=kS("wks"),US=MS?LS.for||LS:LS&&LS.withoutSetter||CS,DS=function(e){return jS(NS,e)||(NS[e]=TS&&jS(LS,e)?LS[e]:US("Symbol."+e)),NS[e]},BS=Wb,FS=xw,$S=Yw,zS=nS,HS=TypeError,GS=DS("toPrimitive"),qS=function(e,t){if(!FS(e)||$S(e))return e;var r,n=zS(e,GS);if(n){if(void 0===t&&(t="default"),r=BS(n,e,t),!FS(r)||$S(r))return r;throw new HS("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&iS(r=e.toString)&&!aS(n=oS(r,e)))return n;if(iS(r=e.valueOf)&&!aS(n=oS(r,e)))return n;if("string"!==t&&iS(r=e.toString)&&!aS(n=oS(r,e)))return n;throw new uS("Can't convert object to primitive value")}(e,t)},WS=Yw,VS=function(e){var t=qS(e,"string");return WS(t)?t:t+""},YS=xw,KS=Bb.document,JS=YS(KS)&&YS(KS.createElement),QS=function(e){return JS?KS.createElement(e):{}},XS=QS,ZS=!zb&&!$b(function(){return 7!==Object.defineProperty(XS("div"),"a",{get:function(){return 7}}).a}),eE=zb,tE=Wb,rE=Vb,nE=Zb,oE=ww,iE=VS,aE=xS,uE=ZS,cE=Object.getOwnPropertyDescriptor;Fb.f=eE?cE:function(e,t){if(e=oE(e),t=iE(t),uE)try{return cE(e,t)}catch(e){}if(aE(e,t))return nE(!tE(rE.f,e,t),e[t])};var sE={},lE=zb&&$b(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),fE=xw,pE=String,hE=TypeError,dE=function(e){if(fE(e))return e;throw new hE(pE(e)+" is not an object")},vE=zb,yE=ZS,gE=lE,mE=dE,bE=VS,wE=TypeError,SE=Object.defineProperty,EE=Object.getOwnPropertyDescriptor,AE="enumerable",xE="configurable",OE="writable";sE.f=vE?gE?function(e,t,r){if(mE(e),t=bE(t),mE(r),"function"==typeof e&&"prototype"===t&&"value"in r&&OE in r&&!r[OE]){var n=EE(e,t);n&&n[OE]&&(e[t]=r.value,r={configurable:xE in r?r[xE]:n[xE],enumerable:AE in r?r[AE]:n[AE],writable:!1})}return SE(e,t,r)}:SE:function(e,t,r){if(mE(e),t=bE(t),mE(r),yE)try{return SE(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new wE("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var IE=sE,PE=Zb,_E=zb?function(e,t,r){return IE.f(e,t,PE(1,r))}:function(e,t,r){return e[t]=r,e},RE={exports:{}},kE=zb,jE=xS,CE=Function.prototype,TE=kE&&Object.getOwnPropertyDescriptor,ME=jE(CE,"name"),LE={PROPER:ME&&"something"===function(){}.name,CONFIGURABLE:ME&&(!kE||kE&&TE(CE,"name").configurable)},NE=Ew,UE=yS,DE=ow(Function.toString);NE(UE.inspectSource)||(UE.inspectSource=function(e){return DE(e)});var BE,FE,$E,zE=UE.inspectSource,HE=Ew,GE=Bb.WeakMap,qE=HE(GE)&&/native code/.test(String(GE)),WE=RS,VE=mS("keys"),YE=function(e){return VE[e]||(VE[e]=WE(e))},KE={},JE=qE,QE=Bb,XE=xw,ZE=_E,eA=xS,tA=yS,rA=YE,nA=KE,oA="Object already initialized",iA=QE.TypeError,aA=QE.WeakMap;if(JE||tA.state){var uA=tA.state||(tA.state=new aA);uA.get=uA.get,uA.has=uA.has,uA.set=uA.set,BE=function(e,t){if(uA.has(e))throw new iA(oA);return t.facade=e,uA.set(e,t),t},FE=function(e){return uA.get(e)||{}},$E=function(e){return uA.has(e)}}else{var cA=rA("state");nA[cA]=!0,BE=function(e,t){if(eA(e,cA))throw new iA(oA);return t.facade=e,ZE(e,cA,t),t},FE=function(e){return eA(e,cA)?e[cA]:{}},$E=function(e){return eA(e,cA)}}var sA={set:BE,get:FE,has:$E,enforce:function(e){return $E(e)?FE(e):BE(e,{})},getterFor:function(e){return function(t){var r;if(!XE(t)||(r=FE(t)).type!==e)throw new iA("Incompatible receiver, "+e+" required");return r}}},lA=ow,fA=$b,pA=Ew,hA=xS,dA=zb,vA=LE.CONFIGURABLE,yA=zE,gA=sA.enforce,mA=sA.get,bA=String,wA=Object.defineProperty,SA=lA("".slice),EA=lA("".replace),AA=lA([].join),xA=dA&&!fA(function(){return 8!==wA(function(){},"length",{value:8}).length}),OA=String(String).split("String"),IA=RE.exports=function(e,t,r){"Symbol("===SA(bA(t),0,7)&&(t="["+EA(bA(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hA(e,"name")||vA&&e.name!==t)&&(dA?wA(e,"name",{value:t,configurable:!0}):e.name=t),xA&&r&&hA(r,"arity")&&e.length!==r.arity&&wA(e,"length",{value:r.arity});try{r&&hA(r,"constructor")&&r.constructor?dA&&wA(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=gA(e);return hA(n,"source")||(n.source=AA(OA,"string"==typeof t?t:"")),e};Function.prototype.toString=IA(function(){return pA(this)&&mA(this).source||yA(this)},"toString");var PA=RE.exports,_A=Ew,RA=sE,kA=PA,jA=fS,CA=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(_A(r)&&kA(r,i,n),n.global)o?e[t]=r:jA(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:RA.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},TA={},MA=Math.ceil,LA=Math.floor,NA=Math.trunc||function(e){var t=+e;return(t>0?LA:MA)(t)},UA=function(e){var t=+e;return t!=t||0===t?0:NA(t)},DA=UA,BA=Math.max,FA=Math.min,$A=function(e,t){var r=DA(e);return r<0?BA(r+t,0):FA(r,t)},zA=UA,HA=Math.min,GA=function(e){var t=zA(e);return t>0?HA(t,9007199254740991):0},qA=GA,WA=function(e){return qA(e.length)},VA=ww,YA=$A,KA=WA,JA=function(e){return function(t,r,n){var o=VA(t),i=KA(o);if(0===i)return!e&&-1;var a,u=YA(n,i);if(e&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},QA={includes:JA(!0),indexOf:JA(!1)},XA=xS,ZA=ww,ex=QA.indexOf,tx=KE,rx=ow([].push),nx=function(e,t){var r,n=ZA(e),o=0,i=[];for(r in n)!XA(tx,r)&&XA(n,r)&&rx(i,r);for(;t.length>o;)XA(n,r=t[o++])&&(~ex(i,r)||rx(i,r));return i},ox=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ix=nx,ax=ox.concat("length","prototype");TA.f=Object.getOwnPropertyNames||function(e){return ix(e,ax)};var ux={};ux.f=Object.getOwnPropertySymbols;var cx=Pw,sx=TA,lx=ux,fx=dE,px=ow([].concat),hx=cx("Reflect","ownKeys")||function(e){var t=sx.f(fx(e)),r=lx.f;return r?px(t,r(e)):t},dx=xS,vx=hx,yx=Fb,gx=sE,mx=function(e,t,r){for(var n=vx(t),o=gx.f,i=yx.f,a=0;a<n.length;a++){var u=n[a];dx(e,u)||r&&dx(r,u)||o(e,u,i(t,u))}},bx=$b,wx=Ew,Sx=/#|\.prototype\./,Ex=function(e,t){var r=xx[Ax(e)];return r===Ix||r!==Ox&&(wx(t)?bx(t):!!t)},Ax=Ex.normalize=function(e){return String(e).replace(Sx,".").toLowerCase()},xx=Ex.data={},Ox=Ex.NATIVE="N",Ix=Ex.POLYFILL="P",Px=Ex,_x=Bb,Rx=Fb.f,kx=_E,jx=CA,Cx=fS,Tx=mx,Mx=Px,Lx=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,s=e.stat;if(r=c?_x:s?_x[u]||Cx(u,{}):_x[u]&&_x[u].prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Rx(r,n))&&a.value:r[n],!Mx(c?n:u+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Tx(i,o)}(e.sham||o&&o.sham)&&kx(i,"sham",!0),jx(r,n,i,e)}},Nx=Hb,Ux=Function.prototype,Dx=Ux.apply,Bx=Ux.call,Fx="object"==typeof Reflect&&Reflect.apply||(Nx?Bx.bind(Dx):function(){return Bx.apply(Dx,arguments)}),$x=ow,zx=eS,Hx=xw,Gx=String,qx=TypeError,Wx=xw,Vx=gw,Yx=function(e){if(function(e){return Hx(e)||null===e}(e))return e;throw new qx("Can't set "+Gx(e)+" as a prototype")},Kx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=function(e,t,r){try{return $x(zx(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Vx(r),Yx(n),Wx(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Jx=sE.f,Qx=Ew,Xx=xw,Zx=Kx,eO=function(e,t,r){var n,o;return Zx&&Qx(n=t.constructor)&&n!==r&&Xx(o=n.prototype)&&o!==r.prototype&&Zx(e,o),e},tO={};tO[DS("toStringTag")]="z";var rO="[object z]"===String(tO),nO=Ew,oO=cw,iO=DS("toStringTag"),aO=Object,uO="Arguments"===oO(function(){return arguments}()),cO=rO?oO:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=aO(e),iO))?r:uO?oO(t):"Object"===(n=oO(t))&&nO(t.callee)?"Arguments":n},sO=cO,lO=String,fO=function(e){if("Symbol"===sO(e))throw new TypeError("Cannot convert a Symbol value to a string");return lO(e)},pO=fO,hO=function(e,t){return void 0===e?arguments.length<2?"":t:pO(e)},dO=xw,vO=_E,yO=Error,gO=ow("".replace),mO=String(new yO("zxcasd").stack),bO=/\n\s*at [^:]*:[^\n]*/,wO=bO.test(mO),SO=function(e,t){if(wO&&"string"==typeof e&&!yO.prepareStackTrace)for(;t--;)e=gO(e,bO,"");return e},EO=Zb,AO=!$b(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",EO(1,7)),7!==e.stack)}),xO=_E,OO=SO,IO=AO,PO=Error.captureStackTrace,_O=Pw,RO=xS,kO=_E,jO=_w,CO=Kx,TO=mx,MO=function(e,t,r){r in e||Jx(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},LO=eO,NO=hO,UO=zb,DO=Lx,BO=Fx,FO=function(e,t,r,n){var o="stackTraceLimit",i=n?2:1,a=e.split("."),u=a[a.length-1],c=_O.apply(null,a);if(c){var s=c.prototype;if(RO(s,"cause")&&delete s.cause,!r)return c;var l=_O("Error"),f=t(function(e,t){var r,o,a,u,l=NO(n?t:e,void 0),p=n?new c(e):new c;return void 0!==l&&kO(p,"message",l),r=p,o=f,a=p.stack,u=2,IO&&(PO?PO(r,o):xO(r,"stack",OO(a,u))),this&&jO(s,this)&&LO(p,this,f),arguments.length>i&&function(e,t){dO(t)&&"cause"in t&&vO(e,"cause",t.cause)}(p,arguments[i]),p});f.prototype=s,"Error"!==u?CO?CO(f,l):TO(f,l,{name:!0}):UO&&o in c&&(MO(f,c,o),MO(f,c,"prepareStackTrace")),TO(f,c);try{s.name!==u&&kO(s,"name",u),s.constructor=f}catch(e){}return f}},$O="WebAssembly",zO=Bb[$O],HO=7!==new Error("e",{cause:7}).cause,GO=function(e,t){var r={};r[e]=FO(e,t,HO),DO({global:!0,constructor:!0,arity:1,forced:HO},r)},qO=function(e,t){if(zO&&zO[e]){var r={};r[e]=FO($O+"."+e,t,HO),DO({target:$O,stat:!0,constructor:!0,arity:1,forced:HO},r)}};GO("Error",function(e){return function(t){return BO(e,this,arguments)}}),GO("EvalError",function(e){return function(t){return BO(e,this,arguments)}}),GO("RangeError",function(e){return function(t){return BO(e,this,arguments)}}),GO("ReferenceError",function(e){return function(t){return BO(e,this,arguments)}}),GO("SyntaxError",function(e){return function(t){return BO(e,this,arguments)}}),GO("TypeError",function(e){return function(t){return BO(e,this,arguments)}}),GO("URIError",function(e){return function(t){return BO(e,this,arguments)}}),qO("CompileError",function(e){return function(t){return BO(e,this,arguments)}}),qO("LinkError",function(e){return function(t){return BO(e,this,arguments)}}),qO("RuntimeError",function(e){return function(t){return BO(e,this,arguments)}});var WO={},VO=nx,YO=ox,KO=Object.keys||function(e){return VO(e,YO)},JO=zb,QO=lE,XO=sE,ZO=dE,eI=ww,tI=KO;WO.f=JO&&!QO?Object.defineProperties:function(e,t){ZO(e);for(var r,n=eI(t),o=tI(t),i=o.length,a=0;i>a;)XO.f(e,r=o[a++],n[r]);return e};var rI,nI=Pw("document","documentElement"),oI=dE,iI=WO,aI=ox,uI=KE,cI=nI,sI=QS,lI="prototype",fI="script",pI=YE("IE_PROTO"),hI=function(){},dI=function(e){return"<"+fI+">"+e+"</"+fI+">"},vI=function(e){e.write(dI("")),e.close();var t=e.parentWindow.Object;return e=null,t},yI=function(){try{rI=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;yI="undefined"!=typeof document?document.domain&&rI?vI(rI):(t=sI("iframe"),r="java"+fI+":",t.style.display="none",cI.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(dI("document.F=Object")),e.close(),e.F):vI(rI);for(var n=aI.length;n--;)delete yI[lI][aI[n]];return yI()};uI[pI]=!0;var gI=Object.create||function(e,t){var r;return null!==e?(hI[lI]=oI(e),r=new hI,hI[lI]=null,r[pI]=e):r=yI(),void 0===t?r:iI.f(r,t)},mI=DS,bI=gI,wI=sE.f,SI=mI("unscopables"),EI=Array.prototype;void 0===EI[SI]&&wI(EI,SI,{configurable:!0,value:bI(null)});var AI,xI,OI,II=function(e){EI[SI][e]=!0},PI={},_I=!$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),RI=xS,kI=Ew,jI=SS,CI=_I,TI=YE("IE_PROTO"),MI=Object,LI=MI.prototype,NI=CI?MI.getPrototypeOf:function(e){var t=jI(e);if(RI(t,TI))return t[TI];var r=t.constructor;return kI(r)&&t instanceof r?r.prototype:t instanceof MI?LI:null},UI=$b,DI=Ew,BI=xw,FI=NI,$I=CA,zI=DS("iterator"),HI=!1;[].keys&&("next"in(OI=[].keys())?(xI=FI(FI(OI)))!==Object.prototype&&(AI=xI):HI=!0);var GI=!BI(AI)||UI(function(){var e={};return AI[zI].call(e)!==e});GI&&(AI={}),DI(AI[zI])||$I(AI,zI,function(){return this});var qI={IteratorPrototype:AI,BUGGY_SAFARI_ITERATORS:HI},WI=sE.f,VI=xS,YI=DS("toStringTag"),KI=function(e,t,r){e&&!r&&(e=e.prototype),e&&!VI(e,YI)&&WI(e,YI,{configurable:!0,value:t})},JI=qI.IteratorPrototype,QI=gI,XI=Zb,ZI=KI,eP=PI,tP=function(){return this},rP=function(e,t,r,n){var o=t+" Iterator";return e.prototype=QI(JI,{next:XI(+!n,r)}),ZI(e,o,!1),eP[o]=tP,e},nP=Lx,oP=Wb,iP=Ew,aP=rP,uP=NI,cP=Kx,sP=KI,lP=_E,fP=CA,pP=PI,hP=LE.PROPER,dP=LE.CONFIGURABLE,vP=qI.IteratorPrototype,yP=qI.BUGGY_SAFARI_ITERATORS,gP=DS("iterator"),mP="keys",bP="values",wP="entries",SP=function(){return this},EP=function(e,t,r,n,o,i,a){aP(r,t,n);var u,c,s,l=function(e){if(e===o&&v)return v;if(!yP&&e&&e in h)return h[e];switch(e){case mP:case bP:case wP:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[gP]||h["@@iterator"]||o&&h[o],v=!yP&&d||l(o),y="Array"===t&&h.entries||d;if(y&&(u=uP(y.call(new e)))!==Object.prototype&&u.next&&(uP(u)!==vP&&(cP?cP(u,vP):iP(u[gP])||fP(u,gP,SP)),sP(u,f,!0)),hP&&o===bP&&d&&d.name!==bP&&(dP?lP(h,"name",bP):(p=!0,v=function(){return oP(d,this)})),o)if(c={values:l(bP),keys:i?v:l(mP),entries:l(wP)},a)for(s in c)(yP||p||!(s in h))&&fP(h,s,c[s]);else nP({target:t,proto:!0,forced:yP||p},c);return h[gP]!==v&&fP(h,gP,v,{name:o}),pP[t]=v,c},AP=function(e,t){return{value:e,done:t}},xP=ww,OP=II,IP=PI,PP=sA,_P=sE.f,RP=EP,kP=AP,jP=zb,CP="Array Iterator",TP=PP.set,MP=PP.getterFor(CP),LP=RP(Array,"Array",function(e,t){TP(this,{type:CP,target:xP(e),index:0,kind:t})},function(){var e=MP(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,kP(void 0,!0);switch(e.kind){case"keys":return kP(r,!1);case"values":return kP(t[r],!1)}return kP([r,t[r]],!1)},"values"),NP=IP.Arguments=IP.Array;if(OP("keys"),OP("values"),OP("entries"),jP&&"values"!==NP.name)try{_P(NP,"name",{value:"values"})}catch(e){}var UP=cw,DP=zb,BP=Array.isArray||function(e){return"Array"===UP(e)},FP=TypeError,$P=Object.getOwnPropertyDescriptor,zP=DP&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),HP=TypeError,GP=SS,qP=WA,WP=zP?function(e,t){if(BP(e)&&!$P(e,"length").writable)throw new FP("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t};Lx({target:"Array",proto:!0,arity:1,forced:$b(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=GP(this),r=qP(t),n=arguments.length;!function(e){if(e>9007199254740991)throw HP("Maximum allowed index exceeded")}(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return WP(t,r),r}});var VP=_w,YP=TypeError,KP=function(e,t){if(VP(t,e))return e;throw new YP("Incorrect invocation")},JP=PA,QP=sE,XP=function(e,t,r){return r.get&&JP(r.get,t,{getter:!0}),r.set&&JP(r.set,t,{setter:!0}),QP.f(e,t,r)},ZP=zb,e_=sE,t_=Zb,r_=function(e,t,r){ZP?e_.f(e,t,t_(0,r)):e[t]=r},n_=Lx,o_=Bb,i_=KP,a_=dE,u_=Ew,c_=NI,s_=XP,l_=r_,f_=$b,p_=xS,h_=qI.IteratorPrototype,d_=zb,v_="constructor",y_="Iterator",g_=DS("toStringTag"),m_=TypeError,b_=o_[y_],w_=!u_(b_)||b_.prototype!==h_||!f_(function(){b_({})}),S_=function(){if(i_(this,h_),c_(this)===h_)throw new m_("Abstract class Iterator not directly constructable")},E_=function(e,t){d_?s_(h_,e,{configurable:!0,get:function(){return t},set:function(t){if(a_(this),this===h_)throw new m_("You can't redefine this property");p_(this,e)?this[e]=t:l_(this,e,t)}}):h_[e]=t};p_(h_,g_)||E_(g_,y_),!w_&&p_(h_,v_)&&h_[v_]!==Object||E_(v_,S_),S_.prototype=h_,n_({global:!0,constructor:!0,forced:w_},{Iterator:S_});var A_=function(e){return{iterator:e,next:e.next,done:!1}},x_=CA,O_=function(e,t,r){for(var n in t)x_(e,n,t[n],r);return e},I_=Wb,P_=dE,__=nS,R_=function(e,t,r){var n,o;P_(e);try{if(!(n=__(e,"return"))){if("throw"===t)throw r;return r}n=I_(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return P_(n),r},k_=R_,j_=Wb,C_=gI,T_=_E,M_=O_,L_=sA,N_=nS,U_=qI.IteratorPrototype,D_=AP,B_=R_,F_=DS("toStringTag"),$_="IteratorHelper",z_="WrapForValidIterator",H_="normal",G_="throw",q_=L_.set,W_=function(e){var t=L_.getterFor(e?z_:$_);return M_(C_(U_),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return D_(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:D_(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),n=r.iterator;if(r.done=!0,e){var o=N_(n,"return");return o?j_(o,n):D_(void 0,!0)}if(r.inner)try{B_(r.inner.iterator,H_)}catch(e){return B_(n,G_,e)}if(r.openIters)try{!function(e,t,r){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{r=k_(e[n].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r}(r.openIters,H_)}catch(e){return B_(n,G_,e)}return n&&B_(n,H_),D_(void 0,!0)}})},V_=W_(!0),Y_=W_(!1);T_(Y_,F_,"Iterator Helper");var K_=dE,J_=R_,Q_=function(e,t,r,n){try{return n?t(K_(r)[0],r[1]):t(r)}catch(t){J_(e,"throw",t)}},X_=Bb,Z_=function(e,t){var r=X_.Iterator,n=r&&r.prototype,o=n&&n[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o},eR=Lx,tR=Wb,rR=eS,nR=dE,oR=A_,iR=Q_,aR=R_,uR=Z_,cR=!function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}("filter",function(){}),sR=!cR&&uR("filter",TypeError),lR=cR||sR,fR=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?z_:$_,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,q_(this,o)};return n.prototype=t?V_:Y_,n}(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=nR(tR(o,r)),this.done=!!e.done)return;if(t=e.value,iR(r,n,[t,this.counter++],!0))return t}});eR({target:"Iterator",proto:!0,real:!0,forced:lR},{filter:function(e){nR(this);try{rR(e)}catch(e){aR(this,"throw",e)}return sR?tR(sR,this,e):new fR(oR(this),{predicate:e})}});var pR=cw,hR=ow,dR=function(e){if("Function"===pR(e))return hR(e)},vR=eS,yR=Hb,gR=dR(dR.bind),mR=function(e,t){return vR(e),void 0===t?e:yR?gR(e,t):function(){return e.apply(t,arguments)}},bR=PI,wR=DS("iterator"),SR=Array.prototype,ER=function(e){return void 0!==e&&(bR.Array===e||SR[wR]===e)},AR=cO,xR=nS,OR=dw,IR=PI,PR=DS("iterator"),_R=function(e){if(!OR(e))return xR(e,PR)||xR(e,"@@iterator")||IR[AR(e)]},RR=Wb,kR=eS,jR=dE,CR=Jw,TR=_R,MR=TypeError,LR=function(e,t){var r=arguments.length<2?TR(e):t;if(kR(r))return jR(RR(r,e));throw new MR(CR(e)+" is not iterable")},NR=mR,UR=Wb,DR=dE,BR=Jw,FR=ER,$R=WA,zR=_w,HR=LR,GR=_R,qR=R_,WR=TypeError,VR=function(e,t){this.stopped=e,this.result=t},YR=VR.prototype,KR=function(e,t,r){var n,o,i,a,u,c,s,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=NR(t,l),y=function(e){return n&&qR(n,"normal"),new VR(!0,e)},g=function(e){return f?(DR(e),d?v(e[0],e[1],y):v(e[0],e[1])):d?v(e,y):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(o=GR(e)))throw new WR(BR(e)+" is not iterable");if(FR(o)){for(i=0,a=$R(e);a>i;i++)if((u=g(e[i]))&&zR(YR,u))return u;return new VR(!1)}n=HR(e,o)}for(c=p?e.next:n.next;!(s=UR(c,n)).done;){try{u=g(s.value)}catch(e){qR(n,"throw",e)}if("object"==typeof u&&u&&zR(YR,u))return u}return new VR(!1)},JR=Lx,QR=Wb,XR=KR,ZR=eS,ek=dE,tk=A_,rk=R_,nk=Z_("find",TypeError);JR({target:"Iterator",proto:!0,real:!0,forced:nk},{find:function(e){ek(this);try{ZR(e)}catch(e){rk(this,"throw",e)}if(nk)return QR(nk,this,e);var t=tk(this),r=0;return XR(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}});var ok=Lx,ik=Wb,ak=KR,uk=eS,ck=dE,sk=A_,lk=R_,fk=Z_("forEach",TypeError);ok({target:"Iterator",proto:!0,real:!0,forced:fk},{forEach:function(e){ck(this);try{uk(e)}catch(e){lk(this,"throw",e)}if(fk)return ik(fk,this,e);var t=sk(this),r=0;ak(t,function(t){e(t,r++)},{IS_RECORD:!0})}});var pk=zb,hk=ow,dk=Wb,vk=$b,yk=KO,gk=ux,mk=Vb,bk=SS,wk=hw,Sk=Object.assign,Ek=Object.defineProperty,Ak=hk([].concat),xk=!Sk||vk(function(){if(pk&&1!==Sk({b:1},Sk(Ek({},"a",{enumerable:!0,get:function(){Ek(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!==Sk({},e)[r]||yk(Sk({},t)).join("")!==n})?function(e,t){for(var r=bk(e),n=arguments.length,o=1,i=gk.f,a=mk.f;n>o;)for(var u,c=wk(arguments[o++]),s=i?Ak(yk(c),i(c)):yk(c),l=s.length,f=0;l>f;)u=s[f++],pk&&!dk(a,c,u)||(r[u]=c[u]);return r}:Sk,Ok=xk;Lx({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ok},{assign:Ok});var Ik=QS("span").classList,Pk=Ik&&Ik.constructor&&Ik.constructor.prototype,_k=Pk===Object.prototype?void 0:Pk,Rk=Bb,kk={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},jk=_k,Ck=LP,Tk=_E,Mk=KI,Lk=DS("iterator"),Nk=Ck.values,Uk=function(e,t){if(e){if(e[Lk]!==Nk)try{Tk(e,Lk,Nk)}catch(t){e[Lk]=Nk}if(Mk(e,t,!0),kk[t])for(var r in Ck)if(e[r]!==Ck[r])try{Tk(e,r,Ck[r])}catch(t){e[r]=Ck[r]}}};for(var Dk in kk)Uk(Rk[Dk]&&Rk[Dk].prototype,Dk);Uk(jk,"DOMTokenList");var Bk=dE,Fk=function(){var e=Bk(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},$k=$b,zk=Bb.RegExp,Hk=$k(function(){var e=zk("a","y");return e.lastIndex=2,null!==e.exec("abcd")});Hk||$k(function(){return!zk("a","y").sticky});var Gk=Hk||$k(function(){var e=zk("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),qk={BROKEN_CARET:Gk},Wk=$b,Vk=Bb.RegExp,Yk=Wk(function(){var e=Vk(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),Kk=$b,Jk=Bb.RegExp,Qk=Kk(function(){var e=Jk("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Xk=Wb,Zk=ow,ej=fO,tj=Fk,rj=qk,nj=gI,oj=sA.get,ij=Yk,aj=Qk,uj=mS("native-string-replace",String.prototype.replace),cj=RegExp.prototype.exec,sj=cj,lj=Zk("".charAt),fj=Zk("".indexOf),pj=Zk("".replace),hj=Zk("".slice),dj=function(){var e=/a/,t=/b*/g;return Xk(cj,e,"a"),Xk(cj,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),vj=rj.BROKEN_CARET,yj=void 0!==/()??/.exec("")[1];(dj||yj||vj||ij||aj)&&(sj=function(e){var t,r,n,o,i,a,u,c=this,s=oj(c),l=ej(e),f=s.raw;if(f)return f.lastIndex=c.lastIndex,t=Xk(sj,f,l),c.lastIndex=f.lastIndex,t;var p=s.groups,h=vj&&c.sticky,d=Xk(tj,c),v=c.source,y=0,g=l;if(h&&(d=pj(d,"y",""),-1===fj(d,"g")&&(d+="g"),g=hj(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==lj(l,c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),yj&&(r=new RegExp("^"+v+"$(?!\\s)",d)),dj&&(n=c.lastIndex),o=Xk(cj,h?r:c,g),h?o?(o.input=hj(o.input,y),o[0]=hj(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:dj&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),yj&&o&&o.length>1&&Xk(uj,o[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)}),o&&p)for(o.groups=a=nj(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var gj=sj;Lx({target:"RegExp",proto:!0,forced:/./.exec!==gj},{exec:gj});var mj=Wb,bj=CA,wj=gj,Sj=$b,Ej=DS,Aj=_E,xj=Ej("species"),Oj=RegExp.prototype,Ij=function(e,t,r,n){var o=Ej(e),i=!Sj(function(){var t={};return t[o]=function(){return 7},7!==""[e](t)}),a=i&&!Sj(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[xj]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t});if(!i||!a||r){var u=/./[o],c=t(o,""[e],function(e,t,r,n,o){var a=t.exec;return a===wj||a===Oj.exec?i&&!o?{done:!0,value:mj(u,t,r,n)}:{done:!0,value:mj(e,r,t,n)}:{done:!1}});bj(String.prototype,e,c[0]),bj(Oj,o,c[1])}n&&Aj(Oj[o],"sham",!0)},Pj=ow,_j=UA,Rj=fO,kj=gw,jj=Pj("".charAt),Cj=Pj("".charCodeAt),Tj=Pj("".slice),Mj=function(e){return function(t,r){var n,o,i=Rj(kj(t)),a=_j(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Cj(i,a))<55296||n>56319||a+1===u||(o=Cj(i,a+1))<56320||o>57343?e?jj(i,a):n:e?Tj(i,a,a+2):o-56320+(n-55296<<10)+65536}},Lj={codeAt:Mj(!1),charAt:Mj(!0)},Nj=Lj.charAt,Uj=ow,Dj=SS,Bj=Math.floor,Fj=Uj("".charAt),$j=Uj("".replace),zj=Uj("".slice),Hj=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Gj=/\$([$&'`]|\d{1,2})/g,qj=$b,Wj=Bb.RegExp,Vj=!qj(function(){var e=!0;try{Wj(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Wj.prototype,"flags").get.call(t)!==n||r!==n}),Yj=Wb,Kj=xS,Jj=_w,Qj=Vj,Xj=Fk,Zj=RegExp.prototype,eC=Qj?function(e){return e.flags}:function(e){return Qj||!Jj(Zj,e)||Kj(e,"flags")?e.flags:Yj(Xj,e)},tC=Wb,rC=dE,nC=Ew,oC=cw,iC=gj,aC=TypeError,uC=function(e,t){var r=e.exec;if(nC(r)){var n=tC(r,e,t);return null!==n&&rC(n),n}if("RegExp"===oC(e))return tC(iC,e,t);throw new aC("RegExp#exec called on incompatible receiver")},cC=Fx,sC=Wb,lC=ow,fC=Ij,pC=$b,hC=dE,dC=Ew,vC=xw,yC=UA,gC=GA,mC=fO,bC=gw,wC=function(e,t,r){return t+(r?Nj(e,t).length:1)},SC=nS,EC=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=Gj;return void 0!==o&&(o=Dj(o),c=Hj),$j(i,c,function(i,c){var s;switch(Fj(c,0)){case"$":return"$";case"&":return e;case"`":return zj(t,0,r);case"'":return zj(t,a);case"<":s=o[zj(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>u){var f=Bj(l/10);return 0===f?i:f<=u?void 0===n[f-1]?Fj(c,1):n[f-1]+Fj(c,1):i}s=n[l-1]}return void 0===s?"":s})},AC=eC,xC=uC,OC=DS("replace"),IC=Math.max,PC=Math.min,_C=lC([].concat),RC=lC([].push),kC=lC("".indexOf),jC=lC("".slice),CC=function(e){return void 0===e?e:String(e)},TC="$0"==="a".replace(/./,"$0"),MC=!!/./[OC]&&""===/./[OC]("a","$0"),LC=!pC(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fC("replace",function(e,t,r){var n=MC?"$":"$0";return[function(e,r){var n=bC(this),o=vC(e)?SC(e,OC):void 0;return o?sC(o,e,n,r):sC(t,mC(n),e,r)},function(e,o){var i=hC(this),a=mC(e);if("string"==typeof o&&-1===kC(o,n)&&-1===kC(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=dC(o);c||(o=mC(o));var s,l=mC(AC(i)),f=-1!==kC(l,"g");f&&(s=-1!==kC(l,"u"),i.lastIndex=0);for(var p,h=[];null!==(p=xC(i,a))&&(RC(h,p),f);)""===mC(p[0])&&(i.lastIndex=wC(a,gC(i.lastIndex),s));for(var d="",v=0,y=0;y<h.length;y++){for(var g,m=mC((p=h[y])[0]),b=IC(PC(yC(p.index),a.length),0),w=[],S=1;S<p.length;S++)RC(w,CC(p[S]));var E=p.groups;if(c){var A=_C([m],w,b,a);void 0!==E&&RC(A,E),g=mC(cC(o,void 0,A))}else g=EC(m,a,b,w,E,o);b>=v&&(d+=jC(a,v,b)+g,v=b+m.length)}return d+jC(a,v)}]},!LC||!TC||MC);class NC extends Error{constructor(e,t){super(e),this.name="UnisphereLoadError",this.code=t,Object.setPrototypeOf(this,NC.prototype)}}var UC=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},DC=Wb,BC=dE,FC=xw,$C=gw,zC=UC,HC=fO,GC=nS,qC=uC;Ij("search",function(e,t,r){return[function(t){var r=$C(this),n=FC(t)?GC(t,e):void 0;return n?DC(n,t,r):new RegExp(t)[e](HC(r))},function(e){var n=BC(this),o=HC(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;zC(a,0)||(n.lastIndex=0);var u=qC(n,o);return zC(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});const WC=e=>{const t=window.location.search.substr(1).split("&"),r=`${e}=`,n=t.filter(e=>e.search(r)>=0);return n.length>0?n[0].substring(n[0].search(r)+r.length):""};var VC=QA.includes,YC=II;Lx({target:"Array",proto:!0,forced:$b(function(){return!Array(1).includes()})},{includes:function(e){return VC(this,e,arguments.length>1?arguments[1]:void 0)}}),YC("includes");var KC=eS,JC=SS,QC=hw,XC=WA,ZC=TypeError,eT="Reduce of empty array with no initial value",tT={left:function(e,t,r,n){var o=JC(e),i=QC(o),a=XC(o);if(KC(t),0===a&&r<2)throw new ZC(eT);var u=0;if(r<2)for(;;){if(u in i){n=i[u],u+=1;break}if(a<=(u+=1))throw new ZC(eT)}for(;a>u;u+=1)u in i&&(n=t(n,i[u],u,o));return n}},rT=$b,nT=Bb,oT=jw,iT=cw,aT=function(e){return oT.slice(0,e.length)===e},uT=aT("Bun/")?"BUN":aT("Cloudflare-Workers")?"CLOUDFLARE":aT("Deno/")?"DENO":aT("Node.js/")?"NODE":nT.Bun&&"string"==typeof Bun.version?"BUN":nT.Deno&&"object"==typeof Deno.version?"DENO":"process"===iT(nT.process)?"NODE":nT.window&&nT.document?"BROWSER":"REST",cT="NODE"===uT,sT=tT.left;Lx({target:"Array",proto:!0,forced:!cT&&Dw>79&&Dw<83||!function(e,t){var r=[][e];return!!r&&rT(function(){r.call(null,t||function(){return 1},1)})}("reduce")},{reduce:function(e){var t=arguments.length;return sT(this,e,t,t>1?arguments[1]:void 0)}});var lT=Lx,fT=KR,pT=eS,hT=dE,dT=A_,vT=R_,yT=Z_,gT=Fx,mT=TypeError,bT=$b(function(){[].keys().reduce(function(){},void 0)}),wT=!bT&&yT("reduce",mT);lT({target:"Iterator",proto:!0,real:!0,forced:bT||wT},{reduce:function(e){hT(this);try{pT(e)}catch(e){vT(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(wT)return gT(wT,this,t?[e]:[e,r]);var n=dT(this),o=0;if(fT(n,function(n){t?(t=!1,r=n):r=e(r,n,o),o++},{IS_RECORD:!0}),t)throw new mT("Reduce of empty iterator with no initial value");return r}});var ST=xw,ET=cw,AT=DS("match"),xT=TypeError,OT=function(e){if(function(e){var t;return ST(e)&&(void 0!==(t=e[AT])?!!t:"RegExp"===ET(e))}(e))throw new xT("The method doesn't accept regular expressions");return e},IT=DS("match"),PT=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[IT]=!1,"/./"[e](t)}catch(e){}}return!1},_T=Lx,RT=dR,kT=Fb.f,jT=GA,CT=fO,TT=OT,MT=gw,LT=PT,NT=RT("".slice),UT=Math.min,DT=LT("startsWith"),BT=!DT&&!!function(){var e=kT(String.prototype,"startsWith");return e&&!e.writable}();_T({target:"String",proto:!0,forced:!BT&&!DT},{startsWith:function(e){var t=CT(MT(this));TT(e);var r=jT(UT(arguments.length>1?arguments[1]:void 0,t.length)),n=CT(e);return NT(t,r,r+n.length)===n}});var FT,$T="\t\n\v\f\r                 \u2028\u2029\ufeff",zT=gw,HT=fO,GT=$T,qT=ow("".replace),WT=RegExp("^["+GT+"]+"),VT=RegExp("(^|[^"+GT+"])["+GT+"]+$"),YT={trim:function(e){var t=HT(zT(e));return t=qT(t,WT,""),t=qT(t,VT,"$1")}},KT=LE.PROPER,JT=$T,QT=YT.trim;Lx({target:"String",proto:!0,forced:(FT="trim",$b(function(){return!!JT[FT]()||"​…᠎"!=="​…᠎"[FT]()||KT&&JT[FT].name!==FT}))},{trim:function(){return QT(this)}});let XT="true"===WC("unisphereVerbose")?"log":WC("unisphereVerbose")||"";const ZT=["log","debug"].includes(XT)?XT:"warn",eM=WC("unisphereEnvironment")||"prod",tM=WC("unispherePresets")||null,rM={logLevel:ZT,verbose:XT,environment:"dev"===eM?"dev":"prod",presets:tM?tM.split(",").reduce((e,t)=>(t.startsWith("-")?e.deactivate.push(t.substring(1).trim()):e.activate.push(t.trim()),e),{activate:[],deactivate:[]}):null},nM=()=>rM;function oM(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var iM=Bb,aM=Pw,uM=XP,cM=zb,sM=DS("species"),lM=ow,fM=$b,pM=Ew,hM=cO,dM=zE,vM=function(){},yM=Pw("Reflect","construct"),gM=/^\s*(?:class|function)\b/,mM=lM(gM.exec),bM=!gM.test(vM),wM=function(e){if(!pM(e))return!1;try{return yM(vM,[],e),!0}catch(e){return!1}},SM=function(e){if(!pM(e))return!1;switch(hM(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bM||!!mM(gM,dM(e))}catch(e){return!0}};SM.sham=!0;var EM,AM,xM,OM,IM=!yM||fM(function(){var e;return wM(wM.call)||!wM(Object)||!wM(function(){e=!0})||e})?SM:wM,PM=IM,_M=Jw,RM=TypeError,kM=dE,jM=dw,CM=DS("species"),TM=ow([].slice),MM=TypeError,LM=function(e,t){if(e<t)throw new MM("Not enough arguments");return e},NM=/(?:ipad|iphone|ipod).*applewebkit/i.test(jw),UM=Bb,DM=Fx,BM=mR,FM=Ew,$M=xS,zM=$b,HM=nI,GM=TM,qM=QS,WM=LM,VM=NM,YM=cT,KM=UM.setImmediate,JM=UM.clearImmediate,QM=UM.process,XM=UM.Dispatch,ZM=UM.Function,eL=UM.MessageChannel,tL=UM.String,rL=0,nL={},oL="onreadystatechange";zM(function(){EM=UM.location});var iL=function(e){if($M(nL,e)){var t=nL[e];delete nL[e],t()}},aL=function(e){return function(){iL(e)}},uL=function(e){iL(e.data)},cL=function(e){UM.postMessage(tL(e),EM.protocol+"//"+EM.host)};KM&&JM||(KM=function(e){WM(arguments.length,1);var t=FM(e)?e:ZM(e),r=GM(arguments,1);return nL[++rL]=function(){DM(t,void 0,r)},AM(rL),rL},JM=function(e){delete nL[e]},YM?AM=function(e){QM.nextTick(aL(e))}:XM&&XM.now?AM=function(e){XM.now(aL(e))}:eL&&!VM?(OM=(xM=new eL).port2,xM.port1.onmessage=uL,AM=BM(OM.postMessage,OM)):UM.addEventListener&&FM(UM.postMessage)&&!UM.importScripts&&EM&&"file:"!==EM.protocol&&!zM(cL)?(AM=cL,UM.addEventListener("message",uL,!1)):AM=oL in qM("script")?function(e){HM.appendChild(qM("script"))[oL]=function(){HM.removeChild(this),iL(e)}}:function(e){setTimeout(aL(e),0)});var sL={set:KM},lL=Bb,fL=zb,pL=Object.getOwnPropertyDescriptor,hL=function(e){if(!fL)return lL[e];var t=pL(lL,e);return t&&t.value},dL=function(){this.head=null,this.tail=null};dL.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var vL,yL,gL,mL,bL,wL=dL,SL=/ipad|iphone|ipod/i.test(jw)&&"undefined"!=typeof Pebble,EL=/web0s(?!.*chrome)/i.test(jw),AL=Bb,xL=hL,OL=mR,IL=sL.set,PL=wL,_L=NM,RL=SL,kL=EL,jL=cT,CL=AL.MutationObserver||AL.WebKitMutationObserver,TL=AL.document,ML=AL.process,LL=AL.Promise,NL=xL("queueMicrotask");if(!NL){var UL=new PL,DL=function(){var e,t;for(jL&&(e=ML.domain)&&e.exit();t=UL.get();)try{t()}catch(e){throw UL.head&&vL(),e}e&&e.enter()};_L||jL||kL||!CL||!TL?!RL&&LL&&LL.resolve?((mL=LL.resolve(void 0)).constructor=LL,bL=OL(mL.then,mL),vL=function(){bL(DL)}):jL?vL=function(){ML.nextTick(DL)}:(IL=OL(IL,AL),vL=function(){IL(DL)}):(yL=!0,gL=TL.createTextNode(""),new CL(DL).observe(gL,{characterData:!0}),vL=function(){gL.data=yL=!yL}),NL=function(e){UL.head||vL(),UL.add(e)}}var BL=NL,FL=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},$L=Bb.Promise,zL=Bb,HL=$L,GL=Ew,qL=Px,WL=zE,VL=DS,YL=uT,KL=Dw;HL&&HL.prototype;var JL=VL("species"),QL=!1,XL=GL(zL.PromiseRejectionEvent),ZL=qL("Promise",function(){var e=WL(HL),t=e!==String(HL);if(!t&&66===KL)return!0;if(!KL||KL<51||!/native code/.test(e)){var r=new HL(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[JL]=n,!(QL=r.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!==YL&&"DENO"!==YL||XL)}),eN={CONSTRUCTOR:ZL,REJECTION_EVENT:XL,SUBCLASSING:QL},tN={},rN=eS,nN=TypeError,oN=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new nN("Bad Promise constructor");t=e,r=n}),this.resolve=rN(t),this.reject=rN(r)};tN.f=function(e){return new oN(e)};var iN,aN,uN,cN,sN,lN=Lx,fN=cT,pN=Bb,hN=iM,dN=Wb,vN=CA,yN=Kx,gN=KI,mN=eS,bN=Ew,wN=xw,SN=KP,EN=function(e,t){var r,n=kM(e).constructor;return void 0===n||jM(r=kM(n)[CM])?t:function(e){if(PM(e))return e;throw new RM(_M(e)+" is not a constructor")}(r)},AN=sL.set,xN=BL,ON=FL,IN=wL,PN=sA,_N=$L,RN=tN,kN="Promise",jN=eN.CONSTRUCTOR,CN=eN.REJECTION_EVENT,TN=eN.SUBCLASSING,MN=PN.getterFor(kN),LN=PN.set,NN=_N&&_N.prototype,UN=_N,DN=NN,BN=pN.TypeError,FN=pN.document,$N=pN.process,zN=RN.f,HN=zN,GN=!!(FN&&FN.createEvent&&pN.dispatchEvent),qN="unhandledrejection",WN=function(e){var t;return!(!wN(e)||!bN(t=e.then))&&t},VN=function(e,t){var r,n,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,c=e.resolve,s=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&XN(t),t.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===e.promise?s(new BN("Promise-chain cycle")):(n=WN(r))?dN(n,r,c,s):c(r)):s(i)}catch(e){l&&!o&&l.exit(),s(e)}},YN=function(e,t){e.notified||(e.notified=!0,xN(function(){for(var r,n=e.reactions;r=n.get();)VN(r,e);e.notified=!1,t&&!e.rejection&&JN(e)}))},KN=function(e,t,r){var n,o;GN?((n=FN.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),pN.dispatchEvent(n)):n={promise:t,reason:r},!CN&&(o=pN["on"+e])?o(n):e===qN&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",r)},JN=function(e){dN(AN,pN,function(){var t,r=e.facade,n=e.value;if(QN(e)&&(t=ON(function(){fN?$N.emit("unhandledRejection",n,r):KN(qN,r,n)}),e.rejection=fN||QN(e)?2:1,t.error))throw t.value})},QN=function(e){return 1!==e.rejection&&!e.parent},XN=function(e){dN(AN,pN,function(){var t=e.facade;fN?$N.emit("rejectionHandled",t):KN("rejectionhandled",t,e.value)})},ZN=function(e,t,r){return function(n){e(t,n,r)}},eU=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,YN(e,!0))},tU=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new BN("Promise can't be resolved itself");var n=WN(t);n?xN(function(){var r={done:!1};try{dN(n,t,ZN(tU,r,e),ZN(eU,r,e))}catch(t){eU(r,t,e)}}):(e.value=t,e.state=1,YN(e,!1))}catch(t){eU({done:!1},t,e)}}};if(jN&&(DN=(UN=function(e){SN(this,DN),mN(e),dN(iN,this);var t=MN(this);try{e(ZN(tU,t),ZN(eU,t))}catch(e){eU(t,e)}}).prototype,(iN=function(e){LN(this,{type:kN,done:!1,notified:!1,parent:!1,reactions:new IN,rejection:!1,state:0,value:null})}).prototype=vN(DN,"then",function(e,t){var r=MN(this),n=zN(EN(this,UN));return r.parent=!0,n.ok=!bN(e)||e,n.fail=bN(t)&&t,n.domain=fN?$N.domain:void 0,0===r.state?r.reactions.add(n):xN(function(){VN(n,r)}),n.promise}),aN=function(){var e=new iN,t=MN(e);this.promise=e,this.resolve=ZN(tU,t),this.reject=ZN(eU,t)},RN.f=zN=function(e){return e===UN||e===uN?new aN(e):HN(e)},bN(_N)&&NN!==Object.prototype)){cN=NN.then,TN||vN(NN,"then",function(e,t){var r=this;return new UN(function(e,t){dN(cN,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NN.constructor}catch(e){}yN&&yN(NN,DN)}lN({global:!0,constructor:!0,wrap:!0,forced:jN},{Promise:UN}),uN=hN.Promise,gN(UN,kN,!1),sN=aM(kN),cM&&sN&&!sN[sM]&&uM(sN,sM,{configurable:!0,get:function(){return this}});var rU=DS("iterator"),nU=!1;try{var oU=0,iU={next:function(){return{done:!!oU++}},return:function(){nU=!0}};iU[rU]=function(){return this},Array.from(iU,function(){throw 2})}catch(e){}var aU=$L,uU=eN.CONSTRUCTOR||!function(e,t){try{if(!t&&!nU)return!1}catch(e){return!1}var r=!1;try{var n={};n[rU]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}(function(e){aU.all(e).then(void 0,function(){})}),cU=Wb,sU=eS,lU=tN,fU=FL,pU=KR;Lx({target:"Promise",stat:!0,forced:uU},{all:function(e){var t=this,r=lU.f(t),n=r.resolve,o=r.reject,i=fU(function(){var r=sU(t.resolve),i=[],a=0,u=1;pU(e,function(e){var c=a++,s=!1;u++,cU(r,t,e).then(function(e){s||(s=!0,i[c]=e,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var hU=Lx,dU=eN.CONSTRUCTOR,vU=$L,yU=Pw,gU=Ew,mU=CA,bU=vU&&vU.prototype;if(hU({target:"Promise",proto:!0,forced:dU,real:!0},{catch:function(e){return this.then(void 0,e)}}),gU(vU)){var wU=yU("Promise").prototype.catch;bU.catch!==wU&&mU(bU,"catch",wU,{unsafe:!0})}var SU=Wb,EU=eS,AU=tN,xU=FL,OU=KR;Lx({target:"Promise",stat:!0,forced:uU},{race:function(e){var t=this,r=AU.f(t),n=r.reject,o=xU(function(){var o=EU(t.resolve);OU(e,function(e){SU(o,t,e).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var IU=tN;Lx({target:"Promise",stat:!0,forced:eN.CONSTRUCTOR},{reject:function(e){var t=IU.f(this);return(0,t.reject)(e),t.promise}});var PU=dE,_U=xw,RU=tN,kU=Lx,jU=eN.CONSTRUCTOR;Pw("Promise"),kU({target:"Promise",stat:!0,forced:jU},{resolve:function(e){return function(e,t){if(PU(e),_U(t)&&t.constructor===e)return t;var r=RU.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var CU=LE.PROPER,TU=CA,MU=dE,LU=fO,NU=$b,UU=eC,DU="toString",BU=RegExp.prototype,FU=BU[DU],$U=NU(function(){return"/a/b"!==FU.call({source:"a",flags:"b"})}),zU=CU&&FU.name!==DU;($U||zU)&&TU(BU,DU,function(){var e=MU(this);return"/"+LU(e.source)+"/"+LU(UU(e))},{unsafe:!0});const HU=Rl.createWorkspaceLogger("window").getOrCreateLogger("loader","fetch-artifact"),GU=(e,t,r,n)=>{e.length>0&&(HU.log(`calling ${n} callbacks for ${r} (${e.length} queued)`),e.forEach(e=>{try{e(t)}catch(e){HU.error(`error calling ${n} callback for ${r}`,{error:e})}}))};const qU=Rl.createWorkspaceLogger("_global_").getOrCreateLogger("loader","reserve-workspace-by-application"),{value:WU}=_l("loadWorkspaceIntent",qU,{}),VU=({workspaceName:e,appId:t})=>{const r=e||"",n=t||"_unknown_";if(WU[r]&&WU[r]!==n){const e=`unisphere workspace '${r}' is not allowed to load by app '${n}'. Application '${WU[r]}' already reserved this workspace (consider using the same instance loaded by '${WU[r]}')`;throw qU.warn(e,{data:{workspaceName:r,appId:n,reservedByApp:WU[r]}}),new NC(e,"UNISPHERE_WORKSPACE_ALREADY_EXISTS")}qU.debug(`reserving workspace for app '${n}'`,{data:{workspaceName:r,appId:n}}),WU[r]=n},YU=e=>oM(void 0,void 0,void 0,function*(){var t;const r=Rl.createWorkspaceLogger(e.workspaceName||"").getOrCreateLogger("loader","fetch-and-load-unisphere-workspace");VU({workspaceName:e.workspaceName,appId:e.appId});const n=`${e.serverUrl}/loader/index.esm.js`;r.log("fetching environment unisphere loader",{data:{environmentLoaderUrl:n,unisphereWorkspaceConfig:e}});const{factoryModule:{loader:o}}=yield function(e){return oM(this,arguments,void 0,function*({owner:e,url:t,fetchStrategy:r}){var n;const{value:o}=_l("factoriesByURLS",HU,{}),i=t.toLowerCase(),a=o[i];if(a)return a.factoryModule?(HU.log(`using cached factory module for ${t}`),{factoryModule:a.factoryModule}):(HU.log(`a request to fetch factory already in progress for ${t}, waiting for it to finish`),new Promise((e,t)=>{a.onFetched.push(e),a.onError.push(t)}));HU.log(`fetching factory module for ${t}`);const u={requester:e,factoryModule:null,onFetched:[],onError:[]};o[i]=u;try{const e=null===(n=window.kalturaGlobalConfig)||void 0===n?void 0:n.scriptsNonce,o=r||(e?"scripts":"esm");HU.log(`using fetch strategy ${o} for ${t}`,{data:{fetchStrategy:r,hasNonce:!!e,resolvedFetchStrategy:o}});const i="scripts"===o?yield function(e,t){return oM(this,void 0,void 0,function*(){return new Promise((r,n)=>{HU.log(`Importing module with nonce from ${e}`);const o=`unisphere_import_${Date.now()}_${Math.random().toString(36).slice(2)}`;window[`${o}_resolve`]=t=>{HU.log(`Module from ${e} loaded successfully`),delete window[`${o}_resolve`],delete window[`${o}_reject`];const n=document.getElementById(o);n&&n.remove(),r(t)},window[`${o}_reject`]=t=>{HU.error(`Failed to load module from ${e}`,{error:t}),delete window[`${o}_resolve`],delete window[`${o}_reject`];const r=document.getElementById(o);r&&r.remove(),n(t)};const i=document.createElement("script");i.id=o,t&&i.setAttribute("nonce",t),i.textContent=`\n (async () => {\n try {\n const module = await import("${e}");\n try {\n window["${o}_resolve"](module);\n } catch (error) {\n console.error('Failed to resolve module from "${e}"', { error });\n }\n } catch (error) {\n window["${o}_reject"](error);\n }\n })();\n `,document.head.appendChild(i),setTimeout(()=>{if(window[`${o}_resolve`]){HU.error(`Import timeout for ${e}`);const t=new Error(`Timeout importing module from ${e}`);window[`${o}_reject`](t)}},3e4)})})}(t,e):yield import(t);HU.log(`fetched factory module for ${t}, caching it`),u.factoryModule=i;const a={factoryModule:u.factoryModule};return GU(u.onFetched,a,t,"onFetched"),u.onFetched=[],u.onError=[],a}catch(e){throw HU.log(`failed to fetch factory module for ${t}, removing from list`),GU(u.onError,e,t,"onError"),u.onError=[],u.onFetched=[],HU.log(`removing cached factory info for ${t} (next time it will be fetched again)`),delete o[i],e}})}({owner:"(unknown)",url:n,fetchStrategy:null===(t=e.devops)||void 0===t?void 0:t.fetchStrategy});if(!o)throw new Error(`failed to load dev loader from '${n}'`);return r.log(`executing environment unisphere loader from '${n}'`),o(e)});var KU=Lx,JU=Wb,QU=KR,XU=eS,ZU=dE,eD=A_,tD=R_,rD=Z_("some",TypeError);KU({target:"Iterator",proto:!0,real:!0,forced:rD},{some:function(e){ZU(this);try{XU(e)}catch(e){tD(this,"throw",e)}if(rD)return JU(rD,this,e);var t=eD(this),r=0;return QU(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var nD,oD,iD=Lx,aD=Wb,uD=Ew,cD=dE,sD=fO,lD=(nD=!1,(oD=/[ac]/).exec=function(){return nD=!0,/./.exec.apply(this,arguments)},!0===oD.test("abc")&&nD),fD=/./.test;iD({target:"RegExp",proto:!0,forced:!lD},{test:function(e){var t=cD(this),r=sD(e),n=t.exec;if(!uD(n))return aD(fD,t,r);var o=aD(n,t,r);return null!==o&&(cD(o),!0)}});var pD=Lx,hD=OT,dD=gw,vD=fO,yD=PT,gD=ow("".indexOf);pD({target:"String",proto:!0,forced:!yD("includes")},{includes:function(e){return!!~gD(vD(dD(this)),vD(hD(e)),arguments.length>1?arguments[1]:void 0)}});var mD=Lj.charAt,bD=fO,wD=sA,SD=EP,ED=AP,AD="String Iterator",xD=wD.set,OD=wD.getterFor(AD);SD(String,"String",function(e){xD(this,{type:AD,string:bD(e),index:0})},function(){var e,t=OD(this),r=t.string,n=t.index;return n>=r.length?ED(void 0,!0):(e=mD(r,n),t.index+=e.length,ED(e,!1))});var ID=$b,PD=zb,_D=DS("iterator"),RD=!ID(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),r.delete("a",2),r.delete("b",void 0),!t.size&&!PD||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[_D]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),kD=mR,jD=Wb,CD=SS,TD=Q_,MD=ER,LD=IM,ND=WA,UD=r_,DD=LR,BD=_R,FD=Array,$D=ow,zD=2147483647,HD=/[^\0-\u007E]/,GD=/[.\u3002\uFF0E\uFF61]/g,qD="Overflow: input needs wider integers to process",WD=RangeError,VD=$D(GD.exec),YD=Math.floor,KD=String.fromCharCode,JD=$D("".charCodeAt),QD=$D([].join),XD=$D([].push),ZD=$D("".replace),eB=$D("".split),tB=$D("".toLowerCase),rB=function(e){return e+22+75*(e<26)},nB=function(e,t,r){var n=0;for(e=r?YD(e/700):e>>1,e+=YD(e/t);e>455;)e=YD(e/35),n+=36;return YD(n+36*e/(e+38))},oB=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=JD(e,r++);if(o>=55296&&o<=56319&&r<n){var i=JD(e,r++);56320==(64512&i)?XD(t,((1023&o)<<10)+(1023&i)+65536):(XD(t,o),r--)}else XD(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&XD(t,KD(n));var c=t.length,s=c;for(c&&XD(t,"-");s<o;){var l=zD;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=s+1;if(l-i>YD((zD-a)/f))throw new WD(qD);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>zD)throw new WD(qD);if(n===i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,y=36-d;XD(t,KD(rB(d+v%y))),p=YD(v/y),h+=36}XD(t,KD(rB(p))),u=nB(a,f,s===c),a=0,s++}}a++,i++}return QD(t,"")},iB=Lx,aB=ow,uB=$A,cB=RangeError,sB=String.fromCharCode,lB=String.fromCodePoint,fB=aB([].join);iB({target:"String",stat:!0,arity:1,forced:!!lB&&1!==lB.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],uB(t,1114111)!==t)throw new cB(t+" is not a valid code point");r[o]=t<65536?sB(t):sB(55296+((t-=65536)>>10),t%1024+56320)}return fB(r,"")}});var pB=TM,hB=Math.floor,dB=function(e,t){var r=e.length;if(r<8)for(var n,o,i=1;i<r;){for(o=i,n=e[i];o&&t(e[o-1],n)>0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var a=hB(r/2),u=dB(pB(e,0,a),t),c=dB(pB(e,a),t),s=u.length,l=c.length,f=0,p=0;f<s||p<l;)e[f+p]=f<s&&p<l?t(u[f],c[p])<=0?u[f++]:c[p++]:f<s?u[f++]:c[p++];return e},vB=Lx,yB=Bb,gB=hL,mB=Pw,bB=Wb,wB=ow,SB=zb,EB=RD,AB=CA,xB=XP,OB=O_,IB=KI,PB=rP,_B=sA,RB=KP,kB=Ew,jB=xS,CB=mR,TB=cO,MB=dE,LB=xw,NB=fO,UB=gI,DB=Zb,BB=LR,FB=_R,$B=AP,zB=LM,HB=dB,GB=DS("iterator"),qB="URLSearchParams",WB=qB+"Iterator",VB=_B.set,YB=_B.getterFor(qB),KB=_B.getterFor(WB),JB=gB("fetch"),QB=gB("Request"),XB=gB("Headers"),ZB=QB&&QB.prototype,eF=XB&&XB.prototype,tF=yB.TypeError,rF=yB.encodeURIComponent,nF=String.fromCharCode,oF=mB("String","fromCodePoint"),iF=parseInt,aF=wB("".charAt),uF=wB([].join),cF=wB([].push),sF=wB("".replace),lF=wB([].shift),fF=wB([].splice),pF=wB("".split),hF=wB("".slice),dF=wB(/./.exec),vF=/\+/g,yF=/^[0-9a-f]+$/i,gF=function(e,t){var r=hF(e,t,t+2);return dF(yF,r)?iF(r,16):NaN},mF=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},bF=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},wF=function(e){for(var t=(e=sF(e,vF," ")).length,r="",n=0;n<t;){var o=aF(e,n);if("%"===o){if("%"===aF(e,n+1)||n+3>t){r+="%",n++;continue}var i=gF(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=mF(i);if(0===a)o=nF(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],c=1;c<a&&!(3+ ++n>t||"%"!==aF(e,n));){var s=gF(e,n+1);if(s!=s){n+=3;break}if(s>191||s<128)break;cF(u,s),n+=2,c++}if(u.length!==a){r+="�";continue}var l=bF(u);null===l?r+="�":o=oF(l)}}r+=o,n++}return r},SF=/[!'()~]|%20/g,EF={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},AF=function(e){return EF[e]},xF=function(e){return sF(rF(e),SF,AF)},OF=PB(function(e,t){VB(this,{type:WB,target:YB(e).entries,index:0,kind:t})},qB,function(){var e=KB(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,$B(void 0,!0);var n=t[r];switch(e.kind){case"keys":return $B(n.key,!1);case"values":return $B(n.value,!1)}return $B([n.key,n.value],!1)},!0),IF=function(e){this.entries=[],this.url=null,void 0!==e&&(LB(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===aF(e,0)?hF(e,1):e:NB(e)))};IF.prototype={type:qB,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,u,c=this.entries,s=FB(e);if(s)for(r=(t=BB(e,s)).next;!(n=bB(r,t)).done;){if(i=(o=BB(MB(n.value))).next,(a=bB(i,o)).done||(u=bB(i,o)).done||!bB(i,o).done)throw new tF("Expected sequence with length 2");cF(c,{key:NB(a.value),value:NB(u.value)})}else for(var l in e)jB(e,l)&&cF(c,{key:l,value:NB(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=pF(e,"&"),i=0;i<o.length;)(t=o[i++]).length&&(r=pF(t,"="),cF(n,{key:wF(lF(r)),value:wF(uF(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],cF(r,xF(e.key)+"="+xF(e.value));return uF(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var PF=function(){RB(this,_F);var e=VB(this,new IF(arguments.length>0?arguments[0]:void 0));SB||(this.size=e.entries.length)},_F=PF.prototype;if(OB(_F,{append:function(e,t){var r=YB(this);zB(arguments.length,2),cF(r.entries,{key:NB(e),value:NB(t)}),SB||this.length++,r.updateURL()},delete:function(e){for(var t=YB(this),r=zB(arguments.length,1),n=t.entries,o=NB(e),i=r<2?void 0:arguments[1],a=void 0===i?i:NB(i),u=0;u<n.length;){var c=n[u];if(c.key!==o||void 0!==a&&c.value!==a)u++;else if(fF(n,u,1),void 0!==a)break}SB||(this.size=n.length),t.updateURL()},get:function(e){var t=YB(this).entries;zB(arguments.length,1);for(var r=NB(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=YB(this).entries;zB(arguments.length,1);for(var r=NB(e),n=[],o=0;o<t.length;o++)t[o].key===r&&cF(n,t[o].value);return n},has:function(e){for(var t=YB(this).entries,r=zB(arguments.length,1),n=NB(e),o=r<2?void 0:arguments[1],i=void 0===o?o:NB(o),a=0;a<t.length;){var u=t[a++];if(u.key===n&&(void 0===i||u.value===i))return!0}return!1},set:function(e,t){var r=YB(this);zB(arguments.length,1);for(var n,o=r.entries,i=!1,a=NB(e),u=NB(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?fF(o,c--,1):(i=!0,n.value=u));i||cF(o,{key:a,value:u}),SB||(this.size=o.length),r.updateURL()},sort:function(){var e=YB(this);HB(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=YB(this).entries,n=CB(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new OF(this,"keys")},values:function(){return new OF(this,"values")},entries:function(){return new OF(this,"entries")}},{enumerable:!0}),AB(_F,GB,_F.entries,{name:"entries"}),AB(_F,"toString",function(){return YB(this).serialize()},{enumerable:!0}),SB&&xB(_F,"size",{get:function(){return YB(this).entries.length},configurable:!0,enumerable:!0}),IB(PF,qB),vB({global:!0,constructor:!0,forced:!EB},{URLSearchParams:PF}),!EB&&kB(XB)){var RF=wB(eF.has),kF=wB(eF.set),jF=function(e){if(LB(e)){var t,r=e.body;if(TB(r)===qB)return t=e.headers?new XB(e.headers):new XB,RF(t,"content-type")||kF(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),UB(e,{body:DB(0,NB(r)),headers:DB(0,t)})}return e};if(kB(JB)&&vB({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return JB(e,arguments.length>1?jF(arguments[1]):{})}}),kB(QB)){var CF=function(e){return RB(this,ZB),new QB(e,arguments.length>1?jF(arguments[1]):{})};ZB.constructor=CF,CF.prototype=ZB,vB({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:CF})}}var TF,MF=Lx,LF=zb,NF=RD,UF=Bb,DF=mR,BF=ow,FF=CA,$F=XP,zF=KP,HF=xS,GF=xk,qF=function(e){var t=CD(e),r=LD(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=kD(o,n>2?arguments[2]:void 0));var a,u,c,s,l,f,p=BD(t),h=0;if(!p||this===FD&&MD(p))for(a=ND(t),u=r?new this(a):FD(a);a>h;h++)f=i?o(t[h],h):t[h],UD(u,h,f);else for(u=r?new this:[],l=(s=DD(t,p)).next;!(c=jD(l,s)).done;h++)f=i?TD(s,o,[c.value,h],!0):c.value,UD(u,h,f);return u.length=h,u},WF=TM,VF=Lj.codeAt,YF=fO,KF=KI,JF=LM,QF={URLSearchParams:PF,getState:YB},XF=sA,ZF=XF.set,e$=XF.getterFor("URL"),t$=QF.URLSearchParams,r$=QF.getState,n$=UF.URL,o$=UF.TypeError,i$=UF.parseInt,a$=Math.floor,u$=Math.pow,c$=BF("".charAt),s$=BF(/./.exec),l$=BF([].join),f$=BF(1.1.toString),p$=BF([].pop),h$=BF([].push),d$=BF("".replace),v$=BF([].shift),y$=BF("".split),g$=BF("".slice),m$=BF("".toLowerCase),b$=BF([].unshift),w$="Invalid scheme",S$="Invalid host",E$="Invalid port",A$=/[a-z]/i,x$=/[\d+-.a-z]/i,O$=/\d/,I$=/^0x/i,P$=/^[0-7]+$/,_$=/^\d+$/,R$=/^[\da-f]+$/i,k$=/[\0\t\n\r #%/:<>?@[\\\]^|]/,j$=/[\0\t\n\r #/:<>?@[\\\]^|]/,C$=/^[\u0000-\u0020]+/,T$=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,M$=/[\t\n\r]/g,L$=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)b$(t,e%256),e=a$(e/256);return l$(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=f$(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},N$={},U$=GF({},N$,{" ":1,'"':1,"<":1,">":1,"`":1}),D$=GF({},U$,{"#":1,"?":1,"{":1,"}":1}),B$=GF({},D$,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),F$=function(e,t){var r=VF(e,0);return r>32&&r<127&&!HF(t,e)?e:encodeURIComponent(e)},$$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},z$=function(e,t){var r;return 2===e.length&&s$(A$,c$(e,0))&&(":"===(r=c$(e,1))||!t&&"|"===r)},H$=function(e){var t;return e.length>1&&z$(g$(e,0,2))&&(2===e.length||"/"===(t=c$(e,2))||"\\"===t||"?"===t||"#"===t)},G$=function(e){return"."===e||"%2e"===m$(e)},q$=function(e){return".."===(e=m$(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},W$={},V$={},Y$={},K$={},J$={},Q$={},X$={},Z$={},ez={},tz={},rz={},nz={},oz={},iz={},az={},uz={},cz={},sz={},lz={},fz={},pz={},hz=function(e,t,r){var n,o,i,a=YF(e);if(t){if(o=this.parse(a))throw new o$(o);this.searchParams=null}else{if(void 0!==r&&(n=new hz(r,!0)),o=this.parse(a,null,n))throw new o$(o);(i=r$(new t$)).bindURL(this),this.searchParams=i}};hz.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,u=this,c=t||W$,s=0,l="",f=!1,p=!1,h=!1;for(e=YF(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=d$(e,C$,""),e=d$(e,T$,"$1")),e=d$(e,M$,""),n=qF(e);s<=n.length;){switch(o=n[s],c){case W$:if(!o||!s$(A$,o)){if(t)return w$;c=Y$;continue}l+=m$(o),c=V$;break;case V$:if(o&&(s$(x$,o)||"+"===o||"-"===o||"."===o))l+=m$(o);else{if(":"!==o){if(t)return w$;l="",c=Y$,s=0;continue}if(t&&(u.isSpecial()!==HF($$,l)||"file"===l&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&$$[u.scheme]===u.port&&(u.port=null));l="","file"===u.scheme?c=iz:u.isSpecial()&&r&&r.scheme===u.scheme?c=K$:u.isSpecial()?c=Z$:"/"===n[s+1]?(c=J$,s++):(u.cannotBeABaseURL=!0,h$(u.path,""),c=lz)}break;case Y$:if(!r||r.cannotBeABaseURL&&"#"!==o)return w$;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=WF(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=pz;break}c="file"===r.scheme?iz:Q$;continue;case K$:if("/"!==o||"/"!==n[s+1]){c=Q$;continue}c=ez,s++;break;case J$:if("/"===o){c=tz;break}c=sz;continue;case Q$:if(u.scheme=r.scheme,o===TF)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=WF(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=X$;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=WF(r.path),u.query="",c=fz;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=WF(r.path),u.path.length--,c=sz;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=WF(r.path),u.query=r.query,u.fragment="",c=pz}break;case X$:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=sz;continue}c=tz}else c=ez;break;case Z$:if(c=ez,"/"!==o||"/"!==c$(l,s+1))continue;s++;break;case ez:if("/"!==o&&"\\"!==o){c=tz;continue}break;case tz:if("@"===o){f&&(l="%40"+l),f=!0,i=qF(l);for(var d=0;d<i.length;d++){var v=i[d];if(":"!==v||h){var y=F$(v,B$);h?u.password+=y:u.username+=y}else h=!0}l=""}else if(o===TF||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===l)return"Invalid authority";s-=qF(l).length+1,l="",c=rz}else l+=o;break;case rz:case nz:if(t&&"file"===u.scheme){c=uz;continue}if(":"!==o||p){if(o===TF||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===l)return S$;if(t&&""===l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=cz,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),l+=o}else{if(""===l)return S$;if(a=u.parseHost(l))return a;if(l="",c=oz,t===nz)return}break;case oz:if(!s$(O$,o)){if(o===TF||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==l){var g=i$(l,10);if(g>65535)return E$;u.port=u.isSpecial()&&g===$$[u.scheme]?null:g,l=""}if(t)return;c=cz;continue}return E$}l+=o;break;case iz:if(u.scheme="file","/"===o||"\\"===o)c=az;else{if(!r||"file"!==r.scheme){c=sz;continue}switch(o){case TF:u.host=r.host,u.path=WF(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=WF(r.path),u.query="",c=fz;break;case"#":u.host=r.host,u.path=WF(r.path),u.query=r.query,u.fragment="",c=pz;break;default:H$(l$(WF(n,s),""))||(u.host=r.host,u.path=WF(r.path),u.shortenPath()),c=sz;continue}}break;case az:if("/"===o||"\\"===o){c=uz;break}r&&"file"===r.scheme&&!H$(l$(WF(n,s),""))&&(z$(r.path[0],!0)?h$(u.path,r.path[0]):u.host=r.host),c=sz;continue;case uz:if(o===TF||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&z$(l))c=sz;else if(""===l){if(u.host="",t)return;c=cz}else{if(a=u.parseHost(l))return a;if("localhost"===u.host&&(u.host=""),t)return;l="",c=cz}continue}l+=o;break;case cz:if(u.isSpecial()){if(c=sz,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==TF&&(c=sz,"/"!==o))continue}else u.fragment="",c=pz;else u.query="",c=fz;break;case sz:if(o===TF||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(q$(l)?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||h$(u.path,"")):G$(l)?"/"===o||"\\"===o&&u.isSpecial()||h$(u.path,""):("file"===u.scheme&&!u.path.length&&z$(l)&&(u.host&&(u.host=""),l=c$(l,0)+":"),h$(u.path,l)),l="","file"===u.scheme&&(o===TF||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)v$(u.path);"?"===o?(u.query="",c=fz):"#"===o&&(u.fragment="",c=pz)}else l+=F$(o,D$);break;case lz:"?"===o?(u.query="",c=fz):"#"===o?(u.fragment="",c=pz):o!==TF&&(u.path[0]+=F$(o,N$));break;case fz:t||"#"!==o?o!==TF&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":F$(o,N$)):(u.fragment="",c=pz);break;case pz:o!==TF&&(u.fragment+=F$(o,U$))}s++}},parseHost:function(e){var t,r,n;if("["===c$(e,0)){if("]"!==c$(e,e.length-1))return S$;if(t=function(e){var t,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return c$(e,f)};if(":"===p()){if(":"!==c$(e,1))return;f+=2,l=++s}for(;p();){if(8===s)return;if(":"!==p()){for(t=r=0;r<4&&s$(R$,p());)t=16*t+i$(p(),16),f++,r++;if("."===p()){if(0===r)return;if(f-=r,s>6)return;for(n=0;p();){if(o=null,n>0){if(!("."===p()&&n<4))return;f++}if(!s$(O$,p()))return;for(;s$(O$,p());){if(i=i$(p(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}c[s]=256*c[s]+o,2!==++n&&4!==n||s++}if(4!==n)return;break}if(":"===p()){if(f++,!p())return}else if(p())return;c[s++]=t}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!==s&&a>0;)u=c[s],c[s--]=c[l+a-1],c[l+--a]=u;else if(8!==s)return;return c}(g$(e,1,-1)),!t)return S$;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=eB(ZD(tB(e),GD,"."),".");for(t=0;t<o.length;t++)r=o[t],XD(n,VD(HD,r)?"xn--"+oB(r):r);return QD(n,".")}(e),s$(k$,e))return S$;if(t=function(e){var t,r,n,o,i,a,u,c=y$(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(o=c[n]))return e;if(i=10,o.length>1&&"0"===c$(o,0)&&(i=s$(I$,o)?16:8,o=g$(o,8===i?1:2)),""===o)a=0;else{if(!s$(10===i?_$:8===i?P$:R$,o))return e;a=i$(o,i)}h$(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=u$(256,5-t))return null}else if(a>255)return null;for(u=p$(r),n=0;n<r.length;n++)u+=r[n]*u$(256,3-n);return u}(e),null===t)return S$;this.host=t}else{if(s$(j$,e))return S$;for(t="",r=qF(e),n=0;n<r.length;n++)t+=F$(r[n],N$);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return HF($$,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&z$(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,u=e.query,c=e.fragment,s=t+":";return null!==o?(s+="//",e.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=L$(o),null!==i&&(s+=":"+i)):"file"===t&&(s+="//"),s+=e.cannotBeABaseURL?a[0]:a.length?"/"+l$(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(e){var t=this.parse(e);if(t)throw new o$(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new dz(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+L$(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(YF(e)+":",W$)},getUsername:function(){return this.username},setUsername:function(e){var t=qF(YF(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=F$(t[r],B$)}},getPassword:function(){return this.password},setPassword:function(e){var t=qF(YF(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=F$(t[r],B$)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?L$(e):L$(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,rz)},getHostname:function(){var e=this.host;return null===e?"":L$(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,nz)},getPort:function(){var e=this.port;return null===e?"":YF(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=YF(e))?this.port=null:this.parse(e,oz))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+l$(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,cz))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=YF(e))?this.query=null:("?"===c$(e,0)&&(e=g$(e,1)),this.query="",this.parse(e,fz)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=YF(e))?("#"===c$(e,0)&&(e=g$(e,1)),this.fragment="",this.parse(e,pz)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var dz=function(e){var t=zF(this,vz),r=JF(arguments.length,1)>1?arguments[1]:void 0,n=ZF(t,new hz(e,!1,r));LF||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},vz=dz.prototype,yz=function(e,t){return{get:function(){return e$(this)[e]()},set:t&&function(e){return e$(this)[t](e)},configurable:!0,enumerable:!0}};if(LF&&($F(vz,"href",yz("serialize","setHref")),$F(vz,"origin",yz("getOrigin")),$F(vz,"protocol",yz("getProtocol","setProtocol")),$F(vz,"username",yz("getUsername","setUsername")),$F(vz,"password",yz("getPassword","setPassword")),$F(vz,"host",yz("getHost","setHost")),$F(vz,"hostname",yz("getHostname","setHostname")),$F(vz,"port",yz("getPort","setPort")),$F(vz,"pathname",yz("getPathname","setPathname")),$F(vz,"search",yz("getSearch","setSearch")),$F(vz,"searchParams",yz("getSearchParams")),$F(vz,"hash",yz("getHash","setHash"))),FF(vz,"toJSON",function(){return e$(this).serialize()},{enumerable:!0}),FF(vz,"toString",function(){return e$(this).serialize()},{enumerable:!0}),n$){var gz=n$.createObjectURL,mz=n$.revokeObjectURL;gz&&FF(dz,"createObjectURL",DF(gz,n$)),mz&&FF(dz,"revokeObjectURL",DF(mz,n$))}KF(dz,"URL"),MF({global:!0,constructor:!0,forced:!NF,sham:!LF},{URL:dz});var bz=Wb;Lx({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return bz(URL.prototype.toString,this)}});var wz=CA,Sz=ow,Ez=fO,Az=LM,xz=URLSearchParams,Oz=xz.prototype,Iz=Sz(Oz.append),Pz=Sz(Oz.delete),_z=Sz(Oz.forEach),Rz=Sz([].push),kz=new xz("a=1&a=2&b=3");kz.delete("a",1),kz.delete("b",void 0),kz+""!="a=2"&&wz(Oz,"delete",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return Pz(this,e);var n=[];_z(this,function(e,t){Rz(n,{key:t,value:e})}),Az(t,1);for(var o,i=Ez(e),a=Ez(r),u=0,c=0,s=!1,l=n.length;u<l;)o=n[u++],s||o.key===i?(s=!0,Pz(this,o.key)):c++;for(;c<l;)(o=n[c++]).key===i&&o.value===a||Iz(this,o.key,o.value)},{enumerable:!0,unsafe:!0});var jz=CA,Cz=ow,Tz=fO,Mz=LM,Lz=URLSearchParams,Nz=Lz.prototype,Uz=Cz(Nz.getAll),Dz=Cz(Nz.has),Bz=new Lz("a=1");!Bz.has("a",2)&&Bz.has("a",void 0)||jz(Nz,"has",function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return Dz(this,e);var n=Uz(this,e);Mz(t,1);for(var o=Tz(r),i=0;i<n.length;)if(n[i++]===o)return!0;return!1},{enumerable:!0,unsafe:!0});var Fz=zb,$z=ow,zz=XP,Hz=URLSearchParams.prototype,Gz=$z(Hz.forEach);Fz&&!("size"in Hz)&&zz(Hz,"size",{get:function(){var e=0;return Gz(this,function(){e++}),e},configurable:!0,enumerable:!0});var qz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Wz=qz+"-_",Vz=function(e){for(var t={},r=0;r<64;r++)t[e.charAt(r)]=r;return t},Yz={c2i:Vz(qz+"+/"),c2iUrl:Vz(Wz)},Kz=Lx,Jz=Bb,Qz=Pw,Xz=ow,Zz=Wb,eH=$b,tH=fO,rH=LM,nH=Yz.c2i,oH=/[^\d+/a-z]/i,iH=/[\t\n\f\r ]+/g,aH=/[=]{1,2}$/,uH=Qz("atob"),cH=String.fromCharCode,sH=Xz("".charAt),lH=Xz("".replace),fH=Xz(oH.exec),pH=!!uH&&!eH(function(){return"hi"!==uH("aGk=")}),hH=pH&&eH(function(){return""!==uH(" ")}),dH=pH&&!eH(function(){uH("a")}),vH=pH&&!eH(function(){uH()}),yH=pH&&1!==uH.length;Kz({global:!0,bind:!0,enumerable:!0,forced:!pH||hH||dH||vH||yH},{atob:function(e){if(rH(arguments.length,1),pH&&!hH&&!dH)return Zz(uH,Jz,e);var t,r,n,o=lH(tH(e),iH,""),i="",a=0,u=0;if(o.length%4==0&&(o=lH(o,aH,"")),(t=o.length)%4==1||fH(oH,o))throw new(Qz("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;a<t;)r=sH(o,a++),n=u%4?64*n+nH[r]:nH[r],u++%4&&(i+=cH(255&n>>(-2*u&6)));return i}});var gH=Bb,mH=cT,bH=zb,wH=$b,SH=dE,EH=hO,AH=Error.prototype.toString,xH=wH(function(){if(bH){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==AH.call(e))return!0}return"2: 1"!==AH.call({message:1,name:2})||"Error"!==AH.call({})})?function(){var e=SH(this),t=EH(e.name,"Error"),r=EH(e.message);return t?r?t+": "+r:t:r}:AH,OH={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},IH=Lx,PH=Pw,_H=$b,RH=gI,kH=Zb,jH=sE.f,CH=CA,TH=XP,MH=xS,LH=KP,NH=dE,UH=xH,DH=hO,BH=OH,FH=SO,$H=sA,zH=zb,HH="DOMException",GH="DATA_CLONE_ERR",qH=PH("Error"),WH=PH(HH)||function(){try{(new(PH("MessageChannel")||function(e){if(mH){try{return gH.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===GH&&25===e.code)return e.constructor}}(),VH=WH&&WH.prototype,YH=qH.prototype,KH=$H.set,JH=$H.getterFor(HH),QH="stack"in new qH(HH),XH=function(e){return MH(BH,e)&&BH[e].m?BH[e].c:0},ZH=function(){LH(this,eG);var e=arguments.length,t=DH(e<1?void 0:arguments[0]),r=DH(e<2?void 0:arguments[1],"Error"),n=XH(r);if(KH(this,{type:HH,name:r,message:t,code:n}),zH||(this.name=r,this.message=t,this.code=n),QH){var o=new qH(t);o.name=HH,jH(this,"stack",kH(1,FH(o.stack,1)))}},eG=ZH.prototype=RH(YH),tG=function(e){return{enumerable:!0,configurable:!0,get:e}},rG=function(e){return tG(function(){return JH(this)[e]})};zH&&(TH(eG,"code",rG("code")),TH(eG,"message",rG("message")),TH(eG,"name",rG("name"))),jH(eG,"constructor",kH(1,ZH));var nG=_H(function(){return!(new WH instanceof qH)}),oG=nG||_H(function(){return YH.toString!==UH||"2: 1"!==String(new WH(1,2))}),iG=nG||_H(function(){return 25!==new WH(1,"DataCloneError").code});nG||25!==WH[GH]||VH[GH],IH({global:!0,constructor:!0,forced:nG},{DOMException:nG?ZH:WH});var aG=PH(HH),uG=aG.prototype;for(var cG in oG&&WH===aG&&CH(uG,"toString",UH),iG&&zH&&WH===aG&&TH(uG,"code",tG(function(){return XH(NH(this).name)})),BH)if(MH(BH,cG)){var sG=BH[cG],lG=sG.s,fG=kH(6,sG.c);MH(aG,lG)||jH(aG,lG,fG),MH(uG,lG)||jH(uG,lG,fG)}var pG=Lx,hG=Bb,dG=Pw,vG=Zb,yG=sE.f,gG=xS,mG=KP,bG=eO,wG=hO,SG=OH,EG=SO,AG=zb,xG="DOMException",OG=dG("Error"),IG=dG(xG),PG=function(){mG(this,_G);var e=arguments.length,t=wG(e<1?void 0:arguments[0]),r=wG(e<2?void 0:arguments[1],"Error"),n=new IG(t,r),o=new OG(t);return o.name=xG,yG(n,"stack",vG(1,EG(o.stack,1))),bG(n,this,PG),n},_G=PG.prototype=IG.prototype,RG="stack"in new OG(xG),kG="stack"in new IG(1,2),jG=IG&&AG&&Object.getOwnPropertyDescriptor(hG,xG),CG=!(!jG||jG.writable&&jG.configurable),TG=RG&&!CG&&!kG;pG({global:!0,constructor:!0,forced:TG},{DOMException:TG?PG:IG});var MG=dG(xG),LG=MG.prototype;if(LG.constructor!==MG)for(var NG in yG(LG,"constructor",vG(1,MG)),SG)if(gG(SG,NG)){var UG=SG[NG],DG=UG.s;gG(MG,DG)||yG(MG,DG,vG(6,UG.c))}var BG="DOMException";function FG(e){return oM(this,void 0,void 0,function*(){const{getByWorkspaceName:t}=yield function(){const e=window;return new Promise(t=>{var r,n;if(null===(n=null===(r=e.unisphere)||void 0===r?void 0:r.instancesManager)||void 0===n?void 0:n.get)t({getByWorkspaceName:e.unisphere.instancesManager.get,getByPresetName:e.unisphere.instancesManager.getByPresetName||(()=>(console.warn("getByPresetName not implemented"),Promise.reject(new Error)))});else{const r=()=>{document.removeEventListener("unisphere-ready",r),t({getByWorkspaceName:e.unisphere.instancesManager.get,getByPresetName:e.unisphere.instancesManager.getByPresetName})};document.addEventListener("unisphere-ready",r)}})}();return t(e)})}function $G(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return zG(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zG(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function zG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}KI(Pw(BG),BG),nM(),nM(),new Map;var HG=function(){return a(function e(r,n,o,i){t(this,e),f(this,"iconIds",new Map),f(this,"panelIds",new Set),f(this,"persistentIconIds",new Map),f(this,"workspaceName",""),f(this,"shouldCreateWorkspace",!1),f(this,"expandOnFirstPlayPanels",new Set),this.player=r,this.eventManager=n,this.logger=o,this.config=i,this.containerManager=new he(r),this.player.config.provider.unisphereLoaderUrl&&"string"==typeof this.config.workspaceName?this.workspaceName=this.config.workspaceName:(this.workspaceName=V("kaltura_player_workspace_"),this.shouldCreateWorkspace=!0)},[{key:"upperBarManager",get:function(){return this.player.getService(b.UPPER_BAR_MANAGER)}},{key:"sidePanelsManager",get:function(){return this.player.getService(b.SIDE_PANELS_MANAGER)}},{key:"addEventHandlers",value:function(){var t=this;$.subscribe(g.MEDIA_SEEK_TO_TIME,function(e){var r=e.payload,n=r.seekToInSeconds,o=r.entryId,i=r.play;t.handleSeekToTime({seekToInSeconds:n,entryId:o,play:i})}),this.eventManager.listenOnce(this.player,e.core.EventType.FIRST_PLAYING,function(){t.handleFirstPlay()})}},{key:"handleFirstPlay",value:function(){var e,t=$G(this.expandOnFirstPlayPanels);try{for(t.s();!(e=t.n()).done;){var r,n=e.value;null===(r=this.sidePanelsManager)||void 0===r||r.activateItem(n)}}catch(e){t.e(e)}finally{t.f()}}},{key:"handleSeekToTime",value:function(e){var t=e.seekToInSeconds,r=e.entryId,n=e.play,o=parseFloat(t);isNaN(o)?this.logger.warn("Invalid seekToInSeconds value:",t):r&&this.player.sources.id!==r?this.logger.warn("Entry ID mismatch:",{current:this.player.sources.id,requested:r}):(this.player.currentTime=o,!0===n?this.player.play():!1===n&&this.player.pause())}},{key:"getWorkspace",value:(r=h(v().mark(function e(){var t;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.shouldCreateWorkspace){e.next=2;break}return e.next=1,YU({serverUrl:this.player.config.provider.unisphereLoaderUrl,workspaceName:this.workspaceName,appId:"kaltura-player",appVersion:"",ui:{theme:"light",language:"en"}});case 1:t=e.sent,e.next=4;break;case 2:return e.next=3,FG(this.config.workspaceName);case 3:t=e.sent;case 4:return j.set(t),e.abrupt("return",t);case 5:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"addUpperBarIcon",value:function(e,t,r,n,o,i){var a,u=this;if(!this.iconIds.has(e)&&!this.persistentIconIds.has(e)){this.panelIds.add(o);var c=null===(a=this.upperBarManager)||void 0===a?void 0:a.add({displayName:t,ariaLabel:t,order:r,component:function(){return(0,y.h)(k,{id:e,label:t,iconPath:n})},svgIcon:{path:n},onClick:function(){var e,t,r;null!==(e=u.sidePanelsManager)&&void 0!==e&&e.isItemActive(o)?null===(t=u.sidePanelsManager)||void 0===t||t.deactivateItem(o):null===(r=u.sidePanelsManager)||void 0===r||r.activateItem(o)}});i?this.persistentIconIds.set(e,c):this.iconIds.set(e,c)}}},{key:"initRuntime",value:function(e,t,r){if(null!=e&&e.widgetName&&null!=e&&e.runtimeName&&null!=t&&t.layouts){this.addEventHandlers();var n=t.layouts;if(n&&n.length>0){var o,i=this.player.ui.store.getState().shell.activePresetName,a=$G(n);try{for(a.s();!(o=a.n()).done;){var u,c=o.value;if((null==c?void 0:c.type)===w.SIDEPANEL&&null!=c&&null!==(u=c.presets)&&void 0!==u&&u.includes(i)){var s={containerType:w.SIDEPANEL,presets:c.presets.filter(S),unisphereArea:c.sidepanel.visualType,position:null==r?void 0:r.position,expandMode:null==r?void 0:r.expandMode,expandOnFirstPlay:null==r?void 0:r.expandOnFirstPlay,layout:c},l=this.containerManager.createContainer(s);if(l){var f,p=c.sidepanel.visualType,h=q.get(p),d=null==h||null===(f=h.upperBarIcon)||void 0===f?void 0:f.panelId;d&&c.header&&this.addUpperBarIcon(V(e.widgetName.split(".")[2]),c.header.tooltip,0,c.header.icon,d,!1),this.mountRuntimeToContainer(e,c,l),null!=r&&r.expandOnFirstPlay&&d&&this.expandOnFirstPlayPanels.add(d)}}}}catch(e){a.e(e)}finally{a.f()}}}}},{key:"mountRuntimeToContainer",value:function(e,t,r){setTimeout(function(){var n=document.getElementById(r);n&&(null==e||e.mountVisual({type:t.sidepanel.visualType,settings:t.sidepanel.visualSettings,target:n}))},100)}},{key:"updateSessionData",value:function(){var e,t;q.update(m.PLAYER_SESSION,{entryId:this.player.sources.id,ks:null===(e=this.player.config.session)||void 0===e?void 0:e.ks,entryName:null===(t=this.player.sources.metadata)||void 0===t?void 0:t.name})}},{key:"reset",value:function(){var e,t=$G(this.panelIds);try{for(t.s();!(e=t.n()).done;){var r,n,o=e.value;null!==(r=this.sidePanelsManager)&&void 0!==r&&r.isItemActive(o)&&this.sidePanelsManager.deactivateItem(o),null===(n=this.sidePanelsManager)||void 0===n||n.remove(o)}}catch(e){t.e(e)}finally{t.f()}this.panelIds.clear();var i,a=$G(this.iconIds.values());try{for(a.s();!(i=a.n()).done;){var u,c=i.value;null===(u=this.upperBarManager)||void 0===u||u.remove(c)}}catch(e){a.e(e)}finally{a.f()}this.iconIds.clear(),this.containerManager.destroy(),this.expandOnFirstPlayPanels.clear()}},{key:"destroy",value:function(){this.reset(),this.containerManager.destroy();var e,t=$G(this.persistentIconIds.values());try{for(t.s();!(e=t.n()).done;){var r,n=e.value;null===(r=this.upperBarManager)||void 0===r||r.remove(n)}}catch(e){t.e(e)}finally{t.f()}$.destroy(),q.destroy(),j.destroy(),this.unsubscribeStore&&this.unsubscribeStore()}}]);var r}();function GG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(GG=function(){return!!e})()}var qG="unisphereService",WG=function(e){function r(e,n,o){var i,a,s,l;return t(this,r),a=this,l=[e,n,o],s=c(s=r),(i=u(a,GG()?Reflect.construct(s,l||[],c(a).constructor):s.apply(a,l)))._unispherePluginManager=new HG(n,i.eventManager,i.logger,i.config),n.registerService(qG,{pluginManager:i._unispherePluginManager,eventService:$}),i}return l(r,e),a(r,[{key:"reset",value:function(){this._unispherePluginManager.reset()}},{key:"destroy",value:function(){this.eventManager.destroy(),this._unispherePluginManager.reset(),$.destroy()}}],[{key:"isValid",value:function(){return!0}}])}(e.BasePlugin);f(WG,"defaultConfig",{widgets:[]}),(0,e.registerPlugin)(qG,WG)})(),{}})());
3
+ //# sourceMappingURL=playkit-unisphere-service.js.map
@@ -0,0 +1 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */