import{l as ur,m as Mr,n as $}from"./sentry-96f4e833.js";import"./dom-utils-d77254b8.js";var d={},X={};for(var vr=[],p=0;p<64;)vr[p]=0|4294967296*Math.sin(++p%Math.PI);function Wr(r){var a,e,t,n=[a=1732584193,e=4023233417,~a,~e],i=[],l=unescape(encodeURI(r))+"€",o=l.length;for(r=--o/4+2|15,i[--r]=8*o;~o;)i[o>>2]|=l.charCodeAt(o)<<8*o--;for(p=l=0;p>4]+vr[l]+~~i[p|15&[l,5*l+1,3*l+5,7*l][o]])<<(o=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*o+l++%4])|t>>>-o),a,e])a=0|o[1],e=o[2];for(l=4;l;)n[--l]+=o[l]}for(r="";l<32;)r+=(n[l>>3]>>4*(1^l++)&15).toString(16);return r}const Hr=Object.freeze(Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),Gr=ur(Hr);var sr={exports:{}};(function(r,a){(function(e,t){r.exports=function(n,i,l,o,f){for(i=i.split?i.split("."):i,o=0;o>>20,a-Qn|0}var Zn=Yn;/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var kn=Zn,ri=kn;/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var ai=cr,ei=$r,ti=pr,ni=Jr,ii=zr,li=Qr,oi=yr,fi=_r,ui=In,vi=xn,si=ri,ci=Or,$i=Tr,pi=2220446049250313e-31,yi=2148532223,E=[0,0],P=[0,0];function _i(r,a){var e,t;return r===0||oi(r)||fi(r)?r:(vi(E),r=E[0],a+=E[1],a+=si(r),ani?r<0?ei:ai:(a<=ii?(a+=52,t=pi):t=1,ci(P),e=P[0],e&=yi,e|=a+ti<<20,t*$i(e,P[1])))}var bi=_i;/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var Ai=bi,hi=Ai;const di=ur(Mr);var S={},mi=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0});S.unset=void 0;var gi=mi(B);function Si(r,a){if((0,gi.default)(r,a)){for(var e=a.split("."),t=e.pop();e.length&&e[e.length-1].slice(-1)==="\\";)t=e.pop().slice(0,-1)+"."+t;for(;e.length;)r=r[a=e.shift()];return delete r[t]}return!0}S.unset=Si;var q=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(X,"__esModule",{value:!0});var wi=q(Gr),y=q(B),Oi=q(hi),A=di,Ni=S;function Ii(r,a){for(var e=r,t=0,n=a;t1?(i.pop(),l=(0,y.default)(e,i.join("."))):l=r,typeof l=="object"){if(n.copy){var o=(0,y.default)(e,n.copy);o!==void 0&&(0,A.dset)(r,t,o)}else if(n.move){var f=(0,y.default)(e,n.move);f!==void 0&&(0,A.dset)(r,t,f),(0,Ni.unset)(r,n.move)}else n.hasOwnProperty("set")&&(0,A.dset)(r,t,n.set);if(n.to_string){var u=(0,y.default)(r,t);if(typeof u=="string"||typeof u=="object"&&u!==null)continue;u!==void 0?(0,A.dset)(r,t,JSON.stringify(u)):(0,A.dset)(r,t,"undefined")}}}}function Ti(r,a){return a.sample.percent<=0?!1:a.sample.percent>=1?!0:a.sample.path?Li(r,a):Fi(a.sample.percent)}function Fi(r){return Math.random()<=r}function Li(r,a){var e=(0,y.default)(r,a.sample.path),t=(0,wi.default)(JSON.stringify(e)),n=-64,i=[];lr(t.slice(0,8),i);for(var l=0,o=0;o<64&&i[o]!==1;o++)l++;if(l!==0){var f=[];lr(t.slice(9,16),f),n-=l,i.splice(0,l),f.splice(64-l),i=i.concat(f)}return i[63]=i[63]===0?1:0,(0,Oi.default)(parseInt(i.join(""),2),n)=1;n/=2)t-n>=0?(t-=n,a.push(1)):a.push(0)}var z={},Mi=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(z,"__esModule",{value:!0});var Wi=Mi(B);function Hi(r,a){if(!a)throw new Error("No matcher supplied!");switch(a.type){case"all":return Gi();case"fql":return ji(a.ir,r);default:throw new Error("Matcher of type ".concat(a.type," unsupported."))}}z.default=Hi;function Gi(){return!0}function ji(r,a){if(!r)return!1;try{r=JSON.parse(r)}catch(t){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(t))}var e=c(r,a);return typeof e!="boolean"?!1:e}function c(r,a){if(!Array.isArray(r))return v(r,a)===!0;var e=r[0];switch(e){case"!":return!c(r[1],a);case"or":for(var t=1;t":case">=":return Ci(v(r[1],a),v(r[2],a),e,a);case"in":return Ri(v(r[1],a),v(r[2],a),a);case"contains":return Xi(v(r[1],a),v(r[2],a));case"match":return Bi(v(r[1],a),v(r[2],a));case"lowercase":var n=v(r[1],a);return typeof n!="string"?null:n.toLowerCase();case"typeof":return typeof v(r[1],a);case"length":return Vi(v(r[1],a));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function v(r,a){return Array.isArray(r)?r:typeof r=="object"?r.value:(0,Wi.default)(a,r)}function Ri(r,a,e){return a.find(function(t){return v(t,e)===r})!==void 0}function Ci(r,a,e,t){if(m(r)&&(r=c(r,t)),m(a)&&(a=c(a,t)),typeof r!="number"||typeof a!="number")return!1;switch(e){case"<=":return r<=a;case">=":return r>=a;case"<":return r":return r>a;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}function Di(r,a,e,t){switch(m(r)&&(r=c(r,t)),m(a)&&(a=c(a,t)),typeof r=="object"&&typeof a=="object"&&(r=JSON.stringify(r),a=JSON.stringify(a)),e){case"=":return r===a;case"!=":return r!==a;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}function Xi(r,a){return typeof r!="string"||typeof a!="string"?!1:r.indexOf(a)!==-1}function Bi(r,a){return typeof r!="string"||typeof a!="string"?!1:xi(a,r)}function Vi(r){return r===null?0:!Array.isArray(r)&&typeof r!="string"?NaN:r.length}function m(r){return Array.isArray(r)?(r[0]==="lowercase"||r[0]==="length"||r[0]==="typeof")&&r.length===2||(r[0]==="contains"||r[0]==="match")&&r.length===3:!1}function xi(r,a){var e,t;r:for(;r.length>0;){var n=void 0,i=void 0;if(e=Ji(r),n=e.star,i=e.chunk,r=e.pattern,n&&i==="")return!0;var l=or(i,a),o=l.t,f=l.ok,u=l.err;if(u)return!1;if(f&&(o.length===0||r.length>0)){a=o;continue}if(n)for(var s=0;s0)continue;a=o;continue r}if(u)return!1}return!1}return a.length===0}function Ji(r){for(var a={star:!1,chunk:"",pattern:""};r.length>0&&r[0]==="*";)r=r.slice(1),a.star=!0;var e=!1,t;r:for(t=0;t0;){if(a.length===0)return n;switch(r[0]){case"[":var i=a[0];a=a.slice(1),r=r.slice(1);var l=!0;r.length>0&&r[0]==="^"&&(l=!1,r=r.slice(1));for(var o=!1,f=0;;){if(r.length>0&&r[0]==="]"&&f>0){r=r.slice(1);break}var u="",s="",h=void 0;if(e=fr(r),u=e.char,r=e.newChunk,h=e.err,h||(s=u,r[0]==="-"&&(t=fr(r.slice(1)),s=t.char,r=t.newChunk,h=t.err,h)))return n;u<=i&&i<=s&&(o=!0),f++}if(o!==l)return n;break;case"?":a=a.slice(1),r=r.slice(1);break;case"\\":if(r=r.slice(1),r.length===0)return n.err=!0,n;default:if(r[0]!==a[0])return n;a=a.slice(1),r=r.slice(1)}}return n.t=a,n.ok=!0,n.err=!1,n}function fr(r){var a={char:"",newChunk:"",err:!1};return r.length===0||r[0]==="-"||r[0]==="]"||r[0]==="\\"&&(r=r.slice(1),r.length===0)?(a.err=!0,a):(a.char=r[0],a.newChunk=r.slice(1),a.newChunk.length===0&&(a.err=!0),a)}var K={};Object.defineProperty(K,"__esModule",{value:!0});var qi=function(){function r(a){this.rules=[],this.rules=a||[]}return r.prototype.getRulesByDestinationName=function(a){for(var e=[],t=0,n=this.rules;t