/*! For license information please see bundles.71abdf8a.js.LICENSE.txt */ (self.webpackChunkalvanon_analytics_platform_frontend=self.webpackChunkalvanon_analytics_platform_frontend||[]).push([[159],{5144(e){e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(n){return null!==n&&n!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(n,t){for(var r=e.root,o=e.root.next;null!==o;){if(t(o))return n.prev=o.prev,n.next=o,o.prev.next=n,void(o.prev=n);r=o,o=o.next}r.next=n,n.prev=r,n.next=null},findTransition:function(n){for(var t=e.root,r=e.root.next;null!==r&&!n(r);)t=r,r=r.next;return{before:t===e.root?null:t,after:r,insert:function(e){return e.prev=t,e.next=r,t.next=e,null!==r&&(r.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}},5163(e){function n(e,n,t){var r=[];return e.forEach(function(e){var o=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==n[o]&&r.push({id:t?t.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===n[o],below:2===n[o]},otherFill:null})}),t&&t.selected(r),r}var t={union:function(e,t){return n(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return n(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return n(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return n(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return n(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};e.exports=t},27290(e){e.exports=function(e){"number"!=typeof e&&(e=1e-10);var n={epsilon:function(n){return"number"==typeof n&&(e=n),e},pointAboveOrOnLine:function(n,t,r){var o=t[0],i=t[1],l=r[0],s=r[1],a=n[0];return(l-o)*(n[1]-i)-(s-i)*(a-o)>=-e},pointBetween:function(n,t,r){var o=n[1]-t[1],i=r[0]-t[0],l=n[0]-t[0],s=r[1]-t[1],a=l*i+o*s;return!(a-e)},pointsSameX:function(n,t){return Math.abs(n[0]-t[0])e!=l-o>e&&(i-u)*(o-c)/(l-c)+u-r>e&&(s=!s),i=u,l=c}return s}};return n}},64299(e){e.exports=function(){var e,n=0,t=!1;function r(n,t){return e.list.push({type:n,data:t?JSON.parse(JSON.stringify(t)):void 0}),e}return e={list:[],segmentId:function(){return n++},checkIntersection:function(e,n){return r("check",{seg1:e,seg2:n})},segmentChop:function(e,n){return r("div_seg",{seg:e,pt:n}),r("chop",{seg:e,pt:n})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,n){return r("new_seg",{seg:e,primary:n})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,n,t){return r("temp_status",{seg:e,above:n,below:t})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,n,t){return r("status",{seg:e,above:n,below:t})},vert:function(n){return n===t?e:(t=n,r("vert",{x:n}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,n){return r("chain_rem_head",{index:e,pt:n})},chainRemoveTail:function(e,n){return r("chain_rem_tail",{index:e,pt:n})},chainNew:function(e,n){return r("chain_new",{pt1:e,pt2:n})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,n){return r("chain_add_head",{index:e,pt:n})},chainAddTail:function(e,n){return r("chain_add_tail",{index:e,pt:n})},chainConnect:function(e,n){return r("chain_con",{index1:e,index2:n})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,n){return r("chain_join",{index1:e,index2:n})},done:function(){return r("done")}}}},67698(e){e.exports=function(e,n,t){var r=[],o=[];return e.forEach(function(e){var i=e.start,l=e.end;if(n.pointsSame(i,l))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{t&&t.chainStart(e);for(var s={index:0,matches_head:!1,matches_pt1:!1},a={index:0,matches_head:!1,matches_pt1:!1},u=s,c=0;c0})}function c(e,r){var o=e.seg,i=r.seg,l=o.start,s=o.end,a=i.start,c=i.end;t&&t.checkIntersection(o,i);var f=n.linesIntersect(l,s,a,c);if(!1===f){if(!n.pointsCollinear(l,s,a))return!1;if(n.pointsSame(l,c)||n.pointsSame(s,a))return!1;var g=n.pointsSame(l,a),d=n.pointsSame(s,c);if(g&&d)return r;var v=!g&&n.pointBetween(l,a,c),h=!d&&n.pointBetween(s,a,c);if(g)return h?u(r,s):u(e,c),r;v&&(d||(h?u(r,s):u(e,c)),u(r,l))}else 0===f.alongA&&(-1===f.alongB?u(e,a):0===f.alongB?u(e,f.pt):1===f.alongB&&u(e,c)),0===f.alongB&&(-1===f.alongA?u(r,l):0===f.alongA?u(r,f.pt):1===f.alongA&&u(r,s));return!1}for(var f=[];!l.isEmpty();){var g=l.getHead();if(t&&t.vert(g.pt[0]),g.isStart){t&&t.segmentNew(g.seg,g.primary);var d=a(g),v=d.before?d.before.ev:null,h=d.after?d.after.ev:null;function p(){if(v){var e=c(g,v);if(e)return e}return!!h&&c(g,h)}t&&t.tempStatus(g.seg,!!v&&v.seg,!!h&&h.seg);var m,y,b=p();if(b)e?(y=null===g.seg.myFill.below||g.seg.myFill.above!==g.seg.myFill.below)&&(b.seg.myFill.above=!b.seg.myFill.above):b.seg.otherFill=g.seg.myFill,t&&t.segmentUpdate(b.seg),g.other.remove(),g.remove();if(l.getHead()!==g){t&&t.rewind(g.seg);continue}e?(y=null===g.seg.myFill.below||g.seg.myFill.above!==g.seg.myFill.below,g.seg.myFill.below=h?h.seg.myFill.above:o,g.seg.myFill.above=y?!g.seg.myFill.below:g.seg.myFill.below):null===g.seg.otherFill&&(m=h?g.primary===h.primary?h.seg.otherFill.above:h.seg.myFill.above:g.primary?i:o,g.seg.otherFill={above:m,below:m}),t&&t.status(g.seg,!!v&&v.seg,!!h&&h.seg),g.other.status=d.insert(r.node({ev:g}))}else{var x=g.status;if(null===x)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(x.prev)&&s.exists(x.next)&&c(x.prev.ev,x.next.ev),t&&t.statusRemove(x.ev.seg),x.remove(),!g.primary){var w=g.seg.myFill;g.seg.myFill=g.seg.otherFill,g.seg.otherFill=w}f.push(g.seg)}l.getHead().remove()}return t&&t.done(),f}return e?{addRegion:function(e){for(var t,r=e[e.length-1],i=0;i