CDRM-Extension/react/assets/index-DwE1Hrng.js

53 lines
233 KiB
JavaScript
Raw Normal View History

2025-06-01 12:40:24 -04:00
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const y of h)if(y.type==="childList")for(const x of y.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function s(h){const y={};return h.integrity&&(y.integrity=h.integrity),h.referrerPolicy&&(y.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?y.credentials="include":h.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function r(h){if(h.ep)return;h.ep=!0;const y=s(h);fetch(h.href,y)}})();var pf={exports:{}},Ou={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var C0;function N1(){if(C0)return Ou;C0=1;var c=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(r,h,y){var x=null;if(y!==void 0&&(x=""+y),h.key!==void 0&&(x=""+h.key),"key"in h){y={};for(var O in h)O!=="key"&&(y[O]=h[O])}else y=h;return h=y.ref,{$$typeof:c,type:r,key:x,ref:h!==void 0?h:null,props:y}}return Ou.Fragment=o,Ou.jsx=s,Ou.jsxs=s,Ou}var N0;function U1(){return N0||(N0=1,pf.exports=N1()),pf.exports}var K=U1(),Sf={exports:{}},et={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var U0;function H1(){if(U0)return et;U0=1;var c=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),x=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),w=Symbol.iterator;function z(v){return v===null||typeof v!="object"?null:(v=w&&v[w]||v["@@iterator"],typeof v=="function"?v:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,G={};function Q(v,U,X){this.props=v,this.context=U,this.refs=G,this.updater=X||B}Q.prototype.isReactComponent={},Q.prototype.setState=function(v,U){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,U,"setState")},Q.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function L(){}L.prototype=Q.prototype;function Y(v,U,X){this.props=v,this.context=U,this.refs=G,this.updater=X||B}var $=Y.prototype=new L;$.constructor=Y,H($,Q.prototype),$.isPureReactComponent=!0;var it=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},zt=Object.prototype.hasOwnProperty;function Rt(v,U,X,q,J,ft){return X=ft.ref,{$$typeof:c,type:v,key:U,ref:X!==void 0?X:null,props:ft}}function Ot(v,U){return Rt(v.type,U,void 0,void 0,void 0,v.props)}function St(v){return typeof v=="object"&&v!==null&&v.$$typeof===c}function Jt(v){var U={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(X){return U[X]})}var oe=/\/+/g;function Xt(v,U){return typeof v=="object"&&v!==null&&v.key!=null?Jt(""+v.key):U.toString(36)}function El(){}function Tl(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(El,El):(v.status="pending",v.then(function(U){v.status==="pending"&&(v.status="fulfilled",v.value=U)},function(U){v.status==="pending"&&(v.status="rejected",v.reason=U)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function Vt(v,U,X,q,J){var ft=typeof v;(ft==="undefined"||ft==="boolean")&&(v=null);var tt=!1;if(v===null)tt=!0;else switch(ft){case"bigint":case"string":case"number":tt=!0;break;case"object":switch(v.$$typeof){case c:case o:tt=!0;break;case R:return tt=v._init,Vt(tt(v._payload),U,X,q,J)}}if(tt)return J=J(v),tt=q===""?"."+Xt(v,0):q,it(J)?(X="",tt!=null&&(X=tt.replace(oe,"$&/")+"/"),Vt(J,U,X,"",function($e){return $e})):J!=null&&(St(J)&&(J=Ot(J,X+(J.key==null||v&&v.key===J.key?"":(""+J.key).replace(oe,"$&/")+"/")+tt)),U.push(J)),1;tt=0;var te=q===""?".":q+":";if(it(v))for(var bt=0;bt<v.length;bt++)q=v[bt],ft=te+Xt(q,bt),tt+=Vt(q,U,X,ft,J);else if(bt=z(v),typeof bt=="function")for(v=bt.call(v),bt=0;!(q=v.next()).done;)q=q.value,ft=te+Xt(q,bt++),tt+=Vt(q,U,X,ft,J);else if(ft==="object"){if(typeof v.then=="function")return Vt(Tl(v),U,X,q,J);throw U=String(v),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return tt}function D(v,U,X){if(v==null)return v;var q=[],J=0;return Vt(v,q,"","",function(ft){return U.call(X,ft,J++)}),q}function j(v){if(v._status===-1){var U=v._result;U=U(),U.then(function(X){(v._status===0||v._status===-1)&&(v._status=1,v._result=X)},function(X){(v._status===0||v._status===-1)&&(v._status=2,v._result=X)}),v._status===-1&&(v._status=0,v._result=U)}if(v._status===1)return v._result.default;throw v._result}var F=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var w0;function w1(){return w0||(w0=1,function(c){function o(D,j){var F=D.length;D.push(j);t:for(;0<F;){var yt=F-1>>>1,v=D[yt];if(0<h(v,j))D[yt]=j,D[F]=v,F=yt;else break t}}function s(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var j=D[0],F=D.pop();if(F!==j){D[0]=F;t:for(var yt=0,v=D.length,U=v>>>1;yt<U;){var X=2*(yt+1)-1,q=D[X],J=X+1,ft=D[J];if(0>h(q,F))J<v&&0>h(ft,q)?(D[yt]=ft,D[J]=F,yt=J):(D[yt]=q,D[X]=F,yt=X);else if(J<v&&0>h(ft,F))D[yt]=ft,D[J]=F,yt=J;else break t}}return j}function h(D,j){var F=D.sortIndex-j.sortIndex;return F!==0?F:D.id-j.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var x=Date,O=x.now();c.unstable_now=function(){return x.now()-O}}var p=[],d=[],R=1,w=null,z=3,B=!1,H=!1,G=!1,Q=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function it(D){for(var j=s(d);j!==null;){if(j.callback===null)r(d);else if(j.startTime<=D)r(d),j.sortIndex=j.expirationTime,o(p,j);else break;j=s(d)}}function I(D){if(G=!1,it(D),!H)if(s(p)!==null)H=!0,zt||(zt=!0,Xt());else{var j=s(d);j!==null&&Vt(I,j.startTime-D)}}var zt=!1,Rt=-1,Ot=5,St=-1;function Jt(){return Q?!0:!(c.unstable_now()-St<Ot)}function oe(){if(Q=!1,zt){var D=c.unstable_now();St=D;var j=!0;try{t:{H=!1,G&&(G=!1,Y(Rt),Rt=-1),B=!0;var F=z;try{e:{for(it(D),w=s(p);w!==null&&!(w.expirationTime>D&&Jt());){var yt=w.callback;if(typeof yt=="function"){w.callback=null,z=w.priorityLevel;var v=yt(w.expirationTime<=D);if(D=c.unstable_now(),typeof v=="function"){w.callback=v,it(D),j=!0;break e}w===s(p)&&r(p),it(D)}else r(p);w=s(p)}if(w!==null)j=!0;else{var U=s(d);U!==null&&Vt(I,U.startTime-D),j=!1}}break t}finally{w=null,z=F,B=!1}j=void 0}}finally{j?Xt():zt=!1}}}var Xt;if(typeof $=="function")Xt=function(){$(oe)};else if(typeof MessageChannel<"u"){var El=new MessageChannel,Tl=El.port2;El.port1.onmessage=oe,Xt=function(){Tl.postMessage(null)}}else Xt=function(){L(oe,0)};function Vt(D,j){Rt=L(function(){D(c.unstable_now())},j)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(D){D.callback=null},c.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ot=0<D?Math.floor(1e3/D):5},c.unstable_getCurrentPriorityLevel=function(){return z},c.unstable_next=function(D){switch(z){case 1:case 2:case 3:var j=3;break;default:j=z}var F=z;z=j;try{return D()}finally{z=F}},c.unstable_requestPaint=function(){Q=!0},c.unstable_runWithPriority=function(D,j){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var F=z;z=D;try{return j()}finally{z=F}},c.unstable_scheduleCallback=function(D,j,F){var yt=c.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?yt+F:yt):F=yt,D){case 1:var v=-1;break;case 2:v=250;break;case 5:v=1073741823;break;case 4:v=1e4;break;default:v=5e3}return v=F+v,D={id:R++,callback:j,priorityLevel:D,startTime:F,expirationTime:v,sortIndex:-1},F>yt?(D.sortIndex=F,o(d,D),s(p)===null&&D===s(d)&&(G?(Y(Rt),Rt=-1):G=!0,Vt(I,F-yt))):(D.sortIndex=v,o(p,D),H||B||(H=!0,zt||(zt=!0,Xt()))),D},c.unstable_shouldYield=Jt,c.unstable_wrapCallback=function(D){var j=z;return function(){var F=z;z=j;try{return D.apply(this,arguments)}finally{z=F}}}}(Tf)),Tf}var L0;function L1(){return L0||(L0=1,Ef.exports=w1()),Ef.exports}var xf={exports:{}},Kt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var B0;function B1(){if(B0)return Kt;B0=1;var c=Df();function o(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)d+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},h=Symbol.for("react.portal");function y(p,d,R){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:w==null?null:""+w,children:p,containerInfo:d,implementation:R}}var x=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Kt.createPortal=function(p,d){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(o(299));return y(p,d,null,R)},Kt.flushSync=function(p){var d=x.T,R=r.p;try{if(x.T=null,r.p=2,p)return p()}finally{x.T=d,r.p=R,r.d.f()}},Kt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(p,d))},Kt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Kt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var R=d.as,w=O(R,d.crossOrigin),z=typeof d.integrity=="string"?d.integrity:void 0,B=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;R==="style"?r.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:w,integrity:z,fetchPriority:B}):R==="script"&&r.d.X(p,{crossOrigin:w,integrity:z,fetchPriority:B,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Kt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var R=O(d.as,d.crossOrigin);r.d.M(p,{crossOrigin:R,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(p)},Kt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var R=d.as,w=O(R,d.crossOrigin);r.d.L(p,R,{crossOrigin:w,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Kt.preloadModule=function(p,d){if(typeof p=="string")if(d){var R=O(d.as,d.crossOrigin);r.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:R,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(p)},Kt.requestFormReset=function(p){r.d.r(p)},Kt.unstable_batchedUpdates=function(p,d){return p(d)},Kt.useFormState=function(p,d,R){return x.H.useFormState(p,d,R)},Kt.useFormStatus=function(){return x.H.useHostTransitionStatus()},Kt.version="19.1.0",Kt}var q0;function q1(){if(q0)return xf.exports;q0=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(o){console.error(o)}}return c(),xf.exports=B1(),xf.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var j0;function j1(){if(j0)return Mu;j0=1;var c=L1(),o=Df(),s=q1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function x(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function O(t){if(y(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var u=l.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===l)return O(u),t;if(n===a)return O(u),e;n=n.sibling}throw Error(r(188))}if(l.return!==a.return)l=u,a=n;else{for(var i=!1,f=u.child;f;){if(f===l){i=!0,l=u,a=n;break}if(f===a){i=!0,a=u,l=n;break}f=f.sibling}if(!i){for(f=n.child;f;){if(f===l){i=!0,l=n,a=u;break}if(f===a){i=!0,a=n,l=u;break}f=f.sibling}if(!i)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function d(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=d(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,w=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),Y=Symbol.for("react.consumer"),$=Symbol.for("react.context"),it=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),zt=Symbol.for("react.suspense_list"),Rt=Symbol.for("react.memo"),Ot=Symbol.for("react.lazy"),St=Symbol.for("react.activity"),Jt=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function Xt(t){return t===null||typeof t!="object"?null:(t=oe&&t[oe]||t["@@iterator"],typeof t=="function"?t:null)}var El=Symbol.for("react.client.reference");function Tl(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===El?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case Q:return"Profiler";case G:return"StrictMode";case I:return"Suspense";case zt:return"SuspenseList";case St:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case $:return(t.displayName||"Context")+".Provider";case Y:return(t._context.displayName||"Context")+".Consumer";case it:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Rt:return e=t.displayName||null,e!==null?e:Tl(t.type)||"Memo";case Ot:e=t._payload,t=t._init;try{return Tl(t(e))}catch{}}return null}var Vt=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},yt=[],v=-1;function U(t){return{current:t}}function X(t){0>v||(t.current=yt[v],yt[v]=null,v--)}function q(t,e){v++,yt[v]=t.current,t.current=e}var J=U(null),ft=U(null),tt=U(null),te=U(null);function bt(t,e){switch(q(tt,e),q(ft,t),q(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?n0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=n0(e),t=i0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(J),q(J,t)}function $e(){X(J),X(ft),X(tt)}function li(t){t.memoizedState!==null&&q(te,t);var e=J.current,l=i0(e,t.type);e!==l&&(q(ft,t),q(J,l))}function Hu(t){ft.current===t&&(X(J),X(ft)),te.current===t&&(X(te),Tu._currentValue=F)}var ai=Object.prototype.has
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+si+t+Ff}var di=!1;function hi(t,e){if(!t||di)return"";di=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(A){var T=A}Reflect.construct(t,[],N)}else{try{N.call()}catch(A){T=A}t.call(N.prototype)}}else{try{throw Error()}catch(A){T=A}(N=t())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(A){if(A&&T&&typeof A.stack=="string")return[A.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),i=n[0],f=n[1];if(i&&f){var m=i.split(`
`),E=f.split(`
`);for(u=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(a===m.length||u===E.length)for(a=m.length-1,u=E.length-1;1<=a&&0<=u&&m[a]!==E[u];)u--;for(;1<=a&&0<=u;a--,u--)if(m[a]!==E[u]){if(a!==1||u!==1)do if(a--,u--,0>u||m[a]!==E[u]){var M=`
`+m[a].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=a&&0<=u);break}}}finally{di=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Jl(l):""}function _d(t){switch(t.tag){case 26:case 27:case 5:return Jl(t.type);case 16:return Jl("Lazy");case 13:return Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return hi(t.type,!1);case 11:return hi(t.type.render,!1);case 1:return hi(t.type,!0);case 31:return Jl("Activity");default:return""}}function Pf(t){try{var e="";do e+=_d(t),t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function se(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function If(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Od(t){var e=If(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,n=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gu(t){t._valueTracker||(t._valueTracker=Od(t))}function tr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=If(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Xu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Md=/[\n"\\]/g;function de(t){return t.replace(Md,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function mi(t,e,l,a,u,n,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+se(e)):t.value!==""+se(e)&&(t.value=""+se(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?vi(t,i,se(e)):l!=null?vi(t,i,se(l)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+se(f):t.removeAttribute("name")}function er(t,e,l,a,u,n,i,f){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),e!=null||l!=null){if(!(n!=="submit"&&n!=="reset"||e!=null))return;l=l!=null?""+se(l):"",e=e!=null?""+se(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i)}function vi(t,e,l){e==="number"&&Xu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function kl(t,e,l,a){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&a&&(t[l].defaultSelected=!0)}else{for(l=""+se(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function lr(t,e,l){if(e!=null&&(e=""+se(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+se(l):""}function ar(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(Vt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=se(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a)}function $l(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Dd=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGr
`).replace(t1,"")}function u0(t,e){return e=a0(e),a0(t)===e}function Ln(){}function mt(t,e,l,a,u,n){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||$l(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&$l(t,""+a);break;case"className":Yu(t,"class",a);break;case"tabIndex":Yu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Yu(t,l,a);break;case"style":nr(t,a,n);break;case"data":if(e!=="object"){Yu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Vu(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(l==="formAction"?(e!=="input"&&mt(t,e,"name",u.name,u,null),mt(t,e,"formEncType",u.formEncType,u,null),mt(t,e,"formMethod",u.formMethod,u,null),mt(t,e,"formTarget",u.formTarget,u,null)):(mt(t,e,"encType",u.encType,u,null),mt(t,e,"method",u.method,u,null),mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Vu(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ln);break;case"onScroll":a!=null&&nt("scroll",t);break;case"onScrollEnd":a!=null&&nt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Vu(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":nt("beforetoggle",t),nt("toggle",t),ju(t,"popover",a);break;case"xlinkActuate":Ne(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ne(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ne(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ne(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ne(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ne(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ne(t,"http://www.w3.org/XML/1998/nam
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let w=bl(),z;if(o){let Y=typeof o=="string"?Gl(o):o;Tt(d==="/"||((L=Y.pathname)==null?void 0:L.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),z=Y}else z=w;let B=z.pathname||"/",H=B;if(d!=="/"){let Y=d.replace(/^\//,"").split("/");H="/"+B.replace(/^\//,"").split("/").slice(Y.length).join("/")}let G=$0(c,{pathname:H});be(R||G!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),be(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=xm(G&&G.map(Y=>Object.assign({},Y,{params:Object.assign({},O,Y.params),pathname:Je([d,h.encodeLocation?h.encodeLocation(Y.pathname).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?d:Je([d,h.encodeLocation?h.encodeLocation(Y.pathnameBase).pathname:Y.pathnameBase])})),y,s,r);return o&&Q?_.createElement(Nu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},Q):Q}function Sm(){let c=Mm(),o=dm(c)?`${c.status} ${c.statusText}`:c instanceof Error?c.message:JSON.stringify(c),s=c instanceof Error?c.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},y={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",c),x=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:y},"ErrorBoundary")," or"," ",_.createElement("code",{style:y},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},o),s?_.createElement("pre",{style:h},s):null,x)}var bm=_.createElement(Sm,null),Em=class extends _.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,o){return o.location!==c.location||o.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:o.error,location:o.location,revalidation:c.revalidation||o.revalidation}}componentDidCatch(c,o){console.error("React Router caught the following error during render",c,o)}render(){return this.state.error!==void 0?_.createElement(Ce.Provider,{value:this.props.routeContext},_.createElement(Nf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Tm({routeContext:c,match:o,children:s}){let r=_.useContext(Ma);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),_.createElement(Ce.Provider,{value:c},s)}function xm(c,o=[],s=null,r=null){if(c==null){if(!s)return null;if(s.errors)c=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)c=s.matches;else return null}let h=c,y=s==null?void 0:s.errors;if(y!=null){let p=h.findIndex(d=>d.route.id&&(y==null?void 0:y[d.route.id])!==void 0);Tt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),h=h.slice(0,Math.min(h.length,p+1))}let x=!1,O=-1;if(s)for(let p=0;p<h.length;p++){let d=h[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(O=p),d.route.id){let{loaderData:R,errors:w}=s,z=d.route.loader&&!R.hasOwnProperty(d.route.id)&
`):K.jsx("span",{className:"text-gray-400",children:"None"})})]})}function k0({onConfigSaved:c}){const[o,s]=_.useState(""),[r,h]=_.useState(null),[y,x]=_.useState(null),[O,p]=_.useState(null),[d,R]=_.useState(!1),w=Uf();_.useEffect(()=>{chrome.storage.local.get("cdrm_instance",B=>{chrome.runtime.lastError?console.error("Error fetching CDRM instance:",chrome.runtime.lastError):B.cdrm_instance&&h(B.cdrm_instance)})},[]);const z=async()=>{const B=o.trim().replace(/\/+$/,"");if(!B){x("Please enter a valid URL."),p("error");return}const H=B+"/api/extension";R(!0),x(null);try{if((await(await fetch(H,{method:"POST",headers:{"Content-Type":"application/json"}})).json()).status===!0){x("Successfully connected to CDRM Instance."),p("success");const L=await fetch(`${B}/remotecdm/widevine/deviceinfo`);if(!L.ok)throw new Error("Failed to fetch Widevine device info");const Y=await L.json(),$=await fetch(`${B}/remotecdm/playready/deviceinfo`);if(!$.ok)throw new Error("Failed to fetch PlayReady device info");const it=await $.json();chrome.storage.local.set({valid_config:!0,cdrm_instance:B,widevine_device:{device_type:Y.device_type,system_id:Y.system_id,security_level:Y.security_level,secret:Y.secret,device_name:Y.device_name,host:B},playready_device:{security_level:it.security_level,secret:it.secret,device_name:it.device_name,host:B}},()=>{chrome.runtime.lastError?(console.error("Error saving to chrome.storage:",chrome.runtime.lastError),x("Error saving configuration."),p("error")):(console.log("Configuration saved."),h(B),s(""),c&&c(),w("/results"))})}else throw new Error("Invalid response from endpoint.")}catch(G){console.error("Connection error:",G),x("Invalid endpoint or device info could not be retrieved."),p("error")}finally{R(!1)}};return K.jsxs("div",{className:"w-full h-full overflow-y-auto overflow-x-auto flex flex-col p-4",children:[K.jsx("input",{type:"text",value:o,onChange:B=>s(B.target.value),placeholder:r?`Current CDRM Instance: ${r}`:"CDRM Instance URL (e.g., https://cdrm-project.com/, http://127.0.0.1:5000/)",className:"w-full p-4 text-lg bg-gray-800 text-white border border-gray-700 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 mt-4"}),K.jsx("button",{onClick:z,disabled:d,className:`mt-4 p-2 ${d?"bg-blue-400":"bg-blue-600 hover:bg-blue-700"} text-white rounded-md transition duration-300`,children:d?"Connecting...":"Save Settings"}),y&&K.jsx("p",{className:`mt-2 text-sm text-center ${O==="success"?"text-green-400":"text-red-400"}`,children:y})]})}function p2(){const[c,o]=_.useState(!1),[s,r]=_.useState(null);return _.useEffect(()=>{chrome.storage.local.get("valid_config",h=>{chrome.runtime.lastError?(console.error("Error reading valid_config:",chrome.runtime.lastError),r(!1)):r(h.valid_config===!0)})},[]),s===null?K.jsx("div",{className:"flex items-center justify-center h-screen bg-black text-white",children:"Loading..."}):K.jsx(l2,{children:K.jsxs("div",{className:"min-w-full min-h-full w-full h-full flex flex-grow bg-black/95 flex-col relative",children:[K.jsx("div",{className:"w-full min-h-16 max-h-16 h-16 shrink-0 flex sticky top-0 z-20 border-b border-b-white bg-black",children:K.jsx(d2,{onMenuClick:()=>o(!0)})}),K.jsx("div",{id:"currentpagecontainer",className:"w-full grow overflow-y-auto",children:K.jsx(Nm,{children:s?K.jsxs(K.Fragment,{children:[K.jsx(Oa,{path:"/",element:K.jsx(K0,{to:"/results",replace:!0})}),K.jsx(Oa,{path:"/results",element:K.jsx(g2,{})}),K.jsx(Oa,{path:"/settings",element:K.jsx(k0,{})})]}):K.jsxs(K.Fragment,{children:[K.jsx(Oa,{path:"/settings",element:K.jsx(k0,{onConfigSaved:()=>r(!0)})}),K.jsx(Oa,{path:"*",element:K.jsx(K0,{to:"/settings",replace:!0})})]})})}),K.jsx("div",{className:`fixed top-0 left-0 w-full h-full z-50 bg-black transform transition-transform duration-300 ease-in-out ${c?"translate-x-0":"-translate-x-full"}`,children:K.jsx(y2,{onClose:()=>o(!1)})})]})})}G1.createRoot(document.getElementById("root")).render(K.jsx(_.StrictMode,{children:K.jsx(p2,{})}));