1import{M as g,_ as m,P as K}from"./logger-BOxpBNGt.js";import"vue";import"vue-router";function V(e,R){return(function(t,i){return Object.prototype.hasOwnProperty.call(t,i)})(e,R)?e[R]:void 0}function G(e,R,t,i){var r,_=document,s="securitypolicyviolation",u=function(I){var o=new URL(e,location.href),n=I.blockedURI;n!==o.href&&n!==o.protocol.slice(0,-1)&&n!==o.origin||(r=I,O())};_.addEventListener(s,u);var O=function(){return _.removeEventListener(s,u)};return Promise.resolve().then(R).then((function(I){return O(),I}),(function(I){return new Promise((function(o){var n=new MessageChannel;n.port1.onmessage=function(){return o()},n.port2.postMessage(null)})).then((function(){if(O(),r)return t(r);throw I}))}))}var B={default:"endpoint"},F={default:"tlsEndpoint"},b="Client timeout",Y="Network connection error",k="Network request aborted",H="Response cannot be parsed",S="Blocked by CSP",D="The endpoint parameter is not a valid URL";function T(e){for(var R="",t=0;t<e.length;++t)if(t>0){var i=e[t].toLowerCase();i!==e[t]?R+=" ".concat(i):R+=e[t]}else R+=e[t].toUpperCase();return R}var x=T("WrongRegion"),X=T("SubscriptionNotActive"),W=T("UnsupportedVersion"),j=T("InstallationMethodRestricted"),q=T("HostnameRestricted"),Q=T("IntegrationFailed"),J=T("NetworkRestricted"),z=T("InvalidProxyIntegrationSecret"),Z=T("InvalidProxyIntegrationHeaders"),$=T("ProxyIntegrationSecretEnvironmentMismatch"),h="API key required",L="API key not found",w="API key expired",tt="Request cannot be parsed",et="Request failed",rt="Request failed to process",nt="Too many requests, rate limit exceeded",Rt="Not available for this origin",ot="Not available with restricted header",it=h,Et=L,at=w,_t="3.11.14",A="Failed to load the JS script of the agent",P="9319";function st(e,R){var t,i,r,_,s,u,O,I=[],o=(t=(function(c){var a=K([],c,!0);return{current:function(){return a[0]},postpone:function(){var E=a.shift();E!==void 0&&a.push(E)},exclude:function(){a.shift()}}})(e),_=100,s=3e3,u=0,i=function(){return Math.random()*Math.min(s,_*Math.pow(2,u++))},r=new Set,[t.current(),function(c,a){var E,N=a instanceof Error?a.message:"";if(N===S||N===D)t.exclude(),E=0;else if(N===P)t.exclude();else if(N===A){var p=Date.now()-c.getTime()<50,d=t.current();d&&p&&!r.has(d)&&(r.add(d),E=0),t.postpone()}else t.postpone();var v=t.current();return v===void 0?void 0:[v,E??c.getTime()+i()-Date.now()]}]),n=o[0],l=o[1];if(n===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var f=function(c){var a=new Date,E=function(p){return I.push({url:c,startedAt:a,finishedAt:new Date,error:p})},N=R(c);return N.then((function(){return E()}),E),N.catch((function(p){if(O!=null||(O=p),I.length>=5)throw O;var d=l(a,p);if(!d)throw O;var v,y=d[0],M=d[1];return(v=M,new Promise((function(U){return setTimeout(U,v)}))).then((function(){return f(y)}))}))};return f(n).then((function(c){return[c,I]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",ut=C;function Ot(e){var R;e.scriptUrlPattern;var t=e.token,i=e.apiKey,r=i===void 0?t:i,_=g(e,["scriptUrlPattern","token","apiKey"]),s=(R=V(e,"scriptUrlPattern"))!==null&&R!==void 0?R:C,u=(function(){var o=[],n=function(){o.push({time:new Date,state:document.visibilityState})},l=(function(f,c,a,E){return f.addEventListener(c,a,E),function(){return f.removeEventListener(c,a,E)}})(document,"visibilitychange",n);return n(),[o,l]})(),O=u[0],I=u[1];return Promise.resolve().then((function(){if(!r||typeof r!="string")throw new Error(h);var o=(function(n,l){return(Array.isArray(n)?n:[n]).map((function(f){return(function(c,a){var E=encodeURIComponent;return c.replace(/<[^<>]+>/g,(function(N){return N==="<version>"?"3":N==="<apiKey>"?E(a):N==="<loaderVersion>"?E(_t):N}))})(String(f),l)}))})(s,r);return st(o,ct)})).catch((function(o){throw I(),(function(n){return n instanceof Error&&n.message===P?new Error(A):n})(o)})).then((function(o){var n=o[0],l=o[1];return I(),n.load(m(m({},_),{ldi:{attempts:l,visibilityStates:O}}))}))}function ct(e){return G(e,(function(){return(function(R){return new Promise((function(t,i){if((function(u){if(URL.prototype)try{return new URL(u,location.href),!1}catch(O){if(O instanceof Error&&O.name==="TypeError")return!0;throw O}})(R))throw new Error(D);var r=document.createElement("script"),_=function(){var u;return(u=r.parentNode)===null||u===void 0?void 0:u.removeChild(r)},s=document.head||document.getElementsByTagName("head")[0];r.onload=function(){_(),t()},r.onerror=function(){_(),i(new Error(A))},r.async=!0,r.src=R,s.appendChild(r)}))})(e)}),(function(){throw new Error(S)})).then(It)}function It(){var e=window,R="__fpjs_p_l_b",t=e[R];if((function(i,r){var _,s=(_=Object.getOwnPropertyDescriptor)===null||_===void 0?void 0:_.call(Object,i,r);s?.configurable?delete i[r]:s&&!s.writable||(i[r]=void 0)})(e,R),typeof t?.load!="function")throw new Error(P);return t}var ft={load:Ot,defaultScriptUrlPattern:ut,ERROR_SCRIPT_LOAD_FAIL:A,ERROR_API_KEY_EXPIRED:w,ERROR_API_KEY_INVALID:L,ERROR_API_KEY_MISSING:h,ERROR_BAD_REQUEST_FORMAT:tt,ERROR_BAD_RESPONSE_FORMAT:H,ERROR_CLIENT_TIMEOUT:b,ERROR_CSP_BLOCK:S,ERROR_FORBIDDEN_ENDPOINT:q,ERROR_FORBIDDEN_HEADER:ot,ERROR_FORBIDDEN_ORIGIN:Rt,ERROR_GENERAL_SERVER_FAILURE:et,ERROR_INSTALLATION_METHOD_RESTRICTED:j,ERROR_INTEGRATION_FAILURE:Q,ERROR_INVALID_ENDPOINT:D,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:Z,ERROR_INVALID_PROXY_INTEGRATION_SECRET:z,ERROR_NETWORK_ABORT:k,ERROR_NETWORK_CONNECTION:Y,ERROR_NETWORK_RESTRICTED:J,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:$,ERROR_RATE_LIMIT:nt,ERROR_SERVER_TIMEOUT:rt,ERROR_SUBSCRIPTION_NOT_ACTIVE:X,ERROR_TOKEN_EXPIRED:at,ERROR_TOKEN_INVALID:Et,ERROR_TOKEN_MISSING:it,ERROR_UNSUPPORTED_VERSION:W,ERROR_WRONG_REGION:x,defaultEndpoint:B,defaultTlsEndpoint:F};export{w as ERROR_API_KEY_EXPIRED,L as ERROR_API_KEY_INVALID,h as ERROR_API_KEY_MISSING,tt as ERROR_BAD_REQUEST_FORMAT,H as ERROR_BAD_RESPONSE_FORMAT,b as ERROR_CLIENT_TIMEOUT,S as ERROR_CSP_BLOCK,q as E
1RROR_FORBIDDEN_ENDPOINT,ot as ERROR_FORBIDDEN_HEADER,Rt as ERROR_FORBIDDEN_ORIGIN,et as ERROR_GENERAL_SERVER_FAILURE,j as ERROR_INSTALLATION_METHOD_RESTRICTED,Q as ERROR_INTEGRATION_FAILURE,D as ERROR_INVALID_ENDPOINT,Z as ERROR_INVALID_PROXY_INTEGRATION_HEADERS,z as ERROR_INVALID_PROXY_INTEGRATION_SECRET,k as ERROR_NETWORK_ABORT,Y as ERROR_NETWORK_CONNECTION,J as ERROR_NETWORK_RESTRICTED,$ as ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH,nt as ERROR_RATE_LIMIT,A as ERROR_SCRIPT_LOAD_FAIL,rt as ERROR_SERVER_TIMEOUT,X as ERROR_SUBSCRIPTION_NOT_ACTIVE,at as ERROR_TOKEN_EXPIRED,Et as ERROR_TOKEN_INVALID,it as ERROR_TOKEN_MISSING,W as ERROR_UNSUPPORTED_VERSION,x as ERROR_WRONG_REGION,ft as default,B as defaultEndpoint,ut as defaultScriptUrlPattern,F as defaultTlsEndpoint,Ot as load};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.