@local-logic/sdks-app 1.2.0 → 1.2.1

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 (55) hide show
  1. package/dist/assets/{auto-track-legacy.5a15cc10.js → auto-track-legacy.c3c3a0b8.js} +1 -1
  2. package/dist/assets/{auto-track.9c4c37f2.js → auto-track.c84cea48.js} +1 -1
  3. package/dist/assets/{index-legacy.64d191bf.js → index-legacy.1501632c.js} +11 -11
  4. package/dist/assets/{index-legacy.8c8f66b9.js → index-legacy.5a21f088.js} +1 -1
  5. package/dist/assets/{index-legacy.2dafcab0.js → index-legacy.75ba90f8.js} +1 -1
  6. package/dist/assets/index-legacy.781d0db7.js +1 -0
  7. package/dist/assets/index-legacy.9ef71ae1.js +40 -0
  8. package/dist/assets/{index-legacy.bfac1b45.js → index-legacy.a2bbfeb3.js} +1 -1
  9. package/dist/assets/{index-legacy.fe45c685.js → index-legacy.b41e509b.js} +1 -1
  10. package/dist/assets/{index-legacy.f70a489f.js → index-legacy.c71389da.js} +1 -1
  11. package/dist/assets/{index-legacy.f168d7a1.js → index-legacy.d1c04f0c.js} +1 -1
  12. package/dist/assets/{index-legacy.b1b7c758.js → index-legacy.ea761629.js} +1 -1
  13. package/dist/assets/{index.a62f0f16.js → index.0270a43d.js} +10 -10
  14. package/dist/assets/index.0abff0c4.js +1 -0
  15. package/dist/assets/{index.7c5ff2a7.js → index.1fe5d2b2.js} +1 -1
  16. package/dist/assets/{index.eedc8298.js → index.43c8d0af.js} +1 -1
  17. package/dist/assets/{index.e16053c4.js → index.4a23ceb0.js} +1 -1
  18. package/dist/assets/index.6f83ab3f.js +1155 -0
  19. package/dist/assets/{index.a59f31e1.js → index.990db872.js} +2 -2
  20. package/dist/assets/{index.b571c2ea.js → index.9f38abbd.js} +1 -1
  21. package/dist/assets/{index.913d55c2.js → index.cd4b7a35.js} +1 -1
  22. package/dist/assets/{index.ab13cdc9.js → index.d8ae1763.js} +1 -1
  23. package/dist/assets/index.umd-legacy.633cb42e.js +1 -0
  24. package/dist/assets/{index.umd.4df6dfc8.js → index.umd.15f465ad.js} +1 -1
  25. package/dist/index.html +2 -2
  26. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js +1 -1
  27. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js.map +1 -1
  28. package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.js +1 -1
  29. package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.js.map +1 -1
  30. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/POIs/index.d.ts.map +1 -1
  31. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/POIs/index.js +4 -3
  32. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/POIs/index.js.map +1 -1
  33. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.js +1 -1
  34. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.js.map +1 -1
  35. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js +1 -1
  36. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js.map +1 -1
  37. package/dist/types/sdks/LocalContent/Map/index.js +1 -1
  38. package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
  39. package/dist/types/sdks/LocalContent/context.d.ts.map +1 -1
  40. package/dist/types/sdks/LocalContent/context.js +1 -1
  41. package/dist/types/sdks/LocalContent/context.js.map +1 -1
  42. package/dist/types/sdks/LocalContent/index.js +1 -1
  43. package/dist/types/sdks/LocalContent/index.js.map +1 -1
  44. package/dist/types/services/{tracking → analyticsTracker}/index.d.ts +2 -2
  45. package/dist/types/services/analyticsTracker/index.d.ts.map +1 -0
  46. package/dist/types/services/{tracking → analyticsTracker}/index.js +2 -2
  47. package/dist/types/services/analyticsTracker/index.js.map +1 -0
  48. package/package.json +1 -1
  49. package/dist/assets/index-legacy.33e7763b.js +0 -1
  50. package/dist/assets/index-legacy.3e15a23a.js +0 -40
  51. package/dist/assets/index.2fa91f65.js +0 -1155
  52. package/dist/assets/index.e267d77a.js +0 -1
  53. package/dist/assets/index.umd-legacy.313ecd9d.js +0 -1
  54. package/dist/types/services/tracking/index.d.ts.map +0 -1
  55. package/dist/types/services/tracking/index.js.map +0 -1
