/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./_virtual/_rollupPluginBabelHelpers.js"),e=require("./version.js"),t=require("./utils/util.js");var o={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},a=r.createClass(function a(i){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};r.classCallCheck(this,a);var n=i&&i.i18n?i.i18n.ERROR_TYPES:null;if(i.media){var s=d.mediaError?d.mediaError:i.media.error||{},u=i.duration,l=i.currentTime,m=i.ended,c=i.src,g=i.currentSrc,p=i.media,E=p.readyState,v=p.networkState,y=d.errorCode||s.code;o[y]&&(y=o[y]);var S={playerVersion:e.default,currentTime:l,duration:u,ended:m,readyState:E,networkState:v,src:c||g,errorType:d.errorType,errorCode:y,message:d.errorMessage||s.message,mediaError:s,originError:d.originError?d.originError.stack:"",host:t.default.getHostFromUrl(c||g)};return d.ext&&Object.keys(d.ext).map(function(r){S[r]=d.ext[r]}),S}if(arguments.length>1){for(var f={playerVersion:e.default,domain:document.domain},T=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],x=0;x<arguments.length;x++)f[T[x]]=arguments[x];return f.ex=n?(n[arguments[0]]||{}).msg:"",f}});exports.ERROR_TYPE_MAP={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},exports.default=a;