@@ -1 +1 @@
1
- System.register(["./index-legacy.8c8f66b9.js","./index-legacy.2dafcab0.js","./index-legacy.3e15a23a.js"],(function(t,n){"use strict";var e;return{setters:[function(t){e=t.n},function(){},function(){}],execute:function(){t({form:function(t,n,r,i){var o=this;return t?(t instanceof HTMLFormElement&&(t=[t]),t.forEach((function(t){if(!(t instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var c=function(c){var u;c.preventDefault?c.preventDefault():c.returnValue=!1;var a=n instanceof Function?n(t):n,s=r instanceof Function?r(t):r;e(o.track(a,s,null!=i?i:{}),null!==(u=o.settings.timeout)&&void 0!==u?u:500).catch(console.error).then((function(){t.submit()})).catch(console.error)},u=window.jQuery||window.Zepto;u?u(t).submit(c):t.addEventListener("submit",c,!1)})),this):this},link:function(t,n,r,i){var o=this;return t?((t instanceof Element?[t]:"toArray"in t?t.toArray():t).forEach((function(t){t.addEventListener("click",(function(c){var u,a,s=n instanceof Function?n(t):n,f=r instanceof Function?r(t):r,l=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href")||(null===(u=t.getElementsByTagName("a")[0])||void 0===u?void 0:u.getAttribute("href")),h=e(o.track(s,f,null!=i?i:{}),null!==(a=o.settings.timeout)&&void 0!==a?a:500);(function(t,n){return!("_blank"!==t.target||!n)})(t,l)||function(t){var n=t;return!!(n.ctrlKey||n.shiftKey||n.metaKey||n.button&&1==n.button)}(c)||l&&(c.preventDefault?c.preventDefault():c.returnValue=!1,h.catch(console.error).then((function(){window.location.href=l})).catch(console.error))}),!1)})),this):this}})}}}));
1
+ System.register(["./index-legacy.5a21f088.js","./index-legacy.75ba90f8.js","./index-legacy.9ef71ae1.js"],(function(t,n){"use strict";var e;return{setters:[function(t){e=t.n},function(){},function(){}],execute:function(){t({form:function(t,n,r,i){var o=this;return t?(t instanceof HTMLFormElement&&(t=[t]),t.forEach((function(t){if(!(t instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var c=function(c){var u;c.preventDefault?c.preventDefault():c.returnValue=!1;var a=n instanceof Function?n(t):n,s=r instanceof Function?r(t):r;e(o.track(a,s,null!=i?i:{}),null!==(u=o.settings.timeout)&&void 0!==u?u:500).catch(console.error).then((function(){t.submit()})).catch(console.error)},u=window.jQuery||window.Zepto;u?u(t).submit(c):t.addEventListener("submit",c,!1)})),this):this},link:function(t,n,r,i){var o=this;return t?((t instanceof Element?[t]:"toArray"in t?t.toArray():t).forEach((function(t){t.addEventListener("click",(function(c){var u,a,s=n instanceof Function?n(t):n,f=r instanceof Function?r(t):r,l=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href")||(null===(u=t.getElementsByTagName("a")[0])||void 0===u?void 0:u.getAttribute("href")),h=e(o.track(s,f,null!=i?i:{}),null!==(a=o.settings.timeout)&&void 0!==a?a:500);(function(t,n){return!("_blank"!==t.target||!n)})(t,l)||function(t){var n=t;return!!(n.ctrlKey||n.shiftKey||n.metaKey||n.button&&1==n.button)}(c)||l&&(c.preventDefault?c.preventDefault():c.returnValue=!1,h.catch(console.error).then((function(){window.location.href=l})).catch(console.error))}),!1)})),this):this}})}}}));
@@ -1 +1 @@
1
- import{n as d}from"./index.a59f31e1.js";import"./index.7c5ff2a7.js";import"./index.2fa91f65.js";function b(t){var r=t;return!!(r.ctrlKey||r.shiftKey||r.metaKey||r.button&&r.button==1)}function m(t,r){return!!(t.target==="_blank"&&r)}function E(t,r,e,a){var f=this,o=[];return t?(t instanceof Element?o=[t]:"toArray"in t?o=t.toArray():o=t,o.forEach(function(n){n.addEventListener("click",function(i){var c,u,s=r instanceof Function?r(n):r,v=e instanceof Function?e(n):e,h=n.getAttribute("href")||n.getAttributeNS("http://www.w3.org/1999/xlink","href")||n.getAttribute("xlink:href")||((c=n.getElementsByTagName("a")[0])===null||c===void 0?void 0:c.getAttribute("href")),l=d(f.track(s,v,a!=null?a:{}),(u=f.settings.timeout)!==null&&u!==void 0?u:500);!m(n,h)&&!b(i)&&h&&(i.preventDefault?i.preventDefault():i.returnValue=!1,l.catch(console.error).then(function(){window.location.href=h}).catch(console.error))},!1)}),this):this}function k(t,r,e,a){var f=this;if(!t)return this;t instanceof HTMLFormElement&&(t=[t]);var o=t;return o.forEach(function(n){if(!(n instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var i=function(u){var s;u.preventDefault?u.preventDefault():u.returnValue=!1;var v=r instanceof Function?r(n):r,h=e instanceof Function?e(n):e,l=d(f.track(v,h,a!=null?a:{}),(s=f.settings.timeout)!==null&&s!==void 0?s:500);l.catch(console.error).then(function(){n.submit()}).catch(console.error)},c=window.jQuery||window.Zepto;c?c(n).submit(i):n.addEventListener("submit",i,!1)}),this}export{k as form,E as link};
1
+ import{n as d}from"./index.990db872.js";import"./index.1fe5d2b2.js";import"./index.6f83ab3f.js";function b(t){var r=t;return!!(r.ctrlKey||r.shiftKey||r.metaKey||r.button&&r.button==1)}function m(t,r){return!!(t.target==="_blank"&&r)}function E(t,r,e,a){var f=this,o=[];return t?(t instanceof Element?o=[t]:"toArray"in t?o=t.toArray():o=t,o.forEach(function(n){n.addEventListener("click",function(i){var c,u,s=r instanceof Function?r(n):r,v=e instanceof Function?e(n):e,h=n.getAttribute("href")||n.getAttributeNS("http://www.w3.org/1999/xlink","href")||n.getAttribute("xlink:href")||((c=n.getElementsByTagName("a")[0])===null||c===void 0?void 0:c.getAttribute("href")),l=d(f.track(s,v,a!=null?a:{}),(u=f.settings.timeout)!==null&&u!==void 0?u:500);!m(n,h)&&!b(i)&&h&&(i.preventDefault?i.preventDefault():i.returnValue=!1,l.catch(console.error).then(function(){window.location.href=h}).catch(console.error))},!1)}),this):this}function k(t,r,e,a){var f=this;if(!t)return this;t instanceof HTMLFormElement&&(t=[t]);var o=t;return o.forEach(function(n){if(!(n instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var i=function(u){var s;u.preventDefault?u.preventDefault():u.returnValue=!1;var v=r instanceof Function?r(n):r,h=e instanceof Function?e(n):e,l=d(f.track(v,h,a!=null?a:{}),(s=f.settings.timeout)!==null&&s!==void 0?s:500);l.catch(console.error).then(function(){n.submit()}).catch(console.error)},c=window.jQuery||window.Zepto;c?c(n).submit(i):n.addEventListener("submit",i,!1)}),this}export{k as form,E as link};
@@ -1,4 +1,4 @@
1
- !function(){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},r(e)}System.register(["./index-legacy.3e15a23a.js","./index-legacy.8c8f66b9.js","./index-legacy.2dafcab0.js"],(function(e,t){"use strict";var n,o,a;return{setters:[function(r){n=r.ab,o=r.d},function(r){a=r.d},function(){}],execute:function(){for(var t={},i={},u=[],f=0;f<64;)u[f]=0|4294967296*Math.sin(++f%Math.PI);var c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],i=unescape(encodeURI(r))+"€",c=i.length;for(r=--c/4+2|15,a[--r]=8*c;~c;)a[c>>2]|=i.charCodeAt(c)<<8*c--;for(f=i=0;f<r;f+=16){for(c=o;i<64;c=[n=c[3],e+((n=c[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][c=i>>4]+u[i]+~~a[f|15&[i,5*i+1,3*i+5,7*i][c]])<<(c=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*c+i++%4])|n>>>-c),e,t])e=0|c[1],t=c[2];for(i=4;i;)o[--i]+=c[i]}for(r="";i<32;)r+=(o[i>>3]>>4*(1^i++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),l=n(c),s={exports:{}};!function(r,e){r.exports=function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r}}(s);
1
+ !function(){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},r(e)}System.register(["./index-legacy.9ef71ae1.js","./index-legacy.5a21f088.js","./index-legacy.75ba90f8.js"],(function(e,t){"use strict";var n,o,a;return{setters:[function(r){n=r.ab,o=r.d},function(r){a=r.d},function(){}],execute:function(){for(var t={},i={},u=[],f=0;f<64;)u[f]=0|4294967296*Math.sin(++f%Math.PI);var c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],i=unescape(encodeURI(r))+"€",c=i.length;for(r=--c/4+2|15,a[--r]=8*c;~c;)a[c>>2]|=i.charCodeAt(c)<<8*c--;for(f=i=0;f<r;f+=16){for(c=o;i<64;c=[n=c[3],e+((n=c[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][c=i>>4]+u[i]+~~a[f|15&[i,5*i+1,3*i+5,7*i][c]])<<(c=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*c+i++%4])|n>>>-c),e,t])e=0|c[1],t=c[2];for(i=4;i;)o[--i]+=c[i]}for(r="";i<32;)r+=(o[i>>3]>>4*(1^i++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),l=n(c),s={exports:{}};!function(r,e){r.exports=function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r}}(s);
2
2
  /**
3
3
  * @license Apache-2.0
4
4
  *
@@ -51,7 +51,7 @@ function(r){return r!=r},d=p,h=y;
51
51
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
52
52
  * See the License for the specific language governing permissions and
53
53
  * limitations under the License.
54
- */var b=function(r){return r===d||r===h};
54
+ */var g=function(r){return r===d||r===h};
55
55
  /**
56
56
  * @license Apache-2.0
57
57
  *
@@ -68,7 +68,7 @@ function(r){return r!=r},d=p,h=y;
68
68
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69
69
  * See the License for the specific language governing permissions and
70
70
  * limitations under the License.
71
- */var g=
71
+ */var b=
72
72
  /**
73
73
  * @license Apache-2.0
74
74
  *
@@ -103,7 +103,7 @@ function(){return"function"==typeof Symbol&&"symbol"===r(Symbol("foo"))}();
103
103
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
104
  * See the License for the specific language governing permissions and
105
105
  * limitations under the License.
106
- */var m=function(){return g&&"symbol"===r(Symbol.toStringTag)},w=Object.prototype.toString,A=w;
106
+ */var m=function(){return b&&"symbol"===r(Symbol.toStringTag)},w=Object.prototype.toString,A=w;
107
107
  /**
108
108
  * @license Apache-2.0
109
109
  *
@@ -447,7 +447,7 @@ function(){throw new Error("not implemented")},vr={uint16:lr()?pr:yr,uint8:or};
447
447
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
448
448
  * See the License for the specific language governing permissions and
449
449
  * limitations under the License.
450
- */(sr=new vr.uint16(1))[0]=4660;var dr,hr,br=52===new vr.uint8(sr.buffer)[0];
450
+ */(sr=new vr.uint16(1))[0]=4660;var dr,hr,gr=52===new vr.uint8(sr.buffer)[0];
451
451
  /**
452
452
  * @license Apache-2.0
453
453
  *
@@ -464,7 +464,7 @@ function(){throw new Error("not implemented")},vr={uint16:lr()?pr:yr,uint8:or};
464
464
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
465
465
  * See the License for the specific language governing permissions and
466
466
  * limitations under the License.
467
- */!0===br?(dr=1,hr=0):(dr=0,hr=1);var gr=D,mr={HIGH:dr,LOW:hr},wr=new z(1),Ar=new gr(wr.buffer),_r=mr.HIGH,Or=mr.LOW;
467
+ */!0===gr?(dr=1,hr=0):(dr=0,hr=1);var br=D,mr={HIGH:dr,LOW:hr},wr=new z(1),Ar=new br(wr.buffer),_r=mr.HIGH,Or=mr.LOW;
468
468
  /**
469
469
  * @license Apache-2.0
470
470
  *
@@ -498,7 +498,7 @@ function(){throw new Error("not implemented")},vr={uint16:lr()?pr:yr,uint8:or};
498
498
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
499
499
  * See the License for the specific language governing permissions and
500
500
  * limitations under the License.
501
- */var Sr=function(r,e){return 1===arguments.length?jr([0,0],r):jr(r,e)},kr=Sr,Nr=D,Ur=!0===br?1:0,Ir=new z(1),Pr=new Nr(Ir.buffer);
501
+ */var Sr=function(r,e){return 1===arguments.length?jr([0,0],r):jr(r,e)},kr=Sr,Nr=D,Ur=!0===gr?1:0,Ir=new z(1),Pr=new Nr(Ir.buffer);
502
502
  /**
503
503
  * @license Apache-2.0
504
504
  *
@@ -532,7 +532,7 @@ function(){throw new Error("not implemented")},vr={uint16:lr()?pr:yr,uint8:or};
532
532
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
533
533
  * See the License for the specific language governing permissions and
534
534
  * limitations under the License.
535
- */!0===br?(Mr=1,Er=0):(Mr=0,Er=1);var Fr=D,Hr={HIGH:Mr,LOW:Er},Jr=new z(1),Tr=new Fr(Jr.buffer),Cr=Hr.HIGH,Lr=Hr.LOW;
535
+ */!0===gr?(Mr=1,Er=0):(Mr=0,Er=1);var Fr=D,Hr={HIGH:Mr,LOW:Er},Jr=new z(1),Tr=new Fr(Jr.buffer),Cr=Hr.HIGH,Lr=Hr.LOW;
536
536
  /**
537
537
  * @license Apache-2.0
538
538
  *
@@ -566,7 +566,7 @@ function(){throw new Error("not implemented")},vr={uint16:lr()?pr:yr,uint8:or};
566
566
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
567
567
  * See the License for the specific language governing permissions and
568
568
  * limitations under the License.
569
- */var Qr=b,Vr=v,Yr=
569
+ */var Qr=g,Vr=v,Yr=
570
570
  /**
571
571
  * @license Apache-2.0
572
572
  *
@@ -635,7 +635,7 @@ function(r){return Math.abs(r)};
635
635
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
636
636
  * See the License for the specific language governing permissions and
637
637
  * limitations under the License.
638
- */var Xr=function(r){var e=Kr(r);return(e=(2146435072&e)>>>20)-1023|0},Zr=p,$r=y,re=v,ee=b,te=function(r,e){var t,n;return Gr(Br,r),t=Br[0],t&=2147483647,n=Rr(e),Wr(t|=n&=2147483648,Br[1])},ne=zr,oe=Xr,ae=kr,ie=Dr,ue=[0,0],fe=[0,0];
638
+ */var Xr=function(r){var e=Kr(r);return(e=(2146435072&e)>>>20)-1023|0},Zr=p,$r=y,re=v,ee=g,te=function(r,e){var t,n;return Gr(Br,r),t=Br[0],t&=2147483647,n=Rr(e),Wr(t|=n&=2147483648,Br[1])},ne=zr,oe=Xr,ae=kr,ie=Dr,ue=[0,0],fe=[0,0];
639
639
  /**
640
640
  * @license Apache-2.0
641
641
  *
@@ -669,4 +669,4 @@ function(r){return Math.abs(r)};
669
669
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
670
670
  * See the License for the specific language governing permissions and
671
671
  * limitations under the License.
672
- */Object.defineProperty(pe,"__esModule",{value:!0}),pe.unset=void 0;var ve=ye(s.exports);pe.unset=function(r,e){if((0,ve.default)(r,e)){for(var t=e.split("."),n=t.pop();t.length&&"\\"===t[t.length-1].slice(-1);)n=t.pop().slice(0,-1)+"."+n;for(;t.length;)r=r[e=t.shift()];return delete r[n]}return!0};var de=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:!0});var he=de(l),be=de(s.exports),ge=de(le),me=se,we=pe;function Ae(e,t){for(var n in t.drop)if(t.drop.hasOwnProperty(n)){var o=""===n?e:(0,be.default)(e,n);if("object"===r(o)&&null!==o)for(var a=0,i=t.drop[n];a<i.length;a++){delete o[i[a]]}}}function _e(e,t){for(var n in t.allow)if(t.allow.hasOwnProperty(n)){var o=""===n?e:(0,be.default)(e,n);if("object"===r(o)&&null!==o)for(var a in o)o.hasOwnProperty(a)&&-1===t.allow[n].indexOf(a)&&delete o[a]}}function Oe(e,t){var n=JSON.parse(JSON.stringify(e));for(var o in t.map)if(t.map.hasOwnProperty(o)){var a=t.map[o],i=o.split("."),u=void 0;if(i.length>1?(i.pop(),u=(0,be.default)(n,i.join("."))):u=e,"object"===r(u)){if(a.copy){var f=(0,be.default)(n,a.copy);void 0!==f&&(0,me.dset)(e,o,f)}else if(a.move){var c=(0,be.default)(n,a.move);void 0!==c&&(0,me.dset)(e,o,c),(0,we.unset)(e,a.move)}else a.hasOwnProperty("set")&&(0,me.dset)(e,o,a.set);if(a.to_string){var l=(0,be.default)(e,o);if("string"==typeof l||"object"===r(l)&&null!==l)continue;void 0!==l?(0,me.dset)(e,o,JSON.stringify(l)):(0,me.dset)(e,o,"undefined")}}}}function je(r,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(r,e){var t=(0,be.default)(r,e.sample.path),n=(0,he.default)(JSON.stringify(t)),o=-64,a=[];Se(n.slice(0,8),a);for(var i=0,u=0;u<64&&1!==a[u];u++)i++;if(0!==i){var f=[];Se(n.slice(9,16),f),o-=i,a.splice(0,i),f.splice(64-i),a=a.concat(f)}return a[63]=0===a[63]?1:0,(0,ge.default)(parseInt(a.join(""),2),o)<e.sample.percent}(r,e):(t=e.sample.percent,Math.random()<=t)));var t}function Se(r,e){for(var t=0;t<8;t++)for(var n=r[t],o=128;o>=1;o/=2)n-o>=0?(n-=o,e.push(1)):e.push(0)}i.default=function(r,e){for(var t=r,n=0,o=e;n<o.length;n++){var a=o[n];switch(a.type){case"drop":return null;case"drop_properties":Ae(t,a.config);break;case"allow_properties":_e(t,a.config);break;case"sample_event":if(je(t,a.config))break;return null;case"map_properties":Oe(t,a.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(a.type,'" is unsupported.'))}}return t};var ke={},Ne=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ke,"__esModule",{value:!0});var Ue=Ne(s.exports);function Ie(e,t){if(!Array.isArray(e))return!0===Pe(e,t);var n=e[0];switch(n){case"!":return!Ie(e[1],t);case"or":for(var o=1;o<e.length;o++)if(Ie(e[o],t))return!0;return!1;case"and":for(o=1;o<e.length;o++)if(!Ie(e[o],t))return!1;return!0;case"=":case"!=":return function(e,t,n,o){Me(e)&&(e=Ie(e,o));Me(t)&&(t=Ie(t,o));"object"===r(e)&&"object"===r(t)&&(e=JSON.stringify(e),t=JSON.stringify(t));switch(n){case"=":return e===t;case"!=":return e!==t;default:throw new Error("Invalid operator in compareItems: ".concat(n))}}(Pe(e[1],t),Pe(e[2],t),n,t);case"<=":case"<":case">":case">=":return function(r,e,t,n){Me(r)&&(r=Ie(r,n));Me(e)&&(e=Ie(e,n));if("number"!=typeof r||"number"!=typeof e)return!1;switch(t){case"<=":return r<=e;case">=":return r>=e;case"<":return r<e;case">":return r>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(t))}}(Pe(e[1],t),Pe(e[2],t),n,t);case"contains":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return-1!==r.indexOf(e)}(Pe(e[1],t),Pe(e[2],t));case"match":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return function(r,e){var t,n;r:for(;r.length>0;){var o=void 0,a=void 0;if(o=(t=Ee(r)).star,a=t.chunk,r=t.pattern,o&&""===a)return!0;var i=xe(a,e),u=i.t,f=i.ok,c=i.err;if(c)return!1;if(!f||!(0===u.length||r.length>0)){if(o)for(var l=0;l<e.length;l++){if(u=(n=xe(a,e.slice(l+1))).t,f=n.ok,c=n.err,f){if(0===r.length&&u.length>0)continue;e=u;continue r}if(c)return!1}return!1}e=u}return 0===e.length}(e,r)}(Pe(e[1],t),Pe(e[2],t));case"lowercase":var a=Pe(e[1],t);return"string"!=typeof a?null:a.toLowerCase();case"typeof":return r(Pe(e[1],t));case"length":return function(r){if(null===r)return 0;if(!Array.isArray(r)&&"string"!=typeof r)return NaN;return r.length}(Pe(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(n))}}function Pe(e,t){return Array.isArray(e)?e:"object"===r(e)?e.value:(0,Ue.default)(t,e)}function Me(r){return!!Array.isArray(r)&&(("lowercase"===r[0]||"length"===r[0]||"typeof"===r[0])&&2===r.length||("contains"===r[0]||"match"===r[0])&&3===r.length)}function Ee(r){for(var e={star:!1,chunk:"",pattern:""};r.length>0&&"*"===r[0];)r=r.slice(1),e.star=!0;var t,n=!1;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break r}return e.chunk=r.slice(0,t),e.pattern=r.slice(t),e}function xe(r,e){for(var t,n,o={t:"",ok:!1,err:!1};r.length>0;){if(0===e.length)return o;switch(r[0]){case"[":var a=e[0];e=e.slice(1);var i=!0;(r=r.slice(1)).length>0&&"^"===r[0]&&(i=!1,r=r.slice(1));for(var u=!1,f=0;;){if(r.length>0&&"]"===r[0]&&f>0){r=r.slice(1);break}var c,l="";if(c=(t=Fe(r)).char,r=t.newChunk,t.err)return o;if(l=c,"-"===r[0]&&(l=(n=Fe(r.slice(1))).char,r=n.newChunk,n.err))return o;c<=a&&a<=l&&(u=!0),f++}if(u!==i)return o;break;case"?":e=e.slice(1),r=r.slice(1);break;case"\\":if(0===(r=r.slice(1)).length)return o.err=!0,o;default:if(r[0]!==e[0])return o;e=e.slice(1),r=r.slice(1)}}return o.t=e,o.ok=!0,o.err=!1,o}function Fe(r){var e={char:"",newChunk:"",err:!1};return 0===r.length||"-"===r[0]||"]"===r[0]||"\\"===r[0]&&0===(r=r.slice(1)).length?(e.err=!0,e):(e.char=r[0],e.newChunk=r.slice(1),0===e.newChunk.length&&(e.err=!0),e)}ke.default=function(r,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return!0;case"fql":return function(r,e){if(!r)return!1;try{r=JSON.parse(r)}catch(n){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(n))}var t=Ie(r,e);if("boolean"!=typeof t)return!1;return t}(e.ir,r);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var He={};Object.defineProperty(He,"__esModule",{value:!0});var Je=function(){function r(r){this.rules=[],this.rules=r||[]}return r.prototype.getRulesByDestinationName=function(r){for(var e=[],t=0,n=this.rules;t<n.length;t++){var o=n[t];o.destinationName!==r&&void 0!==o.destinationName||e.push(o)}return e},r}();He.default=Je,function(r){var e=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var t=i;Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return e(t).default}});var n=ke;Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return e(n).default}});var a=He;Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return e(a).default}})}(t);e("tsubMiddleware",(function(r){return function(e){var n=e.payload,o=e.integration,a=e.next;new t.Store(r).getRulesByDestinationName(o).forEach((function(r){for(var e=r.matchers,o=r.transformers,i=0;i<e.length;i++)if(t.matches(n.obj,e[i])&&(n.obj=t.transform(n.obj,o[i]),null===n.obj))return a(null)})),a(n)}}))}}}))}();
672
+ */Object.defineProperty(pe,"__esModule",{value:!0}),pe.unset=void 0;var ve=ye(s.exports);pe.unset=function(r,e){if((0,ve.default)(r,e)){for(var t=e.split("."),n=t.pop();t.length&&"\\"===t[t.length-1].slice(-1);)n=t.pop().slice(0,-1)+"."+n;for(;t.length;)r=r[e=t.shift()];return delete r[n]}return!0};var de=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:!0});var he=de(l),ge=de(s.exports),be=de(le),me=se,we=pe;function Ae(e,t){for(var n in t.drop)if(t.drop.hasOwnProperty(n)){var o=""===n?e:(0,ge.default)(e,n);if("object"===r(o)&&null!==o)for(var a=0,i=t.drop[n];a<i.length;a++){delete o[i[a]]}}}function _e(e,t){for(var n in t.allow)if(t.allow.hasOwnProperty(n)){var o=""===n?e:(0,ge.default)(e,n);if("object"===r(o)&&null!==o)for(var a in o)o.hasOwnProperty(a)&&-1===t.allow[n].indexOf(a)&&delete o[a]}}function Oe(e,t){var n=JSON.parse(JSON.stringify(e));for(var o in t.map)if(t.map.hasOwnProperty(o)){var a=t.map[o],i=o.split("."),u=void 0;if(i.length>1?(i.pop(),u=(0,ge.default)(n,i.join("."))):u=e,"object"===r(u)){if(a.copy){var f=(0,ge.default)(n,a.copy);void 0!==f&&(0,me.dset)(e,o,f)}else if(a.move){var c=(0,ge.default)(n,a.move);void 0!==c&&(0,me.dset)(e,o,c),(0,we.unset)(e,a.move)}else a.hasOwnProperty("set")&&(0,me.dset)(e,o,a.set);if(a.to_string){var l=(0,ge.default)(e,o);if("string"==typeof l||"object"===r(l)&&null!==l)continue;void 0!==l?(0,me.dset)(e,o,JSON.stringify(l)):(0,me.dset)(e,o,"undefined")}}}}function je(r,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(r,e){var t=(0,ge.default)(r,e.sample.path),n=(0,he.default)(JSON.stringify(t)),o=-64,a=[];Se(n.slice(0,8),a);for(var i=0,u=0;u<64&&1!==a[u];u++)i++;if(0!==i){var f=[];Se(n.slice(9,16),f),o-=i,a.splice(0,i),f.splice(64-i),a=a.concat(f)}return a[63]=0===a[63]?1:0,(0,be.default)(parseInt(a.join(""),2),o)<e.sample.percent}(r,e):(t=e.sample.percent,Math.random()<=t)));var t}function Se(r,e){for(var t=0;t<8;t++)for(var n=r[t],o=128;o>=1;o/=2)n-o>=0?(n-=o,e.push(1)):e.push(0)}i.default=function(r,e){for(var t=r,n=0,o=e;n<o.length;n++){var a=o[n];switch(a.type){case"drop":return null;case"drop_properties":Ae(t,a.config);break;case"allow_properties":_e(t,a.config);break;case"sample_event":if(je(t,a.config))break;return null;case"map_properties":Oe(t,a.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(a.type,'" is unsupported.'))}}return t};var ke={},Ne=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ke,"__esModule",{value:!0});var Ue=Ne(s.exports);function Ie(e,t){if(!Array.isArray(e))return!0===Pe(e,t);var n=e[0];switch(n){case"!":return!Ie(e[1],t);case"or":for(var o=1;o<e.length;o++)if(Ie(e[o],t))return!0;return!1;case"and":for(o=1;o<e.length;o++)if(!Ie(e[o],t))return!1;return!0;case"=":case"!=":return function(e,t,n,o){Me(e)&&(e=Ie(e,o));Me(t)&&(t=Ie(t,o));"object"===r(e)&&"object"===r(t)&&(e=JSON.stringify(e),t=JSON.stringify(t));switch(n){case"=":return e===t;case"!=":return e!==t;default:throw new Error("Invalid operator in compareItems: ".concat(n))}}(Pe(e[1],t),Pe(e[2],t),n,t);case"<=":case"<":case">":case">=":return function(r,e,t,n){Me(r)&&(r=Ie(r,n));Me(e)&&(e=Ie(e,n));if("number"!=typeof r||"number"!=typeof e)return!1;switch(t){case"<=":return r<=e;case">=":return r>=e;case"<":return r<e;case">":return r>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(t))}}(Pe(e[1],t),Pe(e[2],t),n,t);case"contains":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return-1!==r.indexOf(e)}(Pe(e[1],t),Pe(e[2],t));case"match":return function(r,e){if("string"!=typeof r||"string"!=typeof e)return!1;return function(r,e){var t,n;r:for(;r.length>0;){var o=void 0,a=void 0;if(o=(t=Ee(r)).star,a=t.chunk,r=t.pattern,o&&""===a)return!0;var i=xe(a,e),u=i.t,f=i.ok,c=i.err;if(c)return!1;if(!f||!(0===u.length||r.length>0)){if(o)for(var l=0;l<e.length;l++){if(u=(n=xe(a,e.slice(l+1))).t,f=n.ok,c=n.err,f){if(0===r.length&&u.length>0)continue;e=u;continue r}if(c)return!1}return!1}e=u}return 0===e.length}(e,r)}(Pe(e[1],t),Pe(e[2],t));case"lowercase":var a=Pe(e[1],t);return"string"!=typeof a?null:a.toLowerCase();case"typeof":return r(Pe(e[1],t));case"length":return function(r){if(null===r)return 0;if(!Array.isArray(r)&&"string"!=typeof r)return NaN;return r.length}(Pe(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(n))}}function Pe(e,t){return Array.isArray(e)?e:"object"===r(e)?e.value:(0,Ue.default)(t,e)}function Me(r){return!!Array.isArray(r)&&(("lowercase"===r[0]||"length"===r[0]||"typeof"===r[0])&&2===r.length||("contains"===r[0]||"match"===r[0])&&3===r.length)}function Ee(r){for(var e={star:!1,chunk:"",pattern:""};r.length>0&&"*"===r[0];)r=r.slice(1),e.star=!0;var t,n=!1;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break r}return e.chunk=r.slice(0,t),e.pattern=r.slice(t),e}function xe(r,e){for(var t,n,o={t:"",ok:!1,err:!1};r.length>0;){if(0===e.length)return o;switch(r[0]){case"[":var a=e[0];e=e.slice(1);var i=!0;(r=r.slice(1)).length>0&&"^"===r[0]&&(i=!1,r=r.slice(1));for(var u=!1,f=0;;){if(r.length>0&&"]"===r[0]&&f>0){r=r.slice(1);break}var c,l="";if(c=(t=Fe(r)).char,r=t.newChunk,t.err)return o;if(l=c,"-"===r[0]&&(l=(n=Fe(r.slice(1))).char,r=n.newChunk,n.err))return o;c<=a&&a<=l&&(u=!0),f++}if(u!==i)return o;break;case"?":e=e.slice(1),r=r.slice(1);break;case"\\":if(0===(r=r.slice(1)).length)return o.err=!0,o;default:if(r[0]!==e[0])return o;e=e.slice(1),r=r.slice(1)}}return o.t=e,o.ok=!0,o.err=!1,o}function Fe(r){var e={char:"",newChunk:"",err:!1};return 0===r.length||"-"===r[0]||"]"===r[0]||"\\"===r[0]&&0===(r=r.slice(1)).length?(e.err=!0,e):(e.char=r[0],e.newChunk=r.slice(1),0===e.newChunk.length&&(e.err=!0),e)}ke.default=function(r,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return!0;case"fql":return function(r,e){if(!r)return!1;try{r=JSON.parse(r)}catch(n){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(n))}var t=Ie(r,e);if("boolean"!=typeof t)return!1;return t}(e.ir,r);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var He={};Object.defineProperty(He,"__esModule",{value:!0});var Je=function(){function r(r){this.rules=[],this.rules=r||[]}return r.prototype.getRulesByDestinationName=function(r){for(var e=[],t=0,n=this.rules;t<n.length;t++){var o=n[t];o.destinationName!==r&&void 0!==o.destinationName||e.push(o)}return e},r}();He.default=Je,function(r){var e=o&&o.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var t=i;Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return e(t).default}});var n=ke;Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return e(n).default}});var a=He;Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return e(a).default}})}(t);e("tsubMiddleware",(function(r){return function(e){var n=e.payload,o=e.integration,a=e.next;new t.Store(r).getRulesByDestinationName(o).forEach((function(r){for(var e=r.matchers,o=r.transformers,i=0;i<e.length;i++)if(t.matches(n.obj,e[i])&&(n.obj=t.transform(n.obj,o[i]),null===n.obj))return a(null)})),a(n)}}))}}}))}();