diff --git a/phpunit/.nojekyll b/phpunit/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/phpunit/clover.xml b/phpunit/clover.xml new file mode 100644 index 00000000..ac33e266 --- /dev/null +++ b/phpunit/clover.xml @@ -0,0 +1,2048 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/phpunit/coverage.svg b/phpunit/coverage.svg new file mode 100644 index 00000000..827ba900 --- /dev/null +++ b/phpunit/coverage.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + coverage + coverage + 18% + 18% + + \ No newline at end of file diff --git a/phpunit/html/.css/bootstrap.min.css b/phpunit/html/.css/bootstrap.min.css new file mode 100644 index 00000000..74a3ca17 --- /dev/null +++ b/phpunit/html/.css/bootstrap.min.css @@ -0,0 +1,7 @@ +/*! + * Bootstrap v4.1.3 (https://getbootstrap.com/) + * Copyright 2011-2018 The Bootstrap Authors + * Copyright 2011-2018 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-family:inherit;font-weight:500;line-height:1.2;color:inherit}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer::before{content:"\2014 \00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-break:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;order:-1}.order-last{-ms-flex-order:13;order:13}.order-0{-ms-flex-order:0;order:0}.order-1{-ms-flex-order:1;order:1}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-sm-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;order:-1}.order-sm-last{-ms-flex-order:13;order:13}.order-sm-0{-ms-flex-order:0;order:0}.order-sm-1{-ms-flex-order:1;order:1}.order-sm-2{-ms-flex-order:2;order:2}.order-sm-3{-ms-flex-order:3;order:3}.order-sm-4{-ms-flex-order:4;order:4}.order-sm-5{-ms-flex-order:5;order:5}.order-sm-6{-ms-flex-order:6;order:6}.order-sm-7{-ms-flex-order:7;order:7}.order-sm-8{-ms-flex-order:8;order:8}.order-sm-9{-ms-flex-order:9;order:9}.order-sm-10{-ms-flex-order:10;order:10}.order-sm-11{-ms-flex-order:11;order:11}.order-sm-12{-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-md-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;order:-1}.order-md-last{-ms-flex-order:13;order:13}.order-md-0{-ms-flex-order:0;order:0}.order-md-1{-ms-flex-order:1;order:1}.order-md-2{-ms-flex-order:2;order:2}.order-md-3{-ms-flex-order:3;order:3}.order-md-4{-ms-flex-order:4;order:4}.order-md-5{-ms-flex-order:5;order:5}.order-md-6{-ms-flex-order:6;order:6}.order-md-7{-ms-flex-order:7;order:7}.order-md-8{-ms-flex-order:8;order:8}.order-md-9{-ms-flex-order:9;order:9}.order-md-10{-ms-flex-order:10;order:10}.order-md-11{-ms-flex-order:11;order:11}.order-md-12{-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-lg-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;order:-1}.order-lg-last{-ms-flex-order:13;order:13}.order-lg-0{-ms-flex-order:0;order:0}.order-lg-1{-ms-flex-order:1;order:1}.order-lg-2{-ms-flex-order:2;order:2}.order-lg-3{-ms-flex-order:3;order:3}.order-lg-4{-ms-flex-order:4;order:4}.order-lg-5{-ms-flex-order:5;order:5}.order-lg-6{-ms-flex-order:6;order:6}.order-lg-7{-ms-flex-order:7;order:7}.order-lg-8{-ms-flex-order:8;order:8}.order-lg-9{-ms-flex-order:9;order:9}.order-lg-10{-ms-flex-order:10;order:10}.order-lg-11{-ms-flex-order:11;order:11}.order-lg-12{-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-xl-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;order:-1}.order-xl-last{-ms-flex-order:13;order:13}.order-xl-0{-ms-flex-order:0;order:0}.order-xl-1{-ms-flex-order:1;order:1}.order-xl-2{-ms-flex-order:2;order:2}.order-xl-3{-ms-flex-order:3;order:3}.order-xl-4{-ms-flex-order:4;order:4}.order-xl-5{-ms-flex-order:5;order:5}.order-xl-6{-ms-flex-order:6;order:6}.order-xl-7{-ms-flex-order:7;order:7}.order-xl-8{-ms-flex-order:8;order:8}.order-xl-9{-ms-flex-order:9;order:9}.order-xl-10{-ms-flex-order:10;order:10}.order-xl-11{-ms-flex-order:11;order:11}.order-xl-12{-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;background-color:transparent}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table .table{background-color:#fff}.table-sm td,.table-sm th{padding:.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-hover .table-primary:hover{background-color:#9fcdff}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-hover .table-secondary:hover{background-color:#c8cbcf}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-hover .table-success:hover{background-color:#b1dfbb}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-hover .table-info:hover{background-color:#abdde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-hover .table-warning:hover{background-color:#ffe8a1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-hover .table-danger:hover{background-color:#f1b0b7}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-hover .table-dark:hover{background-color:#b9bbbe}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#212529;border-color:#32383e}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#212529}.table-dark td,.table-dark th,.table-dark thead th{border-color:#32383e}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.05)}.table-dark.table-hover tbody tr:hover{background-color:rgba(255,255,255,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(2.25rem + 2px);padding:.375rem .75rem;font-size:1rem;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding-top:.375rem;padding-bottom:.375rem;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.8125rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(2.875rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.custom-select.is-valid,.form-control.is-valid,.was-validated .custom-select:valid,.was-validated .form-control:valid{border-color:#28a745}.custom-select.is-valid:focus,.form-control.is-valid:focus,.was-validated .custom-select:valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-select.is-valid~.valid-feedback,.custom-select.is-valid~.valid-tooltip,.form-control.is-valid~.valid-feedback,.form-control.is-valid~.valid-tooltip,.was-validated .custom-select:valid~.valid-feedback,.was-validated .custom-select:valid~.valid-tooltip,.was-validated .form-control:valid~.valid-feedback,.was-validated .form-control:valid~.valid-tooltip{display:block}.form-control-file.is-valid~.valid-feedback,.form-control-file.is-valid~.valid-tooltip,.was-validated .form-control-file:valid~.valid-feedback,.was-validated .form-control-file:valid~.valid-tooltip{display:block}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label::before,.was-validated .custom-control-input:valid~.custom-control-label::before{background-color:#71dd8a}.custom-control-input.is-valid~.valid-feedback,.custom-control-input.is-valid~.valid-tooltip,.was-validated .custom-control-input:valid~.valid-feedback,.was-validated .custom-control-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid:checked~.custom-control-label::before,.was-validated .custom-control-input:valid:checked~.custom-control-label::before{background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label::before,.was-validated .custom-control-input:valid:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(40,167,69,.25)}.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid~.custom-file-label::after,.was-validated .custom-file-input:valid~.custom-file-label::after{border-color:inherit}.custom-file-input.is-valid~.valid-feedback,.custom-file-input.is-valid~.valid-tooltip,.was-validated .custom-file-input:valid~.valid-feedback,.was-validated .custom-file-input:valid~.valid-tooltip{display:block}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.custom-select.is-invalid,.form-control.is-invalid,.was-validated .custom-select:invalid,.was-validated .form-control:invalid{border-color:#dc3545}.custom-select.is-invalid:focus,.form-control.is-invalid:focus,.was-validated .custom-select:invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-select.is-invalid~.invalid-feedback,.custom-select.is-invalid~.invalid-tooltip,.form-control.is-invalid~.invalid-feedback,.form-control.is-invalid~.invalid-tooltip,.was-validated .custom-select:invalid~.invalid-feedback,.was-validated .custom-select:invalid~.invalid-tooltip,.was-validated .form-control:invalid~.invalid-feedback,.was-validated .form-control:invalid~.invalid-tooltip{display:block}.form-control-file.is-invalid~.invalid-feedback,.form-control-file.is-invalid~.invalid-tooltip,.was-validated .form-control-file:invalid~.invalid-feedback,.was-validated .form-control-file:invalid~.invalid-tooltip{display:block}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label::before,.was-validated .custom-control-input:invalid~.custom-control-label::before{background-color:#efa2a9}.custom-control-input.is-invalid~.invalid-feedback,.custom-control-input.is-invalid~.invalid-tooltip,.was-validated .custom-control-input:invalid~.invalid-feedback,.was-validated .custom-control-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid:checked~.custom-control-label::before,.was-validated .custom-control-input:invalid:checked~.custom-control-label::before{background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label::before,.was-validated .custom-control-input:invalid:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(220,53,69,.25)}.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid~.custom-file-label::after,.was-validated .custom-file-input:invalid~.custom-file-label::after{border-color:inherit}.custom-file-input.is-invalid~.invalid-feedback,.custom-file-input.is-invalid~.invalid-tooltip,.was-validated .custom-file-input:invalid~.invalid-feedback,.was-validated .custom-file-input:invalid~.invalid-tooltip{display:block}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-flow:row wrap;flex-flow:row wrap;-ms-flex-align:center;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:focus,.btn:hover{text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}.btn:not(:disabled):not(.disabled){cursor:pointer}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-primary{color:#007bff;background-color:transparent;background-image:none;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;background-color:transparent;background-image:none;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;background-color:transparent;background-image:none;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;background-color:transparent;background-image:none;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;background-color:transparent;background-image:none;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;background-color:transparent;background-image:none;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;background-color:transparent;background-image:none;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;background-color:transparent;background-image:none;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;background-color:transparent}.btn-link:hover{color:#0056b3;text-decoration:underline;background-color:transparent;border-color:transparent}.btn-link.focus,.btn-link:focus{text-decoration:underline;border-color:transparent;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media screen and (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media screen and (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-right{right:0;left:auto}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;width:0;height:0;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;-ms-flex:0 1 auto;flex:0 1 auto}.btn-group-vertical>.btn:hover,.btn-group>.btn:hover{z-index:1}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus{z-index:1}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group,.btn-group-vertical .btn+.btn,.btn-group-vertical .btn+.btn-group,.btn-group-vertical .btn-group+.btn,.btn-group-vertical .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}.btn-group-vertical .btn,.btn-group-vertical .btn-group{width:100%}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio],.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:-ms-flexbox;display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{height:calc(2.875rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{height:calc(1.8125rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}.custom-control-inline{display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked~.custom-control-label::before{color:#fff;background-color:#007bff}.custom-control-input:focus~.custom-control-label::before{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:active~.custom-control-label::before{color:#fff;background-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0}.custom-control-label::before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#dee2e6}.custom-control-label::after{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background-repeat:no-repeat;background-position:center center;background-size:50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-color:#007bff}.custom-checkbox .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before{background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label::before{background-color:#007bff}.custom-radio .custom-control-input:checked~.custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(2.25rem + 2px);padding:.375rem 1.75rem .375rem .75rem;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;background-size:8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(128,189,255,.5)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{opacity:0}.custom-select-sm{height:calc(1.8125rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:75%}.custom-select-lg{height:calc(2.875rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:125%}.custom-file{position:relative;display:inline-block;width:100%;height:calc(2.25rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(2.25rem + 2px);margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:focus~.custom-file-label::after{border-color:#80bdff}.custom-file-input:disabled~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label::after{content:"Browse"}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(2.25rem + 2px);padding:.375rem .75rem;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:2.25rem;padding:.375rem .75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:1px solid #ced4da;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;padding-left:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:0}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media screen and (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media screen and (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media screen and (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media screen and (prefers-reduced-motion:reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item{-ms-flex:1 1 auto;flex:1 1 auto;text-align:center}.nav-justified .nav-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 1rem}.navbar>.container,.navbar>.container-fluid{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler:not(:disabled):not(.disabled){cursor:pointer}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-sm .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-md .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-lg .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-xl .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-ms-flexbox!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,.9)}.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,.9)}.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:rgba(255,255,255,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,.5);border-color:rgba(255,255,255,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:rgba(255,255,255,.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img{width:100%;border-radius:calc(.25rem - 1px)}.card-img-top{width:100%;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img-bottom{width:100%;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{-ms-flex-flow:row wrap;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{display:-ms-flexbox;display:flex;-ms-flex:1 0 0%;flex:1 0 0%;-ms-flex-direction:column;flex-direction:column;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{-ms-flex-flow:row wrap;flex-flow:row wrap}.card-group>.card{-ms-flex:1 0 0%;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:first-child .card-header,.card-group>.card:first-child .card-img-top{border-top-right-radius:0}.card-group>.card:first-child .card-footer,.card-group>.card:first-child .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:last-child .card-header,.card-group>.card:last-child .card-img-top{border-top-left-radius:0}.card-group>.card:last-child .card-footer,.card-group>.card:last-child .card-img-bottom{border-bottom-left-radius:0}.card-group>.card:only-child{border-radius:.25rem}.card-group>.card:only-child .card-header,.card-group>.card:only-child .card-img-top{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card-group>.card:only-child .card-footer,.card-group>.card:only-child .card-img-bottom{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-group>.card:not(:first-child):not(:last-child):not(:only-child){border-radius:0}.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-footer,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-header,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-top{border-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion .card:not(:first-of-type):not(:last-of-type){border-bottom:0;border-radius:0}.accordion .card:not(:first-of-type) .card-header:first-child{border-radius:0}.accordion .card:first-of-type{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion .card:last-of-type{border-top-left-radius:0;border-top-right-radius:0}.breadcrumb{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:-ms-flexbox;display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:2;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-link:not(:disabled):not(.disabled){cursor:pointer}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:1;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}.badge-primary[href]:focus,.badge-primary[href]:hover{color:#fff;text-decoration:none;background-color:#0062cc}.badge-secondary{color:#fff;background-color:#6c757d}.badge-secondary[href]:focus,.badge-secondary[href]:hover{color:#fff;text-decoration:none;background-color:#545b62}.badge-success{color:#fff;background-color:#28a745}.badge-success[href]:focus,.badge-success[href]:hover{color:#fff;text-decoration:none;background-color:#1e7e34}.badge-info{color:#fff;background-color:#17a2b8}.badge-info[href]:focus,.badge-info[href]:hover{color:#fff;text-decoration:none;background-color:#117a8b}.badge-warning{color:#212529;background-color:#ffc107}.badge-warning[href]:focus,.badge-warning[href]:hover{color:#212529;text-decoration:none;background-color:#d39e00}.badge-danger{color:#fff;background-color:#dc3545}.badge-danger[href]:focus,.badge-danger[href]:hover{color:#fff;text-decoration:none;background-color:#bd2130}.badge-light{color:#212529;background-color:#f8f9fa}.badge-light[href]:focus,.badge-light[href]:hover{color:#212529;text-decoration:none;background-color:#dae0e5}.badge-dark{color:#fff;background-color:#343a40}.badge-dark[href]:focus,.badge-dark[href]:hover{color:#fff;text-decoration:none;background-color:#1d2124}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:-ms-flexbox;display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress-bar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;transition:width .6s ease}@media screen and (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}.media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.media-body{-ms-flex:1;flex:1}.list-group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:-1px;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item:focus,.list-group-item:hover{z-index:1;text-decoration:none}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-flush .list-group-item{border-right:0;border-left:0;border-radius:0}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:not(:disabled):not(.disabled){cursor:pointer}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{color:#000;text-decoration:none;opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-25%);transform:translate(0,-25%)}@media screen and (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{-webkit-transform:translate(0,0);transform:translate(0,0)}.modal-dialog-centered{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:calc(100% - (.5rem * 2))}.modal-dialog-centered::before{display:block;height:calc(100vh - (.5rem * 2));content:""}.modal-content{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:justify;justify-content:space-between;padding:1rem;border-bottom:1px solid #e9ecef;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem}.modal-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;padding:1rem;border-top:1px solid #e9ecef}.modal-footer>:not(:first-child){margin-left:.25rem}.modal-footer>:not(:last-child){margin-right:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-centered{min-height:calc(100% - (1.75rem * 2))}.modal-dialog-centered::before{height:calc(100vh - (1.75rem * 2))}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg{max-width:800px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow::before,.bs-tooltip-top .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow::before,.bs-tooltip-right .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow::before,.bs-tooltip-bottom .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow::before,.bs-tooltip-left .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover .arrow{position:absolute;display:block;width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow::after,.popover .arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top] .arrow,.bs-popover-top .arrow{bottom:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=top] .arrow::after,.bs-popover-auto[x-placement^=top] .arrow::before,.bs-popover-top .arrow::after,.bs-popover-top .arrow::before{border-width:.5rem .5rem 0}.bs-popover-auto[x-placement^=top] .arrow::before,.bs-popover-top .arrow::before{bottom:0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top] .arrow::after,.bs-popover-top .arrow::after{bottom:1px;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right] .arrow,.bs-popover-right .arrow{left:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right] .arrow::after,.bs-popover-auto[x-placement^=right] .arrow::before,.bs-popover-right .arrow::after,.bs-popover-right .arrow::before{border-width:.5rem .5rem .5rem 0}.bs-popover-auto[x-placement^=right] .arrow::before,.bs-popover-right .arrow::before{left:0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right] .arrow::after,.bs-popover-right .arrow::after{left:1px;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom] .arrow,.bs-popover-bottom .arrow{top:calc((.5rem + 1px) * -1)}.bs-popover-auto[x-placement^=bottom] .arrow::after,.bs-popover-auto[x-placement^=bottom] .arrow::before,.bs-popover-bottom .arrow::after,.bs-popover-bottom .arrow::before{border-width:0 .5rem .5rem .5rem}.bs-popover-auto[x-placement^=bottom] .arrow::before,.bs-popover-bottom .arrow::before{top:0;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom] .arrow::after,.bs-popover-bottom .arrow::after{top:1px;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left] .arrow,.bs-popover-left .arrow{right:calc((.5rem + 1px) * -1);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left] .arrow::after,.bs-popover-auto[x-placement^=left] .arrow::before,.bs-popover-left .arrow::after,.bs-popover-left .arrow::before{border-width:.5rem 0 .5rem .5rem}.bs-popover-auto[x-placement^=left] .arrow::before,.bs-popover-left .arrow::before{right:0;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left] .arrow::after,.bs-popover-left .arrow::after{right:1px;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;color:inherit;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-item{position:relative;display:none;-ms-flex-align:center;align-items:center;width:100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block;transition:-webkit-transform .6s ease;transition:transform .6s ease;transition:transform .6s ease,-webkit-transform .6s ease}@media screen and (prefers-reduced-motion:reduce){.carousel-item-next,.carousel-item-prev,.carousel-item.active{transition:none}}.carousel-item-next,.carousel-item-prev{position:absolute;top:0}.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{-webkit-transform:translateX(0);transform:translateX(0)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.active.carousel-item-right,.carousel-item-next{-webkit-transform:translateX(100%);transform:translateX(100%)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.active.carousel-item-right,.carousel-item-next{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.active.carousel-item-left,.carousel-item-prev{-webkit-transform:translateX(-100%);transform:translateX(-100%)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.active.carousel-item-left,.carousel-item-prev{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.carousel-fade .carousel-item{opacity:0;transition-duration:.6s;transition-property:opacity}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{opacity:0}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active{-webkit-transform:translateX(0);transform:translateX(0)}@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:transparent no-repeat center center;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:10px;left:0;z-index:15;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{position:relative;-ms-flex:0 1 auto;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:rgba(255,255,255,.5)}.carousel-indicators li::before{position:absolute;top:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators li::after{position:absolute;bottom:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators .active{background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important;border-top-right-radius:.25rem!important}.rounded-right{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.rounded-bottom{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-circle{border-radius:50%!important}.rounded-0{border-radius:0!important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.857143%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-sm-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-md-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-lg-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;flex-direction:row!important}.flex-xl-column{-ms-flex-direction:column!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.text-justify{text-align:justify!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0062cc!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#545b62!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#1e7e34!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#117a8b!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#d39e00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#bd2130!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#dae0e5!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#1d2124!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:rgba(255,255,255,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,::after,::before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px!important}.container{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}} +/*# sourceMappingURL=bootstrap.min.css.map */ diff --git a/phpunit/html/.css/custom.css b/phpunit/html/.css/custom.css new file mode 100644 index 00000000..e69de29b diff --git a/phpunit/html/.css/nv.d3.min.css b/phpunit/html/.css/nv.d3.min.css new file mode 100644 index 00000000..7a6f7fe9 --- /dev/null +++ b/phpunit/html/.css/nv.d3.min.css @@ -0,0 +1 @@ +.nvd3 .nv-axis{pointer-events:none;opacity:1}.nvd3 .nv-axis path{fill:none;stroke:#000;stroke-opacity:.75;shape-rendering:crispEdges}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{fill:none;stroke:#e5e5e5;shape-rendering:crispEdges}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-axis.nv-disabled{opacity:0}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:rgba(0,0,0,0)}.nvd3 .nv-bars .hover text{fill:rgba(0,0,0,1)}.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect,.nvd3 .nv-discretebar .nv-groups rect{stroke-opacity:0;transition:fill-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear}.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:rgba(0,0,0,1);stroke:rgba(0,0,0,0)}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover{fill-opacity:1}.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nvd3 .nv-legend .nv-disabled rect{}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-scatter .nv-groups .nv-point.hover,.nvd3 .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.nvd3 text{font:400 12px Arial}.nvd3 .title{font:700 14px Arial}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125;shape-rendering:crispEdges}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#EEE;stroke-opacity:.4;shape-rendering:crispEdges}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie path{stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-width 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:rgba(19,196,249,.59)}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{stroke:#fff;stroke-width:1px;stroke-opacity:1}.nvd3.nv-pie .hover path{fill-opacity:.7}.nvd3.nv-pie .nv-label{pointer-events:none}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nv-noninteractive{pointer-events:none}.nv-distx,.nv-disty{pointer-events:none}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-moz-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear;-webkit-transition:fill-opacity 250ms linear,stroke-opacity 250ms linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;background-color:rgba(255,255,255,1);color:rgba(0,0,0,1);padding:1px;border:1px solid rgba(0,0,0,.2);z-index:10000;display:block;font-family:Arial;font-size:13px;text-align:left;pointer-events:none;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nvtooltip{background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;-moz-transition:opacity 50ms linear;-webkit-transition:opacity 50ms linear;transition-delay:200ms;-moz-transition-delay:200ms;-webkit-transition-delay:200ms}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{margin:0;padding:4px 14px;line-height:18px;font-weight:400;background-color:rgba(247,247,247,.75);color:rgba(0,0,0,1);text-align:center;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.nvtooltip p{margin:0;padding:5px 14px;text-align:center}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key{font-weight:400}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{width:8px;height:8px;vertical-align:middle}.nvtooltip table td.legend-color-guide div{width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 .nv-interactiveGuideLine{pointer-events:none}.nvd3 line.nv-guideline{stroke:#ccc} \ No newline at end of file diff --git a/phpunit/html/.css/octicons.css b/phpunit/html/.css/octicons.css new file mode 100644 index 00000000..31d97867 --- /dev/null +++ b/phpunit/html/.css/octicons.css @@ -0,0 +1,5 @@ +.octicon { + display: inline-block; + vertical-align: text-top; + fill: currentColor; +} diff --git a/phpunit/html/.css/style.css b/phpunit/html/.css/style.css new file mode 100644 index 00000000..6d9c21e8 --- /dev/null +++ b/phpunit/html/.css/style.css @@ -0,0 +1,122 @@ +body { + padding-top: 10px; +} + +.popover { + max-width: none; +} + +.octicon { + margin-right:.25em; +} + +.table-bordered>thead>tr>td { + border-bottom-width: 1px; +} + +.table tbody>tr>td, .table thead>tr>td { + padding-top: 3px; + padding-bottom: 3px; +} + +.table-condensed tbody>tr>td { + padding-top: 0; + padding-bottom: 0; +} + +.table .progress { + margin-bottom: inherit; +} + +.table-borderless th, .table-borderless td { + border: 0 !important; +} + +.table tbody tr.covered-by-large-tests, li.covered-by-large-tests, tr.success, td.success, li.success, span.success { + background-color: #dff0d8; +} + +.table tbody tr.covered-by-medium-tests, li.covered-by-medium-tests { + background-color: #c3e3b5; +} + +.table tbody tr.covered-by-small-tests, li.covered-by-small-tests { + background-color: #99cb84; +} + +.table tbody tr.danger, .table tbody td.danger, li.danger, span.danger { + background-color: #f2dede; +} + +.table tbody td.warning, li.warning, span.warning { + background-color: #fcf8e3; +} + +.table tbody td.info { + background-color: #d9edf7; +} + +td.big { + width: 117px; +} + +td.small { +} + +td.codeLine { + font-family: "Source Code Pro", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + white-space: pre; +} + +td span.comment { + color: #888a85; +} + +td span.default { + color: #2e3436; +} + +td span.html { + color: #888a85; +} + +td span.keyword { + color: #2e3436; + font-weight: bold; +} + +pre span.string { + color: #2e3436; +} + +span.success, span.warning, span.danger { + margin-right: 2px; + padding-left: 10px; + padding-right: 10px; + text-align: center; +} + +#classCoverageDistribution, #classComplexity { + height: 200px; + width: 475px; +} + +#toplink { + position: fixed; + left: 5px; + bottom: 5px; + outline: 0; +} + +svg text { + font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #666; + fill: #666; +} + +.scrollbox { + height:245px; + overflow-x:hidden; + overflow-y:scroll; +} diff --git a/phpunit/html/.icons/file-code.svg b/phpunit/html/.icons/file-code.svg new file mode 100644 index 00000000..5b4b1995 --- /dev/null +++ b/phpunit/html/.icons/file-code.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/phpunit/html/.icons/file-directory.svg b/phpunit/html/.icons/file-directory.svg new file mode 100644 index 00000000..4bf1f1ca --- /dev/null +++ b/phpunit/html/.icons/file-directory.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/phpunit/html/.js/bootstrap.min.js b/phpunit/html/.js/bootstrap.min.js new file mode 100644 index 00000000..1a477123 --- /dev/null +++ b/phpunit/html/.js/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v4.1.3 (https://getbootstrap.com/) + * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,h){"use strict";function i(t,e){for(var n=0;nthis._items.length-1||t<0))if(this._isSliding)P(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!(Ie={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Se={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},we="out",Ne={HIDE:"hide"+Ee,HIDDEN:"hidden"+Ee,SHOW:(De="show")+Ee,SHOWN:"shown"+Ee,INSERTED:"inserted"+Ee,CLICK:"click"+Ee,FOCUSIN:"focusin"+Ee,FOCUSOUT:"focusout"+Ee,MOUSEENTER:"mouseenter"+Ee,MOUSELEAVE:"mouseleave"+Ee},Oe="fade",ke="show",Pe=".tooltip-inner",je=".arrow",He="hover",Le="focus",Re="click",xe="manual",We=function(){function i(t,e){if("undefined"==typeof h)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=pe(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(pe(this.getTipElement()).hasClass(ke))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),pe.removeData(this.element,this.constructor.DATA_KEY),pe(this.element).off(this.constructor.EVENT_KEY),pe(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&pe(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===pe(this.element).css("display"))throw new Error("Please use show on visible elements");var t=pe.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){pe(this.element).trigger(t);var n=pe.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=Fn.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&pe(i).addClass(Oe);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:pe(document).find(this.config.container);pe(i).data(this.constructor.DATA_KEY,this),pe.contains(this.element.ownerDocument.documentElement,this.tip)||pe(i).appendTo(a),pe(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:je},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),pe(i).addClass(ke),"ontouchstart"in document.documentElement&&pe(document.body).children().on("mouseover",null,pe.noop);var l=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,pe(e.element).trigger(e.constructor.Event.SHOWN),t===we&&e._leave(null,e)};if(pe(this.tip).hasClass(Oe)){var c=Fn.getTransitionDurationFromElement(this.tip);pe(this.tip).one(Fn.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=pe.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==De&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),pe(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(pe(this.element).trigger(i),!i.isDefaultPrevented()){if(pe(n).removeClass(ke),"ontouchstart"in document.documentElement&&pe(document.body).children().off("mouseover",null,pe.noop),this._activeTrigger[Re]=!1,this._activeTrigger[Le]=!1,this._activeTrigger[He]=!1,pe(this.tip).hasClass(Oe)){var o=Fn.getTransitionDurationFromElement(n);pe(n).one(Fn.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){pe(this.getTipElement()).addClass(Te+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||pe(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(pe(t.querySelectorAll(Pe)),this.getTitle()),pe(t).removeClass(Oe+" "+ke)},t.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?pe(e).parent().is(t)||t.empty().append(e):t.text(pe(e).text()):t[n?"html":"text"](e)},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getAttachment=function(t){return Ie[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)pe(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==xe){var e=t===He?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===He?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;pe(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}pe(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||pe(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Le:He]=!0),pe(e.getTipElement()).hasClass(ke)||e._hoverState===De?e._hoverState=De:(clearTimeout(e._timeout),e._hoverState=De,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===De&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||pe(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),pe(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Le:He]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=we,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===we&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){return"number"==typeof(t=l({},this.constructor.Default,pe(this.element).data(),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Fn.typeCheckConfig(ve,t,this.constructor.DefaultType),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=pe(this.getTipElement()),e=t.attr("class").match(be);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(pe(t).removeClass(Oe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=pe(this).data(ye),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),pe(this).data(ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ae}},{key:"NAME",get:function(){return ve}},{key:"DATA_KEY",get:function(){return ye}},{key:"Event",get:function(){return Ne}},{key:"EVENT_KEY",get:function(){return Ee}},{key:"DefaultType",get:function(){return Se}}]),i}(),pe.fn[ve]=We._jQueryInterface,pe.fn[ve].Constructor=We,pe.fn[ve].noConflict=function(){return pe.fn[ve]=Ce,We._jQueryInterface},We),Jn=(qe="popover",Ke="."+(Fe="bs.popover"),Me=(Ue=e).fn[qe],Qe="bs-popover",Be=new RegExp("(^|\\s)"+Qe+"\\S+","g"),Ve=l({},zn.Default,{placement:"right",trigger:"click",content:"",template:''}),Ye=l({},zn.DefaultType,{content:"(string|element|function)"}),ze="fade",Ze=".popover-header",Ge=".popover-body",$e={HIDE:"hide"+Ke,HIDDEN:"hidden"+Ke,SHOW:(Je="show")+Ke,SHOWN:"shown"+Ke,INSERTED:"inserted"+Ke,CLICK:"click"+Ke,FOCUSIN:"focusin"+Ke,FOCUSOUT:"focusout"+Ke,MOUSEENTER:"mouseenter"+Ke,MOUSELEAVE:"mouseleave"+Ke},Xe=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){Ue(this.getTipElement()).addClass(Qe+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||Ue(this.config.template)[0],this.tip},r.setContent=function(){var t=Ue(this.getTipElement());this.setElementContent(t.find(Ze),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Ge),e),t.removeClass(ze+" "+Je)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=Ue(this.getTipElement()),e=t.attr("class").match(Be);null!==e&&0=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||tn?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function i(n){return!isNaN(n)}function u(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function f(n){return(n+="")===bo||n[0]===_o?_o+n:n}function s(n){return(n+="")[0]===_o?n.slice(1):n}function h(n){return f(n)in this._}function p(n){return(n=f(n))in this._&&delete this._[n]}function g(){var n=[];for(var t in this._)n.push(s(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=wo.length;r>e;++e){var i=wo[e]+t;if(i in n)return i}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,i=-1,u=r.length;++ie;e++)for(var i,u=n[e],o=0,a=u.length;a>o;o++)(i=u[o])&&t(i,o,e);return n}function Z(n){return ko(n,qo),n}function V(n){var t,e;return function(r,i,u){var o,a=n[u].update,l=a.length;for(u!=e&&(e=u,t=0),i>=t&&(t=i+1);!(o=a[t])&&++t0&&(n=n.slice(0,a));var c=To.get(n);return c&&(n=c,l=B),a?t?i:r:t?b:u}function $(n,t){return function(e){var r=ao.event;ao.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{ao.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Do,i="click"+r,u=ao.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Ro&&(Ro="onselectstart"in e?!1:x(e.style,"userSelect")),Ro){var o=n(e).style,a=o[Ro];o[Ro]="none"}return function(n){if(u.on(r,null),Ro&&(o[Ro]=a),n){var t=function(){u.on(i,null)};u.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Po){var u=t(n);if(u.scrollX||u.scrollY){r=ao.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Po=!(o.f||o.e),r.remove()}}return Po?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}function G(){return ao.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:-1>n?Fo:Math.acos(n)}function tn(n){return n>1?Io:-1>n?-Io:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function on(n){return(n=Math.sin(n/2))*n}function an(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):_n(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?u+(o-u)*n/60:180>n?o:240>n?u+(o-u)*(240-n)/60:u}function i(n){return Math.round(255*r(n))}var u,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+t):e+t-e*t,u=2*e-o,new mn(i(n+120),i(n),i(n-120))}function fn(n,t,e){return this instanceof fn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof fn?new fn(n.h,n.c,n.l):n instanceof hn?gn(n.l,n.a,n.b):gn((n=Sn((n=ao.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new fn(n,t,e)}function sn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Yo)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof fn?sn(n.h,n.c,n.l):Sn((n=mn(n)).r,n.g,n.b):new hn(n,t,e)}function pn(n,t,e){var r=(n+16)/116,i=r+t/500,u=r-e/200;return i=vn(i)*na,r=vn(r)*ta,u=vn(u)*ea,new mn(yn(3.2404542*i-1.5371385*r-.4985314*u),yn(-.969266*i+1.8760108*r+.041556*u),yn(.0556434*i-.2040259*r+1.0572252*u))}function gn(n,t,e){return n>0?new fn(Math.atan2(e,t)*Zo,Math.sqrt(t*t+e*e),n):new fn(NaN,NaN,n)}function vn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function dn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function yn(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function mn(n,t,e){return this instanceof mn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof mn?new mn(n.r,n.g,n.b):_n(""+n,mn,cn):new mn(n,t,e)}function Mn(n){return new mn(n>>16,n>>8&255,255&n)}function xn(n){return Mn(n)+""}function bn(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function _n(n,t,e){var r,i,u,o=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Nn(i[0]),Nn(i[1]),Nn(i[2]))}return(u=ua.get(n))?t(u.r,u.g,u.b):(null==n||"#"!==n.charAt(0)||isNaN(u=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&u)>>4,o=o>>4|o,a=240&u,a=a>>4|a,l=15&u,l=l<<4|l):7===n.length&&(o=(16711680&u)>>16,a=(65280&u)>>8,l=255&u)),t(o,a,l))}function wn(n,t,e){var r,i,u=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-u,l=(o+u)/2;return a?(i=.5>l?a/(o+u):a/(2-o-u),r=n==o?(t-e)/a+(e>t?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=NaN,i=l>0&&1>l?0:r),new ln(r,i,l)}function Sn(n,t,e){n=kn(n),t=kn(t),e=kn(e);var r=dn((.4124564*n+.3575761*t+.1804375*e)/na),i=dn((.2126729*n+.7151522*t+.072175*e)/ta),u=dn((.0193339*n+.119192*t+.9503041*e)/ea);return hn(116*i-16,500*(r-i),200*(i-u))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function i(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&300>t||304===t){try{n=e.call(u,l)}catch(r){return void o.error.call(u,r)}o.load.call(u,n)}else o.error.call(u,l)}var u={},o=ao.dispatch("beforesend","progress","load","error"),a={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(n){var t=ao.event;ao.event=n;try{o.progress.call(u,l)}finally{ao.event=t}},u.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",u)},u.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",u):t},u.responseType=function(n){return arguments.length?(c=n,u):c},u.response=function(n){return e=n,u},["get","post"].forEach(function(n){u[n]=function(){return u.send.apply(u,[n].concat(co(arguments)))}}),u.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),l.setRequestHeader)for(var f in a)l.setRequestHeader(f,a[f]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=i&&u.on("error",i).on("load",function(n){i(null,n)}),o.beforesend.call(u,l),l.send(null==r?null:r),u},u.abort=function(){return l.abort(),u},ao.rebind(u,o,"on"),null==r?u:u.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var i=e+t,u={c:n,t:i,n:null};return aa?aa.n=u:oa=u,aa=u,la||(ca=clearTimeout(ca),la=1,fa(Tn)),u}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(ca),ca=setTimeout(Tn,t)),la=0):(la=1,fa(Tn))}function Rn(){for(var n=Date.now(),t=oa;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=oa,e=1/0;t;)t.c?(t.t8?function(n){return n/e}:function(n){return n*e},symbol:n}}function jn(n){var t=n.decimal,e=n.thousands,r=n.grouping,i=n.currency,u=r&&e?function(n,t){for(var i=n.length,u=[],o=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>t&&(a=Math.max(1,t-l)),u.push(n.substring(i-=a,i+a)),!((l+=a+1)>t));)a=r[o=(o+1)%r.length];return u.reverse().join(e)}:m;return function(n){var e=ha.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",l=e[4]||"",c=e[5],f=+e[6],s=e[7],h=e[8],p=e[9],g=1,v="",d="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),p){case"n":s=!0,p="g";break;case"%":g=100,d="%",p="f";break;case"p":g=100,d="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===l&&(v=i[0],d=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=pa.get(p)||Fn;var M=c&&s;return function(n){var e=d;if(y&&n%1)return"";var i=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===a?"":a;if(0>g){var l=ao.formatPrefix(n,h);n=l.scale(n),e=l.symbol+d}else n*=g;n=p(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=m?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!c&&s&&(x=u(x,1/0));var S=v.length+x.length+b.length+(M?0:i.length),k=f>S?new Array(S=f-S+1).join(r):"";return M&&(x=u(k+x,k.length?f-b.length:1/0)),i+=v,n=x+b,("<"===o?i+n+k:">"===o?k+i+n:"^"===o?k.substring(0,S>>=1)+i+n+k.substring(S):i+(M?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=u(e,1);return r-t>t-e?e:r}function i(e){return t(e=n(new va(e-1)),1),e}function u(n,e){return t(n=new va(+n),e),n}function o(n,r,u){var o=i(n),a=[];if(u>1)for(;r>o;)e(o)%u||a.push(new Date(+o)),t(o,1);else for(;r>o;)a.push(new Date(+o)),t(o,1);return a}function a(n,t,e){try{va=Hn;var r=new Hn;return r._=n,o(r,t,e)}finally{va=Date}}n.floor=n,n.round=r,n.ceil=i,n.offset=u,n.range=o;var l=n.utc=In(n);return l.floor=l,l.round=In(r),l.ceil=In(i),l.offset=In(u),l.range=a,n}function In(n){return function(t,e){try{va=Hn;var r=new Hn;return r._=t,n(r,e)._}finally{va=Date}}}function Yn(n){function t(n){function t(t){for(var e,i,u,o=[],a=-1,l=0;++aa;){if(r>=c)return-1;if(i=t.charCodeAt(a++),37===i){if(o=t.charAt(a++),u=C[o in ya?t.charAt(a++):o],!u||(r=u(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function f(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var s=n.dateTime,h=n.date,p=n.time,g=n.periods,v=n.days,d=n.shortDays,y=n.months,m=n.shortMonths;t.utc=function(n){function e(n){try{va=Hn;var t=new va;return t._=n,r(t)}finally{va=Date}}var r=t(n);return e.parse=function(n){try{va=Hn;var t=r.parse(n);return t&&t._}finally{va=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var M=ao.map(),x=Vn(v),b=Xn(v),_=Vn(d),w=Xn(d),S=Vn(y),k=Xn(y),N=Vn(m),E=Xn(m);g.forEach(function(n,t){M.set(n.toLowerCase(),t)});var A={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return m[n.getMonth()]},B:function(n){return y[n.getMonth()]},c:t(s),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ga.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return g[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ga.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ga.mondayOfYear(n),t,2)},x:t(h),X:t(p),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:at,"%":function(){return"%"}},C={a:r,A:i,b:u,B:o,c:a,d:tt,e:tt,H:rt,I:rt,j:et,L:ot,m:nt,M:it,p:f,S:ut,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=0>n?"-":"",i=(r?-n:n)+"",u=i.length;return r+(e>u?new Array(e-u+1).join(t)+i:i)}function Vn(n){return new RegExp("^(?:"+n.map(ao.requote).join("|")+")","i")}function Xn(n){for(var t=new c,e=-1,r=n.length;++e68?1900:2e3)}function nt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function it(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function ut(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ot(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function at(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=xo(t)/60|0,i=xo(t)%60;return e+Zn(r,"0",2)+Zn(i,"0",2)}function lt(n,t,e){Ma.lastIndex=0;var r=Ma.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e=0?1:-1,a=o*e,l=Math.cos(t),c=Math.sin(t),f=u*c,s=i*l+f*Math.cos(a),h=f*o*Math.sin(a);ka.add(Math.atan2(h,s)),r=n,i=l,u=c}var t,e,r,i,u;Na.point=function(o,a){Na.point=n,r=(t=o)*Yo,i=Math.cos(a=(e=a)*Yo/2+Fo/4),u=Math.sin(a)},Na.lineEnd=function(){n(t,e)}}function dt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function yt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function mt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function bt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return xo(n[0]-t[0])a;++a)i.point((e=n[a])[0],e[1]);return void i.lineEnd()}var l=new Tt(e,n,null,!0),c=new Tt(e,null,l,!1);l.o=c,u.push(l),o.push(c),l=new Tt(r,n,null,!1),c=new Tt(r,null,l,!0),l.o=c,u.push(l),o.push(c)}}),o.sort(t),qt(u),qt(o),u.length){for(var a=0,l=e,c=o.length;c>a;++a)o[a].e=l=!l;for(var f,s,h=u[0];;){for(var p=h,g=!0;p.v;)if((p=p.n)===h)return;f=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(var a=0,c=f.length;c>a;++a)i.point((s=f[a])[0],s[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(g){f=p.p.z;for(var a=f.length-1;a>=0;--a)i.point((s=f[a])[0],s[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,f=p.z,g=!g}while(!p.v);i.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,i=n[0];++r0){for(b||(u.polygonStart(),b=!0),u.lineStart();++o1&&2&t&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Dt))}var p,g,v,d=t(u),y=i.invert(r[0],r[1]),m={point:o,lineStart:l,lineEnd:c,polygonStart:function(){m.point=f,m.lineStart=s,m.lineEnd=h,p=[],g=[]},polygonEnd:function(){m.point=o,m.lineStart=l,m.lineEnd=c,p=ao.merge(p);var n=Ot(y,g);p.length?(b||(u.polygonStart(),b=!0),Lt(p,Ut,n,e,u)):n&&(b||(u.polygonStart(),b=!0),u.lineStart(),e(null,null,1,u),u.lineEnd()),b&&(u.polygonEnd(),b=!1),p=g=null},sphere:function(){u.polygonStart(),u.lineStart(),e(null,null,1,u),u.lineEnd(),u.polygonEnd()}},M=Pt(),x=t(M),b=!1;return m}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ut(n,t){return((n=n.x)[0]<0?n[1]-Io-Uo:Io-n[1])-((t=t.x)[0]<0?t[1]-Io-Uo:Io-t[1])}function jt(n){var t,e=NaN,r=NaN,i=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(u,o){var a=u>0?Fo:-Fo,l=xo(u-e);xo(l-Fo)0?Io:-Io),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(u,r),t=0):i!==a&&l>=Fo&&(xo(e-i)Uo?Math.atan((Math.sin(t)*(u=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(t))*Math.sin(n))/(i*u*o)):(t+r)/2}function Ht(n,t,e,r){var i;if(null==n)i=e*Io,r.point(-Fo,i),r.point(0,i),r.point(Fo,i),r.point(Fo,0),r.point(Fo,-i),r.point(0,-i),r.point(-Fo,-i),r.point(-Fo,0),r.point(-Fo,i);else if(xo(n[0]-t[0])>Uo){var u=n[0]a;++a){var c=t[a],f=c.length;if(f)for(var s=c[0],h=s[0],p=s[1]/2+Fo/4,g=Math.sin(p),v=Math.cos(p),d=1;;){d===f&&(d=0),n=c[d];var y=n[0],m=n[1]/2+Fo/4,M=Math.sin(m),x=Math.cos(m),b=y-h,_=b>=0?1:-1,w=_*b,S=w>Fo,k=g*M;if(ka.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),u+=S?b+_*Ho:b,S^h>=e^y>=e){var N=mt(dt(s),dt(n));bt(N);var E=mt(i,N);bt(E);var A=(S^b>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(o+=S^b>=0?1:-1)}if(!d++)break;h=y,g=M,v=x,s=n}}return(-Uo>u||Uo>u&&-Uo>ka)^1&o}function It(n){function t(n,t){return Math.cos(n)*Math.cos(t)>u}function e(n){var e,u,l,c,f;return{lineStart:function(){c=l=!1,f=1},point:function(s,h){var p,g=[s,h],v=t(s,h),d=o?v?0:i(s,h):v?i(s+(0>s?Fo:-Fo),h):0;if(!e&&(c=l=v)&&n.lineStart(),v!==l&&(p=r(e,g),(wt(e,p)||wt(g,p))&&(g[0]+=Uo,g[1]+=Uo,v=t(g[0],g[1]))),v!==l)f=0,v?(n.lineStart(),p=r(g,e),n.point(p[0],p[1])):(p=r(e,g),n.point(p[0],p[1]),n.lineEnd()),e=p;else if(a&&e&&o^v){var y;d&u||!(y=r(g,e,!0))||(f=0,o?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!v||e&&wt(e,g)||n.point(g[0],g[1]),e=g,l=v,u=d},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return f|(c&&l)<<1}}}function r(n,t,e){var r=dt(n),i=dt(t),o=[1,0,0],a=mt(r,i),l=yt(a,a),c=a[0],f=l-c*c;if(!f)return!e&&n;var s=u*l/f,h=-u*c/f,p=mt(o,a),g=xt(o,s),v=xt(a,h);Mt(g,v);var d=p,y=yt(g,d),m=yt(d,d),M=y*y-m*(yt(g,g)-1);if(!(0>M)){var x=Math.sqrt(M),b=xt(d,(-y-x)/m);if(Mt(b,g),b=_t(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],N=t[1];w>S&&(_=w,w=S,S=_);var E=S-w,A=xo(E-Fo)E;if(!A&&k>N&&(_=k,k=N,N=_),C?A?k+N>0^b[1]<(xo(b[0]-w)Fo^(w<=b[0]&&b[0]<=S)){var z=xt(d,(-y+x)/m);return Mt(z,g),[b,_t(z)]}}}function i(t,e){var r=o?n:Fo-n,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var u=Math.cos(n),o=u>0,a=xo(u)>Uo,l=ve(n,6*Yo);return Rt(t,e,l,o?[0,-n]:[-Fo,n-Fo])}function Yt(n,t,e,r){return function(i){var u,o=i.a,a=i.b,l=o.x,c=o.y,f=a.x,s=a.y,h=0,p=1,g=f-l,v=s-c;if(u=n-l,g||!(u>0)){if(u/=g,0>g){if(h>u)return;p>u&&(p=u)}else if(g>0){if(u>p)return;u>h&&(h=u)}if(u=e-l,g||!(0>u)){if(u/=g,0>g){if(u>p)return;u>h&&(h=u)}else if(g>0){if(h>u)return;p>u&&(p=u)}if(u=t-c,v||!(u>0)){if(u/=v,0>v){if(h>u)return;p>u&&(p=u)}else if(v>0){if(u>p)return;u>h&&(h=u)}if(u=r-c,v||!(0>u)){if(u/=v,0>v){if(u>p)return;u>h&&(h=u)}else if(v>0){if(h>u)return;p>u&&(p=u)}return h>0&&(i.a={x:l+h*g,y:c+h*v}),1>p&&(i.b={x:l+p*g,y:c+p*v}),i}}}}}}function Zt(n,t,e,r){function i(r,i){return xo(r[0]-n)0?0:3:xo(r[0]-e)0?2:1:xo(r[1]-t)0?1:0:i>0?3:2}function u(n,t){return o(n.x,t.x)}function o(n,t){var e=i(n,1),r=i(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function l(n){for(var t=0,e=d.length,r=n[1],i=0;e>i;++i)for(var u,o=1,a=d[i],l=a.length,c=a[0];l>o;++o)u=a[o],c[1]<=r?u[1]>r&&Q(c,u,n)>0&&++t:u[1]<=r&&Q(c,u,n)<0&&--t,c=u;return 0!==t}function c(u,a,l,c){var f=0,s=0;if(null==u||(f=i(u,l))!==(s=i(a,l))||o(u,a)<0^l>0){do c.point(0===f||3===f?n:e,f>1?r:t);while((f=(f+l+4)%4)!==s)}else c.point(a[0],a[1])}function f(i,u){return i>=n&&e>=i&&u>=t&&r>=u}function s(n,t){f(n,t)&&a.point(n,t)}function h(){C.point=g,d&&d.push(y=[]),S=!0,w=!1,b=_=NaN}function p(){v&&(g(m,M),x&&w&&E.rejoin(),v.push(E.buffer())),C.point=s,w&&a.lineEnd()}function g(n,t){n=Math.max(-Ha,Math.min(Ha,n)),t=Math.max(-Ha,Math.min(Ha,t));var e=f(n,t);if(d&&y.push([n,t]),S)m=n,M=t,x=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};A(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,y,m,M,x,b,_,w,S,k,N=a,E=Pt(),A=Yt(n,t,e,r),C={point:s,lineStart:h,lineEnd:p,polygonStart:function(){a=E,v=[],d=[],k=!0},polygonEnd:function(){a=N,v=ao.merge(v);var t=l([n,r]),e=k&&t,i=v.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),c(null,null,1,a),a.lineEnd()),i&&Lt(v,u,t,c,a),a.polygonEnd()),v=d=y=null}};return C}}function Vt(n){var t=0,e=Fo/3,r=ae(n),i=r(t,e);return i.parallels=function(n){return arguments.length?r(t=n[0]*Fo/180,e=n[1]*Fo/180):[t/Fo*180,e/Fo*180]},i}function Xt(n,t){function e(n,t){var e=Math.sqrt(u-2*i*Math.sin(t))/i;return[e*Math.sin(n*=i),o-e*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,u=1+r*(2*i-r),o=Math.sqrt(u)/i;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/i,tn((u-(n*n+e*e)*i*i)/(2*i))]},e}function $t(){function n(n,t){Ia+=i*n-r*t,r=n,i=t}var t,e,r,i;$a.point=function(u,o){$a.point=n,t=r=u,e=i=o},$a.lineEnd=function(){n(t,e)}}function Bt(n,t){Ya>n&&(Ya=n),n>Va&&(Va=n),Za>t&&(Za=t),t>Xa&&(Xa=t)}function Wt(){function n(n,t){o.push("M",n,",",t,u)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function i(){o.push("Z")}var u=Jt(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return u=Jt(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){Ca+=n,za+=t,++La}function Kt(){function n(n,r){var i=n-t,u=r-e,o=Math.sqrt(i*i+u*u);qa+=o*(t+n)/2,Ta+=o*(e+r)/2,Ra+=o,Gt(t=n,e=r)}var t,e;Wa.point=function(r,i){Wa.point=n,Gt(t=r,e=i)}}function Qt(){Wa.point=Gt}function ne(){function n(n,t){var e=n-r,u=t-i,o=Math.sqrt(e*e+u*u);qa+=o*(r+n)/2,Ta+=o*(i+t)/2,Ra+=o,o=i*n-r*t,Da+=o*(r+n),Pa+=o*(i+t),Ua+=3*o,Gt(r=n,i=t)}var t,e,r,i;Wa.point=function(u,o){Wa.point=n,Gt(t=r=u,e=i=o)},Wa.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+o,e),n.arc(t,e,o,0,Ho)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function i(){a.point=t}function u(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=i,a.point=t},pointRadius:function(n){return o=n,a},result:b};return a}function ee(n){function t(n){return(a?r:e)(n)}function e(t){return ue(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=NaN,S.point=u,t.lineStart()}function u(e,r){var u=dt([e,r]),o=n(e,r);i(M,x,m,b,_,w,M=o[0],x=o[1],m=e,b=u[0],_=u[1],w=u[2],a,t),t.point(M,x)}function o(){S.point=e,t.lineEnd()}function l(){ +r(),S.point=c,S.lineEnd=f}function c(n,t){u(s=n,h=t),p=M,g=x,v=b,d=_,y=w,S.point=u}function f(){i(M,x,m,b,_,w,p,g,s,v,d,y,a,t),S.lineEnd=o,o()}var s,h,p,g,v,d,y,m,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function i(t,e,r,a,l,c,f,s,h,p,g,v,d,y){var m=f-t,M=s-e,x=m*m+M*M;if(x>4*u&&d--){var b=a+p,_=l+g,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=xo(xo(w)-1)u||xo((m*z+M*L)/x-.5)>.3||o>a*p+l*g+c*v)&&(i(t,e,r,a,l,c,A,C,N,b/=S,_/=S,w,d,y),y.point(A,C),i(A,C,N,b,_,w,f,s,h,p,g,v,d,y))}}var u=.5,o=Math.cos(30*Yo),a=16;return t.precision=function(n){return arguments.length?(a=(u=n*n)>0&&16,t):Math.sqrt(u)},t}function re(n){var t=ee(function(t,e){return n([t*Zo,e*Zo])});return function(n){return le(t(n))}}function ie(n){this.stream=n}function ue(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function oe(n){return ae(function(){return n})()}function ae(n){function t(n){return n=a(n[0]*Yo,n[1]*Yo),[n[0]*h+l,c-n[1]*h]}function e(n){return n=a.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Zo,n[1]*Zo]}function r(){a=Ct(o=se(y,M,x),u);var n=u(v,d);return l=p-n[0]*h,c=g+n[1]*h,i()}function i(){return f&&(f.valid=!1,f=null),t}var u,o,a,l,c,f,s=ee(function(n,t){return n=u(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,p=480,g=250,v=0,d=0,y=0,M=0,x=0,b=Fa,_=m,w=null,S=null;return t.stream=function(n){return f&&(f.valid=!1),f=le(b(o,s(_(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Fa):It((w=+n)*Yo),i()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):m,i()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],g=+n[1],r()):[p,g]},t.center=function(n){return arguments.length?(v=n[0]%360*Yo,d=n[1]%360*Yo,r()):[v*Zo,d*Zo]},t.rotate=function(n){return arguments.length?(y=n[0]%360*Yo,M=n[1]%360*Yo,x=n.length>2?n[2]%360*Yo:0,r()):[y*Zo,M*Zo,x*Zo]},ao.rebind(t,s,"precision"),function(){return u=n.apply(this,arguments),t.invert=u.invert&&e,r()}}function le(n){return ue(n,function(t,e){n.point(t*Yo,e*Yo)})}function ce(n,t){return[n,t]}function fe(n,t){return[n>Fo?n-Ho:-Fo>n?n+Ho:n,t]}function se(n,t,e){return n?t||e?Ct(pe(n),ge(t,e)):pe(n):t||e?ge(t,e):fe}function he(n){return function(t,e){return t+=n,[t>Fo?t-Ho:-Fo>t?t+Ho:t,e]}}function pe(n){var t=he(n);return t.invert=he(-n),t}function ge(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*r+a*i;return[Math.atan2(l*u-f*o,a*r-c*i),tn(f*u+l*o)]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*u-l*o;return[Math.atan2(l*u+c*o,a*r+f*i),tn(f*r-a*i)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,o,a){var l=o*t;null!=i?(i=de(e,i),u=de(e,u),(o>0?u>i:i>u)&&(i+=o*Ho)):(i=n+o*Ho,u=n-.5*l);for(var c,f=i;o>0?f>u:u>f;f-=l)a.point((c=_t([e,-r*Math.cos(f),-r*Math.sin(f)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Uo)%(2*Math.PI)}function ye(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function me(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var i=Math.cos(t),u=Math.sin(t),o=Math.cos(r),a=Math.sin(r),l=i*Math.cos(n),c=i*Math.sin(n),f=o*Math.cos(e),s=o*Math.sin(e),h=2*Math.asin(Math.sqrt(on(r-t)+i*o*on(e-n))),p=1/Math.sin(h),g=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*l+t*f,i=e*c+t*s,o=e*u+t*a;return[Math.atan2(i,r)*Zo,Math.atan2(o,Math.sqrt(r*r+i*i))*Zo]}:function(){return[n*Zo,t*Zo]};return g.distance=h,g}function _e(){function n(n,i){var u=Math.sin(i*=Yo),o=Math.cos(i),a=xo((n*=Yo)-t),l=Math.cos(a);Ja+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*u-e*o*l)*a),e*u+r*o*l),t=n,e=u,r=o}var t,e,r;Ga.point=function(i,u){t=i*Yo,e=Math.sin(u*=Yo),r=Math.cos(u),Ga.point=n},Ga.lineEnd=function(){Ga.point=Ga.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),u=n(r*i);return[u*i*Math.sin(t),u*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),u=Math.sin(i),o=Math.cos(i);return[Math.atan2(n*u,r*o),Math.asin(r&&e*u/r)]},e}function Se(n,t){function e(n,t){o>0?-Io+Uo>t&&(t=-Io+Uo):t>Io-Uo&&(t=Io-Uo);var e=o/Math.pow(i(t),u);return[e*Math.sin(u*n),o-e*Math.cos(u*n)]}var r=Math.cos(n),i=function(n){return Math.tan(Fo/4+n/2)},u=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),o=r*Math.pow(i(n),u)/u;return u?(e.invert=function(n,t){var e=o-t,r=K(u)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/u,2*Math.atan(Math.pow(o/r,1/u))-Io]},e):Ne}function ke(n,t){function e(n,t){var e=u-t;return[e*Math.sin(i*n),u-e*Math.cos(i*n)]}var r=Math.cos(n),i=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),u=r/i+n;return xo(i)i;i++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var i=n[0],u=e[0],o=t[0]-i,a=r[0]-u,l=n[1],c=e[1],f=t[1]-l,s=r[1]-c,h=(a*(l-c)-s*(i-u))/(s*o-a*f);return[i+h*o,l+h*f]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function Ue(n){var t=cl.pop()||new Pe;return t.site=n,t}function je(n){Be(n),ol.remove(n),cl.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,i={x:e,y:r},u=n.P,o=n.N,a=[n];je(n);for(var l=u;l.circle&&xo(e-l.circle.x)f;++f)c=a[f],l=a[f-1],nr(c.edge,l.site,c.site,i);l=a[0],c=a[s-1],c.edge=Ke(l.site,c.site,null,i),$e(l),$e(c)}function He(n){for(var t,e,r,i,u=n.x,o=n.y,a=ol._;a;)if(r=Oe(a,o)-u,r>Uo)a=a.L;else{if(i=u-Ie(a,o),!(i>Uo)){r>-Uo?(t=a.P,e=a):i>-Uo?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var l=Ue(n);if(ol.insert(t,l),t||e){if(t===e)return Be(t),e=Ue(t.site),ol.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(!e)return void(l.edge=Ke(t.site,l.site));Be(t),Be(e);var c=t.site,f=c.x,s=c.y,h=n.x-f,p=n.y-s,g=e.site,v=g.x-f,d=g.y-s,y=2*(h*d-p*v),m=h*h+p*p,M=v*v+d*d,x={x:(d*m-p*M)/y+f,y:(h*M-v*m)/y+s};nr(e.edge,c,g,x),l.edge=Ke(c,n,null,x),e.edge=Ke(n,g,null,x),$e(t),$e(e)}}function Oe(n,t){var e=n.site,r=e.x,i=e.y,u=i-t;if(!u)return r;var o=n.P;if(!o)return-(1/0);e=o.site;var a=e.x,l=e.y,c=l-t;if(!c)return a;var f=a-r,s=1/u-1/c,h=f/c;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*c)-l+c/2+i-u/2)))/s+r:(r+a)/2}function Ie(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ye(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,i,u,o,a,l,c,f,s=n[0][0],h=n[1][0],p=n[0][1],g=n[1][1],v=ul,d=v.length;d--;)if(u=v[d],u&&u.prepare())for(a=u.edges,l=a.length,o=0;l>o;)f=a[o].end(),r=f.x,i=f.y,c=a[++o%l].start(),t=c.x,e=c.y,(xo(r-t)>Uo||xo(i-e)>Uo)&&(a.splice(o,0,new tr(Qe(u.site,f,xo(r-s)Uo?{x:s,y:xo(t-s)Uo?{x:xo(e-g)Uo?{x:h,y:xo(t-h)Uo?{x:xo(e-p)=-jo)){var p=l*l+c*c,g=f*f+s*s,v=(s*p-c*g)/h,d=(l*g-f*p)/h,s=d+a,y=fl.pop()||new Xe;y.arc=n,y.site=i,y.x=v+o,y.y=s+Math.sqrt(v*v+d*d),y.cy=s,n.circle=y;for(var m=null,M=ll._;M;)if(y.yd||d>=a)return;if(h>g){if(u){if(u.y>=c)return}else u={x:d,y:l};e={x:d,y:c}}else{if(u){if(u.yr||r>1)if(h>g){if(u){if(u.y>=c)return}else u={x:(l-i)/r,y:l};e={x:(c-i)/r,y:c}}else{if(u){if(u.yp){if(u){if(u.x>=a)return}else u={x:o,y:r*o+i};e={x:a,y:r*a+i}}else{if(u){if(u.xu||s>o||r>h||i>p)){if(g=n.point){var g,v=t-n.x,d=e-n.y,y=v*v+d*d;if(l>y){var m=Math.sqrt(l=y);r=t-m,i=e-m,u=t+m,o=e+m,a=g}}for(var M=n.nodes,x=.5*(f+h),b=.5*(s+p),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:c(n,f,s,x,b);break;case 1:c(n,x,s,h,b);break;case 2:c(n,f,b,x,p);break;case 3:c(n,x,b,h,p)}}}(n,r,i,u,o),a}function vr(n,t){n=ao.rgb(n),t=ao.rgb(t);var e=n.r,r=n.g,i=n.b,u=t.r-e,o=t.g-r,a=t.b-i;return function(n){return"#"+bn(Math.round(e+u*n))+bn(Math.round(r+o*n))+bn(Math.round(i+a*n))}}function dr(n,t){var e,r={},i={};for(e in n)e in t?r[e]=Mr(n[e],t[e]):i[e]=n[e];for(e in t)e in n||(i[e]=t[e]);return function(n){for(e in r)i[e]=r[e](n);return i}}function yr(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function mr(n,t){var e,r,i,u=hl.lastIndex=pl.lastIndex=0,o=-1,a=[],l=[];for(n+="",t+="";(e=hl.exec(n))&&(r=pl.exec(t));)(i=r.index)>u&&(i=t.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:yr(e,r)})),u=pl.lastIndex;return ur;++r)a[(e=l[r]).i]=e.x(n);return a.join("")})}function Mr(n,t){for(var e,r=ao.interpolators.length;--r>=0&&!(e=ao.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],i=[],u=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(Mr(n[e],t[e]));for(;u>e;++e)i[e]=n[e];for(;o>e;++e)i[e]=t[e];return function(n){for(e=0;a>e;++e)i[e]=r[e](n);return i}}function br(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function wr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Sr(n){return n*n}function kr(n){return n*n*n}function Nr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function Er(n){return function(t){return Math.pow(t,n)}}function Ar(n){return 1-Math.cos(n*Io)}function Cr(n){return Math.pow(2,10*(n-1))}function zr(n){return 1-Math.sqrt(1-n*n)}function Lr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Ho*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Ho/t)}}function qr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function Tr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Rr(n,t){n=ao.hcl(n),t=ao.hcl(t);var e=n.h,r=n.c,i=n.l,u=t.h-e,o=t.c-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:-180>u&&(u+=360),function(n){return sn(e+u*n,r+o*n,i+a*n)+""}}function Dr(n,t){n=ao.hsl(n),t=ao.hsl(t);var e=n.h,r=n.s,i=n.l,u=t.h-e,o=t.s-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:-180>u&&(u+=360),function(n){return cn(e+u*n,r+o*n,i+a*n)+""}}function Pr(n,t){n=ao.lab(n),t=ao.lab(t);var e=n.l,r=n.a,i=n.b,u=t.l-e,o=t.a-r,a=t.b-i;return function(n){return pn(e+u*n,r+o*n,i+a*n)+""}}function Ur(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function jr(n){var t=[n.a,n.b],e=[n.c,n.d],r=Hr(t),i=Fr(t,e),u=Hr(Or(e,t,-i))||0;t[0]*e[1]180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Ir(e)+"rotate(",null,")")-2,x:yr(n,t)})):t&&e.push(Ir(e)+"rotate("+t+")")}function Vr(n,t,e,r){n!==t?r.push({i:e.push(Ir(e)+"skewX(",null,")")-2,x:yr(n,t)}):t&&e.push(Ir(e)+"skewX("+t+")")}function Xr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var i=e.push(Ir(e)+"scale(",null,",",null,")");r.push({i:i-4,x:yr(n[0],t[0])},{i:i-2,x:yr(n[1],t[1])})}else 1===t[0]&&1===t[1]||e.push(Ir(e)+"scale("+t+")")}function $r(n,t){var e=[],r=[];return n=ao.transform(n),t=ao.transform(t),Yr(n.translate,t.translate,e,r),Zr(n.rotate,t.rotate,e,r),Vr(n.skew,t.skew,e,r),Xr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,i=-1,u=r.length;++i=0;)e.push(i[r])}function oi(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(u=n.children)&&(i=u.length))for(var i,u,o=-1;++oe;++e)(t=n[e][1])>i&&(r=e,i=t);return r}function yi(n){return n.reduce(mi,0)}function mi(n,t){return n+t[1]}function Mi(n,t){return xi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xi(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,u=[];++e<=t;)u[e]=i*e+r;return u}function bi(n){return[ao.min(n),ao.max(n)]}function _i(n,t){return n.value-t.value}function wi(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Si(n,t){n._pack_next=t,t._pack_prev=n}function ki(n,t){var e=t.x-n.x,r=t.y-n.y,i=n.r+t.r;return.999*i*i>e*e+r*r}function Ni(n){function t(n){f=Math.min(n.x-n.r,f),s=Math.max(n.x+n.r,s),h=Math.min(n.y-n.r,h),p=Math.max(n.y+n.r,p)}if((e=n.children)&&(c=e.length)){var e,r,i,u,o,a,l,c,f=1/0,s=-(1/0),h=1/0,p=-(1/0);if(e.forEach(Ei),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(i=e[1],i.x=i.r,i.y=0,t(i),c>2))for(u=e[2],zi(r,i,u),t(u),wi(r,u),r._pack_prev=u,wi(u,i),i=r._pack_next,o=3;c>o;o++){zi(r,i,u=e[o]);var g=0,v=1,d=1;for(a=i._pack_next;a!==i;a=a._pack_next,v++)if(ki(a,u)){g=1;break}if(1==g)for(l=r._pack_prev;l!==a._pack_prev&&!ki(l,u);l=l._pack_prev,d++);g?(d>v||v==d&&i.ro;o++)u=e[o],u.x-=y,u.y-=m,M=Math.max(M,u.r+Math.sqrt(u.x*u.x+u.y*u.y));n.r=M,e.forEach(Ai)}}function Ei(n){n._pack_next=n._pack_prev=n}function Ai(n){delete n._pack_next,delete n._pack_prev}function Ci(n,t,e,r){var i=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,i)for(var u=-1,o=i.length;++u=0;)t=i[u],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Pi(n,t,e){return n.a.parent===t.parent?n.a:e}function Ui(n){return 1+ao.max(n,function(n){return n.y})}function ji(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Fi(n){var t=n.children;return t&&t.length?Fi(t[0]):n}function Hi(n){var t,e=n.children;return e&&(t=e.length)?Hi(e[t-1]):n}function Oi(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Ii(n,t){var e=n.x+t[3],r=n.y+t[0],i=n.dx-t[1]-t[3],u=n.dy-t[0]-t[2];return 0>i&&(e+=i/2,i=0),0>u&&(r+=u/2,u=0),{x:e,y:r,dx:i,dy:u}}function Yi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Zi(n){return n.rangeExtent?n.rangeExtent():Yi(n.range())}function Vi(n,t,e,r){var i=e(n[0],n[1]),u=r(t[0],t[1]);return function(n){return u(i(n))}}function Xi(n,t){var e,r=0,i=n.length-1,u=n[r],o=n[i];return u>o&&(e=r,r=i,i=e,e=u,u=o,o=e),n[r]=t.floor(u),n[i]=t.ceil(o),n}function $i(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:Sl}function Bi(n,t,e,r){var i=[],u=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]2?Bi:Vi,l=r?Wr:Br;return o=i(n,t,l,e),a=i(t,n,l,Mr),u}function u(n){return o(n)}var o,a;return u.invert=function(n){return a(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),i()):n},u.range=function(n){return arguments.length?(t=n,i()):t},u.rangeRound=function(n){return u.range(n).interpolate(Ur)},u.clamp=function(n){return arguments.length?(r=n,i()):r},u.interpolate=function(n){return arguments.length?(e=n,i()):e},u.ticks=function(t){return Qi(n,t)},u.tickFormat=function(t,e){return nu(n,t,e)},u.nice=function(t){return Gi(n,t),i()},u.copy=function(){return Wi(n,t,e,r)},i()}function Ji(n,t){return ao.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Gi(n,t){return Xi(n,$i(Ki(n,t)[2])),Xi(n,$i(Ki(n,t)[2])),n}function Ki(n,t){null==t&&(t=10);var e=Yi(n),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),u=t/r*i;return.15>=u?i*=10:.35>=u?i*=5:.75>=u&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Qi(n,t){return ao.range.apply(ao,Ki(n,t))}function nu(n,t,e){var r=Ki(n,t);if(e){var i=ha.exec(e);if(i.shift(),"s"===i[8]){var u=ao.formatPrefix(Math.max(xo(r[0]),xo(r[1])));return i[7]||(i[7]="."+tu(u.scale(r[2]))),i[8]="f",e=ao.format(i.join("")),function(n){return e(u.scale(n))+u.symbol}}i[7]||(i[7]="."+eu(i[8],r)),e=i.join("")}else e=",."+tu(r[2])+"f";return ao.format(e)}function tu(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function eu(n,t){var e=tu(t[2]);return n in kl?Math.abs(e-tu(Math.max(xo(t[0]),xo(t[1]))))+ +("e"!==n):e-2*("%"===n)}function ru(n,t,e,r){function i(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function u(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(i(t))}return o.invert=function(t){return u(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(i)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(i)),o):t},o.nice=function(){var t=Xi(r.map(i),e?Math:El);return n.domain(t),r=t.map(u),o},o.ticks=function(){var n=Yi(r),o=[],a=n[0],l=n[1],c=Math.floor(i(a)),f=Math.ceil(i(l)),s=t%1?2:t;if(isFinite(f-c)){if(e){for(;f>c;c++)for(var h=1;s>h;h++)o.push(u(c)*h);o.push(u(c))}else for(o.push(u(c));c++0;h--)o.push(u(c)*h);for(c=0;o[c]l;f--);o=o.slice(c,f)}return o},o.tickFormat=function(n,e){if(!arguments.length)return Nl;arguments.length<2?e=Nl:"function"!=typeof e&&(e=ao.format(e));var r=Math.max(1,t*n/o.ticks().length);return function(n){var o=n/u(Math.round(i(n)));return t-.5>o*t&&(o*=t),r>=o?e(n):""}},o.copy=function(){return ru(n.copy(),t,e,r)},Ji(o,n)}function iu(n,t,e){function r(t){return n(i(t))}var i=uu(t),u=uu(1/t);return r.invert=function(t){return u(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(i)),r):e},r.ticks=function(n){return Qi(e,n)},r.tickFormat=function(n,t){return nu(e,n,t)},r.nice=function(n){return r.domain(Gi(e,n))},r.exponent=function(o){return arguments.length?(i=uu(t=o),u=uu(1/t),n.domain(e.map(i)),r):t},r.copy=function(){return iu(n.copy(),t,e)},Ji(r,n)}function uu(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ou(n,t){function e(e){return u[((i.get(e)||("range"===t.t?i.set(e,n.push(e)):NaN))-1)%u.length]}function r(t,e){return ao.range(n.length).map(function(n){return t+e*n})}var i,u,o;return e.domain=function(r){if(!arguments.length)return n;n=[],i=new c;for(var u,o=-1,a=r.length;++oe?[NaN,NaN]:[e>0?a[e-1]:n[0],et?NaN:t/u+n,[t,t+1/u]},r.copy=function(){return lu(n,t,e)},i()}function cu(n,t){function e(e){return e>=e?t[ao.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return cu(n,t)},e}function fu(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Qi(n,t)},t.tickFormat=function(t,e){return nu(n,t,e)},t.copy=function(){return fu(n)},t}function su(){return 0}function hu(n){return n.innerRadius}function pu(n){return n.outerRadius}function gu(n){return n.startAngle}function vu(n){return n.endAngle}function du(n){return n&&n.padAngle}function yu(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function mu(n,t,e,r,i){var u=n[0]-t[0],o=n[1]-t[1],a=(i?r:-r)/Math.sqrt(u*u+o*o),l=a*o,c=-a*u,f=n[0]+l,s=n[1]+c,h=t[0]+l,p=t[1]+c,g=(f+h)/2,v=(s+p)/2,d=h-f,y=p-s,m=d*d+y*y,M=e-r,x=f*p-h*s,b=(0>y?-1:1)*Math.sqrt(Math.max(0,M*M*m-x*x)),_=(x*y-d*b)/m,w=(-x*d-y*b)/m,S=(x*y+d*b)/m,k=(-x*d+y*b)/m,N=_-g,E=w-v,A=S-g,C=k-v;return N*N+E*E>A*A+C*C&&(_=S,w=k),[[_-l,w-c],[_*e/M,w*e/M]]}function Mu(n){function t(t){function o(){c.push("M",u(n(f),a))}for(var l,c=[],f=[],s=-1,h=t.length,p=En(e),g=En(r);++s1?n.join("L"):n+"Z"}function bu(n){return n.join("L")+"Z"}function _u(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t1&&i.push("H",r[0]),i.join("")}function wu(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t1){a=t[1],u=n[l],l++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(u[0]-a[0])+","+(u[1]-a[1])+","+u[0]+","+u[1];for(var c=2;c9&&(i=3*t/Math.sqrt(i),o[a]=i*e,o[a+1]=i*r));for(a=-1;++a<=l;)i=(n[Math.min(l,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),u.push([i||0,o[a]*i||0]);return u}function Fu(n){return n.length<3?xu(n):n[0]+Au(n,ju(n))}function Hu(n){for(var t,e,r,i=-1,u=n.length;++i=t?o(n-t):void(f.c=o)}function o(e){var i=g.active,u=g[i];u&&(u.timer.c=null,u.timer.t=NaN,--g.count,delete g[i],u.event&&u.event.interrupt.call(n,n.__data__,u.index));for(var o in g)if(r>+o){var c=g[o];c.timer.c=null,c.timer.t=NaN,--g.count,delete g[o]}f.c=a,qn(function(){return f.c&&a(e||1)&&(f.c=null,f.t=NaN),1},0,l),g.active=r,v.event&&v.event.start.call(n,n.__data__,t),p=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&p.push(r)}),h=v.ease,s=v.duration}function a(i){for(var u=i/s,o=h(u),a=p.length;a>0;)p[--a].call(n,o);return u>=1?(v.event&&v.event.end.call(n,n.__data__,t),--g.count?delete g[r]:delete n[e],1):void 0}var l,f,s,h,p,g=n[e]||(n[e]={active:0,count:0}),v=g[r];v||(l=i.time,f=qn(u,0,l),v=g[r]={tween:new c,time:l,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++g.count)}function no(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function to(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function eo(n){return n.toISOString()}function ro(n,t,e){function r(t){return n(t)}function i(n,e){var r=n[1]-n[0],i=r/e,u=ao.bisect(Kl,i);return u==Kl.length?[t.year,Ki(n.map(function(n){return n/31536e6}),e)[2]]:u?t[i/Kl[u-1]1?{floor:function(t){for(;e(t=n.floor(t));)t=io(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=io(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yi(r.domain()),u=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return u&&(n=u[0],t=u[1]),n.range(e[0],io(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ro(n.copy(),t,e)},Ji(r,n)}function io(n){return new Date(n)}function uo(n){return JSON.parse(n.responseText)}function oo(n){var t=fo.createRange();return t.selectNode(fo.body),t.createContextualFragment(n.responseText)}var ao={version:"3.5.17"},lo=[].slice,co=function(n){return lo.call(n)},fo=this.document;if(fo)try{co(fo.documentElement.childNodes)[0].nodeType}catch(so){co=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),fo)try{fo.createElement("DIV").style.setProperty("opacity",0,"")}catch(ho){var po=this.Element.prototype,go=po.setAttribute,vo=po.setAttributeNS,yo=this.CSSStyleDeclaration.prototype,mo=yo.setProperty;po.setAttribute=function(n,t){go.call(this,n,t+"")},po.setAttributeNS=function(n,t,e){vo.call(this,n,t,e+"")},yo.setProperty=function(n,t,e){mo.call(this,n,t+"",e)}}ao.ascending=e,ao.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},ao.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i=r){e=r;break}for(;++ir&&(e=r)}else{for(;++i=r){e=r;break}for(;++ir&&(e=r)}return e},ao.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i=r){e=r;break}for(;++ie&&(e=r)}else{for(;++i=r){e=r;break}for(;++ie&&(e=r)}return e},ao.extent=function(n,t){var e,r,i,u=-1,o=n.length;if(1===arguments.length){for(;++u=r){e=i=r;break}for(;++ur&&(e=r),r>i&&(i=r))}else{for(;++u=r){e=i=r;break}for(;++ur&&(e=r),r>i&&(i=r))}return[e,i]},ao.sum=function(n,t){var e,r=0,u=n.length,o=-1;if(1===arguments.length)for(;++o1?l/(f-1):void 0},ao.deviation=function(){var n=ao.variance.apply(this,arguments);return n?Math.sqrt(n):n};var Mo=u(e);ao.bisectLeft=Mo.left,ao.bisect=ao.bisectRight=Mo.right,ao.bisector=function(n){return u(1===n.length?function(t,r){return e(n(t),r)}:n)},ao.shuffle=function(n,t,e){(u=arguments.length)<3&&(e=n.length,2>u&&(t=0));for(var r,i,u=e-t;u;)i=Math.random()*u--|0,r=n[u+t],n[u+t]=n[i+t],n[i+t]=r;return n},ao.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},ao.pairs=function(n){for(var t,e=0,r=n.length-1,i=n[0],u=new Array(0>r?0:r);r>e;)u[e]=[t=i,i=n[++e]];return u},ao.transpose=function(n){if(!(i=n.length))return[];for(var t=-1,e=ao.min(n,o),r=new Array(e);++t=0;)for(r=n[i],t=r.length;--t>=0;)e[--o]=r[t];return e};var xo=Math.abs;ao.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,i=[],u=a(xo(e)),o=-1;if(n*=u,t*=u,e*=u,0>e)for(;(r=n+e*++o)>t;)i.push(r/u);else for(;(r=n+e*++o)=u.length)return r?r.call(i,o):e?o.sort(e):o;for(var l,f,s,h,p=-1,g=o.length,v=u[a++],d=new c;++p=u.length)return n;var r=[],i=o[e++];return n.forEach(function(n,i){r.push({key:n,values:t(i,e)})}),i?r.sort(function(n,t){return i(n.key,t.key)}):r}var e,r,i={},u=[],o=[];return i.map=function(t,e){return n(e,t,0)},i.entries=function(e){return t(n(ao.map,e,0),0)},i.key=function(n){return u.push(n),i},i.sortKeys=function(n){return o[u.length-1]=n,i},i.sortValues=function(n){return e=n,i},i.rollup=function(n){return r=n,i},i},ao.set=function(n){var t=new y;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},l(y,{has:h,add:function(n){return this._[f(n+="")]=!0,n},remove:p,values:g,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,s(t))}}),ao.behavior={},ao.rebind=function(n,t){for(var e,r=1,i=arguments.length;++r=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ao.event=null,ao.requote=function(n){return n.replace(So,"\\$&")};var So=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ko={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},No=function(n,t){return t.querySelector(n)},Eo=function(n,t){return t.querySelectorAll(n)},Ao=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(Ao=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(No=function(n,t){return Sizzle(n,t)[0]||null},Eo=Sizzle,Ao=Sizzle.matchesSelector),ao.selection=function(){return ao.select(fo.documentElement)};var Co=ao.selection.prototype=[];Co.select=function(n){var t,e,r,i,u=[];n=A(n);for(var o=-1,a=this.length;++o=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),Lo.hasOwnProperty(e)?{space:Lo[e],local:n}:n}},Co.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=ao.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},Co.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,i=-1;if(t=e.classList){for(;++ii){if("string"!=typeof n){2>i&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>i){var u=this.node();return t(u).getComputedStyle(u,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},Co.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(U(t,n[t]));return this}return this.each(U(n,t))},Co.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Co.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Co.append=function(n){return n=j(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Co.insert=function(n,t){return n=j(n),t=A(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Co.remove=function(){return this.each(F)},Co.data=function(n,t){function e(n,e){var r,i,u,o=n.length,s=e.length,h=Math.min(o,s),p=new Array(s),g=new Array(s),v=new Array(o);if(t){var d,y=new c,m=new Array(o);for(r=-1;++rr;++r)g[r]=H(e[r]);for(;o>r;++r)v[r]=n[r]}g.update=p,g.parentNode=p.parentNode=v.parentNode=n.parentNode,a.push(g),l.push(p),f.push(v)}var r,i,u=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(r=this[0]).length);++uu;u++){i.push(t=[]),t.parentNode=(e=this[u]).parentNode;for(var a=0,l=e.length;l>a;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return E(i)},Co.order=function(){for(var n=-1,t=this.length;++n=0;)(e=r[i])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},Co.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++tn;n++)for(var e=this[n],r=0,i=e.length;i>r;r++){var u=e[r];if(u)return u}return null},Co.size=function(){var n=0;return Y(this,function(){++n}),n};var qo=[];ao.selection.enter=Z,ao.selection.enter.prototype=qo,qo.append=Co.append,qo.empty=Co.empty,qo.node=Co.node,qo.call=Co.call,qo.size=Co.size,qo.select=function(n){for(var t,e,r,i,u,o=[],a=-1,l=this.length;++ar){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var To=ao.map({mouseenter:"mouseover",mouseleave:"mouseout"});fo&&To.forEach(function(n){"on"+n in fo&&To.remove(n)});var Ro,Do=0;ao.mouse=function(n){return J(n,k())};var Po=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ao.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,i=0,u=t.length;u>i;++i)if((r=t[i]).identifier===e)return J(n,r)},ao.behavior.drag=function(){function n(){this.on("mousedown.drag",u).on("touchstart.drag",o)}function e(n,t,e,u,o){return function(){function a(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],g|=n|e,M=r,p({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:n,dy:e}))}function l(){t(h,v)&&(y.on(u+d,null).on(o+d,null),m(g),p({type:"dragend"}))}var c,f=this,s=ao.event.target.correspondingElement||ao.event.target,h=f.parentNode,p=r.of(f,arguments),g=0,v=n(),d=".drag"+(null==v?"":"-"+v),y=ao.select(e(s)).on(u+d,a).on(o+d,l),m=W(s),M=t(h,v);i?(c=i.apply(f,arguments),c=[c.x-M[0],c.y-M[1]]):c=[0,0],p({type:"dragstart"})}}var r=N(n,"drag","dragstart","dragend"),i=null,u=e(b,ao.mouse,t,"mousemove","mouseup"),o=e(G,ao.touch,m,"touchmove","touchend");return n.origin=function(t){return arguments.length?(i=t,n):i},ao.rebind(n,r,"on")},ao.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?co(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Uo=1e-6,jo=Uo*Uo,Fo=Math.PI,Ho=2*Fo,Oo=Ho-Uo,Io=Fo/2,Yo=Fo/180,Zo=180/Fo,Vo=Math.SQRT2,Xo=2,$o=4;ao.interpolateZoom=function(n,t){var e,r,i=n[0],u=n[1],o=n[2],a=t[0],l=t[1],c=t[2],f=a-i,s=l-u,h=f*f+s*s;if(jo>h)r=Math.log(c/o)/Vo,e=function(n){return[i+n*f,u+n*s,o*Math.exp(Vo*n*r)]};else{var p=Math.sqrt(h),g=(c*c-o*o+$o*h)/(2*o*Xo*p),v=(c*c-o*o-$o*h)/(2*c*Xo*p),d=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-d)/Vo,e=function(n){var t=n*r,e=rn(d),a=o/(Xo*p)*(e*un(Vo*t+d)-en(d));return[i+a*f,u+a*s,o*e/rn(Vo*t+d)]}}return e.duration=1e3*r,e},ao.behavior.zoom=function(){function n(n){n.on(L,s).on(Wo+".zoom",p).on("dblclick.zoom",g).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function i(n){k.k=Math.max(A[0],Math.min(A[1],n))}function u(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function o(t,e,r,o){t.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,o)),u(d=e,r),t=ao.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function a(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){a(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function f(n){--z||(n({type:"zoomend"}),d=null)}function s(){function n(){a=1,u(ao.mouse(i),h),c(o)}function r(){s.on(q,null).on(T,null),p(a),f(o)}var i=this,o=D.of(i,arguments),a=0,s=ao.select(t(i)).on(q,n).on(T,r),h=e(ao.mouse(i)),p=W(i);Il.call(i),l(o)}function h(){function n(){var n=ao.touches(g);return p=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=ao.event.target;ao.select(t).on(x,r).on(b,a),_.push(t);for(var e=ao.event.changedTouches,i=0,u=e.length;u>i;++i)d[e[i].identifier]=null;var l=n(),c=Date.now();if(1===l.length){if(500>c-M){var f=l[0];o(g,f,d[f.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=c}else if(l.length>1){var f=l[0],s=l[1],h=f[0]-s[0],p=f[1]-s[1];y=h*h+p*p}}function r(){var n,t,e,r,o=ao.touches(g);Il.call(g);for(var a=0,l=o.length;l>a;++a,r=null)if(e=o[a],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var f=(f=e[0]-n[0])*f+(f=e[1]-n[1])*f,s=y&&Math.sqrt(f/y);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(s*p)}M=null,u(n,t),c(v)}function a(){if(ao.event.touches.length){for(var t=ao.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var i in d)return void n()}ao.selectAll(_).on(m,null),w.on(L,s).on(R,h),N(),f(v)}var p,g=this,v=D.of(g,arguments),d={},y=0,m=".zoom-"+ao.event.changedTouches[0].identifier,x="touchmove"+m,b="touchend"+m,_=[],w=ao.select(g),N=W(g);t(),l(v),w.on(L,null).on(R,t)}function p(){var n=D.of(this,arguments);m?clearTimeout(m):(Il.call(this),v=e(d=y||ao.mouse(this)),l(n)),m=setTimeout(function(){m=null,f(n)},50),S(),i(Math.pow(2,.002*Bo())*k.k),u(d,v),c(n)}function g(){var n=ao.mouse(this),t=Math.log(k.k)/Math.LN2;o(this,n,e(n),ao.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,y,m,M,x,b,_,w,k={x:0,y:0,k:1},E=[960,500],A=Jo,C=250,z=0,L="mousedown.zoom",q="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=N(n,"zoomstart","zoom","zoomend");return Wo||(Wo="onwheel"in fo?(Bo=function(){return-ao.event.deltaY*(ao.event.deltaMode?120:1)},"wheel"):"onmousewheel"in fo?(Bo=function(){return ao.event.wheelDelta},"mousewheel"):(Bo=function(){return-ao.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Hl?ao.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},l(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],i=d?d[0]:e/2,u=d?d[1]:r/2,o=ao.interpolateZoom([(i-k.x)/k.k,(u-k.y)/k.k,e/k.k],[(i-t.x)/t.k,(u-t.y)/t.k,e/t.k]);return function(t){var r=o(t),a=e/r[2];this.__chart__=k={x:i-r[0]*a,y:u-r[1]*a,k:a},c(n)}}).each("interrupt.zoom",function(){f(n)}).each("end.zoom",function(){f(n)}):(this.__chart__=k,l(n),c(n),f(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},a(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:null},i(+t),a(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Jo:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],n):y},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},ao.rebind(n,D,"on")};var Bo,Wo,Jo=[0,1/0];ao.color=an,an.prototype.toString=function(){return this.rgb()+""},ao.hsl=ln;var Go=ln.prototype=new an;Go.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,this.l/n)},Go.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,n*this.l)},Go.rgb=function(){return cn(this.h,this.s,this.l)},ao.hcl=fn;var Ko=fn.prototype=new an;Ko.brighter=function(n){return new fn(this.h,this.c,Math.min(100,this.l+Qo*(arguments.length?n:1)))},Ko.darker=function(n){return new fn(this.h,this.c,Math.max(0,this.l-Qo*(arguments.length?n:1)))},Ko.rgb=function(){return sn(this.h,this.c,this.l).rgb()},ao.lab=hn;var Qo=18,na=.95047,ta=1,ea=1.08883,ra=hn.prototype=new an;ra.brighter=function(n){return new hn(Math.min(100,this.l+Qo*(arguments.length?n:1)),this.a,this.b)},ra.darker=function(n){return new hn(Math.max(0,this.l-Qo*(arguments.length?n:1)),this.a,this.b)},ra.rgb=function(){return pn(this.l,this.a,this.b)},ao.rgb=mn;var ia=mn.prototype=new an;ia.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,i=30;return t||e||r?(t&&i>t&&(t=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new mn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new mn(i,i,i)},ia.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new mn(n*this.r,n*this.g,n*this.b)},ia.hsl=function(){return wn(this.r,this.g,this.b)},ia.toString=function(){return"#"+bn(this.r)+bn(this.g)+bn(this.b)};var ua=ao.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ua.forEach(function(n,t){ua.set(n,Mn(t))}),ao.functor=En,ao.xhr=An(m),ao.dsv=function(n,t){function e(n,e,u){arguments.length<3&&(u=e,e=null);var o=Cn(n,t,null==e?r:i(e),u);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:i(n)):e},o}function r(n){return e.parse(n.responseText)}function i(n){return function(t){return e.parse(t.responseText,n)}}function u(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),l=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var i=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(i(n),e)}:i})},e.parseRows=function(n,t){function e(){if(f>=c)return o;if(i)return i=!1,u;var t=f;if(34===n.charCodeAt(t)){for(var e=t;e++f;){var r=n.charCodeAt(f++),a=1;if(10===r)i=!0;else if(13===r)i=!0,10===n.charCodeAt(f)&&(++f,++a);else if(r!==l)continue;return n.slice(t,f-a)}return n.slice(t)}for(var r,i,u={},o={},a=[],c=n.length,f=0,s=0;(r=e())!==o;){for(var h=[];r!==u&&r!==o;)h.push(r),r=e();t&&null==(h=t(h,s++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new y,i=[];return t.forEach(function(n){for(var t in n)r.has(t)||i.push(r.add(t))}),[i.map(o).join(n)].concat(t.map(function(t){return i.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(u).join("\n")},e},ao.csv=ao.dsv(",","text/csv"),ao.tsv=ao.dsv(" ","text/tab-separated-values");var oa,aa,la,ca,fa=this[x(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ao.timer=function(){qn.apply(this,arguments)},ao.timer.flush=function(){Rn(),Dn()},ao.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var sa=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Un);ao.formatPrefix=function(n,t){var e=0;return(n=+n)&&(0>n&&(n*=-1),t&&(n=ao.round(n,Pn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),sa[8+e/3]};var ha=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,pa=ao.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ao.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ga=ao.time={},va=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){da.setUTCDate.apply(this._,arguments)},setDay:function(){da.setUTCDay.apply(this._,arguments)},setFullYear:function(){da.setUTCFullYear.apply(this._,arguments)},setHours:function(){da.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){da.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){da.setUTCMinutes.apply(this._,arguments)},setMonth:function(){da.setUTCMonth.apply(this._,arguments)},setSeconds:function(){da.setUTCSeconds.apply(this._,arguments)},setTime:function(){da.setTime.apply(this._,arguments)}};var da=Date.prototype;ga.year=On(function(n){return n=ga.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ga.years=ga.year.range,ga.years.utc=ga.year.utc.range,ga.day=On(function(n){var t=new va(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ga.days=ga.day.range,ga.days.utc=ga.day.utc.range,ga.dayOfYear=function(n){var t=ga.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ga[n]=On(function(n){return(n=ga.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ga.year(n).getDay();return Math.floor((ga.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ga[n+"s"]=e.range,ga[n+"s"].utc=e.utc.range,ga[n+"OfYear"]=function(n){var e=ga.year(n).getDay();return Math.floor((ga.dayOfYear(n)+(e+t)%7)/7)}}),ga.week=ga.sunday,ga.weeks=ga.sunday.range,ga.weeks.utc=ga.sunday.utc.range,ga.weekOfYear=ga.sundayOfYear;var ya={"-":"",_:" ",0:"0"},ma=/^\s*\d+/,Ma=/^%/;ao.locale=function(n){return{numberFormat:jn(n),timeFormat:Yn(n)}};var xa=ao.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"], +shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ao.format=xa.numberFormat,ao.geo={},ft.prototype={s:0,t:0,add:function(n){st(n,this.t,ba),st(ba.s,this.s,this),this.s?this.t+=ba.t:this.s=ba.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ba=new ft;ao.geo.stream=function(n,t){n&&_a.hasOwnProperty(n.type)?_a[n.type](n,t):ht(n,t)};var _a={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++rn?4*Fo+n:n,Na.lineStart=Na.lineEnd=Na.point=b}};ao.geo.bounds=function(){function n(n,t){M.push(x=[f=n,h=n]),s>t&&(s=t),t>p&&(p=t)}function t(t,e){var r=dt([t*Yo,e*Yo]);if(y){var i=mt(y,r),u=[i[1],-i[0],0],o=mt(u,i);bt(o),o=_t(o);var l=t-g,c=l>0?1:-1,v=o[0]*Zo*c,d=xo(l)>180;if(d^(v>c*g&&c*t>v)){var m=o[1]*Zo;m>p&&(p=m)}else if(v=(v+360)%360-180,d^(v>c*g&&c*t>v)){var m=-o[1]*Zo;s>m&&(s=m)}else s>e&&(s=e),e>p&&(p=e);d?g>t?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t):h>=f?(f>t&&(f=t),t>h&&(h=t)):t>g?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t)}else n(t,e);y=r,g=t}function e(){b.point=t}function r(){x[0]=f,x[1]=h,b.point=n,y=null}function i(n,e){if(y){var r=n-g;m+=xo(r)>180?r+(r>0?360:-360):r}else v=n,d=e;Na.point(n,e),t(n,e)}function u(){Na.lineStart()}function o(){i(v,d),Na.lineEnd(),xo(m)>Uo&&(f=-(h=180)),x[0]=f,x[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nka?(f=-(h=180),s=-(p=90)):m>Uo?p=90:-Uo>m&&(s=-90),x[0]=f,x[1]=h}};return function(n){p=h=-(f=s=1/0),M=[],ao.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,i=M[0],u=[i];t>r;++r)e=M[r],c(e[0],i)||c(e[1],i)?(a(i[0],e[1])>a(i[0],i[1])&&(i[1]=e[1]),a(e[0],i[1])>a(i[0],i[1])&&(i[0]=e[0])):u.push(i=e);for(var o,e,g=-(1/0),t=u.length-1,r=0,i=u[t];t>=r;i=e,++r)e=u[r],(o=a(i[1],e[0]))>g&&(g=o,f=e[0],h=i[1])}return M=x=null,f===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),ao.geo.centroid=function(n){Ea=Aa=Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,ja);var t=Da,e=Pa,r=Ua,i=t*t+e*e+r*r;return jo>i&&(t=qa,e=Ta,r=Ra,Uo>Aa&&(t=Ca,e=za,r=La),i=t*t+e*e+r*r,jo>i)?[NaN,NaN]:[Math.atan2(e,t)*Zo,tn(r/Math.sqrt(i))*Zo]};var Ea,Aa,Ca,za,La,qa,Ta,Ra,Da,Pa,Ua,ja={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){ja.lineStart=At},polygonEnd:function(){ja.lineStart=Nt}},Fa=Rt(zt,jt,Ht,[-Fo,-Fo/2]),Ha=1e9;ao.geo.clipExtent=function(){var n,t,e,r,i,u,o={stream:function(n){return i&&(i.valid=!1),i=u(n),i.valid=!0,i},extent:function(a){return arguments.length?(u=Zt(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ao.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,ao.geo.albers=function(){return ao.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ao.geo.albersUsa=function(){function n(n){var u=n[0],o=n[1];return t=null,e(u,o),t||(r(u,o),t)||i(u,o),t}var t,e,r,i,u=ao.geo.albers(),o=ao.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ao.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=u.scale(),e=u.translate(),r=(n[0]-e[0])/t,i=(n[1]-e[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:u).invert(n)},n.stream=function(n){var t=u.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(u.precision(t),o.precision(t),a.precision(t),n):u.precision()},n.scale=function(t){return arguments.length?(u.scale(t),o.scale(.35*t),a.scale(t),n.translate(u.translate())):u.scale()},n.translate=function(t){if(!arguments.length)return u.translate();var c=u.scale(),f=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[f-.455*c,s-.238*c],[f+.455*c,s+.238*c]]).stream(l).point,r=o.translate([f-.307*c,s+.201*c]).clipExtent([[f-.425*c+Uo,s+.12*c+Uo],[f-.214*c-Uo,s+.234*c-Uo]]).stream(l).point,i=a.translate([f-.205*c,s+.212*c]).clipExtent([[f-.214*c+Uo,s+.166*c+Uo],[f-.115*c-Uo,s+.234*c-Uo]]).stream(l).point,n},n.scale(1070)};var Oa,Ia,Ya,Za,Va,Xa,$a={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Ia=0,$a.lineStart=$t},polygonEnd:function(){$a.lineStart=$a.lineEnd=$a.point=b,Oa+=xo(Ia/2)}},Ba={point:Bt,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Wa={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Wa.lineStart=ne},polygonEnd:function(){Wa.point=Gt,Wa.lineStart=Kt,Wa.lineEnd=Qt}};ao.geo.path=function(){function n(n){return n&&("function"==typeof a&&u.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=i(u)),ao.geo.stream(n,o)),u.result()}function t(){return o=null,n}var e,r,i,u,o,a=4.5;return n.area=function(n){return Oa=0,ao.geo.stream(n,i($a)),Oa},n.centroid=function(n){return Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,i(Wa)),Ua?[Da/Ua,Pa/Ua]:Ra?[qa/Ra,Ta/Ra]:La?[Ca/La,za/La]:[NaN,NaN]},n.bounds=function(n){return Va=Xa=-(Ya=Za=1/0),ao.geo.stream(n,i(Ba)),[[Ya,Za],[Va,Xa]]},n.projection=function(n){return arguments.length?(i=(e=n)?n.stream||re(n):m,t()):e},n.context=function(n){return arguments.length?(u=null==(r=n)?new Wt:new te(n),"function"!=typeof a&&u.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(u.pointRadius(+t),+t),n):a},n.projection(ao.geo.albersUsa()).context(null)},ao.geo.transform=function(n){return{stream:function(t){var e=new ie(t);for(var r in n)e[r]=n[r];return e}}},ie.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ao.geo.projection=oe,ao.geo.projectionMutator=ae,(ao.geo.equirectangular=function(){return oe(ce)}).raw=ce.invert=ce,ao.geo.rotation=function(n){function t(t){return t=n(t[0]*Yo,t[1]*Yo),t[0]*=Zo,t[1]*=Zo,t}return n=se(n[0]%360*Yo,n[1]*Yo,n.length>2?n[2]*Yo:0),t.invert=function(t){return t=n.invert(t[0]*Yo,t[1]*Yo),t[0]*=Zo,t[1]*=Zo,t},t},fe.invert=ce,ao.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=se(-n[0]*Yo,-n[1]*Yo,0).invert,i=[];return e(null,null,1,{point:function(n,e){i.push(n=t(n,e)),n[0]*=Zo,n[1]*=Zo}}),{type:"Polygon",coordinates:[i]}}var t,e,r=[0,0],i=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ve((t=+r)*Yo,i*Yo),n):t},n.precision=function(r){return arguments.length?(e=ve(t*Yo,(i=+r)*Yo),n):i},n.angle(90)},ao.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Yo,i=n[1]*Yo,u=t[1]*Yo,o=Math.sin(r),a=Math.cos(r),l=Math.sin(i),c=Math.cos(i),f=Math.sin(u),s=Math.cos(u);return Math.atan2(Math.sqrt((e=s*o)*e+(e=c*f-l*s*a)*e),l*f+c*s*a)},ao.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ao.range(Math.ceil(u/d)*d,i,d).map(h).concat(ao.range(Math.ceil(c/y)*y,l,y).map(p)).concat(ao.range(Math.ceil(r/g)*g,e,g).filter(function(n){return xo(n%d)>Uo}).map(f)).concat(ao.range(Math.ceil(a/v)*v,o,v).filter(function(n){return xo(n%y)>Uo}).map(s))}var e,r,i,u,o,a,l,c,f,s,h,p,g=10,v=g,d=90,y=360,m=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(p(l).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(u=+t[0][0],i=+t[1][0],c=+t[0][1],l=+t[1][1],u>i&&(t=u,u=i,i=t),c>l&&(t=c,c=l,l=t),n.precision(m)):[[u,c],[i,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(m)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],y=+t[1],n):[d,y]},n.minorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],n):[g,v]},n.precision=function(t){return arguments.length?(m=+t,f=ye(a,o,90),s=me(r,e,m),h=ye(c,l,90),p=me(u,i,m),n):m},n.majorExtent([[-180,-90+Uo],[180,90-Uo]]).minorExtent([[-180,-80-Uo],[180,80+Uo]])},ao.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}var t,e,r=Me,i=xe;return n.distance=function(){return ao.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(i=t,e="function"==typeof t?null:t,n):i},n.precision=function(){return arguments.length?n:0},n},ao.geo.interpolate=function(n,t){return be(n[0]*Yo,n[1]*Yo,t[0]*Yo,t[1]*Yo)},ao.geo.length=function(n){return Ja=0,ao.geo.stream(n,Ga),Ja};var Ja,Ga={sphere:b,point:b,lineStart:_e,lineEnd:b,polygonStart:b,polygonEnd:b},Ka=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ao.geo.azimuthalEqualArea=function(){return oe(Ka)}).raw=Ka;var Qa=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},m);(ao.geo.azimuthalEquidistant=function(){return oe(Qa)}).raw=Qa,(ao.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(ao.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var nl=we(function(n){return 1/n},Math.atan);(ao.geo.gnomonic=function(){return oe(nl)}).raw=nl,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Io]},(ao.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var tl=we(function(){return 1},Math.asin);(ao.geo.orthographic=function(){return oe(tl)}).raw=tl;var el=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ao.geo.stereographic=function(){return oe(el)}).raw=el,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Io]},(ao.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,ao.geom={},ao.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,i=En(e),u=En(r),o=n.length,a=[],l=[];for(t=0;o>t;t++)a.push([+i.call(this,n[t],t),+u.call(this,n[t],t),t]);for(a.sort(qe),t=0;o>t;t++)l.push([a[t][0],-a[t][1]]);var c=Le(a),f=Le(l),s=f[0]===c[0],h=f[f.length-1]===c[c.length-1],p=[];for(t=c.length-1;t>=0;--t)p.push(n[a[c[t]][2]]);for(t=+s;t=r&&c.x<=u&&c.y>=i&&c.y<=o?[[r,o],[u,o],[u,i],[r,i]]:[];f.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(u(n,t)/Uo)*Uo,y:Math.round(o(n,t)/Uo)*Uo,i:t}})}var r=Ce,i=ze,u=r,o=i,a=sl;return n?t(n):(t.links=function(n){return ar(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return ar(e(n)).cells.forEach(function(e,r){for(var i,u,o=e.site,a=e.edges.sort(Ve),l=-1,c=a.length,f=a[c-1].edge,s=f.l===o?f.r:f.l;++l=c,h=r>=f,p=h<<1|s;n.leaf=!1,n=n.nodes[p]||(n.nodes[p]=hr()),s?i=c:a=c,h?o=f:l=f,u(n,t,e,r,i,o,a,l)}var f,s,h,p,g,v,d,y,m,M=En(a),x=En(l);if(null!=t)v=t,d=e,y=r,m=i;else if(y=m=-(v=d=1/0),s=[],h=[],g=n.length,o)for(p=0;g>p;++p)f=n[p],f.xy&&(y=f.x),f.y>m&&(m=f.y),s.push(f.x),h.push(f.y);else for(p=0;g>p;++p){var b=+M(f=n[p],p),_=+x(f,p);v>b&&(v=b),d>_&&(d=_),b>y&&(y=b),_>m&&(m=_),s.push(b),h.push(_)}var w=y-v,S=m-d;w>S?m=d+w:y=v+S;var k=hr();if(k.add=function(n){u(k,n,+M(n,++p),+x(n,p),v,d,y,m)},k.visit=function(n){pr(n,k,v,d,y,m)},k.find=function(n){return gr(k,n[0],n[1],v,d,y,m)},p=-1,null==t){for(;++p=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=vl.get(e)||gl,r=dl.get(r)||m,br(r(e.apply(null,lo.call(arguments,1))))},ao.interpolateHcl=Rr,ao.interpolateHsl=Dr,ao.interpolateLab=Pr,ao.interpolateRound=Ur,ao.transform=function(n){var t=fo.createElementNS(ao.ns.prefix.svg,"g");return(ao.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new jr(e?e.matrix:yl)})(n)},jr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var yl={a:1,b:0,c:0,d:1,e:0,f:0};ao.interpolateTransform=$r,ao.layout={},ao.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++ea*a/y){if(v>l){var c=t.charge/l;n.px-=u*c,n.py-=o*c}return!0}if(t.point&&l&&v>l){var c=t.pointCharge/l;n.px-=u*c,n.py-=o*c}}return!t.charge}}function t(n){n.px=ao.event.x,n.py=ao.event.y,l.resume()}var e,r,i,u,o,a,l={},c=ao.dispatch("start","tick","end"),f=[1,1],s=.9,h=ml,p=Ml,g=-30,v=xl,d=.1,y=.64,M=[],x=[];return l.tick=function(){if((i*=.99)<.005)return e=null,c.end({type:"end",alpha:i=0}),!0;var t,r,l,h,p,v,y,m,b,_=M.length,w=x.length;for(r=0;w>r;++r)l=x[r],h=l.source,p=l.target,m=p.x-h.x,b=p.y-h.y,(v=m*m+b*b)&&(v=i*o[r]*((v=Math.sqrt(v))-u[r])/v,m*=v,b*=v,p.x-=m*(y=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=b*y,h.x+=m*(y=1-y),h.y+=b*y);if((y=i*d)&&(m=f[0]/2,b=f[1]/2,r=-1,y))for(;++r<_;)l=M[r],l.x+=(m-l.x)*y,l.y+=(b-l.y)*y;if(g)for(ri(t=ao.geom.quadtree(M),i,a),r=-1;++r<_;)(l=M[r]).fixed||t.visit(n(l));for(r=-1;++r<_;)l=M[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*s,l.y-=(l.py-(l.py=l.y))*s);c.tick({type:"tick",alpha:i})},l.nodes=function(n){return arguments.length?(M=n,l):M},l.links=function(n){return arguments.length?(x=n,l):x},l.size=function(n){return arguments.length?(f=n,l):f},l.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,l):h},l.distance=l.linkDistance,l.linkStrength=function(n){return arguments.length?(p="function"==typeof n?n:+n,l):p},l.friction=function(n){return arguments.length?(s=+n,l):s},l.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,l):g},l.chargeDistance=function(n){return arguments.length?(v=n*n,l):Math.sqrt(v)},l.gravity=function(n){return arguments.length?(d=+n,l):d},l.theta=function(n){return arguments.length?(y=n*n,l):Math.sqrt(y)},l.alpha=function(n){return arguments.length?(n=+n,i?n>0?i=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:i=0})):n>0&&(c.start({type:"start",alpha:i=n}),e=qn(l.tick)),l):i},l.start=function(){function n(n,r){if(!e){for(e=new Array(i),l=0;i>l;++l)e[l]=[];for(l=0;c>l;++l){var u=x[l];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var o,a=e[t],l=-1,f=a.length;++lt;++t)(r=M[t]).index=t,r.weight=0;for(t=0;c>t;++t)r=x[t],"number"==typeof r.source&&(r.source=M[r.source]),"number"==typeof r.target&&(r.target=M[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=M[t],isNaN(r.x)&&(r.x=n("x",s)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof h)for(t=0;c>t;++t)u[t]=+h.call(this,x[t],t);else for(t=0;c>t;++t)u[t]=h;if(o=[],"function"==typeof p)for(t=0;c>t;++t)o[t]=+p.call(this,x[t],t);else for(t=0;c>t;++t)o[t]=p;if(a=[],"function"==typeof g)for(t=0;i>t;++t)a[t]=+g.call(this,M[t],t);else for(t=0;i>t;++t)a[t]=g;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=ao.behavior.drag().origin(m).on("dragstart.force",Qr).on("drag.force",t).on("dragend.force",ni)),arguments.length?void this.on("mouseover.force",ti).on("mouseout.force",ei).call(r):r},ao.rebind(l,c,"on")};var ml=20,Ml=1,xl=1/0;ao.layout.hierarchy=function(){function n(i){var u,o=[i],a=[];for(i.depth=0;null!=(u=o.pop());)if(a.push(u),(c=e.call(n,u,u.depth))&&(l=c.length)){for(var l,c,f;--l>=0;)o.push(f=c[l]),f.parent=u,f.depth=u.depth+1;r&&(u.value=0),u.children=c}else r&&(u.value=+r.call(n,u,u.depth)||0),delete u.children;return oi(i,function(n){var e,i;t&&(e=n.children)&&e.sort(t),r&&(i=n.parent)&&(i.value+=n.value)}),a}var t=ci,e=ai,r=li;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(ui(t,function(n){n.children&&(n.value=0)}),oi(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},ao.layout.partition=function(){function n(t,e,r,i){var u=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,u&&(o=u.length)){var o,a,l,c=-1;for(r=t.value?r/t.value:0;++cs?-1:1),g=ao.sum(c),v=g?(s-l*p)/g:0,d=ao.range(l),y=[];return null!=e&&d.sort(e===bl?function(n,t){return c[t]-c[n]}:function(n,t){return e(o[n],o[t])}),d.forEach(function(n){y[n]={data:o[n],value:a=c[n],startAngle:f,endAngle:f+=a*v+p,padAngle:h}}),y}var t=Number,e=bl,r=0,i=Ho,u=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(i=t,n):i},n.padAngle=function(t){return arguments.length?(u=t,n):u},n};var bl={};ao.layout.stack=function(){function n(a,l){if(!(h=a.length))return a;var c=a.map(function(e,r){return t.call(n,e,r)}),f=c.map(function(t){return t.map(function(t,e){return[u.call(n,t,e),o.call(n,t,e)]})}),s=e.call(n,f,l);c=ao.permute(c,s),f=ao.permute(f,s);var h,p,g,v,d=r.call(n,f,l),y=c[0].length;for(g=0;y>g;++g)for(i.call(n,c[0][g],v=d[g],f[0][g][1]),p=1;h>p;++p)i.call(n,c[p][g],v+=f[p-1][g][1],f[p][g][1]);return a}var t=m,e=gi,r=vi,i=pi,u=si,o=hi;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:_l.get(t)||gi,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:wl.get(t)||vi,n):r},n.x=function(t){return arguments.length?(u=t,n):u},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(i=t,n):i},n};var _l=ao.map({"inside-out":function(n){var t,e,r=n.length,i=n.map(di),u=n.map(yi),o=ao.range(r).sort(function(n,t){return i[n]-i[t]}),a=0,l=0,c=[],f=[];for(t=0;r>t;++t)e=o[t],l>a?(a+=u[e],c.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(c)},reverse:function(n){return ao.range(n.length).reverse()},"default":gi}),wl=ao.map({silhouette:function(n){var t,e,r,i=n.length,u=n[0].length,o=[],a=0,l=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;u>e;++e)l[e]=(a-o[e])/2;return l},wiggle:function(n){var t,e,r,i,u,o,a,l,c,f=n.length,s=n[0],h=s.length,p=[];for(p[0]=l=c=0,e=1;h>e;++e){for(t=0,i=0;f>t;++t)i+=n[t][e][1];for(t=0,u=0,a=s[e][0]-s[e-1][0];f>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;u+=o*n[t][e][1]}p[e]=l-=i?u/i*a:0,c>l&&(c=l)}for(e=0;h>e;++e)p[e]-=c;return p},expand:function(n){var t,e,r,i=n.length,u=n[0].length,o=1/i,a=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];if(r)for(t=0;i>t;t++)n[t][e][1]/=r;else for(t=0;i>t;t++)n[t][e][1]=o}for(e=0;u>e;++e)a[e]=0;return a},zero:vi});ao.layout.histogram=function(){function n(n,u){for(var o,a,l=[],c=n.map(e,this),f=r.call(this,c,u),s=i.call(this,f,c,u),u=-1,h=c.length,p=s.length-1,g=t?1:1/h;++u0)for(u=-1;++u=f[0]&&a<=f[1]&&(o=l[ao.bisect(s,a,1,p)-1],o.y+=g,o.push(n[u]));return l}var t=!0,e=Number,r=bi,i=Mi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(i="number"==typeof t?function(n){return xi(n,t)}:En(t),n):i},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ao.layout.pack=function(){function n(n,u){var o=e.call(this,n,u),a=o[0],l=i[0],c=i[1],f=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,oi(a,function(n){n.r=+f(n.value)}),oi(a,Ni),r){var s=r*(t?1:Math.max(2*a.r/l,2*a.r/c))/2;oi(a,function(n){n.r+=s}),oi(a,Ni),oi(a,function(n){n.r-=s})}return Ci(a,l/2,c/2,t?1:1/Math.max(2*a.r/l,2*a.r/c)),o}var t,e=ao.layout.hierarchy().sort(_i),r=0,i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},ii(n,e)},ao.layout.tree=function(){function n(n,i){var f=o.call(this,n,i),s=f[0],h=t(s);if(oi(h,e),h.parent.m=-h.z,ui(h,r),c)ui(s,u);else{var p=s,g=s,v=s;ui(s,function(n){n.xg.x&&(g=n),n.depth>v.depth&&(v=n)});var d=a(p,g)/2-p.x,y=l[0]/(g.x+a(g,p)/2+d),m=l[1]/(v.depth||1);ui(s,function(n){n.x=(n.x+d)*y,n.y=n.depth*m})}return f}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var i,u=t.children,o=0,a=u.length;a>o;++o)r.push((u[o]=i={_:u[o],parent:t,children:(i=u[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Di(n);var u=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+a(n._,r._),n.m=n.z-u):n.z=u}else r&&(n.z=r.z+a(n._,r._));n.parent.A=i(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function i(n,t,e){if(t){for(var r,i=n,u=n,o=t,l=i.parent.children[0],c=i.m,f=u.m,s=o.m,h=l.m;o=Ti(o),i=qi(i),o&&i;)l=qi(l),u=Ti(u),u.a=n,r=o.z+s-i.z-c+a(o._,i._),r>0&&(Ri(Pi(o,n,e),n,r),c+=r,f+=r),s+=o.m,c+=i.m,h+=l.m,f+=u.m;o&&!Ti(u)&&(u.t=o,u.m+=s-f),i&&!qi(l)&&(l.t=i,l.m+=c-h,e=n)}return e}function u(n){n.x*=l[0],n.y=n.depth*l[1]}var o=ao.layout.hierarchy().sort(null).value(null),a=Li,l=[1,1],c=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(c=null==(l=t)?u:null,n):c?null:l},n.nodeSize=function(t){return arguments.length?(c=null==(l=t)?null:u,n):c?l:null},ii(n,o)},ao.layout.cluster=function(){function n(n,u){var o,a=t.call(this,n,u),l=a[0],c=0;oi(l,function(n){var t=n.children;t&&t.length?(n.x=ji(t),n.y=Ui(t)):(n.x=o?c+=e(n,o):0,n.y=0,o=n)});var f=Fi(l),s=Hi(l),h=f.x-e(f,s)/2,p=s.x+e(s,f)/2;return oi(l,i?function(n){n.x=(n.x-l.x)*r[0],n.y=(l.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(p-h)*r[0],n.y=(1-(l.y?n.y/l.y:1))*r[1]}),a}var t=ao.layout.hierarchy().sort(null).value(null),e=Li,r=[1,1],i=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(i=null==(r=t),n):i?null:r},n.nodeSize=function(t){return arguments.length?(i=null!=(r=t),n):i?r:null},ii(n,t)},ao.layout.treemap=function(){function n(n,t){for(var e,r,i=-1,u=n.length;++it?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var u=e.children;if(u&&u.length){var o,a,l,c=s(e),f=[],h=u.slice(),g=1/0,v="slice"===p?c.dx:"dice"===p?c.dy:"slice-dice"===p?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(n(h,c.dx*c.dy/e.value),f.area=0;(l=h.length)>0;)f.push(o=h[l-1]),f.area+=o.area,"squarify"!==p||(a=r(f,v))<=g?(h.pop(),g=a):(f.area-=f.pop().area,i(f,v,c,!1),v=Math.min(c.dx,c.dy),f.length=f.area=0,g=1/0);f.length&&(i(f,v,c,!0),f.length=f.area=0),u.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var u,o=s(t),a=r.slice(),l=[];for(n(a,o.dx*o.dy/t.value),l.area=0;u=a.pop();)l.push(u),l.area+=u.area,null!=u.z&&(i(l,u.z?o.dx:o.dy,o,!a.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,i=0,u=1/0,o=-1,a=n.length;++oe&&(u=e),e>i&&(i=e));return r*=r,t*=t,r?Math.max(t*i*g/r,r/(t*u*g)):1/0}function i(n,t,e,r){var i,u=-1,o=n.length,a=e.x,c=e.y,f=t?l(n.area/t):0; +if(t==e.dx){for((r||f>e.dy)&&(f=e.dy);++ue.dx)&&(f=e.dx);++ue&&(t=1),1>e&&(n=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=ao.random.normal.apply(ao,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ao.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ao.scale={};var Sl={floor:m,ceil:m};ao.scale.linear=function(){return Wi([0,1],[0,1],Mr,!1)};var kl={s:1,g:1,p:1,r:1,e:1};ao.scale.log=function(){return ru(ao.scale.linear().domain([0,1]),10,!0,[1,10])};var Nl=ao.format(".0e"),El={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ao.scale.pow=function(){return iu(ao.scale.linear(),1,[0,1])},ao.scale.sqrt=function(){return ao.scale.pow().exponent(.5)},ao.scale.ordinal=function(){return ou([],{t:"range",a:[[]]})},ao.scale.category10=function(){return ao.scale.ordinal().range(Al)},ao.scale.category20=function(){return ao.scale.ordinal().range(Cl)},ao.scale.category20b=function(){return ao.scale.ordinal().range(zl)},ao.scale.category20c=function(){return ao.scale.ordinal().range(Ll)};var Al=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Cl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),zl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),Ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);ao.scale.quantile=function(){return au([],[])},ao.scale.quantize=function(){return lu(0,1,[0,1])},ao.scale.threshold=function(){return cu([.5],[0,1])},ao.scale.identity=function(){return fu([0,1])},ao.svg={},ao.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),f=o.apply(this,arguments)-Io,s=a.apply(this,arguments)-Io,h=Math.abs(s-f),p=f>s?0:1;if(n>c&&(g=c,c=n,n=g),h>=Oo)return t(c,p)+(n?t(n,1-p):"")+"Z";var g,v,d,y,m,M,x,b,_,w,S,k,N=0,E=0,A=[];if((y=(+l.apply(this,arguments)||0)/2)&&(d=u===ql?Math.sqrt(n*n+c*c):+u.apply(this,arguments),p||(E*=-1),c&&(E=tn(d/c*Math.sin(y))),n&&(N=tn(d/n*Math.sin(y)))),c){m=c*Math.cos(f+E),M=c*Math.sin(f+E),x=c*Math.cos(s-E),b=c*Math.sin(s-E);var C=Math.abs(s-f-2*E)<=Fo?0:1;if(E&&yu(m,M,x,b)===p^C){var z=(f+s)/2;m=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else m=M=0;if(n){_=n*Math.cos(s-N),w=n*Math.sin(s-N),S=n*Math.cos(f+N),k=n*Math.sin(f+N);var L=Math.abs(f-s+2*N)<=Fo?0:1;if(N&&yu(_,w,S,k)===1-p^L){var q=(f+s)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Uo&&(g=Math.min(Math.abs(c-n)/2,+i.apply(this,arguments)))>.001){v=c>n^p?0:1;var T=g,R=g;if(Fo>h){var D=null==S?[_,w]:null==x?[m,M]:Re([m,M],[S,k],[x,b],[_,w]),P=m-D[0],U=M-D[1],j=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*j+U*F)/(Math.sqrt(P*P+U*U)*Math.sqrt(j*j+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(g,(n-O)/(H-1)),T=Math.min(g,(c-O)/(H+1))}if(null!=x){var I=mu(null==S?[_,w]:[S,k],[m,M],c,T,p),Y=mu([x,b],[_,w],c,T,p);g===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-p^yu(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",p," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",m,",",M);if(null!=S){var Z=mu([m,M],[S,k],n,-R,p),V=mu([_,w],null==x?[m,M]:[x,b],n,-R,p);g===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",p^yu(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-p," ",Z[1],"A",R,",",R," 0 0,",v," ",Z[0]):A.push("L",V[0],"A",R,",",R," 0 0,",v," ",Z[0])}else A.push("L",_,",",w)}else A.push("M",m,",",M),null!=x&&A.push("A",c,",",c," 0 ",C,",",p," ",x,",",b),A.push("L",_,",",w),null!=S&&A.push("A",n,",",n," 0 ",L,",",1-p," ",S,",",k);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=hu,r=pu,i=su,u=ql,o=gu,a=vu,l=du;return n.innerRadius=function(t){return arguments.length?(e=En(t),n):e},n.outerRadius=function(t){return arguments.length?(r=En(t),n):r},n.cornerRadius=function(t){return arguments.length?(i=En(t),n):i},n.padRadius=function(t){return arguments.length?(u=t==ql?ql:En(t),n):u},n.startAngle=function(t){return arguments.length?(o=En(t),n):o},n.endAngle=function(t){return arguments.length?(a=En(t),n):a},n.padAngle=function(t){return arguments.length?(l=En(t),n):l},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Io;return[Math.cos(t)*n,Math.sin(t)*n]},n};var ql="auto";ao.svg.line=function(){return Mu(m)};var Tl=ao.map({linear:xu,"linear-closed":bu,step:_u,"step-before":wu,"step-after":Su,basis:zu,"basis-open":Lu,"basis-closed":qu,bundle:Tu,cardinal:Eu,"cardinal-open":ku,"cardinal-closed":Nu,monotone:Fu});Tl.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Rl=[0,2/3,1/3,0],Dl=[0,1/3,2/3,0],Pl=[0,1/6,2/3,1/6];ao.svg.line.radial=function(){var n=Mu(Hu);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},wu.reverse=Su,Su.reverse=wu,ao.svg.area=function(){return Ou(m)},ao.svg.area.radial=function(){var n=Ou(Hu);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ao.svg.chord=function(){function n(n,a){var l=t(this,u,n,a),c=t(this,o,n,a);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(e(l,c)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,l.r,l.p0))+"Z"}function t(n,t,e,r){var i=t.call(n,e,r),u=a.call(n,i,r),o=l.call(n,i,r)-Io,f=c.call(n,i,r)-Io;return{r:u,a0:o,a1:f,p0:[u*Math.cos(o),u*Math.sin(o)],p1:[u*Math.cos(f),u*Math.sin(f)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>Fo)+",1 "+t}function i(n,t,e,r){return"Q 0,0 "+r}var u=Me,o=xe,a=Iu,l=gu,c=vu;return n.radius=function(t){return arguments.length?(a=En(t),n):a},n.source=function(t){return arguments.length?(u=En(t),n):u},n.target=function(t){return arguments.length?(o=En(t),n):o},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},ao.svg.diagonal=function(){function n(n,i){var u=t.call(this,n,i),o=e.call(this,n,i),a=(u.y+o.y)/2,l=[u,{x:u.x,y:a},{x:o.x,y:a},o];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Me,e=xe,r=Yu;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ao.svg.diagonal.radial=function(){var n=ao.svg.diagonal(),t=Yu,e=n.projection;return n.projection=function(n){return arguments.length?e(Zu(t=n)):t},n},ao.svg.symbol=function(){function n(n,r){return(Ul.get(t.call(this,n,r))||$u)(e.call(this,n,r))}var t=Xu,e=Vu;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var Ul=ao.map({circle:$u,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Fl)),e=t*Fl;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ao.svg.symbolTypes=Ul.keys();var jl=Math.sqrt(3),Fl=Math.tan(30*Yo);Co.transition=function(n){for(var t,e,r=Hl||++Zl,i=Ku(n),u=[],o=Ol||{time:Date.now(),ease:Nr,delay:0,duration:250},a=-1,l=this.length;++au;u++){i.push(t=[]);for(var e=this[u],a=0,l=e.length;l>a;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return Wu(i,this.namespace,this.id)},Yl.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(i){i[r][e].tween.set(n,t)})},Yl.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function i(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function u(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?$r:Mr,a=ao.ns.qualify(n);return Ju(this,"attr."+n,t,a.local?u:i)},Yl.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(i));return r&&function(n){this.setAttribute(i,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(i.space,i.local));return r&&function(n){this.setAttributeNS(i.space,i.local,r(n))}}var i=ao.ns.qualify(n);return this.tween("attr."+n,i.local?r:e)},Yl.style=function(n,e,r){function i(){this.style.removeProperty(n)}function u(e){return null==e?i:(e+="",function(){var i,u=t(this).getComputedStyle(this,null).getPropertyValue(n);return u!==e&&(i=Mr(u,e),function(t){this.style.setProperty(n,i(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof n){2>o&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Ju(this,"style."+n,e,u)},Yl.styleTween=function(n,e,r){function i(i,u){var o=e.call(this,i,u,t(this).getComputedStyle(this,null).getPropertyValue(n));return o&&function(t){this.style.setProperty(n,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,i)},Yl.text=function(n){return Ju(this,"text",n,Gu)},Yl.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Yl.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=ao.ease.apply(ao,arguments)),Y(this,function(r){r[e][t].ease=n}))},Yl.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,i,u){r[e][t].delay=+n.call(r,r.__data__,i,u)}:(n=+n,function(r){r[e][t].delay=n}))},Yl.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,i,u){r[e][t].duration=Math.max(1,n.call(r,r.__data__,i,u))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Yl.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Ol,u=Hl;try{Hl=e,Y(this,function(t,i,u){Ol=t[r][e],n.call(t,t.__data__,i,u)})}finally{Ol=i,Hl=u}}else Y(this,function(i){var u=i[r][e];(u.event||(u.event=ao.dispatch("start","end","interrupt"))).on(n,t)});return this},Yl.transition=function(){for(var n,t,e,r,i=this.id,u=++Zl,o=this.namespace,a=[],l=0,c=this.length;c>l;l++){a.push(n=[]);for(var t=this[l],f=0,s=t.length;s>f;f++)(e=t[f])&&(r=e[o][i],Qu(e,f,o,u,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Wu(a,o,u)},ao.svg.axis=function(){function n(n){n.each(function(){var n,c=ao.select(this),f=this.__chart__||e,s=this.__chart__=e.copy(),h=null==l?s.ticks?s.ticks.apply(s,a):s.domain():l,p=null==t?s.tickFormat?s.tickFormat.apply(s,a):m:t,g=c.selectAll(".tick").data(h,s),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Uo),d=ao.transition(g.exit()).style("opacity",Uo).remove(),y=ao.transition(g.order()).style("opacity",1),M=Math.max(i,0)+o,x=Zi(s),b=c.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),ao.transition(b));v.append("line"),v.append("text");var w,S,k,N,E=v.select("line"),A=y.select("line"),C=g.select("text").text(p),z=v.select("text"),L=y.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=no,w="x",k="y",S="x2",N="y2",C.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+q*u+"V0H"+x[1]+"V"+q*u)):(n=to,w="y",k="x",S="y2",N="x2",C.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),_.attr("d","M"+q*u+","+x[0]+"H0V"+x[1]+"H"+q*u)),E.attr(N,q*i),z.attr(k,q*M),A.attr(S,0).attr(N,q*i),L.attr(w,0).attr(k,q*M),s.rangeBand){var T=s,R=T.rangeBand()/2;f=s=function(n){return T(n)+R}}else f.rangeBand?f=s:d.call(n,s,f);v.call(n,f,s),y.call(n,s,s)})}var t,e=ao.scale.linear(),r=Vl,i=6,u=6,o=3,a=[10],l=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Xl?t+"":Vl,n):r},n.ticks=function(){return arguments.length?(a=co(arguments),n):a},n.tickValues=function(t){return arguments.length?(l=t,n):l},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(i=+t,u=+arguments[e-1],n):i},n.innerTickSize=function(t){return arguments.length?(i=+t,n):i},n.outerTickSize=function(t){return arguments.length?(u=+t,n):u},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var Vl="bottom",Xl={top:1,right:1,bottom:1,left:1};ao.svg.brush=function(){function n(t){t.each(function(){var t=ao.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=t.selectAll(".resize").data(v,m);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return $l[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var l,s=ao.transition(t),h=ao.transition(o);c&&(l=Zi(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),r(s)),f&&(l=Zi(f),h.attr("y",l[0]).attr("height",l[1]-l[0]),i(s)),e(s)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+s[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",s[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function i(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function u(){function u(){32==ao.event.keyCode&&(C||(M=null,L[0]-=s[1],L[1]-=h[1],C=2),S())}function v(){32==ao.event.keyCode&&2==C&&(L[0]+=s[1],L[1]+=h[1],C=0,S())}function d(){var n=ao.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(ao.event.altKey?(M||(M=[(s[0]+s[1])/2,(h[0]+h[1])/2]),L[0]=s[+(n[0]f?(i=r,r=f):i=f),v[0]!=r||v[1]!=i?(e?a=null:o=null,v[0]=r,v[1]=i,!0):void 0}function m(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ao.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=ao.select(ao.event.target),w=l.of(b,arguments),k=ao.select(b),N=_.datum(),E=!/^(n|s)$/.test(N)&&c,A=!/^(e|w)$/.test(N)&&f,C=_.classed("extent"),z=W(b),L=ao.mouse(b),q=ao.select(t(b)).on("keydown.brush",u).on("keyup.brush",v);if(ao.event.changedTouches?q.on("touchmove.brush",d).on("touchend.brush",m):q.on("mousemove.brush",d).on("mouseup.brush",m),k.interrupt().selectAll("*").interrupt(),C)L[0]=s[0]-L[0],L[1]=h[0]-L[1];else if(N){var T=+/w$/.test(N),R=+/^n/.test(N);x=[s[1-T]-L[0],h[1-R]-L[1]],L[0]=s[T],L[1]=h[R]}else ao.event.altKey&&(M=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ao.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var o,a,l=N(n,"brushstart","brush","brushend"),c=null,f=null,s=[0,0],h=[0,0],p=!0,g=!0,v=Bl[0];return n.event=function(n){n.each(function(){var n=l.of(this,arguments),t={x:s,y:h,i:o,j:a},e=this.__chart__||t;this.__chart__=t,Hl?ao.select(this).transition().each("start.brush",function(){o=e.i,a=e.j,s=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(s,t.x),r=xr(h,t.y);return o=a=null,function(i){s=t.x=e(i),h=t.y=r(i),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,a=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,v=Bl[!c<<1|!f],n):c},n.y=function(t){return arguments.length?(f=t,v=Bl[!c<<1|!f],n):f},n.clamp=function(t){return arguments.length?(c&&f?(p=!!t[0],g=!!t[1]):c?p=!!t:f&&(g=!!t),n):c&&f?[p,g]:c?p:f?g:null},n.extent=function(t){var e,r,i,u,l;return arguments.length?(c&&(e=t[0],r=t[1],f&&(e=e[0],r=r[0]),o=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(l=e,e=r,r=l),e==s[0]&&r==s[1]||(s=[e,r])),f&&(i=t[0],u=t[1],c&&(i=i[1],u=u[1]),a=[i,u],f.invert&&(i=f(i),u=f(u)),i>u&&(l=i,i=u,u=l),i==h[0]&&u==h[1]||(h=[i,u])),n):(c&&(o?(e=o[0],r=o[1]):(e=s[0],r=s[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(l=e,e=r,r=l))),f&&(a?(i=a[0],u=a[1]):(i=h[0],u=h[1],f.invert&&(i=f.invert(i),u=f.invert(u)),i>u&&(l=i,i=u,u=l))),c&&f?[[e,i],[r,u]]:c?[e,r]:f&&[i,u])},n.clear=function(){return n.empty()||(s=[0,0],h=[0,0],o=a=null),n},n.empty=function(){return!!c&&s[0]==s[1]||!!f&&h[0]==h[1]},ao.rebind(n,l,"on")};var $l={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Bl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Wl=ga.format=xa.timeFormat,Jl=Wl.utc,Gl=Jl("%Y-%m-%dT%H:%M:%S.%LZ");Wl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?eo:Gl,eo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},eo.toString=Gl.toString,ga.second=On(function(n){return new va(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ga.seconds=ga.second.range,ga.seconds.utc=ga.second.utc.range,ga.minute=On(function(n){return new va(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ga.minutes=ga.minute.range,ga.minutes.utc=ga.minute.utc.range,ga.hour=On(function(n){var t=n.getTimezoneOffset()/60;return new va(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ga.hours=ga.hour.range,ga.hours.utc=ga.hour.utc.range,ga.month=On(function(n){return n=ga.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ga.months=ga.month.range,ga.months.utc=ga.month.utc.range;var Kl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ql=[[ga.second,1],[ga.second,5],[ga.second,15],[ga.second,30],[ga.minute,1],[ga.minute,5],[ga.minute,15],[ga.minute,30],[ga.hour,1],[ga.hour,3],[ga.hour,6],[ga.hour,12],[ga.day,1],[ga.day,2],[ga.week,1],[ga.month,1],[ga.month,3],[ga.year,1]],nc=Wl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",zt]]),tc={range:function(n,t,e){return ao.range(Math.ceil(n/e)*e,+t,e).map(io)},floor:m,ceil:m};Ql.year=ga.year,ga.scale=function(){return ro(ao.scale.linear(),Ql,nc)};var ec=Ql.map(function(n){return[n[0].utc,n[1]]}),rc=Jl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",zt]]);ec.year=ga.year.utc,ga.scale.utc=function(){return ro(ao.scale.linear(),ec,rc)},ao.text=An(function(n){return n.responseText}),ao.json=function(n,t){return Cn(n,"application/json",uo,t)},ao.html=function(n,t){return Cn(n,"text/html",oo,t)},ao.xml=An(function(n){return n.responseXML}),"function"==typeof define&&define.amd?(this.d3=ao,define(ao)):"object"==typeof module&&module.exports?module.exports=ao:this.d3=ao}(); \ No newline at end of file diff --git a/phpunit/html/.js/file.js b/phpunit/html/.js/file.js new file mode 100644 index 00000000..756cc08a --- /dev/null +++ b/phpunit/html/.js/file.js @@ -0,0 +1,61 @@ + $(function() { + var $window = $(window) + , $top_link = $('#toplink') + , $body = $('body, html') + , offset = $('#code').offset().top + , hidePopover = function ($target) { + $target.data('popover-hover', false); + + setTimeout(function () { + if (!$target.data('popover-hover')) { + $target.popover('hide'); + } + }, 300); + }; + + $top_link.hide().click(function(event) { + event.preventDefault(); + $body.animate({scrollTop:0}, 800); + }); + + $window.scroll(function() { + if($window.scrollTop() > offset) { + $top_link.fadeIn(); + } else { + $top_link.fadeOut(); + } + }).scroll(); + + $('.popin') + .popover({trigger: 'manual'}) + .on({ + 'mouseenter.popover': function () { + var $target = $(this); + + $target.data('popover-hover', true); + + // popover already displayed + if ($target.next('.popover').length) { + return; + } + + // show the popover + $target.popover('show'); + + // register mouse events on the popover + $target.next('.popover:not(.popover-initialized)') + .on({ + 'mouseenter': function () { + $target.data('popover-hover', true); + }, + 'mouseleave': function () { + hidePopover($target); + } + }) + .addClass('popover-initialized'); + }, + 'mouseleave.popover': function () { + hidePopover($(this)); + } + }); + }); diff --git a/phpunit/html/.js/jquery.min.js b/phpunit/html/.js/jquery.min.js new file mode 100644 index 00000000..4d9b3a25 --- /dev/null +++ b/phpunit/html/.js/jquery.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.3.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n0&&t-1 in e)}var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,v,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!y||!y.test(e))){if(1!==T)m=t,v=e;else if("object"!==t.nodeName.toLowerCase()){(c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;while(s--)h[s]="#"+c+" "+ve(h[s]);v=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(v)try{return L.apply(r,m.querySelectorAll(v)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(d=a,h=d.documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],y=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||y.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),v.push("!=",W)}),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!v||!v.test(t))&&(!y||!y.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",y=t.parentNode,v=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(y){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?y.firstChild:y.lastChild],a&&m){x=(d=(l=(c=(f=(p=y)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&y.childNodes[d];while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===v:1===p.nodeType)&&++x&&(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p===t))break;return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){var r,o=i(e,t),a=o.length;while(a--)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n){for(var r=0,i=t.length;r-1&&(o[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):L.apply(a,v)})}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u1&&xe(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u0,i=e.length>0,o=function(o,a,s,u,c){var f,h,y,v=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){h=0,a||f.ownerDocument===d||(p(f),s=!g);while(y=e[h++])if(y(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!y&&f)&&v--,o&&x.push(f))}if(v+=m,n&&m!==v){h=0;while(y=t[h++])y(x,b,a,s);if(o){if(v>0)while(m--)x[m]||b[m]||(b[m]=j.call(u));b=we(b)}L.apply(u,b),c&&!o&&b.length>0&&v+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}return s=oe.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=a(e)),n=t.length;while(n--)(o=Ce(t[n]))[b]?r.push(o):i.push(o);(o=S(e,Ee(i,r))).selector=e}return o},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}o=V.needsContext.test(e)?0:u.length;while(o--){if(l=u[o],r.relative[c=l.type])break;if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ve(u)))return L.apply(n,i),n;break}}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var k=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&w.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(r);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function R(e){var t={};return w.each(e.match(M)||[],function(e,n){t[n]=!0}),t}w.Callbacks=function(e){e="string"==typeof e?R(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1){n=a.shift();while(++s-1)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function I(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t=o&&(r!==W&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:I,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:I)),n[2][3].add(a(0,e,g(r)?r:W))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&($(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();while(n--)$(i[n],s(n),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();w.fn.ready=function(e){return F.then(e)["catch"](function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(r,[w]))}}),w.ready.then=F.then;function _(){r.removeEventListener("DOMContentLoaded",_),e.removeEventListener("load",_),w.ready()}"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(w.ready):(r.addEventListener("DOMContentLoaded",_),e.addEventListener("load",_));var z=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n)){i=!0;for(s in n)z(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t),a=function(){w.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:w.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n-1)i&&i.push(o);else if(l=w.contains(o.ownerDocument,o),a=ye(f.appendChild(o),"script"),l&&ve(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var be=r.documentElement,we=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Se(){try{return r.activeElement}catch(e){}}function De(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)De(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.get(e);if(y){n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(be,i),n.guid||(n.guid=w.guid++),(u=y.events)||(u=y.events={}),(a=y.handle)||(a=y.handle=function(t){return"undefined"!=typeof w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;while(l--)d=g=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.hasData(e)&&J.get(e);if(y&&(u=y.events)){l=(t=(t||"").match(M)||[""]).length;while(l--)if(s=Ce.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||w.removeEvent(e,d,y.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&J.remove(e,"handle events")}},dispatch:function(e){var t=w.event.fix(e),n,r,i,o,a,s,u=new Array(arguments.length),l=(J.get(this,"events")||{})[t.type]||[],c=w.event.special[t.type]||{};for(u[0]=t,n=1;n=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/\s*$/g;function Le(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")?w(e).children("tbody")[0]||e:e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(J.hasData(e)&&(o=J.access(e),a=J.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n1&&"string"==typeof y&&!h.checkClone&&je.test(y))return e.each(function(i){var o=e.eq(i);v&&(t[0]=y.call(this,i,o.html())),Re(o,t,n,r)});if(p&&(i=xe(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=w.map(ye(i,"script"),He)).length;f")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=w.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r0&&ve(a,!u&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return z(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function et(e,t,n){var r=$e(e),i=Fe(e,t,r),o="border-box"===w.css(e,"boxSizing",!1,r),a=o;if(We.test(i)){if(!n)return i;i="auto"}return a=a&&(h.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===w.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Ze(e,t,n||(o?"border":"content"),a,r,i)+"px"}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=G(t),u=Xe.test(t),l=e.style;if(u||(t=Je(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=G(t);return Xe.test(t)||(t=Je(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Fe(e,t,r)),"normal"===i&&t in Ve&&(i=Ve[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!ze.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):se(e,Ue,function(){return et(e,t,r)})},set:function(e,n,r){var i,o=$e(e),a="border-box"===w.css(e,"boxSizing",!1,o),s=r&&Ze(e,t,r,a,o);return a&&h.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ze(e,t,"border",!1,o)-.5)),s&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ke(e,n,s)}}}),w.cssHooks.marginLeft=_e(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=Ke)}),w.fn.extend({css:function(e,t){return z(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=$e(e),i=t.length;a1)}});function tt(e,t,n,r,i){return new tt.prototype.init(e,t,n,r,i)}w.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=tt.prototype.init,w.fx.step={};var nt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){rt&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,w.fx.interval),w.fx.tick())}function st(){return e.setTimeout(function(){nt=void 0}),nt=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(M);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ht[t]||w.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}});var gt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;w.fn.extend({prop:function(e,t){return z(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function vt(e){return(e.match(M)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e?e.match(M)||[]:[]}w.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).addClass(e.call(this,t,mt(this)))});if((t=xt(e)).length)while(n=this[u++])if(i=mt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=t[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)while(n=this[u++])if(i=mt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=t[a++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,i,o,a;if(r){i=0,o=w(this),a=xt(e);while(t=a[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&"boolean"!==n||((t=mt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+vt(mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n}}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:vt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,v=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+w.event.triggered)&&(m.indexOf(".")>-1&&(m=(x=m.split(".")).shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,t=t[w.expando]?t:new w.Event(m,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),d=w.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)v.push(s),u=s;u===(i.ownerDocument||r)&&v.push(u.defaultView||u.parentWindow||e)}a=0;while((s=v[a++])&&!t.isPropagationStopped())h=s,t.type=a>1?l:d.bindType||m,(p=(J.get(s,"events")||{})[t.type]&&J.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&Y(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),n)||!Y(i)||c&&g(i[m])&&!y(i)&&((u=i[c])&&(i[c]=null),w.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),w.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}});var Ct=e.location,Et=Date.now(),kt=/\?/;w.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),n};var St=/\[\]$/,Dt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(n in e)jt(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&At.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}}):{name:t.name,value:n.replace(Dt,"\r\n")}}).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Wt={},$t="*/".concat("*"),Bt=r.createElement("a");Bt.href=Ct.href;function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(M)||[];if(g(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function _t(e,t,n,r){var i={},o=e===Wt;function a(s){var u;return i[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function zt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}function Xt(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function Ut(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:Pt.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,w.ajaxSettings),t):zt(w.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(Wt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=w.ajaxSetup({},n),g=h.context||h,y=h.context&&(g.nodeType||g.jquery)?w(g):w.event,v=w.Deferred(),m=w.Callbacks("once memory"),x=h.statusCode||{},b={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s){s={};while(t=Ot.exec(a))s[t[1].toLowerCase()]=t[2]}t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(v.promise(E),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),_t(It,h,n,E),c)return E;(f=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),o=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,"$1"),d=(kt.test(o)?"&":"?")+"_="+Et+++d),h.url=o+d),h.ifModified&&(w.lastModified[o]&&E.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&E.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+$t+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=_t(Wt,h,n,E)){if(E.readyState=1,f&&y.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,i.send(b,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,b,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(b=Xt(h,E,r)),b=Ut(h,b,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(w.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,l=!(d=b.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?v.resolveWith(g,[p,C,E]):v.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&y.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(y.trigger("ajaxComplete",[E,h]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Gt=w.ajaxSettings.xhr();h.cors=!!Gt&&"withCredentials"in Gt,h.ajax=Gt=!!Gt,w.ajaxTransport(function(t){var n,r;if(h.cors||Gt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,o){t=w(" + + + + + diff --git a/phpunit/html/includes/API/Events.php.html b/phpunit/html/includes/API/Events.php.html new file mode 100644 index 00000000..a7361302 --- /dev/null +++ b/phpunit/html/includes/API/Events.php.html @@ -0,0 +1,463 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/API/Events.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
CRAP
+
+ 10.00% covered (danger) +
+
+
10.00%
8 / 80
Events
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
136.20
+
+ 10.00% covered (danger) +
+
+
10.00%
8 / 80
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 register_routes
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
 create_item
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 50.00% covered (danger) +
+
+
50.00%
8 / 16
 create_item_permissions_check
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 create_items
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 25
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\API;
use NewfoldLabs\WP\Module\Data\Event;
use NewfoldLabs\WP\Module\Data\EventManager;
use NewfoldLabs\WP\Module\Data\HiiveConnection;
use WP_REST_Controller;
use WP_REST_Server;
/**
 * REST API controller for sending events to the hiive.
 */
class Events extends WP_REST_Controller {
    /**
     * Instance of the EventManager class.
     *
     * @var EventManager
     */
    public $event_manager;
    /**
     * Instance of the HiiveConnection class.
     *
     * @var HiiveConnection
     */
    public $hiive;
    /**
     * Events constructor.
     *
     * @param HiiveConnection $hiive           Instance of the HiiveConnection class.
     * @param EventManager    $event_manager Instance of the EventManager class.
     */
    public function __construct( HiiveConnection $hiive, EventManager $event_manager ) {
        $this->event_manager = $event_manager;
        $this->hiive         = $hiive;
        $this->namespace     = 'newfold-data/v1';
        $this->rest_base     = 'events';
    }
    /**
     * Registers the routes for the objects of the controller.
     *
     * @see register_rest_route()
     * @see EventManager::rest_api_init()
     */
    public function register_routes() {
        register_rest_route(
            $this->namespace,
            '/' . $this->rest_base . '/',
            array(
                'args' => array(
                    'action'   => array(
                        'required'          => true,
                        'description'       => __( 'Event action. For the "pageview" action/key, Hiive tries to read the page URL and page title only from the "page" and "page_title" keys in the data arg.' ),
                        'type'              => 'string',
                        'sanitize_callback' => function ( $value ) {
                            return sanitize_title( $value );
                        },
                    ),
                    'category' => array(
                        'default'           => 'admin',
                        'description'       => __( 'Event category' ),
                        'type'              => 'string',
                        'sanitize_callback' => function ( $value ) {
                            return sanitize_title( $value );
                        },
                    ),
                    'data'     => array(
                        'description' => __( 'Event data' ),
                        'type'        => 'object',
                    ),
                    'queue'    => array(
                        'default'           => true,
                        'description'       => __( 'Whether or not to queue the event' ),
                        'type'              => 'boolean',
                        'sanitize_callback' => function ( $value ) {
                            return filter_var( $value, FILTER_VALIDATE_BOOLEAN );
                        },
                    ),
                ),
                array(
                    'methods'             => WP_REST_Server::CREATABLE,
                    'callback'            => array( $this, 'create_item' ),
                    'permission_callback' => array( $this, 'create_item_permissions_check' ),
                ),
            )
        );
        \register_rest_route(
            $this->namespace,
            '/' . $this->rest_base . '/batch',
            array(
                array(
                    'methods'             => \WP_REST_Server::CREATABLE,
                    'callback'            => array( $this, 'create_items' ),
                    'permission_callback' => array( $this, 'create_item_permissions_check' ),
                ),
            )
        );
    }
    /**
     * Dispatches a new event.
     *
     * `wp-json/newfold-data/v1/events`
     *
     * @param \WP_REST_Request $request Full details about the request.
     *
     * @used-by newfold-notifications/v1/notifications/
     * @used-by NotificationsApi::registerRoutes() (in callback)
     * @used-by wp-module-notifications/assets/js/realtime-notices.js:189
     *
     * @return \WP_REST_Response|\WP_Error Response object on success, or WP_Error object on failure.
     */
    public function create_item( $request ) {
        $category = $request->get_param( 'category' );
        $action   = $request->get_param( 'action' );
        $data     = ! empty( $request['data'] ) ? $request['data'] : array();
        $event = new Event( $category, $action, $data );
        // If request isn't to be queued, we want the realtime response.
        if ( ! $request['queue'] ) {
            $hiive_response_notifications = $this->hiive->send_event( $event );
            if ( is_wp_error( $hiive_response_notifications ) ) {
                return new \WP_REST_Response( $hiive_response_notifications->get_error_message(), 500 );
            }
            return new \WP_REST_Response( array( 'data' => $hiive_response_notifications ), 201 );
        }
        // Otherwise, queue the event.
        $this->event_manager->push( $event );
        $response = rest_ensure_response(
            array(
                'category' => $category,
                'action'   => $action,
                'data'     => $data,
            )
        );
        // 202 â€“ "The request has been accepted for processing, but the processing has not been completed.".
        $response->set_status( 202 );
        return $response;
    }
    /**
     * User is required to be logged in.
     *
     * @param \WP_REST_Request $request Full details about the request.
     *
     * @return true|\WP_Error
     *
     * @since 1.0
     */
    public function create_item_permissions_check( $request ) {
        if ( ! current_user_can( 'read' ) ) {
            return new \WP_Error(
                'rest_cannot_log_event',
                __( 'Sorry, you are not allowed to use this endpoint.' ),
                array( 'status' => rest_authorization_required_code() )
            );
        }
        return true;
    }
    /**
     * Manages sending a batch of events to the single event API.
     *
     * @param \WP_REST_Request $request A request containing an array of events.
     * @return \WP_REST_Response|\WP_Error Response object on success, or WP_Error object on failure.
     */
    public function create_items( $request ) {
        $events = $request->get_json_params();
        if ( ! rest_is_array( $events ) ) {
            return new \WP_Error(
                'rest_cannot_log_events',
                __( 'Request does not contain an array of events.' )
            );
        }
        $errors = array();
        foreach ( $events as $index => $event ) {
            $event_request = new \WP_REST_Request(
                \WP_REST_Server::CREATABLE,
                "/{$this->namespace}/{$this->rest_base}"
            );
            $event_request->set_body_params( $event );
            $response = \rest_do_request( $event_request );
            if ( $response->is_error() ) {
                array_push(
                    $errors,
                    array(
                        'index' => $index,
                        'data'  => $response->as_error(),
                    )
                );
            }
        }
        if ( ! empty( $errors ) ) {
            return new \WP_Error(
                'rest_cannot_log_events',
                __( 'Some events failed.' ),
                array(
                    'errors' => $errors,
                )
            );
        }
        return new \WP_REST_Response(
            array(),
            202 // Accepted. The request has been accepted for processing, but the processing has not been completed.
        );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/API/Verify.php.html b/phpunit/html/includes/API/Verify.php.html new file mode 100644 index 00000000..37a58b86 --- /dev/null +++ b/phpunit/html/includes/API/Verify.php.html @@ -0,0 +1,284 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/API/Verify.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
+
+ 100.00% covered (success) +
+
+
100.00%
3 / 3
CRAP
+
+ 100.00% covered (success) +
+
+
100.00%
18 / 18
Verify
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
+
+ 100.00% covered (success) +
+
+
100.00%
3 / 3
4
+
+ 100.00% covered (success) +
+
+
100.00%
18 / 18
 __construct
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
4 / 4
 register_routes
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
8 / 8
 get_items
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
6 / 6
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\API;
use NewfoldLabs\WP\Module\Data\HiiveConnection;
use WP_Error;
use WP_REST_Controller;
use WP_REST_Request;
use WP_REST_Server;
use WP_REST_Response;
/**
 * REST API controller for verifying a hiive connection attempt
 */
class Verify extends WP_REST_Controller {
    /**
     * Instance of HiiveConnection class
     *
     * @var HiiveConnection
     */
    public $hiive;
    /**
     * Constructor.
     *
     * @param HiiveConnection $hiive Instance of the hiive connection manager
     * @since 4.7.0
     */
    public function __construct( HiiveConnection $hiive ) {
        $this->hiive     = $hiive;
        $this->namespace = 'newfold-data/v1';
        $this->rest_base = 'verify';
    }
    /**
     * Registers the routes for the objects of the controller.
     *
     * @since 4.7.0
     *
     * @see register_rest_route()
     * @see HiiveConnection::rest_api_init()
     */
    public function register_routes() {
        register_rest_route(
            $this->namespace,
            '/' . $this->rest_base . '/(?P<token>[a-f0-9]{32})',
            array(
                'args' => array(
                    'token' => array(
                        'description' => __( 'Connection verification token.' ),
                        'type'        => 'string',
                    ),
                ),
                array(
                    'methods'             => WP_REST_Server::READABLE,
                    'callback'            => array( $this, 'get_items' ),
                    'permission_callback' => '__return_true',
                ),
            )
        );
    }
    /**
     * Returns a verification of the supplied connection token
     *
     * @since 1.0
     *
     * @param WP_REST_Request $request Full details about the request.
     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
     */
    public function get_items( $request ) {
        $valid  = $this->hiive->verify_token( $request['token'] );
        $status = ( $valid ) ? 200 : 401;
        $response = new WP_REST_Response(
            array(
                'token' => $request['token'],
                'valid' => $valid,
            ),
            $status
        );
        return $response;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/API/dashboard.html b/phpunit/html/includes/API/dashboard.html new file mode 100644 index 00000000..7ffd31ba --- /dev/null +++ b/phpunit/html/includes/API/dashboard.html @@ -0,0 +1,295 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/API + + + + + + + +
+
+
+ +
+
+
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + +
ClassCoverage
NewfoldLabs\WP\Module\Data\API\Events10%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + +
ClassCRAP
NewfoldLabs\WP\Module\Data\API\Events136
+
+
+
+
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + +
MethodCoverage
__construct0%
register_routes0%
create_item_permissions_check0%
create_items0%
create_item50%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + + + +
MethodCRAP
create_items30
create_item6
create_item_permissions_check6
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/API/index.html b/phpunit/html/includes/API/index.html new file mode 100644 index 00000000..ee4bb464 --- /dev/null +++ b/phpunit/html/includes/API/index.html @@ -0,0 +1,148 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/API + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 26.53% covered (danger) +
+
+
26.53%
26 / 98
+
+ 37.50% covered (danger) +
+
+
37.50%
3 / 8
+
+ 50.00% covered (danger) +
+
+
50.00%
1 / 2
Events.php
+
+ 10.00% covered (danger) +
+
+
10.00%
8 / 80
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Verify.php
+
+ 100.00% covered (success) +
+
+
100.00%
18 / 18
+
+ 100.00% covered (success) +
+
+
100.00%
3 / 3
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/Data.php.html b/phpunit/html/includes/Data.php.html new file mode 100644 index 00000000..4447c34f --- /dev/null +++ b/phpunit/html/includes/Data.php.html @@ -0,0 +1,415 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Data.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 20.00% covered (danger) +
+
+
20.00%
1 / 5
CRAP
+
+ 48.28% covered (danger) +
+
+
48.28%
28 / 58
Data
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 20.00% covered (danger) +
+
+
20.00%
1 / 5
60.67
+
+ 49.12% covered (danger) +
+
+
49.12%
28 / 57
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 start
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
4 / 4
 init
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 15
 delete_token_on_401_response
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
3.14
+
+ 75.00% covered (warning) +
+
+
75.00%
3 / 4
 authenticate
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.29
+
+ 65.62% covered (warning) +
+
+
65.62%
21 / 32
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
use wpscholar\Url;
use function WP_Forge\Helpers\dataGet;
/**
 * Main class for the data plugin module
 */
class Data {
    /**
     * Hiive Connection instance
     *
     * @var HiiveConnection
     */
    public $hiive;
    /**
     * Last instantiated instance of this class.
     *
     * @var Data
     */
    public static $instance;
    /**
     * Data constructor.
     */
    public function __construct() {
        self::$instance = $this;
    }
    /**
     * Start up the plugin module
     *
     * Do this separately so it isn't tied to class creation
     *
     * @see bootstrap.php
     * @see \NewfoldLabs\WP\ModuleLoader\register()
     */
    public function start(): void {
        // Delays our primary module setup until init
        add_action( 'init', array( $this, 'init' ) );
        add_filter( 'rest_authentication_errors', array( $this, 'authenticate' ) );
        // If we ever get a 401 response from the Hiive API, delete the token.
        add_filter( 'http_response', array( $this, 'delete_token_on_401_response' ), 10, 3 );
    }
    /**
     * Initialize all other module functionality
     *
     * @hooked init
     */
    public function init(): void {
        $this->hiive = new HiiveConnection();
        $manager = new EventManager();
        $manager->initialize_rest_endpoint();
        // Initialize the required verification endpoints
        $this->hiive->register_verification_hooks();
        // If not connected, attempt to connect and
        // bail before registering the subscribers/listeners
        if ( ! $this->hiive::is_connected() ) {
            // Attempt to connect
            $this->hiive->connect();
            return;
        }
        $manager->init();
        $manager->add_subscriber( $this->hiive );
        if ( defined( 'NFD_DATA_DEBUG' ) && NFD_DATA_DEBUG ) {
            $this->logger = new Logger();
            $manager->add_subscriber( $this->logger );
        }
    }
    /**
     * Check HTTP responses for 401 authentication errors from Hiive, delete the invalid token.
     *
     * @hooked http_response
     * @see WP_Http::request()
     *
     * @param array  $response The successful HTTP response.
     * @param array  $args HTTP request arguments.
     * @param string $url The request URL.
     *
     * @return array
     */
    public function delete_token_on_401_response( array $response, array $args, string $url ): array {
        if ( strpos( $url, constant( 'NFD_HIIVE_URL' ) ) === 0 && absint( wp_remote_retrieve_response_code( $response ) ) === 401 ) {
            delete_option( 'nfd_data_token' );
        }
        return $response;
    }
    /**
     * Authenticate incoming REST API requests.
     *
     * @hooked rest_authentication_errors
     *
     * @param  bool|null|\WP_Error $errors
     *
     * @return bool|null|\WP_Error
     * @see WP_REST_Server::check_authentication()
     *
     * @used-by ConnectSite::verifyToken() in Hiive.
     */
    public function authenticate( $errors ) {
        // Make sure there wasn't a different authentication method used before this
        if ( ! is_null( $errors ) ) {
            return $errors;
        }
        // Make sure this is a REST API request
        if ( ! defined( 'REST_REQUEST' ) || ! constant( 'REST_REQUEST' ) ) {
            return $errors;
        }
        // If no auth header included, bail to allow a different auth method
        if ( empty( $_SERVER['HTTP_AUTHORIZATION'] ) ) {
            return null;
        }
        $token = str_replace( 'Bearer ', '', $_SERVER['HTTP_AUTHORIZATION'] );
        $data = array(
            'method'    => $_SERVER['REQUEST_METHOD'],
            'url'       => Url::getCurrentUrl(),
            'body'      => file_get_contents( 'php://input' ),
            'timestamp' => dataGet( getallheaders(), 'X-Timestamp' ),
        );
        $hash = hash( 'sha256', wp_json_encode( $data ) );
        $salt = hash( 'sha256', strrev( HiiveConnection::get_auth_token() ) );
        $is_valid = hash( 'sha256', $hash . $salt ) === $token;
        // Allow access if token is valid
        if ( $is_valid ) {
            if ( isset( $_GET['user_id'] ) ) {
                // If a user ID is provided, use it to find the desired user.
                $user = get_user_by( 'id', filter_input( INPUT_GET, 'user_id', FILTER_SANITIZE_NUMBER_INT ) );
            } else {
                // If no user ID is provided, find the first admin user.
                $admins = get_users( array( 'role' => 'administrator' ) );
                $user   = array_shift( $admins );
            }
            if ( ! empty( $user ) && is_a( $user, \WP_User::class ) ) {
                wp_set_current_user( $user->ID );
                return true;
            }
        }
        // Don't return false, since we could be interfering with a basic auth implementation.
        return $errors;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Event.php.html b/phpunit/html/includes/Event.php.html new file mode 100644 index 00000000..a00b2d2f --- /dev/null +++ b/phpunit/html/includes/Event.php.html @@ -0,0 +1,250 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Event.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
CRAP
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
Event
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
7.04
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
7.04
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
/**
 * Event data object
 */
class Event {
    /**
     * Event category
     *
     * @var string
     */
    public $category;
    /**
     * Key representing the event action that occurred
     *
     * @var string
     */
    public $key;
    /**
     * Array of extra data related to the event
     *
     * @var array
     */
    public $data;
    /**
     * Array of data about the request that triggered the event
     *
     * @var array
     */
    public $request;
    /**
     * Array of data about the user triggering the event
     *
     * @var array
     */
    public $user;
    /**
     * Timestamp when the event occurred
     *
     * @var integer
     */
    public $time;
    /**
     * Construct
     *
     * @param string $category General category of the event. Should match to a Listener class
     * @param string $key      Key representing the action that occurred
     * @param array  $data     Additional data specific to the event that occurred
     */
    public function __construct( $category = 'Admin', $key = '', $data = array() ) {
        global $title;
        // Event details
        $this->time     = time();
        $this->category = strtolower( $category );
        $this->key      = $key;
        $this->data     = $data;
        // Try to grab user request IP and account for any proxies
        if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
            // In case there are multiple proxies, just use the first one
            $ip_list = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] );
            $ip      = $ip_list[0];
        } else {
            $ip = $_SERVER['REMOTE_ADDR'];
        }
        // Request information
        $this->request = array(
            'url'        => ( isset( $this->data['page'] ) ) ? $this->data['page'] : get_site_url( null, $_SERVER['REQUEST_URI'] ),
            'page_title' => ( isset( $this->data['page_title'] ) ) ? $this->data['page_title'] : $title,
            'user_agent' => ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? $_SERVER['HTTP_USER_AGENT'] : '',
            'ip'         => $ip,
        );
        // User information
        $user       = get_user_by( 'id', get_current_user_id() );
        $this->user = array(
            'id'     => get_current_user_id(),
            'login'  => ( ! empty( $user->user_nicename ) ) ? $user->user_nicename : '',
            'role'   => ( ! empty( $user->roles[0] ) ) ? $user->roles[0] : '',
            'locale' => get_user_locale(),
        );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventManager.php.html b/phpunit/html/includes/EventManager.php.html new file mode 100644 index 00000000..9eee4d8c --- /dev/null +++ b/phpunit/html/includes/EventManager.php.html @@ -0,0 +1,706 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventManager.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 38.46% covered (danger) +
+
+
38.46%
5 / 13
CRAP
+
+ 58.06% covered (warning) +
+
+
58.06%
36 / 62
EventManager
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 38.46% covered (danger) +
+
+
38.46%
5 / 13
131.58
+
+ 58.06% covered (warning) +
+
+
58.06%
36 / 62
 init
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
4 / 4
 initialize_rest_endpoint
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 initialize_cron
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
5 / 5
 rest_api_init
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 add_minutely_schedule
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 shutdown
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
7.48
+
+ 78.57% covered (warning) +
+
+
78.57%
11 / 14
 add_subscriber
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
2 / 2
 get_subscribers
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 get_listeners
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 initialize_listeners
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
8.74
+
+ 33.33% covered (danger) +
+
+
33.33%
2 / 6
 push
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
3 / 3
 send_request_events
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
5
+
+ 100.00% covered (success) +
+
+
100.00%
4 / 4
 send_saved_events_batch
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
18.39
+
+ 45.45% covered (danger) +
+
+
45.45%
5 / 11
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
use Exception;
use NewfoldLabs\WP\Module\Data\EventQueue\EventQueue;
use NewfoldLabs\WP\Module\Data\Listeners\Listener;
use WP_Error;
/**
 * Class to manage event subscriptions
 */
class EventManager {
    /**
     * List of default listener category classes
     *
     * @var Listener[]
     */
    const LISTENERS = array(
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Admin',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Content',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Cron',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Jetpack',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Plugin',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\BluehostPlugin',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\SiteHealth',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Theme',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Commerce',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\Yoast',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\WonderCart',
        '\\NewfoldLabs\\WP\\Module\\Data\\Listeners\\WPMail',
    );
    /**
     * List of subscribers receiving event data
     *
     * @var array
     */
    private $subscribers = array();
    /**
     * The queue of events logged in the current request
     *
     * @var Event[]
     */
    private $queue = array();
    /**
     * Initialize the Event Manager
     */
    public function init(): void {
        $this->initialize_listeners();
        $this->initialize_cron();
        // Register the shutdown hook which sends or saves all queued events
        add_action( 'shutdown', array( $this, 'shutdown' ) );
    }
    /**
     * Initialize the REST API endpoint.
     *
     * @see Data::init()
     */
    public function initialize_rest_endpoint() {
        // Register REST endpoint.
        add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
    }
    /**
     * Handle setting up the scheduled job for sending updates
     */
    protected function initialize_cron(): void {
        // Ensure there is a minutely option in the cron schedules
        // phpcs:disable WordPress.WP.CronInterval.CronSchedulesInterval
        add_filter( 'cron_schedules', array( $this, 'add_minutely_schedule' ) );
        // Minutely cron hook
        add_action( 'nfd_data_sync_cron', array( $this, 'send_saved_events_batch' ) );
        // Register the cron task
        if ( ! wp_next_scheduled( 'nfd_data_sync_cron' ) ) {
            wp_schedule_event( time() + constant( 'MINUTE_IN_SECONDS' ), 'minutely', 'nfd_data_sync_cron' );
        }
    }
    /**
     * Register the event route.
     */
    public function rest_api_init() {
        $controller = new API\Events( Data::$instance->hiive, $this );
        $controller->register_routes();
    }
    /**
     * Add the weekly option to cron schedules if it doesn't exist
     *
     * @hooked cron_schedules
     *
     * @param  array<string, array{interval:int, display:string}> $schedules  List of defined cron schedule options.
     *
     * @return array<string, array{interval:int, display:string}>
     */
    public function add_minutely_schedule( $schedules ) {
        if ( ! array_key_exists( 'minutely', $schedules ) ||
            MINUTE_IN_SECONDS !== $schedules['minutely']['interval']
            ) {
            $schedules['minutely'] = array(
                'interval' => MINUTE_IN_SECONDS,
                'display'  => __( 'Once Every Minute' ),
            );
        }
        return $schedules;
    }
    /**
     * Sends or saves all queued events at the end of the request
     *
     * @hooked shutdown
     */
    public function shutdown(): void {
        // Due to a bug sending too many events, we are temporarily disabling these.
        $disabled_events = array( 'pageview', 'page_view', 'wp_mail', 'plugin_updated' );
        foreach ( $this->queue as $index => $event ) {
            if ( in_array( $event->key, $disabled_events, true ) ) {
                unset( $this->queue[ $index ] );
            }
        }
        // Separate out the async events
        $async = array();
        foreach ( $this->queue as $index => $event ) {
            if ( 'pageview' === $event->key ) {
                $async[] = $event;
                unset( $this->queue[ $index ] );
            }
        }
        // Save any async events for sending later
        if ( ! empty( $async ) ) {
            EventQueue::getInstance()->queue()->push( $async );
        }
        // Any remaining items in the queue should be sent now
        if ( ! empty( $this->queue ) ) {
            $this->send_request_events( $this->queue );
        }
    }
    /**
     * Register a new event subscriber
     *
     * @param  SubscriberInterface $subscriber  Class subscribing to event updates
     */
    public function add_subscriber( SubscriberInterface $subscriber ): void {
        $this->subscribers[] = $subscriber;
    }
    /**
     * Returns filtered list of registered event subscribers
     *
     * @return array<SubscriberInterface> List of subscriber classes
     */
    public function get_subscribers() {
        return apply_filters( 'newfold_data_subscribers', $this->subscribers );
    }
    /**
     * Return an array of listener classes
     *
     * @return Listener[] List of listener classes
     */
    public function get_listeners() {
        return apply_filters( 'newfold_data_listeners', $this::LISTENERS );
    }
    /**
     * Initialize event listener classes
     */
    protected function initialize_listeners(): void {
        if ( defined( 'BURST_SAFETY_MODE' ) && constant( 'BURST_SAFETY_MODE' ) ) {
            // Disable listeners when site is under heavy load
            return;
        }
        foreach ( $this->get_listeners() as $listener ) {
            $class = new $listener( $this );
            $class->register_hooks();
        }
    }
    /**
     * Push event data onto the queue
     *
     * @param  Event $event  Details about the action taken
     */
    public function push( Event $event ): void {
        /**
         * The `nfd_event_log` action is handled in the notification module.
         *
         * @see wp-module-notifications/notifications.php
         */
        do_action( 'nfd_event_log', $event->key, $event );
        $this->queue[] = $event;
    }
    /**
     * Send queued events to all subscribers; store them if they fail
     *
     * @used-by EventManager::shutdown()
     *
     * @param  Event[] $events  A list of events
     */
    protected function send_request_events( array $events ): void {
        foreach ( $this->get_subscribers() as $subscriber ) {
            /**
             * @var array{succeededEvents:array,failedEvents:array}|WP_Error $response
             */
            $response = $subscriber->notify( $events );
            // Due to an unidentified bug causing events to be resent, we are temporarily disabling retries.
            continue;
            if ( ! ( $subscriber instanceof HiiveConnection ) ) {
                continue;
            }
            if ( is_wp_error( $response ) ) {
                EventQueue::getInstance()->queue()->push( $events );
                continue;
            }
            if ( ! empty( $response['failedEvents'] ) ) {
                EventQueue::getInstance()->queue()->push( $response['failedEvents'] );
            }
        }
    }
    /**
     * Send stored events to all subscribers; remove/release them from the store aftewards.
     *
     * @hooked nfd_data_sync_cron
     */
    public function send_saved_events_batch(): void {
        $queue = EventQueue::getInstance()->queue();
        /**
         * Array indexed by the table row id.
         *
         * @var array<int,Event> $events
         */
        $events = $queue->pull( 50 );
        // If queue is empty, do nothing.
        if ( empty( $events ) ) {
            return;
        }
        // Reserve the events in the queue so they are not processed by another instance.
        if ( ! $queue->reserve( array_keys( $events ) ) ) {
            // If the events fail to reserve, they will be repeatedly retried.
            // It would be good to log this somewhere.
            return;
        }
        foreach ( $this->get_subscribers() as $subscriber ) {
            /**
             * @var array{succeededEvents:array,failedEvents:array}|WP_Error $response
             */
            $response = $subscriber->notify( $events );
            // Due to an unidentified bug causing events to be resent, we are temporarily disabling retries.
            continue;
            if ( ! ( $subscriber instanceof HiiveConnection ) ) {
                continue;
            }
            if ( is_wp_error( $response ) ) {
                $queue->release( array_keys( $events ) );
                continue;
            }
            // Remove from the queue.
            if ( ! empty( $response['succeededEvents'] ) ) {
                $queue->remove( array_keys( $response['succeededEvents'] ) );
            }
            // Release the 'reserve' we placed on the entry, so it will be tried again later.
            if ( ! empty( $response['failedEvents'] ) ) {
                $queue->release( array_keys( $response['failedEvents'] ) );
            }
        }
        // Due to an unidentified bug causing events to be resent, we are temporarily disabling retries.
        $queue->remove( array_keys( $events ) );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/EventQueue.php.html b/phpunit/html/includes/EventQueue/EventQueue.php.html new file mode 100644 index 00000000..4b1067b3 --- /dev/null +++ b/phpunit/html/includes/EventQueue/EventQueue.php.html @@ -0,0 +1,308 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/EventQueue.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
EventQueue
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
 getInstance
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 22
 container
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 queue
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\EventQueue;
use NewfoldLabs\WP\Module\Data\EventQueue\Queues\BatchQueue;
use NewfoldLabs\WP\ModuleLoader\Container;
use WP_Forge\QueryBuilder\Query;
class EventQueue {
    /**
     * Dependency injection container
     *
     * @var Container $container
     */
    protected $container;
    /**
     * @var EventQueue
     */
    private static $instance;
    /**
     * Get the singleton instance
     *
     * @return EventQueue
     */
    public static function getInstance() {
        if ( ! self::$instance ) {
            self::$instance = new self();
        }
        return self::$instance;
    }
    /**
     * Constructor
     *
     * @param  Container  $container
     */
    private function __construct() {
        global $wpdb;
        $container = new Container(
            [
                'table' => "{$wpdb->prefix}nfd_data_event_queue",
            ]
        );
        $container->set(
            'query',
            $container->factory(
                function () {
                    return new Query();
                }
            )
        );
        $container->set(
            'queue',
            $container->factory(
                function () use ( $container ) {
                    return new Queues\BatchQueue( $container );
                }
            )
        );
        $this->container = $container;
    }
    /**
     * Get the dependency injection container
     *
     * @return Container
     */
    public function container() {
        return $this->container;
    }
    /**
     * Get a queue instance
     *
     * @return BatchQueue
     */
    public function queue() {
        return $this->container->get( 'queue' );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/Queryable.php.html b/phpunit/html/includes/EventQueue/Queryable.php.html new file mode 100644 index 00000000..e354d061 --- /dev/null +++ b/phpunit/html/includes/EventQueue/Queryable.php.html @@ -0,0 +1,264 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queryable.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 20
Queryable
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
42.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 20
 query
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 table
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 bulkInsert
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 18
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\EventQueue;
trait Queryable {
    /**
     * Get a new query instance
     *
     * @return \WP_Forge\QueryBuilder\Query
     */
    protected function query() {
        return $this->container->get( 'query' );
    }
    /**
     * Get the table name
     *
     * @return string
     */
    protected function table() {
        return $this->container->get( 'table' );
    }
    /**
     * Bulk inserts records into a table using WPDB.  All rows must contain the same keys.
     * Returns number of affected (inserted) rows.
     *
     * @param  string  $table
     * @param  non-empty-array  $rows
     *
     * @return bool|int
     */
    protected function bulkInsert( string $table, array $rows ) {
        global $wpdb;
        // Extract column list from first row of data
        $columns = array_keys( $rows[0] );
        asort( $columns );
        $columnList = '`' . implode( '`, `', $columns ) . '`';
        // Start building SQL, initialise data and placeholder arrays
        $sql          = "INSERT INTO `$table` ($columnList) VALUES\n";
        $placeholders = array();
        $data         = array();
        // Build placeholders for each row, and add values to data array
        foreach ( $rows as $row ) {
            ksort( $row );
            $rowPlaceholders = array();
            foreach ( $row as $key => $value ) {
                $data[]            = $value;
                $rowPlaceholders[] = is_numeric( $value ) ? '%d' : '%s';
            }
            $placeholders[] = '(' . implode( ', ', $rowPlaceholders ) . ')';
        }
        // Stitch all rows together
        $sql .= implode( ",\n", $placeholders );
        // Run the query.  Returns number of affected rows.
        return $wpdb->query( $wpdb->prepare( $sql, $data ) );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/Queues/BatchQueue.php.html b/phpunit/html/includes/EventQueue/Queues/BatchQueue.php.html new file mode 100644 index 00000000..3992f384 --- /dev/null +++ b/phpunit/html/includes/EventQueue/Queues/BatchQueue.php.html @@ -0,0 +1,425 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues/BatchQueue.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
BatchQueue
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
156.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 push
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 pull
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 19
 remove
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 reserve
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 release
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 count
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\EventQueue\Queues;
use NewfoldLabs\WP\Module\Data\Event;
use NewfoldLabs\WP\Module\Data\EventQueue\Queryable;
use NewfoldLabs\WP\ModuleLoader\Container;
class BatchQueue implements BatchQueueInterface {
    use Queryable;
    /**
     * Dependency injection container
     *
     * @var Container $container
     */
    protected $container;
    /**
     * Constructor
     *
     * @param  Container  $container
     */
    public function __construct( Container $container ) {
        $this->container = $container;
    }
    /**
     * Push events onto the queue
     *
     * @param  non-empty-array<Event>  $events
     *
     * @return bool
     */
    public function push( array $events ) {
        $time = current_time( 'mysql' );
        $inserts = [];
        foreach ( $events as $event ) {
            $inserts[] = [
                'event'        => serialize( $event ),
                'available_at' => current_time( 'mysql' ),
                'created_at'   => $time,
            ];
        }
        return (bool) $this->bulkInsert( $this->table(), $inserts );
    }
    /**
     * Pull events from the queue
     *
     * @return Event[]
     */
    public function pull( int $count ) {
        $events = [];
        $rawEvents = $this
            ->query()
            ->select( '*' )
            ->from( $this->table(), false )
            ->whereNull( 'reserved_at' )
            ->where( 'available_at', '<=', current_time( 'mysql' ) )
            ->order_by( 'available_at' )
            ->limit( $count )
            ->get();
        if ( ! is_array( $rawEvents ) ) {
            return $events;
        }
        foreach ( $rawEvents as $rawEvent ) {
            if ( property_exists( $rawEvent, 'id' ) && property_exists( $rawEvent, 'event' ) ) {
                $events[ $rawEvent->id ] = maybe_unserialize( $rawEvent->event );
            }
        }
        return $events;
    }
    /**
     * Remove events from the queue
     *
     * @param  int[]  $ids
     *
     * @return bool
     */
    public function remove( array $ids ) {
        return (bool) $this
            ->query()
            ->table( $this->table(), false )
            ->whereIn( 'id', $ids )
            ->delete();
    }
    /**
     * Reserve events in the queue
     *
     * @param  int[]  $ids
     *
     * @return bool
     */
    public function reserve( array $ids ) {
        return (bool) $this
            ->query()
            ->table( $this->table(), false )
            ->whereIn( 'id', $ids )
            ->update( [ 'reserved_at' => current_time( 'mysql' ) ] );
    }
    /**
     * Release events back onto the queue
     *
     * @param  int[]  $ids
     *
     * @return bool
     */
    public function release( array $ids ) {
        return (bool) $this
            ->query()
            ->table( $this->table(), false )
            ->whereIn( 'id', $ids )
            ->update( [ 'reserved_at' => null ] );
    }
    /**
     * Count the number of events in the queue
     *
     * @return int
     */
    public function count() {
        return $this
            ->query()
            ->select( '*' )
            ->from( $this->table(), false )
            ->whereNull( 'reserved_at' )
            ->where( 'available_at', '<=', current_time( 'mysql' ) )
            ->count();
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/Queues/BatchQueueInterface.php.html b/phpunit/html/includes/EventQueue/Queues/BatchQueueInterface.php.html new file mode 100644 index 00000000..96e6b73e --- /dev/null +++ b/phpunit/html/includes/EventQueue/Queues/BatchQueueInterface.php.html @@ -0,0 +1,150 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues/BatchQueueInterface.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\EventQueue\Queues;
use NewfoldLabs\WP\Module\Data\Event;
interface BatchQueueInterface {
    /**
     * Push one or more events onto the queue
     *
     * @param  Event[]  $events
     *
     * @return bool
     */
    public function push( array $events );
    /**
     * Retrieve one or more events from the queue
     *
     * @return Event[]
     */
    public function pull( int $count );
    /**
     * Remove one or more events from the queue
     *
     * @param  Event[]  $events
     *
     * @return bool
     */
    public function remove( array $events );
    /**
     * Reserve one or more events in the queue
     *
     * @param  Event[]  $events
     *
     * @return bool
     */
    public function reserve( array $events );
    /**
     * Release one or more events back onto the queue
     *
     * @param  Event[]  $events
     *
     * @return bool
     */
    public function release( array $events );
    /**
     * Count the number of events in the queue
     *
     * @return int
     */
    public function count();
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/Queues/dashboard.html b/phpunit/html/includes/EventQueue/Queues/dashboard.html new file mode 100644 index 00000000..efe5d470 --- /dev/null +++ b/phpunit/html/includes/EventQueue/Queues/dashboard.html @@ -0,0 +1,297 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues + + + + + + + +
+ +
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + +
ClassCoverage
NewfoldLabs\WP\Module\Data\EventQueue\Queues\BatchQueue0%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + +
ClassCRAP
NewfoldLabs\WP\Module\Data\EventQueue\Queues\BatchQueue156
+
+
+
+
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + +
MethodCoverage
__construct0%
push0%
pull0%
remove0%
reserve0%
release0%
count0%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + + +
MethodCRAP
pull30
push6
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/Queues/index.html b/phpunit/html/includes/EventQueue/Queues/index.html new file mode 100644 index 00000000..e12e0eaa --- /dev/null +++ b/phpunit/html/includes/EventQueue/Queues/index.html @@ -0,0 +1,134 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
BatchQueue.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
BatchQueueInterface.php
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
+
+ +
+ + diff --git a/phpunit/html/includes/EventQueue/dashboard.html b/phpunit/html/includes/EventQueue/dashboard.html new file mode 100644 index 00000000..d83f2a67 --- /dev/null +++ b/phpunit/html/includes/EventQueue/dashboard.html @@ -0,0 +1,309 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue + + + + + + + +
+
+ +
+
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+ +
+ +
+
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
MethodCoverage
getInstance0%
__construct0%
container0%
queue0%
__construct0%
push0%
pull0%
remove0%
reserve0%
release0%
count0%
query0%
table0%
bulkInsert0%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + + + + +
MethodCRAP
pull30
bulkInsert20
getInstance6
push6
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/EventQueue/index.html b/phpunit/html/includes/EventQueue/index.html new file mode 100644 index 00000000..eef83b58 --- /dev/null +++ b/phpunit/html/includes/EventQueue/index.html @@ -0,0 +1,176 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/EventQueue + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 101
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
Queues
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
EventQueue.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Queryable.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 20
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/Helpers/Encryption.php.html b/phpunit/html/includes/Helpers/Encryption.php.html new file mode 100644 index 00000000..8dbb3727 --- /dev/null +++ b/phpunit/html/includes/Helpers/Encryption.php.html @@ -0,0 +1,394 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Encryption.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 38
Encryption
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
210.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 38
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 get_key
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 get_salt
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 encrypt
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 11
 decrypt
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Helpers;
/**
 * Encrypt/Decrypt strings for database storage
 */
class Encryption {
    /**
     * Key to use for encrypting/decrypting
     *
     * @since 1.0
     * @var string
     */
    private $key;
    /**
     * Salt to use prior to encryption
     *
     * @since 1.0
     * @var string
     */
    private $salt;
    /**
     * Method to be used for encrypting
     *
     * @since 1.0
     * @var string
     */
    private $method;
    /**
     * The initialization vector length based on the method
     *
     * @since 1.0
     * @var string
     */
    private $ivlength;
    /**
     * Construct
     *
     * @since 1.0
     */
    public function __construct() {
        $this->key      = $this->get_key();
        $this->salt     = $this->get_salt();
        $this->method   = 'aes-256-ctr';
        $this->ivlength = openssl_cipher_iv_length( $this->method );
    }
    /**
     * Returns the encryption key to use
     *
     * @since 1.0
     *
     * @return string The encryption key
     */
    private function get_key() {
        if ( defined( 'LOGGED_IN_KEY' ) && '' !== LOGGED_IN_KEY ) {
            return LOGGED_IN_KEY;
        }
        // If a site does not have a LOGGED_IN_KEY set, then they already have more
        // pressing security issues than exposure of the data connection token.
        // We'll set a basic fallback just in case.
        return 'DB6F4B11FF31F37F3C53D6FDD13A12F06D2802DA';
    }
    /**
     * Returns the salt to use before encryption
     *
     * @since 1.0
     *
     * @return string The salt
     */
    private function get_salt() {
        if ( defined( 'LOGGED_IN_SALT' ) && '' !== LOGGED_IN_SALT ) {
            return LOGGED_IN_SALT;
        }
        // If a site does not have a LOGGED_IN_SALT set, then they already have more
        // pressing security issues than exposure of the data connection token.
        // We'll set a basic fallback just in case.
        return 'EE3440AA014D3E0627127D844EFAE7946B51BFBB';
    }
    /**
     * Encrypts a value
     *
     * @since 1.0
     *
     * @param string $value The string to be encrypted
     *
     * @return string|False The encrypted value, or false on failure
     */
    public function encrypt( $value ) {
        // If we don't have openssl for some reason, we'll just bail and return the value
        if ( ! extension_loaded( 'openssl' ) ) {
            return $value;
        }
        $salty_value = $value . $this->salt;
        $iv          = openssl_random_pseudo_bytes( $this->ivlength );
        $cipher = openssl_encrypt( $salty_value, $this->method, $this->key, 0, $iv );
        // If encryption failed
        if ( ! $cipher ) {
            return false;
        }
        return base64_encode( $iv . $cipher );
    }
    /**
     * Decrypts a value
     *
     * @since 1.0
     *
     * @param string $cipher The value to be decrypted
     *
     * @return string|False The decrypted value or false on failure
     */
    public function decrypt( $cipher ) {
        // If we don't have openssl for some reason, we'll just bail and return the value
        if ( ! extension_loaded( 'openssl' ) ) {
            return $cipher;
        }
        $cipher = base64_decode( $cipher, true );
        // Grab the IV from the front of the passed encrypted string
        $iv = substr( $cipher, 0, $this->ivlength );
        // Get the encrypted value from the second half
        $value = substr( $cipher, $this->ivlength );
        // Decrypt!
        $decrypted_value = openssl_decrypt( $value, $this->method, $this->key, 0, $iv );
        // Decription failed, or the salt doesn't match the end of the decrypted string
        if ( ! $value || substr( $decrypted_value, - strlen( $this->salt ) ) !== $this->salt ) {
            return false;
        }
        // Remove the salt from the end and return the decypted value
        return substr( $decrypted_value, 0, - strlen( $this->salt ) );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Helpers/Plugin.php.html b/phpunit/html/includes/Helpers/Plugin.php.html new file mode 100644 index 00000000..e147191c --- /dev/null +++ b/phpunit/html/includes/Helpers/Plugin.php.html @@ -0,0 +1,308 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Plugin.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 29
Plugin
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
182.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 29
 collect
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 collect_installed
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 11
 get_data
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 does_it_autoupdate
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Helpers;
/**
 * Helper class for gathering and formatting plugin data
 */
class Plugin {
    /**
     * Prepare plugin data for a single plugin
     *
     * @param string $basename The plugin basename (filename relative to WP_PLUGINS_DIR).
     *
     * @return array{slug:string, version:string, title:string, url:string, active:bool, mu:bool, auto_updates:bool} Hiive relevant plugin details
     */
    public static function collect( $basename ) {
        if ( ! function_exists( 'get_plugin_data' ) ) {
            require wp_normalize_path( constant( 'ABSPATH' ) . '/wp-admin/includes/plugin.php' );
        }
        return self::get_data( $basename, get_plugin_data( constant( 'WP_PLUGIN_DIR' ) . '/' . $basename ) );
    }
    /**
     * Prepare plugin data for all plugins
     *
     * @return array of plugins
     */
    public static function collect_installed() {
        if ( ! function_exists( 'get_plugins' ) ) {
            require wp_normalize_path( constant( 'ABSPATH' ) . '/wp-admin/includes/plugin.php' );
        }
        $plugins = array();
        // Collect standard plugins
        foreach ( get_plugins() as $slug => $data ) {
            array_push( $plugins, self::get_data( $slug, $data ) );
        }
        // Collect mu plugins
        foreach ( get_mu_plugins() as $slug => $data ) {
            array_push( $plugins, self::get_data( $slug, $data, true ) );
        }
        return $plugins;
    }
    /**
     * Grab relevant data from plugin data - and only what we want
     *
     * @param string $basename The plugin basename (filename relative to WP_PLUGINS_DIR).
     * @param array  $data The plugin meta-data from its header.
     * @param bool   $mu   Whether the plugin is installed as a must-use plugin.
     *
     * @return array{slug:string, version:string, title:string, url:string, active:bool, mu:bool, auto_updates:bool} Hiive relevant plugin details
     */
    public static function get_data( $basename, $data, $mu = false ) {
        $plugin                 = array();
        $plugin['slug']         = $basename;
        $plugin['version']      = $data['Version'] ? $data['Version'] : '0.0';
        $plugin['title']        = $data['Name'] ? $data['Name'] : '';
        $plugin['url']          = $data['PluginURI'] ? $data['PluginURI'] : '';
        $plugin['active']       = is_plugin_active( $basename );
        $plugin['mu']           = $mu;
        $plugin['auto_updates'] = ( ! $mu && self::does_it_autoupdate( $basename ) );
        return $plugin;
    }
    /**
     * Whether the plugin is set to auto update
     *
     * @param string $slug Name of the plugin
     *
     * @return bool
     */
    public static function does_it_autoupdate( $slug ) {
        // Check plugin setting for auto updates on all plugins
        if ( get_site_option( 'auto_update_plugin', 'true' ) ) {
            return true;
        }
        // check core setting for auto updates on this plugin
        $wp_auto_updates = (array) get_site_option( 'auto_update_plugins', array() );
        return in_array( $slug, $wp_auto_updates, true );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Helpers/SiteHealth.php.html b/phpunit/html/includes/Helpers/SiteHealth.php.html new file mode 100644 index 00000000..59e75b3c --- /dev/null +++ b/phpunit/html/includes/Helpers/SiteHealth.php.html @@ -0,0 +1,335 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Helpers/SiteHealth.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
SiteHealth
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
420.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
 get_raw_data
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
 get_safe_data
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
272.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 35
 calculate_score
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 11
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Helpers;
/**
 * Helper class for gathering and formatting Site Health data
 *
 * @since 1.7.0
 */
class SiteHealth {
    /**
     * Raw Site health data.
     *
     * @since 1.7.0
     *
     * @var array
     */
    private static $raw_debug_data;
    /**
     * Safe Site Health data.
     *
     * All empty and private fields have been removed from self:$raw_debug_data.
     *
     * @since 1.7.0
     *
     * @var array
     */
    private static $safe_debug_data;
    /**
     * Retrieves a site's debug data through Site health.
     *
     * @since 1.7.0
     *
     * @return array The site's debug data.
     */
    public static function get_raw_data() {
        if ( ! empty( self::$raw_debug_data ) ) {
            return self::$raw_debug_data;
        }
        require_once wp_normalize_path( ABSPATH . '/wp-admin/includes/class-wp-debug-data.php' );
        self::$raw_debug_data = \WP_Debug_Data::debug_data();
        return self::$raw_debug_data;
    }
    /**
     * Retrieves the debug data for a site that is safe for sharing.
     *
     * Any data marked `private` in Site Health (database user, for example) will not be included in this list.
     *
     * @since 1.7.0
     *
     * @return array List of Site Health debug data.
     */
    public static function get_safe_data() {
        if ( ! empty( self::$safe_debug_data ) ) {
            return self::$safe_debug_data;
        }
        $safe_data = array();
        foreach ( self::get_raw_data() as $section => $details ) {
            // Skip this section if there are no fields, or the section has been declared as private.
            if ( empty( $details['fields'] ) || ( isset( $details['private'] ) && $details['private'] ) ) {
                continue;
            }
            foreach ( $details['fields'] as $field_name => $field ) {
                if ( isset( $field['private'] ) && true === $field['private'] ) {
                    continue;
                }
                if ( isset( $field['debug'] ) ) {
                    $debug_data = $field['debug'];
                } else {
                    $debug_data = $field['value'];
                }
                // Can be array, one level deep only.
                if ( is_array( $debug_data ) ) {
                    $value = array();
                    foreach ( $debug_data as $sub_field_name => $sub_field_value ) {
                        $value[ $sub_field_name ] = $sub_field_value;
                    }
                } elseif ( is_bool( $debug_data ) ) {
                    $value = $debug_data ? 'true' : 'false';
                } elseif ( empty( $debug_data ) && '0' !== $debug_data ) {
                    $value = 'undefined';
                } else {
                    $value = $debug_data;
                }
                $safe_data[ $section ][ $field_name ] = $value;
            }
        }
        self::$safe_debug_data = $safe_data;
        return self::$safe_debug_data;
    }
    /**
     * Calculates the Site Health score for a site.
     *
     * The score is the number of successful tests (good) divided by the total number of tests.
     *
     * @since 1.7.0
     *
     * @param string $results A JSON encoded string of Site Health test results.
     *                        This will usually be the value of the `health-check-site-status-result` transient
     *                        in WordPress Core.
     * @return int Site Health score.
     */
    public static function calculate_score( $results ) {
        $results = json_decode( $results, true );
        $total_tests = array_reduce(
            $results,
            function( $total, $item ) {
                return $total += (int) $item;
            }
        );
        // Report a -1 when there are no Site Health tests
        if ( 0 >= $total_tests ) {
            return -1;
        }
        return round( (int) $results['good'] / $total_tests * 100 );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Helpers/Transient.php.html b/phpunit/html/includes/Helpers/Transient.php.html new file mode 100644 index 00000000..c9b4d1ef --- /dev/null +++ b/phpunit/html/includes/Helpers/Transient.php.html @@ -0,0 +1,346 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Transient.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 60.00% covered (warning) +
+
+
60.00%
3 / 5
CRAP
+
+ 72.73% covered (warning) +
+
+
72.73%
16 / 22
Transient
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 60.00% covered (warning) +
+
+
60.00%
3 / 5
16.43
+
+ 72.73% covered (warning) +
+
+
72.73%
16 / 22
 should_use_transients
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
3 / 3
 get
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
5
+
+ 100.00% covered (success) +
+
+
100.00%
8 / 8
 set
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
5 / 5
 delete
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 __call
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Helpers;
/**
 * Custom Transient class to handle an Options API based fallback
 */
class Transient {
    /**
     * Whether to use transients to store temporary data
     *
     * If the site has an object-cache.php drop-in, then we can't reliably
     * use the transients API. We'll try to fall back to the options API.
     */
    protected static function should_use_transients(): bool {
        require_once constant( 'ABSPATH' ) . '/wp-admin/includes/plugin.php';
        return ! array_key_exists( 'object-cache.php', get_dropins() )
            || 'atomic' === \NewfoldLabs\WP\Context\getContext( 'platform' ); // Bluehost Cloud.
    }
    /**
     * Wrapper for get_transient() with Options API fallback
     *
     * @see \get_transient()
     * @see \get_option()
     * @see \delete_option()
     *
     * @param string $key The key of the transient to retrieve
     * @return mixed The value of the transient
     */
    public static function get( string $key ) {
        if ( self::should_use_transients() ) {
            return \get_transient( $key );
        }
        /**
         * @var array{value:mixed, expires_at:int} $data The saved value and the Unix time it expires at.
         */
        $data = \get_option( $key );
        if ( is_array( $data ) && isset( $data['expires_at'], $data['value'] ) ) {
            if ( $data['expires_at'] > time() ) {
                return $data['value'];
            } else {
                \delete_option( $key );
            }
        }
        return false;
    }
    /**
     * Wrapper for set_transient() with Options API fallback
     *
     * @see \set_transient()
     * @see \update_option()
     *
     * @param string  $key        Key to use for storing the transient
     * @param mixed   $value      Value to be saved
     * @param integer $expires_in Optional expiration time in seconds from now. Default is 1 hour
     *
     * @return bool Whether the value was saved
     */
    public static function set( string $key, $value, int $expires_in = 3600 ): bool {
        if ( self::should_use_transients() ) {
            return \set_transient( $key, $value, $expires_in );
        }
        $data = array(
            'value'      => $value,
            'expires_at' => $expires_in + time(),
        );
        return \update_option( $key, $data, false );
    }
    /**
     * Wrapper for delete_transient() with Options API fallback
     *
     * @see \delete_transient()
     * @see \delete_option()
     *
     * @param string $key The key of the transient/option to delete
     * @return bool Whether the value was deleted
     */
    public static function delete( $key ): bool {
        if ( self::should_use_transients() ) {
            return \delete_transient( $key );
        }
        return \delete_option( $key );
    }
    /**
     * Make the static functions callable as instance methods.
     *
     * @param string $name The function name being called.
     * @param array  $arguments The arguments passed to that function.
     *
     * @return mixed
     * @throws \BadMethodCallException If the method does not exist.
     */
    public function __call( $name, $arguments ) {
        if ( ! method_exists( __CLASS__, $name ) ) {
            throw new \BadMethodCallException( "Method $name does not exist" );
        }
        return self::$name( ...$arguments );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Helpers/dashboard.html b/phpunit/html/includes/Helpers/dashboard.html new file mode 100644 index 00000000..23447eb3 --- /dev/null +++ b/phpunit/html/includes/Helpers/dashboard.html @@ -0,0 +1,320 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/Helpers + + + + + + + +
+
+ +
+
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+ +
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
MethodCoverage
__construct0%
get_key0%
get_salt0%
encrypt0%
decrypt0%
collect0%
collect_installed0%
get_data0%
does_it_autoupdate0%
get_raw_data0%
get_safe_data0%
calculate_score0%
delete0%
__call0%
+
+
+
+

Project Risks

+ +
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/Helpers/index.html b/phpunit/html/includes/Helpers/index.html new file mode 100644 index 00000000..452fd084 --- /dev/null +++ b/phpunit/html/includes/Helpers/index.html @@ -0,0 +1,204 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Helpers + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 11.27% covered (danger) +
+
+
11.27%
16 / 142
+
+ 17.65% covered (danger) +
+
+
17.65%
3 / 17
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
Encryption.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 38
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Plugin.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 29
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
SiteHealth.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Transient.php
+
+ 72.73% covered (warning) +
+
+
72.73%
16 / 22
+
+ 60.00% covered (warning) +
+
+
60.00%
3 / 5
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/HiiveConnection.php.html b/phpunit/html/includes/HiiveConnection.php.html new file mode 100644 index 00000000..01128da0 --- /dev/null +++ b/phpunit/html/includes/HiiveConnection.php.html @@ -0,0 +1,926 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/HiiveConnection.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 35.29% covered (danger) +
+
+
35.29%
6 / 17
CRAP
+
+ 66.93% covered (warning) +
+
+
66.93%
85 / 127
HiiveConnection
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 35.29% covered (danger) +
+
+
35.29%
6 / 17
135.84
+
+ 66.93% covered (warning) +
+
+
66.93%
85 / 127
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 register_verification_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 rest_api_init
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 ajax_verify
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 verify_token
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 is_connected
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
 connect
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
7.04
+
+ 90.91% covered (success) +
+
+
90.91%
20 / 22
 reconnect
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
 throttle
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 get_throttle_interval
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 is_throttled
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 send_event
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
3.07
+
+ 80.00% covered (warning) +
+
+
80.00%
8 / 10
 notify
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
6
+
+ 100.00% covered (success) +
+
+
100.00%
11 / 11
 hiive_request
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
10.08
+
+ 90.91% covered (success) +
+
+
90.91%
20 / 22
 get_auth_token
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
 get_core_data
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
3
+
+ 100.00% covered (success) +
+
+
100.00%
17 / 17
 add_plugin_name_version_to_user_agent
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
6 / 6
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
use NewfoldLabs\WP\Module\Data\Helpers\Plugin as PluginHelper;
use NewfoldLabs\WP\Module\Data\Helpers\Transient;
use WP_Error;
use function NewfoldLabs\WP\ModuleLoader\container;
/**
 * Manages a Hiive connection instance and interactions with it
 */
class HiiveConnection implements SubscriberInterface {
    /**
     * Hiive API url
     *
     * @var string
     */
    private $api;
    /**
     * Authentication token for data api
     *
     * @var string
     */
    private $token;
    /**
     * Whether connection attempts are currently throttled
     *
     * @var bool
     */
    private $throttled;
    /**
     * @var bool
     */
    protected $throttle;
    /**
     * Construct
     */
    public function __construct() {
        if ( ! defined( 'NFD_HIIVE_URL' ) ) {
            define( 'NFD_HIIVE_URL', 'https://hiive.cloud/api' );
        }
        $this->api = constant( 'NFD_HIIVE_URL' );
    }
    /**
     * Register the hooks required for site verification
     *
     * @return void
     */
    public function register_verification_hooks() {
        add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
        add_action( 'wp_ajax_nopriv_nfd-hiive-verify', array( $this, 'ajax_verify' ) );
    }
    /**
     * Set up REST API routes
     *
     * @hooked rest_api_init
     */
    public function rest_api_init(): void {
        $controller = new API\Verify( $this );
        $controller->register_routes();
    }
    /**
     * Process the admin-ajax request
     *
     * Hiive will first attempt to verify using the REST API, and fallback to this AJAX endpoint on error.
     *
     * @hooked wp_ajax_nopriv_nfd-hiive-verify
     *
     * @return never
     */
    public function ajax_verify() {
        $valid  = $this->verify_token( $_REQUEST['token'] );
        $status = ( $valid ) ? 200 : 400;
        $data = array(
            'token' => $_REQUEST['token'],
            'valid' => $valid,
        );
        wp_send_json( $data, $status );
    }
    /**
     * Confirm whether verification token is valid
     *
     * @param string $token Token to verify
     */
    public function verify_token( string $token ): bool {
        $saved_token = Transient::get( 'nfd_data_verify_token' );
        if ( $saved_token && $saved_token === $token ) {
            Transient::delete( 'nfd_data_verify_token' );
            return true;
        }
        return false;
    }
    /**
     * Check whether site has established connection to hiive
     *
     * This is cleared whenever Hiive returns 401 unauthenticated {@see Data::delete_token_on_401_response()}.
     *
     * @used-by Data::init()
     */
    public static function is_connected(): bool {
        return (bool) ( self::get_auth_token() );
    }
    /**
     * Attempt to connect to Hiive
     *
     * @used-by Data::init()
     * @used-by HiiveConnection::reconnect()
     */
    public function connect( string $path = '/sites/v2/connect', ?string $authorization = null ): bool {
        if ( $this->is_throttled() ) {
            return false;
        }
        $this->throttle();
        $token = md5( wp_generate_password() );
        Transient::set( 'nfd_data_verify_token', $token, 5 * constant( 'MINUTE_IN_SECONDS' ) );
        $data                 = $this->get_core_data();
        $data['verify_token'] = $token;
        $data['plugins']      = PluginHelper::collect_installed();
        $args = array(
            'body'     => wp_json_encode( $data ),
            'headers'  => array(
                'Content-Type' => 'application/json',
                'Accept'       => 'application/json',
            ),
            'blocking' => true,
            'timeout'  => 30,
        );
        if ( $authorization ) {
            $args['headers']['Authorization'] = $authorization;
        }
        $attempts = intval( get_option( 'nfd_data_connection_attempts', 0 ) );
        update_option( 'nfd_data_connection_attempts', $attempts + 1 );
        $response = wp_remote_post( $this->api . $path, $args );
        $status   = wp_remote_retrieve_response_code( $response );
        // Created = 201; Updated = 200
        if ( 201 === $status || 200 === $status ) {
            $body = json_decode( wp_remote_retrieve_body( $response ) );
            if ( ! empty( $body->token ) ) {
                // Token is auto-encrypted using the `pre_update_option_nfd_data_token` hook.
                update_option( 'nfd_data_token', $body->token );
                return true;
            }
        }
        return false;
    }
    /**
     * Rename the site URL in Hiive.
     *
     * This performs almost the same request as {@see self::connect} but includes the Site authorization token,
     * to verify this site is the owner of the existing site in Hiive, and Hiive pings back the new URL to verify
     * the DNS points to this site.
     */
    public function reconnect(): bool {
        return $this->connect( '/sites/v2/reconnect', 'Bearer ' . self::get_auth_token() );
    }
    /**
     * Set the connection throttle
     *
     * @return void
     */
    public function throttle() {
        $interval = $this->get_throttle_interval();
        $this->throttle = Transient::set( 'nfd_data_connection_throttle', true, $interval );
    }
    /**
     * Determine the throttle interval based off number of connection attempts
     *
     * @return integer Time to wait until next connection attempt
     */
    public function get_throttle_interval() {
        $attempts = intval( get_option( 'nfd_data_connection_attempts', 0 ) );
        // Throttle intervals step-up:
        // Hourly for 4 hours
        // Twice a day for 3 days
        // Once a day for 3 days
        // Every 3 days for 3 times
        // Once a week
        if ( $attempts <= 4 ) {
            return HOUR_IN_SECONDS;
        } elseif ( $attempts <= 10 ) {
            return 12 * HOUR_IN_SECONDS;
        } elseif ( $attempts <= 13 ) {
            return DAY_IN_SECONDS;
        } elseif ( $attempts <= 16 ) {
            return 3 * DAY_IN_SECONDS;
        } else {
            return WEEK_IN_SECONDS;
        }
    }
    /**
     * Check whether connection is throttled
     *
     * @return boolean
     */
    public function is_throttled() {
        $this->throttled = Transient::get( 'nfd_data_connection_throttle' );
        return $this->throttled;
    }
    /**
     * Synchronously send a single event and return the notifications.
     *
     * @used-by Events::create_item()
     *
     * @param Event $event
     *
     * @phpstan-type Notification_Array array{id:string,locations:array,query:string|null,expiration:int,content:string}
     * @return array<Notification_Array>|WP_Error
     */
    public function send_event( Event $event ) {
        $payload = array(
            'environment' => $this->get_core_data(),
            'events'      => array( $event ),
        );
        $hiive_response = $this->hiive_request( 'sites/v1/events', $payload );
        if ( is_wp_error( $hiive_response ) ) {
            // TODO: enqueue failed event for later. Should this function call go via EventManager?
            return $hiive_response;
        }
        $status_code = wp_remote_retrieve_response_code( $hiive_response );
        if ( ! in_array( $status_code, array( 200, 201 ), true ) ) {
            return new \WP_Error( $status_code, wp_remote_retrieve_response_message( $hiive_response ) );
        }
        /** @var array{data:array{id:string,locations:array,query:string|null,expiration:int,content:string}} $response_payload */
        $response_payload = json_decode( wp_remote_retrieve_body( $hiive_response ), true );
        return $response_payload['data'] ?? array();
    }
    /**
     * Send events to the v2 events endpoint and return the list of successes and list of failures.
     *
     * @see SubscriberInterface::notify()
     * @used-by EventManager::send()
     *
     * @param Event[] $events Array of Event objects representing the actions that occurred.
     *
     * @return array{succeededEvents:array,failedEvents:array}|WP_Error
     */
    public function notify( $events ) {
        $payload = array(
            'environment' => $this->get_core_data(),
            'events'      => $events,
        );
        $hiive_response = $this->hiive_request( 'sites/v2/events', $payload );
        if ( is_wp_error( ( $hiive_response ) ) ) {
            return $hiive_response;
        }
        if ( ! in_array( wp_remote_retrieve_response_code( $hiive_response ), array( 200, 201, 500 ) ) ) {
            return new WP_Error( wp_remote_retrieve_response_code( $hiive_response ), wp_remote_retrieve_response_message( $hiive_response ) );
        }
        $response_body = json_decode( wp_remote_retrieve_body( $hiive_response ), true );
        // If the response from Hiive is not shaped as expected, e.g. a more serious 500 error, return as an error, not as the expected array.
        if ( ! is_array( $response_body ) || ! array_key_exists( 'succeededEvents', $response_body ) || ! array_key_exists( 'failedEvents', $response_body ) ) {
            return new WP_Error( 'hiive_response', 'Response body does not contain succeededEvents and failedEvents keys.' );
        }
        return $response_body;
    }
    /**
     * Send an HTTP request to Hiive and return the body of the request.
     *
     * Handles throttling and reconnection, clients should handle queueing if necessary.
     *
     * Defaults to POST. Override with `$args = array('method' => 'GET')`.
     *
     * @param string     $path The Hiive api path (after /api/).
     * @param array|null $payload
     * @param array|null $args
     *
     * @return array|WP_Error The response array or a WP_Error when no Hiive connection, no network connection, network requests disabled.
     */
    public function hiive_request( string $path, ?array $payload = array(), ?array $args = array() ) {
        /**
         * @see \WP_Http::request()
         * @see https://developer.wordpress.org/reference/hooks/http_headers_useragent/
         */
        add_filter( 'http_headers_useragent', array( $this, 'add_plugin_name_version_to_user_agent' ), 10, 2 );
        // If for some reason we are not connected, bail out now.
        // If we are not connected, the throttling logic should eventually reconnect.
        if ( ! self::is_connected() ) {
            return new WP_Error( 'hiive_connection', __( 'This site is not connected to the hiive.' ) );
        }
        $defaults = array(
            'method'  => 'POST',
            'headers' => array(
                'Content-Type'  => 'application/json',
                'Accept'        => 'application/json',
                'Authorization' => 'Bearer ' . self::get_auth_token(),
            ),
            'timeout' => wp_is_serving_rest_request() ? 15 : 60, // If we're responding to the frontend, we need to be quick.
        );
        $parsed_args = wp_parse_args( $args ?? array(), $defaults );
        if ( ! empty( $payload ) ) {
            $parsed_args['body'] = wp_json_encode( $payload );
        }
        $request_response = wp_remote_request( "{$this->api}/{$path}", $parsed_args );
        // E.g. Hiive is down, or the site has disabled HTTP requests.
        if ( is_wp_error( $request_response ) ) {
            return $request_response;
        }
        // Authentication token is valid for Hiive but not for the resource or Site.
        if ( 403 === $request_response['response']['code'] ) {
            $body = json_decode( $request_response['body'], true );
            if ( 'Invalid token for url' === $body['message'] ) {
                if ( $this->reconnect() ) {
                    $this->hiive_request( $path, $payload, $args );
                } else {
                    return new WP_Error( 'hiive_connection', __( 'This site is not connected to the hiive.' ) );
                }
            }
        }
        remove_filter( 'http_headers_useragent', array( $this, 'add_plugin_name_version_to_user_agent' ) );
        return $request_response;
    }
    /**
     * Try to return the auth token
     *
     * This is cleared whenever Hiive returns 401 unauthenticated {@see Data::delete_token_on_401_response()}.
     *
     * @return string|false The decrypted token if it's set
     */
    public static function get_auth_token() {
        return get_option( 'nfd_data_token' );
    }
    /**
     * Get core site data for initial connection
     *
     * @return array
     */
    public function get_core_data() {
        global $wpdb, $wp_version;
        $container = container();
        $data = array(
            'brand'       => sanitize_title( $container->plugin()->brand ),
            'cache_level' => intval( get_option( 'newfold_cache_level', 2 ) ),
            'cloudflare'  => get_option( 'newfold_cloudflare_enabled', false ),
            'data'        => defined( 'NFD_DATA_MODULE_VERSION' ) ? constant( 'NFD_DATA_MODULE_VERSION' ) : '0.0',
            'email'       => get_option( 'admin_email' ),
            'hostname'    => gethostname(),
            'mysql'       => $wpdb->db_version(),
            'origin'      => $container->plugin()->get( 'id', 'error' ),
            'php'         => phpversion(),
            'plugin'      => $container->plugin()->get( 'version', '0' ),
            'url'         => get_site_url(),
            'username'    => get_current_user(),
            'wp'          => $wp_version,
            'server_path' => defined( 'ABSPATH' ) ? constant( 'ABSPATH' ) : '',
        );
        return apply_filters( 'newfold_wp_data_module_core_data_filter', $data );
    }
    /**
     * Add the plugin name and version to the user agent string
     *
     * @param string $user_agent E.g. "WordPress/6.4.3; https://example.org".
     * @param string $url   E.g. "https://hiive.cloud/api/sites/v2/events".
     *
     * @return string E.g. "WordPress/6.4.3; bluehost/1.2.3; https://example.org".
     */
    public function add_plugin_name_version_to_user_agent( string $user_agent, string $url ): string {
        $container      = container();
        $plugin_brand   = sanitize_title( $container->plugin()->brand );
        $plugin_version = $container->plugin()->get( 'version', '0' );
        $user_agent_parts = array_map( 'trim', explode( ';', $user_agent ) );
        array_splice( $user_agent_parts, 1, 0, "{$plugin_brand}/{$plugin_version}" );
        return implode( '; ', $user_agent_parts );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/HiiveWorker.php.html b/phpunit/html/includes/HiiveWorker.php.html new file mode 100644 index 00000000..f1e8f45f --- /dev/null +++ b/phpunit/html/includes/HiiveWorker.php.html @@ -0,0 +1,233 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/HiiveWorker.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
HiiveWorker
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 request
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
/**
 * Class HiiveWorker
 *
 * Base class for Hiive Worker related actions.
 *
 * @package NewfoldLabs\WP\Module\Data
 */
class HiiveWorker {
    /**
     * The URL of the worker.
     *
     * @var string
     */
    protected $url;
    /**
     * The endpoint of the worker URL.
     *
     * @var string
     */
    protected $endpoint;
    /**
     * HiiveWorker constructor.
     *
     * @param string $endpoint The endpoint of the worker URL.
     */
    public function __construct( $endpoint ) {
        if ( ! defined( 'NFD_HIIVE_BASE_URL' ) ) {
            define( 'NFD_HIIVE_BASE_URL', 'https://hiive.cloud' );
        }
        $this->endpoint = $endpoint;
        $this->url      = NFD_HIIVE_BASE_URL . '/workers/' . $endpoint;
    }
    /**
     * Places an HTTP request to the Hiive CF worker.
     *
     * @param string $method The HTTP request method (GET, POST, ....).
     * @param array  $args The HTTP request arguments (headers, body, ...)
     * @return array
     */
    public function request( $method, $args ) {
        $args['method'] = $method;
        return \wp_remote_request(
            $this->url,
            $args
        );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Admin.php.html b/phpunit/html/includes/Listeners/Admin.php.html new file mode 100644 index 00000000..7acf926f --- /dev/null +++ b/phpunit/html/includes/Listeners/Admin.php.html @@ -0,0 +1,289 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Admin.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 24
Admin
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
110.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 24
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 view
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
 login
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 logout
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors generic admin events
 */
class Admin extends Listener {
    /**
     * Register all required hooks for the listener category
     *
     * @return void
     */
    public function register_hooks() {
        // Admin pages
        add_action( 'admin_footer', array( $this, 'view' ), 9 );
        add_action( 'customize_controls_print_footer_scripts', array( $this, 'view' ) );
        // Login
        add_action( 'wp_login', array( $this, 'login' ), 10, 2 );
        // Logout
        add_action( 'wp_logout', array( $this, 'logout' ) );
    }
    /**
     * Default admin event
     *
     * @return void
     */
    public function view() {
        global $title;
        if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
            return;
        }
        $this->push(
            'pageview',
            array(
                'page'       => get_site_url( null, $_SERVER['REQUEST_URI'] ),
                'page_title' => $title,
            )
        );
    }
    /**
     * Login
     *
     * @hooked wp_login
     *
     * @param string   $user_login username
     * @param \WP_User $user logged in user info
     */
    public function login( $user_login, $user ): void {
        $is_admin = array_key_exists( 'administrator', $user->get_role_caps() );
        if ( ( $is_admin && $user->get_role_caps()['administrator'] ) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) {
            $this->push( 'login' );
        }
    }
    /**
     * Logout
     *
     * @return void
     */
    public function logout() {
        $this->push( 'logout' );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/BluehostPlugin.php.html b/phpunit/html/includes/Listeners/BluehostPlugin.php.html new file mode 100644 index 00000000..0ab2de18 --- /dev/null +++ b/phpunit/html/includes/Listeners/BluehostPlugin.php.html @@ -0,0 +1,414 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/BluehostPlugin.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 57
BluehostPlugin
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
56.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 57
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 site_launch
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 sso_success
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
 sso_fail
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 staging
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 feature_enable
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 feature_disable
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors generic plugin events
 */
class BluehostPlugin extends Listener {
    /**
     * Register the hooks for the subscriber
     *
     * @return void
     */
    public function register_hooks() {
        // Site Launched - Coming Soon page disabled
        add_action( 'newfold/coming-soon/disabled', array( $this, 'site_launch' ) );
        // SSO (Legacy)
        add_action( 'eig_sso_success', array( $this, 'sso_success' ), 10, 2 );
        add_action( 'eig_sso_fail', array( $this, 'sso_fail' ) );
        // SSO
        add_action( 'newfold_sso_success', array( $this, 'sso_success' ), 10, 2 );
        add_action( 'newfold_sso_fail', array( $this, 'sso_fail' ) );
        // Staging
        add_action( 'bh_staging_command', array( $this, 'staging' ) );
        // Features
        add_action( 'newfold/features/action/onEnable', array( $this, 'feature_enable' ) );
        add_action( 'newfold/features/action/onDisable', array( $this, 'feature_disable' ) );
    }
    /**
     * Disable Coming Soon
     */
    public function site_launch() {
        $mm_install_time = get_option( 'mm_install_date', gmdate( 'M d, Y' ) );
        $install_time    = apply_filters( 'nfd_install_date_filter', strtotime( $mm_install_time ) );
        $this->push(
            'site_launched',
            array(
                'ttl' => time() - $install_time,
            )
        );
    }
    /**
     * Successful SSO
     *
     * @param \WP_User $user User who logged in
     * @param string   $redirect URL redirected to after login
     *
     * @return void
     */
    public function sso_success( $user, $redirect ) {
        $data = array(
            'label_key'    => 'status',
            'status'       => 'success',
            'landing_page' => $redirect,
        );
        $this->push( 'sso', $data );
    }
    /**
     * SSO failure
     *
     * @return void
     */
    public function sso_fail() {
        $this->push(
            'sso',
            array(
                'label_key' => 'status',
                'status'    => 'fail',
            )
        );
    }
    /**
     * Staging commands executed
     *
     * @param string $command The staging command executed
     *
     * @return void
     */
    public function staging( $command ) {
        $this->push(
            'staging',
            array(
                'label_key' => 'command',
                'command'   => $command,
            )
        );
    }
    /**
     * Feature Enable event
     *
     * @param string $name The feature name
     *
     * @return void
     */
    public function feature_enable( $name ) {
        $this->push(
            'features',
            array(
                'label_key' => 'enabled',
                'feature'   => $name,
            )
        );
    }
    /**
     * Feature Disable event
     *
     * @param string $name The feature name
     *
     * @return void
     */
    public function feature_disable( $name ) {
        $this->push(
            'features',
            array(
                'label_key' => 'disabled',
                'feature'   => $name,
            )
        );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Commerce.php.html b/phpunit/html/includes/Listeners/Commerce.php.html new file mode 100644 index 00000000..5e49d904 --- /dev/null +++ b/phpunit/html/includes/Listeners/Commerce.php.html @@ -0,0 +1,760 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Commerce.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
CRAP
+
+ 5.92% covered (danger) +
+
+
5.92%
10 / 169
Commerce
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
1511.03
+
+ 5.92% covered (danger) +
+
+
5.92%
10 / 169
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 on_payment
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 products_count
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 orders_count
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 site_cart_views
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
 checkout_views
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 11
 thank_you_page
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 15
 razorpay_connection
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 shippo_connection
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 stripe_connection
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 paypal_connection
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 ecomdash_connected
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
 product_created_or_updated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 woocommerce_hpos_enabled
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
5.93
+
+ 66.67% covered (warning) +
+
+
66.67%
10 / 15
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors Yith events
 */
class Commerce extends Listener {
    /**
     * Register the hooks for the listener
     *
     * @return void
     */
    public function register_hooks() {
        add_action( 'woocommerce_order_status_processing', array( $this, 'on_payment' ), 10, 2 );
        add_filter( 'newfold_wp_data_module_cron_data_filter', array( $this, 'products_count' ) );
        add_filter( 'newfold_wp_data_module_cron_data_filter', array( $this, 'orders_count' ) );
        add_filter( 'woocommerce_before_cart', array( $this, 'site_cart_views' ) );
        add_filter( 'woocommerce_before_checkout_form', array( $this, 'checkout_views' ) );
        add_filter( 'woocommerce_thankyou', array( $this, 'thank_you_page' ) );
        add_filter( 'pre_update_option_nfd-ecommerce-captive-flow-razorpay', array( $this, 'razorpay_connection' ), 10, 2 );
        add_filter( 'pre_update_option_nfd-ecommerce-captive-flow-shippo', array( $this, 'shippo_connection' ), 10, 2 );
        add_filter( 'pre_update_option_nfd-ecommerce-captive-flow-stripe', array( $this, 'stripe_connection' ), 10, 2 );
        // Paypal Connection
        add_filter( 'pre_update_option_yith_ppwc_merchant_data_production', array( $this, 'paypal_connection' ), 10, 2 );
        add_filter( 'update_option_ewc4wp_sso_account_status', array( $this, 'ecomdash_connected' ), 10, 2 );
        add_filter( 'woocommerce_update_product', array( $this, 'product_created_or_updated' ), 100, 2 );
        add_action( 'update_option_woocommerce_custom_orders_table_enabled', array( $this, 'woocommerce_hpos_enabled' ), 10, 3 );
    }
    /**
     * On Payment, send data to Hiive
     *
     * @param  int       $order_id  the order id
     * @param  \WC_Order $order  the order
     *
     * @return void
     */
    public function on_payment( $order_id, \WC_Order $order ) {
        $data = array(
            'order_currency'       => $order->get_currency(),
            'order_total'          => $order->get_total(),
            'payment_method'       => $order->get_payment_method(),
            'payment_method_title' => $order->get_payment_method_title(),
        );
        $this->push( 'woocommerce_order_status_processing', $data );
    }
    /**
     * Products Count
     *
     * @param  string $data  Array of data to be sent to Hiive
     *
     * @return string Array of data
     */
    public function products_count( $data ) {
        if ( ! isset( $data['meta'] ) ) {
            $data['meta'] = array();
        }
        $product_post_counts = wp_count_posts( 'product' );
        if ( $product_post_counts && isset( $product_post_counts->publish ) ) {
            $data['meta']['products_count'] = (int) $product_post_counts->publish;
        }
        return $data;
    }
    /**
     * Orders Count
     *
     * @param  string $data  Array of data to be sent to Hiive
     *
     * @return string Array of data
     */
    public function orders_count( $data ) {
        if ( ! isset( $data['meta'] ) ) {
            $data['meta'] = array();
        }
        $shop_order_post_counts = wp_count_posts( 'shop_order' );
        if ( $shop_order_post_counts && isset( $shop_order_post_counts->publish ) ) {
            $data['meta']['orders_count'] = (int) $shop_order_post_counts->publish;
        }
        return $data;
    }
    /**
     * Site Cart View, send data to Hiive
     *
     * @return void
     */
    public function site_cart_views() {
        if ( WC()->cart->get_cart_contents_count() !== 0 ) {
            $data = array(
                'product_count' => WC()->cart->get_cart_contents_count(),
                'cart_total'    => floatval( WC()->cart->get_cart_contents_total() ),
                'currency'      => get_woocommerce_currency(),
            );
            $this->push(
                'site_cart_view',
                $data
            );
        }
    }
    /**
     * Checkout view, send data to Hiive
     *
     * @return void
     */
    public function checkout_views() {
        $data = array(
            'product_count'  => WC()->cart->get_cart_contents_count(),
            'cart_total'     => floatval( WC()->cart->get_cart_contents_total() ),
            'currency'       => get_woocommerce_currency(),
            'payment_method' => array_keys( WC()->payment_gateways()->get_available_payment_gateways() ),
        );
        $this->push(
            'site_checkout_view',
            $data
        );
    }
    /**
     * Thank you page, send data to Hiive
     *
     * @param  int $order_id  the order id
     *
     * @return void
     */
    public function thank_you_page( $order_id ) {
        $order      = wc_get_order( $order_id );
        $line_items = $order->get_items();
        // This loops over line items
        foreach ( $line_items as $item ) {
            $qty = $item['qty'];
        }
        $data = array(
            'product_count' => $qty,
            'order_total'   => floatval( $order->get_total() ),
            'currency'      => get_woocommerce_currency(),
        );
        $this->push(
            'site_thank_you_view',
            $data
        );
    }
    /**
     * Razorpay connected
     *
     * @param string $new_option  New value of the razorpay_data_production option
     * @param string $old_option  Old value of the razorpay_data_production option
     *
     * @return string The new option value
     */
    public function razorpay_connection( $new_option, $old_option ) {
        $url  = is_ssl() ? 'https://' : 'http://';
        $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        $data = array(
            'label_key' => 'provider',
            'provider'  => 'razorpay',
            'page'      => $url,
        );
        if ( $new_option !== $old_option && ! empty( $new_option ) ) {
            $this->push(
                'payment_connected',
                $data
            );
        }
        return $new_option;
    }
    /**
     * Shippo connected
     *
     * @param string $new_option  New value of the shippo_data option
     * @param string $old_option  Old value of the shippo_data option
     *
     * @return string The new option value
     */
    public function shippo_connection( $new_option, $old_option ) {
        $url  = is_ssl() ? 'https://' : 'http://';
        $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        $data = array(
            'label_key' => 'provider',
            'provider'  => 'yith_shippo',
            'page'      => $url,
        );
        if ( $new_option !== $old_option && ! empty( $new_option ) ) {
            $this->push(
                'shipping_connected',
                $data
            );
        }
        return $new_option;
    }
    /**
     * Stripe connected
     *
     * @param string $new_option  New value of the stripe_data_production option
     * @param string $old_option  Old value of the stripe_data_production option
     *
     * @return string The new option value
     */
    public function stripe_connection( $new_option, $old_option ) {
        $url  = is_ssl() ? 'https://' : 'http://';
        $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        $data = array(
            'label_key' => 'provider',
            'provider'  => 'yith_stripe',
            'page'      => $url,
        );
        if ( $new_option !== $old_option && ! empty( $new_option ) ) {
            $this->push(
                'payment_connected',
                $data
            );
        }
        return $new_option;
    }
    /**
     * PayPal connected
     *
     * @param string $new_option  New value of the yith_ppwc_merchant_data_production option
     * @param string $old_option  Old value of the yith_ppwc_merchant_data_production option
     *
     * @return string The new option value
     */
    public function paypal_connection( $new_option, $old_option ) {
        $url  = is_ssl() ? 'https://' : 'http://';
        $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        $data = array(
            'label_key' => 'provider',
            'provider'  => 'yith_paypal',
            'page'      => $url,
        );
        if ( $new_option !== $old_option && ! empty( $new_option ) ) {
            $this->push(
                'payment_connected',
                $data
            );
        }
        return $new_option;
    }
    /**
     * Ecomdash connection, send data to Hiive
     *
     * @param string $new_option  New value of the update_option_ewc4wp_sso_account_status option
     * @param string $old_option  Old value of the update_option_ewc4wp_sso_account_status option
     *
     * @return string The new option value
     */
    public function ecomdash_connected( $new_option, $old_option ) {
        if ( $new_option !== $old_option && ! empty( $new_option ) && 'connected' === $new_option ) {
            $url  = is_ssl() ? 'https://' : 'http://';
            $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
            $data = array(
                'url' => $url,
            );
            $this->push(
                'ecomdash_connected',
                $data
            );
        }
        return $new_option;
    }
    /**
     * Product added, send data to Hiive
     *
     * @param string  $product_id  id of post which is being savedPost ObjectOld value of the yith_ppwc_merchant_data_production option
     * @param WP_POST $product  details of the product
     * @return void
     */
    public function product_created_or_updated( $product_id, $product ) {
        $data = array(
            'label_key'    => 'product_type',
            'product_type' => $product->product_type,
            'post_id'      => $product_id,
        );
            $this->push(
                'product_created',
                $data
            );
    }
    /**
     * HPOS (High Performance Order Storage) is enabled
     * Send data to Hiive containing "hpos" or "legacy", and the page URL.
     *
     * @hooked update_option_woocommerce_custom_orders_table_enabled
     *
     * @param mixed|string $old_value  Old value of woocommerce_custom_orders_table_enabled.
     * @param mixed|string $new_value  New value of woocommerce_custom_orders_table_enabled, 'yes'|'no'.
     * @param string       $option  Name of the option being updated, always 'woocommerce_custom_orders_table_enabled'.
     */
    public function woocommerce_hpos_enabled( $old_value, $new_value, string $option ): void {
        if ( $new_value !== $old_value && ! empty( $new_value ) ) {
            $url  = is_ssl() ? 'https://' : 'http://';
            $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
            $type = ( 'yes' === $new_value ) ? 'hpos' : 'legacy';
            $data = array(
                'label_key' => 'type',
                'type'      => $type,
                'page'      => $url,
            );
            $this->push(
                'changed_woo_order_storage_type',
                $data
            );
        }
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Content.php.html b/phpunit/html/includes/Listeners/Content.php.html new file mode 100644 index 00000000..ae3ed4fc --- /dev/null +++ b/phpunit/html/includes/Listeners/Content.php.html @@ -0,0 +1,338 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Content.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 60
Content
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
156.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 60
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 post_status
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
56.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 32
 count_posts
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 comment_status
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 16
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
use WP_Query;
/**
 * Monitors page/post events
 */
class Content extends Listener {
    /**
     * Register the hooks for the subscriber
     *
     * @return void
     */
    public function register_hooks() {
        // Post status transitions
        add_action( 'transition_post_status', array( $this, 'post_status' ), 10, 3 );
        // transition comment status
        add_action( 'transition_comment_status', array( $this, 'comment_status' ), 10, 3 );
    }
    /**
     * Post status transition
     *
     * @param string $new_status The new post status
     * @param string $old_status The old post status
     * @param \WP_Post $post Post object
     *
     * @return void
     */
    public function post_status( $new_status, $old_status, $post ) {
        $post_type = get_post_type_object( $post->post_type );
        /**
         * Ignore all post types that aren't public
         */
        if ( $post_type->public !== true ) {
            return;
        }
        $allowed_statuses = array(
            'draft',
            'pending',
            'publish',
            'new',
            'future',
            'private',
            'trash',
        );
        if ( $new_status !== $old_status && in_array( $new_status, $allowed_statuses, true ) ) {
            $data = array(
                'label_key'  => 'new_status',
                'old_status' => $old_status,
                'new_status' => $new_status,
                'post'       => $post,
            );
            $this->push( 'content_status', $data );
            if ( 'publish' === $new_status ) {
                $count = $this->count_posts();
                if ( 1 === $count ) {
                    $this->push( 'first_post_published', array( 'post' => $post ) );
                }
                if ( 5 === $count ) {
                    $this->push( 'fifth_post_published', array( 'post' => $post ) );
                }
            }
        }
    }
    /**
     * Count published posts excluding the default 3: Sample Page, Hello World and the Privacy Page
     *
     * @return integer Number of published non-default posts
     */
    public function count_posts() {
        $types = get_post_types( array( 'public' => true ) );
        $args  = array(
            'post_status'  => 'publish',
            'post_type'    => $types,
            'post__not_in' => array( 1, 2, 3 ),
        );
        $query = new WP_Query( $args );
        return $query->post_count;
    }
    /**
     * Comment status transition
     *
     * @param string $new_status The new comment status
     * @param string $old_status The new comment status
     * @param WP_Comment $comment Comment object
     *
     * @return void
     */
    public function comment_status( $new_status, $old_status, $comment ) {
        $allowed_statuses = array(
            'deleted',
            'approved',
            'unapproved',
            'spam',
        );
        if ( $new_status !== $old_status && in_array( $new_status, $allowed_statuses, true ) ) {
            $data = array(
                'label_key'  => 'new_status',
                'old_status' => $old_status,
                'new_status' => $new_status,
                'comment'    => $comment,
            );
            $this->push( 'comment_status', $data );
        }
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Cron.php.html b/phpunit/html/includes/Listeners/Cron.php.html new file mode 100644 index 00000000..85ef6ea8 --- /dev/null +++ b/phpunit/html/includes/Listeners/Cron.php.html @@ -0,0 +1,269 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Cron.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 73.91% covered (warning) +
+
+
73.91%
17 / 23
Cron
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
6.64
+
+ 73.91% covered (warning) +
+
+
73.91%
17 / 23
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.03
+
+ 80.00% covered (warning) +
+
+
80.00%
8 / 10
 update
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
1.04
+
+ 66.67% covered (warning) +
+
+
66.67%
4 / 6
 add_weekly_schedule
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
3.21
+
+ 71.43% covered (warning) +
+
+
71.43%
5 / 7
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
use NewfoldLabs\WP\Module\Data\EventManager;
use NewfoldLabs\WP\Module\Data\Helpers\Plugin;
/**
 * Schedules Cron event listeners
 */
class Cron extends Listener {
    /**
     * Register all required hooks for the listener category
     *
     * @see Listener::register_hooks()
     * @see EventManager::initialize_listeners()
     */
    public function register_hooks(): void {
        // Ensure there is a weekly option in the cron schedules
        // phpcs:ignore WordPress.WP.CronInterval.ChangeDetected
        add_filter( 'cron_schedules', array( $this, 'add_weekly_schedule' ) );
        // Weekly cron hook
        add_action( 'nfd_data_cron', array( $this, 'update' ) );
        // Register the cron task
        if ( ! wp_next_scheduled( 'nfd_data_cron' ) ) {
            wp_schedule_event(
                time() + constant( 'DAY_IN_SECONDS' ),
                'weekly',
                'nfd_data_cron'
            );
        }
    }
    /**
     * Cron event
     *
     * @hooked nfd_data_cron
     * @see Cron::register_hooks()
     */
    public function update(): void {
        $data = array(
            'plugins' => Plugin::collect_installed(),
        );
        $data = apply_filters( 'newfold_wp_data_module_cron_data_filter', $data );
        $this->push( 'cron', $data );
    }
    /**
     * Add the weekly option to cron schedules if it doesn't exist
     *
     * @hooked cron_schedules
     * @see wp_get_schedules()
     *
     * @param array<string, array{interval:int, display:string}> $schedules List of cron schedule options
     * @return array<string, array{interval:int, display:string}>
     */
    public function add_weekly_schedule( $schedules ): array {
        if ( ! array_key_exists( 'weekly', $schedules ) || constant( 'WEEK_IN_SECONDS' ) !== $schedules['weekly']['interval'] ) {
            $schedules['weekly'] = array(
                'interval' => constant( 'WEEK_IN_SECONDS' ),
                'display'  => __( 'Once Weekly' ),
            );
        }
        return $schedules;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Jetpack.php.html b/phpunit/html/includes/Listeners/Jetpack.php.html new file mode 100644 index 00000000..007413e3 --- /dev/null +++ b/phpunit/html/includes/Listeners/Jetpack.php.html @@ -0,0 +1,396 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Jetpack.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
Jetpack
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
132.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 52
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 connected
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 module_enabled
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 module_disabled
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 publicize
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 11
 detect_plugin_activation
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 11
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
use function NewfoldLabs\WP\ModuleLoader\container;
/**
 * Monitors Jetpack events
 */
class Jetpack extends Listener {
    /**
     * Brand code constants
     *
     * @var brand_code
     */
    private $brand_code = array(
        'bluehost'        => '86241',
        'hostgator'       => '57686',
        'web'             => '86239',
        'crazy-domains'   => '57687',
        'hostgator-india' => '57686',
        'bluehost-india'  => '86241',
        'hostgator-latam' => '57686',
        'default'         => '86240',
    );
    /**
     * Register the hooks for the listener
     *
     * @return void
     */
    public function register_hooks() {
        // Connected
        add_action( 'jetpack_site_registered', array( $this, 'connected' ), 10, 3 );
        // Module enabled/disabled
        add_action( 'jetpack_pre_activate_module', array( $this, 'module_enabled' ) );
        add_action( 'jetpack_pre_deactivate_module', array( $this, 'module_disabled' ) );
        add_action( 'activated_plugin', array( $this, 'detect_plugin_activation' ), 10, 1 );
        // Publicize
        add_action( 'publicize_save_meta', array( $this, 'publicize' ), 10, 4 );
    }
    /**
     * Jetpack connected
     *
     * @param integer        $id Jetpack Site ID
     * @param string         $secret Jetpack blog token
     * @param integer|boolan $is_public Whether the site is public
     * @return void
     */
    public function connected( $id, $secret, $is_public ) {
        $this->push(
            'jetpack_connected',
            array(
                'id'     => $id,
                'public' => $is_public,
            )
        );
    }
    /**
     * Jetpack module enabled
     *
     * @param string $module Name of the module
     * @return void
     */
    public function module_enabled( $module ) {
        $this->push(
            'jetpack_module_enabled',
            array(
                'label_key' => 'module',
                'module'    => $module,
            )
        );
    }
    /**
     * Jetpack module disabled
     *
     * @param string $module Name of the module
     * @return void
     */
    public function module_disabled( $module ) {
        $this->push(
            'jetpack_module_disabled',
            array(
                'label_key' => 'module',
                'module'    => $module,
            )
        );
    }
    /**
     * Post publicized
     *
     * @param bool    $submit_post Whether to submit the post
     * @param integer $post_id ID of the post being publicized
     * @param string  $service_name Service name
     * @param array   $connection Array of connection details
     * @return void
     */
    public function publicize( $submit_post, $post_id, $service_name, $connection ) {
        // Bail if it's not being publicized
        if ( ! $submit_post ) {
            return;
        }
        $this->push(
            'jetpack_publicized',
            array(
                'label_key' => 'service',
                'service'   => $service_name,
            )
        );
    }
    /**
     * Post publicized
     *
     * @param bool $plugin Plugin information
     * @return void
     */
    public function detect_plugin_activation( $plugin ) {
        $container = container();
        if ( 'jetpack/jetpack.php' === $plugin ) {
            $brand = $container->plugin()->brand;
            if ( empty( $brand ) || ! array_key_exists( $brand, $this->brand_code ) ) {
                    $brand = 'default';
            }
            $jetpack_affiliate_code = get_option( 'jetpack_affiliate_code' );
            ! $jetpack_affiliate_code &&
                                            update_option( 'jetpack_affiliate_code', $this->brand_code[ $brand ] );
        }
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Listener.php.html b/phpunit/html/includes/Listeners/Listener.php.html new file mode 100644 index 00000000..a8ad60f9 --- /dev/null +++ b/phpunit/html/includes/Listeners/Listener.php.html @@ -0,0 +1,267 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Listener.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
Listener
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 register_hooks
n/a
0 / 0
1
n/a
0 / 0
 push
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 get_class_name
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
use NewfoldLabs\WP\Module\Data\EventManager;
use NewfoldLabs\WP\Module\Data\Event;
/**
 * Base class for listeners
 */
abstract class Listener {
    /**
     * Event Manager instance
     *
     * @var EventManager
     */
    protected $manager;
    /**
     * Default constructor
     *
     * @param EventManager $manager Instance of the Event Manager the listener is registered to
     */
    public function __construct( EventManager $manager ) {
        $this->manager = $manager;
    }
    /**
     * Register all required hooks for the listener category
     */
    public function register_hooks() {}
    /**
     * Wrapper for pushing event data up to the Event Manager
     *
     * @param string $key  Key representing the action that occurred
     * @param array  $data Optional array of additional data for the action
     * @return void
     */
    protected function push( $key, $data = array() ) {
        $category = $this->get_class_name();
        $event    = new Event( $category, $key, $data );
        $this->manager->push( $event );
    }
    /**
     * Return the name of the current class without the namespace
     *
     * @return string Name of the class or false
     */
    protected function get_class_name() {
        $class    = get_class( $this );
        $position = strrpos( $class, '\\' );
        return substr( $class, $position + 1 );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Plugin.php.html b/phpunit/html/includes/Listeners/Plugin.php.html new file mode 100644 index 00000000..395697fc --- /dev/null +++ b/phpunit/html/includes/Listeners/Plugin.php.html @@ -0,0 +1,468 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Plugin.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
CRAP
+
+ 25.00% covered (danger) +
+
+
25.00%
17 / 68
Plugin
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
171.30
+
+ 25.00% covered (danger) +
+
+
25.00%
17 / 68
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 13
 activated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 deactivated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
 save_deleted
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 deleted
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 installed_or_updated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
7.05
+
+ 69.23% covered (warning) +
+
+
69.23%
9 / 13
 updated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.97
+
+ 57.14% covered (warning) +
+
+
57.14%
8 / 14
 installed
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
use NewfoldLabs\WP\Module\Data\Helpers\Transient;
use NewfoldLabs\WP\Module\Data\Helpers\Plugin as PluginHelper;
/**
 * Monitors generic plugin events
 */
class Plugin extends Listener {
    /**
     * Register the hooks for the subscriber
     *
     * @return void
     */
    public function register_hooks() {
        // Plugin activated/deactivated
        add_action( 'activated_plugin', array( $this, 'activated' ), 10, 2 );
        add_action( 'deactivated_plugin', array( $this, 'deactivated' ), 10, 2 );
        add_action( 'delete_plugin', array( $this, 'save_deleted' ), 10, 2 );
        add_action( 'deleted_plugin', array( $this, 'deleted' ), 10, 2 );
        add_action( 'upgrader_process_complete', array( $this, 'installed_or_updated' ), 10, 2 );
        // transient found - nfd plugin was just activated, send that event
        if ( Transient::get( 'nfd_plugin_activated' ) ) {
            $this->activated(
                Transient::get( 'nfd_plugin_activated' ),
                false
            );
            Transient::delete( 'nfd_plugin_activated' );
        }
    }
    /**
     * Plugin activated
     *
     * @param string  $plugin Name of the plugin
     * @param boolean $network_wide Whether plugin was network activated
     *
     * @return void
     */
    public function activated( $plugin, $network_wide ) {
        $data = array(
            'plugin'       => PluginHelper::collect( $plugin ),
            'network_wide' => $network_wide,
        );
        $this->push( 'plugin_activated', $data );
    }
    /**
     * Plugin deactivated
     *
     * @param string  $plugin Name of the plugin
     * @param boolean $network_wide Whether plugin was network deactivated
     *
     * @return void
     */
    public function deactivated( $plugin, $network_wide ) {
        $data = array(
            'plugin'       => PluginHelper::collect( $plugin ),
            'network_wide' => $network_wide,
        );
        // set the active state to false since it is collected while still active
        $data['plugin']['active'] = false;
        $this->push( 'plugin_deactivated', $data );
    }
    /**
     * Temporarily store data about the plugin about to be deleted
     *
     * @param string $plugin Name of the plugin
     *
     * @return void
     */
    public function save_deleted( $plugin ) {
        update_option( 'deleted_plugin', PluginHelper::collect( $plugin ) );
    }
    /**
     * Plugin deleted
     *
     * @param string  $plugin Name of the plugin
     * @param boolean $deleted Whether the plugin deletion was successful
     *
     * @return void
     */
    public function deleted( $plugin, $deleted ) {
        // Only send if it was successfully deleted
        if ( $deleted ) {
            $data = array(
                'plugin' => get_option( 'deleted_plugin' ),
            );
            $this->push( 'plugin_deleted', $data );
        }
        // We need to clean up the saved data either way
        delete_option( 'plugin_deleted' );
    }
    /**
     * Plugin install or update completed
     *
     * @param \WP_Upgrader                                                              $wp_upgrader Upgrader object from upgrade hook.
     * @param array{type:string, action:string, plugins?:array<string>, plugin?:string} $options     Options from upgrade hook including type, action & plugins.
     *
     * @hooked upgrader_process_complete
     * @see \Plugin_Upgrader::bulk_upgrade()
     */
    public function installed_or_updated( $wp_upgrader, array $options ): void {
        // Bail if not a plugin install or update.
        if ( 'plugin' !== $options['type']
            // Or if the plugins array is set but empty.
            || ( ! empty( $options['plugins'] ) && empty( $options['plugins'][0] ) ) ) {
            return;
        }
        switch ( $options['action'] ) {
            case 'install':
                $this->installed();
                break;
            case 'update':
                $this->updated( $options );
                break;
        }
    }
    /**
     * One or more plugins were updated
     *
     * @param array{type:string, action:string, plugins?:array<string>, plugin?:string} $options List of update details
     */
    protected function updated( array $options ): void {
        $plugins = array();
        // Manual updates always return array of plugin slugs
        if ( isset( $options['plugins'] ) && is_array( $options['plugins'] ) ) {
            foreach ( $options['plugins'] as $slug ) {
                array_push( $plugins, PluginHelper::collect( $slug ) );
            }
        }
        // Auto updates always return a single plugin slug
        if ( isset( $options['plugin'] ) ) {
            array_push( $plugins, PluginHelper::collect( $options['plugin'] ) );
        }
        $data = array(
            'plugins' => $plugins,
        );
        $this->push( 'plugin_updated', $data );
    }
    /**
     * Plugin Installed
     *
     * @return void
     */
    public function installed() {
        $data = array(
            'plugins' => PluginHelper::collect_installed(),
        );
        $this->push( 'plugin_installed', $data );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/SiteHealth.php.html b/phpunit/html/includes/Listeners/SiteHealth.php.html new file mode 100644 index 00000000..6c145cf5 --- /dev/null +++ b/phpunit/html/includes/Listeners/SiteHealth.php.html @@ -0,0 +1,223 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/SiteHealth.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 16
SiteHealth
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 16
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 tests_run
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
use NewfoldLabs\WP\Module\Data\Helpers\SiteHealth as SiteHealthHelper;
/**
 * Monitors Site Health events
 */
class SiteHealth extends Listener {
    /**
     * Register the hooks for the subscriber
     *
     * @since 1.7.0
     *
     * @return void
     */
    public function register_hooks() {
        // Site Health tests have run and the transient is updated.
        add_action( 'set_transient_health-check-site-status-result', array( $this, 'tests_run' ) );
    }
    /**
     * Report Site Health related data
     *
     * @since 1.7.0
     *
     * @param string $value A JSON string with the results of Site Health tests
     * @return void
     */
    public function tests_run( $value ) {
        $this->push(
            'site_health_score',
            array(
                'label_key' => 'score', 
                'score' => SiteHealthHelper::calculate_score( $value ),
            )
        );
        $this->push(
            'site_health_debug',
            array(
                'debug_data' => wp_json_encode( SiteHealthHelper::get_safe_data() ),
            )
        );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Theme.php.html b/phpunit/html/includes/Listeners/Theme.php.html new file mode 100644 index 00000000..f095f144 --- /dev/null +++ b/phpunit/html/includes/Listeners/Theme.php.html @@ -0,0 +1,288 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Theme.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 22
Theme
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
90.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 22
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 theme_changed
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 mojo_preview
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 browse_wporg_themes
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors generic theme events
 */
class Theme extends Listener {
    /**
     * Register the hooks for the listener
     *
     * @return void
     */
    public function register_hooks() {
        // Theme changed
        add_filter( 'pre_update_option_stylesheet', array( $this, 'theme_changed' ), 10, 2 );
        // Mojo theme preview
        add_action( 'admin_footer', array( $this, 'mojo_preview' ) );
        // Browse theme category .org
        // @todo Check when switching between categories - may need to use wp.org api filter
        add_action( 'admin_footer-theme-install.php', array( $this, 'browse_wporg_themes' ) );
        // @todo Need ajax event for Mojo themes
    }
    /**
     * Theme changed
     *
     * @param string $new_option New theme
     * @param string $old_option Old theme
     * @return string The new theme
     */
    public function theme_changed( $new_option, $old_option ) {
        if ( $new_option !== $old_option ) {
            $data = array(
                'label_key' => 'new_theme',
                'old_theme' => $old_option,
                'new_theme' => $new_option,
            );
            $this->push( 'theme_changed', $data );
        }
        return $new_option;
    }
    /**
     * Preview of Mojo Marketplace theme
     *
     * @return void
     */
    public function mojo_preview() {
        global $theme;
        if ( isset( $_GET['page'] ) && 'mojo-theme-preview' === $_GET['page'] && ! is_wp_error( $theme ) ) {
            $this->push( 'mojo_theme_preview', array( 'label_key' => 'theme', 'theme' => $theme ) );
        }
    }
    /**
     * Browse free wordpress.org themes
     *
     * @return void
     */
    public function browse_wporg_themes() {
        $category = ( isset( $_GET['browse'] ) ) ? esc_attr( $_GET['browse'] ) : 'featured';
        $this->push( 'browse_wporg_themes', array( 'label_key' => 'category', 'category' => $category ) );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/WPMail.php.html b/phpunit/html/includes/Listeners/WPMail.php.html new file mode 100644 index 00000000..e4118b84 --- /dev/null +++ b/phpunit/html/includes/Listeners/WPMail.php.html @@ -0,0 +1,210 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/WPMail.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
WPMail
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 mail_succeeded
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors wp_mail events.
 */
class WPMail extends Listener {
    /**
     * Register wp_mail_* hooks for the subscriber.
     *
     * @return void
     */
    public function register_hooks() {
        add_action( 'wp_mail_succeeded', array( $this, 'mail_succeeded' ), 10, 1 );
    }
    /**
     * Mail sent successfully.
     *
     * @param array $mail_data An array containing the email recipient(s), subject, message, headers, and attachments.
     * @return void
     */
    public function mail_succeeded( $mail_data ) {
        $this->push(
            'wp_mail',
            array(
                'label_key' => 'subject',
                'subject'   => $mail_data['subject'],
            )
        );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/WonderCart.php.html b/phpunit/html/includes/Listeners/WonderCart.php.html new file mode 100644 index 00000000..bde9fbd5 --- /dev/null +++ b/phpunit/html/includes/Listeners/WonderCart.php.html @@ -0,0 +1,428 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/WonderCart.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 88
WonderCart
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
240.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 88
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 register_campaign
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 create_campaign_modal_open
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
 campaign_selected
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 campaign_abandoned
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 checkout_campaigns_used
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
72.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 36
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors WonderCart events
 */
class WonderCart extends Listener {
    /**
     * Register the hooks for the listener
     *
     * @return void
     */
    public function register_hooks() {
        add_action( 'rest_after_insert_yith_campaign', array( $this, 'register_campaign' ), 10 );
        add_action( 'yith_sales_edit_campaign_event_modal_opened', array( $this, 'create_campaign_modal_open' ), 10, 2 );
        add_action( 'yith_sales_edit_campaign_event_campaign_selected', array( $this, 'campaign_selected' ), 10, 2 );
        add_action( 'yith_sales_edit_campaign_event_campaign_abandoned', array( $this, 'campaign_abandoned' ), 10, 2 );
        add_action( 'woocommerce_payment_complete', array( $this, 'checkout_campaigns_used' ) );
    }
    /**
     * Campaign created
     *
     * @param string $post Campaign data
     *
     * @return string The post value
     */
    public function register_campaign( $post ) {
        $campaign = yith_sales_get_campaign( $post->ID );
        if ( $campaign ) {
            $type = $campaign->get_type();
            $data = array(
                'label_key' => 'type',
                'type'      => $type,
            );
            $this->push(
                'campaign_created',
                $data
            );
        }
        return $post;
    }
    /**
     * Track wonder_cart create campaign modal window open
     * Send data to hiive
     * @param string $args A list of details that were involved on the event.
     * @param string $event The name of the event.
     * @return void
     */
    public function create_campaign_modal_open( $args, $event ) {
        $url  = is_ssl() ? 'https://' : 'http://';
        $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        $data = array(
            'label_key' => 'trigger',
            'trigger'   => 'Campaign Modal Open',
            'page'      => $url,
        );
        $this->push(
            'modal_open',
            $data
        );
    }
    /**
     * Track wonder_cart campaign selection
     * Send data to hiive
     * @param string $args A list of details that were involved on the event.
     * @param string $event The name of the event.
     * @return void
     */
    public function campaign_selected( $args, $event ) {
        $data = array(
            'label_key'     => 'campaign_slug',
            'type' => $args['type'],
            'campaign_slug' => $args['type'],
        );
        $this->push(
            'campaign_selected',
            $data
        );
    }
    /**
     * Track wonder_cart campaign abondoned
     * Send data to hiive
     * @param string $args A list of details that were involved on the event.
     * @param string $event The name of the event.
     * @return void
     */
    public function campaign_abandoned( $args, $event ) {
        $data = array(
            'label_key'     => 'campaign_slug',
            'type' => $args['type'],
            'campaign_slug' => $args['type'] . '-' . $args['id'],
        );
        $this->push(
            'campaign_abondoned',
            $data
        );
    }
    /**
     * Track wonder_cart campaigns used in checkout page
     * Send data to hiive
     * @return void
     */
    public function checkout_campaigns_used() {
        $campaigns      = array();
        $campaign_total = 0;
        $cart = WC()->cart;
        // To track Cart Discount
        foreach ( $cart->get_applied_coupons() as $coupon_item ) {
            array_push( $campaigns, $coupon_item );
            $campaign_total += $cart->coupon_discount_totals[ $coupon_item ];
        }
        // To track free shipping campaign ( Using reflection to access protected properties)
        $reflection_class          = new \ReflectionClass( $cart );
        $shipping_methods_property = $reflection_class->getProperty( 'shipping_methods' );
        $shipping_methods_property->setAccessible( true );
        $shipping_methods = $shipping_methods_property->getValue( $cart );
        foreach ( $shipping_methods as $shipping_method ) {
            if ( 'yith_sales_free_shipping' === $shipping_method->id ) {
                array_push( $campaigns, 'yith_sales_free_shipping' );
            }
        }
        // To track rest of the campaigns
        foreach ( $cart->get_cart() as $cart_item_key => $cart_item ) {
            if ( isset( $cart_item['yith_sales'] ) && isset( $cart_item['yith_sales']['campaigns'] ) ) {
                $campaign_type = $cart_item['yith_sales_discounts']['type'];
                array_push( $campaigns, $campaign_type );
                $campaign_total += $cart_item['yith_sales_discounts']['price_base'] - $cart_item['yith_sales_discounts']['price_adjusted'];
            }
        }
        if ( count( $campaigns ) > 0 ) {
            $data = array(
                'label_key'      => 'type',
                'type'  => array_unique( $campaigns ),
                'campaign_count' => count( $campaigns ),
                'campaign_total' => '$' . $campaign_total,
            );
            $this->push(
                'checkout_campaign_type',
                $data
            );
        }
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/Yoast.php.html b/phpunit/html/includes/Listeners/Yoast.php.html new file mode 100644 index 00000000..39a1dcdc --- /dev/null +++ b/phpunit/html/includes/Listeners/Yoast.php.html @@ -0,0 +1,738 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Yoast.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 143
Yoast
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
1806.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 143
 register_hooks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 site_representation_updated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 social_profiles_updated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
42.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 20
 tracking_updated
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 maybe_push_site_representation_event
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
90.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
 maybe_push_social_profiles_event
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 17
 push_other_social_profiles
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 18
 map_params_names_to_hiive_names
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
 map_failures_to_hiive_names
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 is_param_empty
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 get_base_url
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
 clean_social_profiles_failures
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\Listeners;
/**
 * Monitors Yoast events
 */
class Yoast extends Listener {
    // We don't want to track these fields
    private $site_representation_skip_fields = [ 'company_logo_id', 'person_logo_id', 'description' ];
    // The names used for Hiive events tracking are different from the names used for the Yoast options
    private $site_representation_map         = [
        'company_or_person'         => 'site_representation',
        'company_name'              => 'organization_name',
        'company_logo'              => 'organization_logo',
        'person_logo'               => 'logo',
        'company_or_person_user_id' => 'name',
        'website_name'              => 'website_name',
    ];
    private $social_profiles_map         = [
        'facebook_site'     => 'facebook_profile',
        'twitter_site'      => 'twitter_profile',
        'other_social_urls' => 'other_profiles',
    ];
    /**
     * Register the hooks for the listener
     *
     * @return void
     */
    public function register_hooks() {
        // First time configuration
        add_action('wpseo_ftc_post_update_site_representation', array( $this, 'site_representation_updated' ), 10, 3 );
        add_action('wpseo_ftc_post_update_social_profiles', array( $this, 'social_profiles_updated' ), 10, 3 );
        add_action('wpseo_ftc_post_update_enable_tracking', array( $this, 'tracking_updated' ), 10, 3 );
    }
    /**
     * The user just updated their site representation
     *
     * @param array $new_values The new values for the options related to the site representation
     * @param array $old_values The old values for the options related to the site representation
     * @param array $failures   The failures that occurred during the update
     *
     * @return void
     */
    public function site_representation_updated( $new_values, $old_values, $failures ) {
        // All the options are unchanged, opt out
        if ( $new_values === $old_values ) {
            return;
        }
        $mapped_new_values = $this->map_params_names_to_hiive_names( $new_values, $this->site_representation_map, $this->site_representation_skip_fields );
        $mapped_old_values = $this->map_params_names_to_hiive_names( $old_values, $this->site_representation_map, $this->site_representation_skip_fields );
        $mapped_failures   = $this->map_failures_to_hiive_names( $failures, $this->site_representation_map, $this->site_representation_skip_fields );
        foreach ($mapped_new_values as $key => $value) {
            $this->maybe_push_site_representation_event( $key, $value, $mapped_old_values[ $key ], \in_array( $key, $mapped_failures ) );
        }
    }
    /**
     * The user just updated their personal profiles
     *
     * @param array $new_values The new values for the options related to the site representation
     * @param array $old_values The old values for the options related to the site representation
     * @param array $failures   The failures that occurred during the update
     *
     * @return void
     */
    public function social_profiles_updated( $new_values, $old_values, $failures ) {
        // Yoast stores only twitter username, and $new_values stores the pre-processed values
        if ( strpos( $new_values[ 'twitter_site' ], 'twitter.com/' ) !== false ) {
            $new_values[ 'twitter_site' ] = (explode( 'twitter.com/', $new_values[ 'twitter_site' ])[ 1 ] );
        }
        // All the options are unchanged, opt out
        if ( $new_values === $old_values ) {
            return;
        }
        // Remove multiple occurences of other_social_urls;
        $cleaned_failures = $this->clean_social_profiles_failures( $failures );
        $mapped_values     = $this->map_params_names_to_hiive_names( $new_values, $this->social_profiles_map );
        $mapped_old_values = $this->map_params_names_to_hiive_names( $old_values, $this->social_profiles_map );
        $mapped_failures   = $this->map_failures_to_hiive_names( $cleaned_failures, $this->social_profiles_map );
        foreach ($mapped_values as $key => $value) {
            // The option update failed
            if ( \in_array( $key, $mapped_failures ) ) {
                $this->push( "failed_$key", [ 'category' => 'ftc_personal_profiles' ] );
                return;
            }
            if ( $value !== $mapped_old_values[ $key ] ) {
                $this->maybe_push_social_profiles_event( $key, $value, $mapped_old_values[ $key ], \in_array( $key, $mapped_failures ) );
            }
        }
    }
    /**
     * The user updated their tracking preferences
     *
     * @param string $new_value The new value for the option related to tracking
     * @param string $old_value The old value for the option related to tracking
     * @param bool   $failed    Whether the option update failed
     *
     * @return void
     */
    public function tracking_updated( $new_value, $old_value, $failed ) {
        // Option unchanged, opt out
        if ( $new_value === $old_value ) {
            return;
        }
        $failed ? $this->push( "failed_usage_tracking", [ 'category' => 'ftc_tracking' ] ) : $this->push( "changed_usage_tracking", [ 'category' => 'ftc_tracking' ] );
    }
    /**
     * A method used to (maybe) push a site representation-related event to the queue.
     *
     * @param string $key       The option key
     * @param string $value     The new option value
     * @param string $old_value The old option value
     * @param bool   $failure   Whether the option update failed
     *
     * @return void
     */
    private function maybe_push_site_representation_event( $key, $value, $old_value, $failure ) {
        $category = 'ftc_site_representation';
        // The option update failed
        if ( $failure ) {
            $this->push( "failed_$key", [ 'category' => $category] );
            return;
        }
        // The option value changed
        if ( $value !== $old_value ) {
            // The option was set for the first time
            // name is a special case, because it represents the company_or_person_user_id which is initialised to false, and the first time the user saves the site representation step
            // is set either to 0 if the site represents an organisation, or to an integer > 0 if the site represents a person
            if ( $key === 'name' ) {
                if ( $old_value === false && $value === 0 ) {
                    return;
                }
            }
            // Again, name is a special case, because if its old value was 0 and a value different that 0 is being received, it means that the user
            // switched from organisation to person, and then the person id is being set.
            // Once the name is assigned an integer > 0, it can never go back to 0, even if the user switches back to organisation
            // ( it "caches" the last user id that was set)
            if ( ( $this->is_param_empty( $old_value) ) || ( $key === 'name' && $old_value === 0 ) ){
                $this->push( "set_$key", [ 'category' => $category] );
                return;
            }
            // The option was updated
            $data = array(
                'category' => $category,
                'data'     => array(
                    'label_key' => $key,
                    'new_value' => $value
                ),
            );
            $this->push(
                "changed_$key",
                $data
            );
        }
    }
    /**
     * A method used to (maybe) push a social profile-related event to the queue.
     *
     * @param string $key       The option key
     * @param string $value     The new option value
     * @param string $old_value The old option value
     * @param bool   $failure   Whether the option update failed
     *
     * @return void
     */
    private function maybe_push_social_profiles_event( $key, $value, $old_value, $failure ) {
        $category = 'ftc_personal_profiles';
        // The option update failed
        if ( $failure ) {
            $this->push( "failed_$key", [ 'category' => $category] );
            return;
        }
        // The option value changed
        if ( $value !== $old_value ) {
            if ( $key === 'other_profiles' ) {
                $this->push_other_social_profiles( $key, $value, $old_value, $category );
                return;
            }
            // The option was set for the first time
            if ( $this->is_param_empty( $old_value) ){
                $this->push( "set_$key", [ 'category' => $category] );
                return;
            }
            // The option was updated
            $this->push( "changed_$key", [ 'category' => $category ] );
        }
    }
    /**
     * A method used to (maybe) push the other_profiles-related event to the queue.
     *
     * @param string $key       The option key (other_profiles)
     * @param array  $new_value The array of new social profiles
     * @param array  $old_value The array of old social profiles
     * @param string $category  The category of the event
     *
     * @return void
     */
    private function push_other_social_profiles( $key, $new_value, $old_value, $category ) {
        // The option was set for the first time
        if ( $this->is_param_empty( $old_value) ){
            $this->push( "set_$key", [ 'category' => $category] );
            return;
        }
        $changed_profiles = \array_map(
            function( $value ) {
                return $this->get_base_url( \wp_unslash( $value ) );
            },
            $new_value
        );
        // The option was updated
        $data = array(
            'category' => $category,
            'data'     => array(
                'label_key' => $key,
                'new_value' => $changed_profiles
                ),
            );
        
        $this->push( "changed_other_profiles", $data );
    }
    /**
     * Maps the param names to the names used for Hiive events tracking.
     *
     * @param array $params      The params to map.
     * @param array $map         The map to use.
     * @param array $skip_fields The fields to skip.
     *
     * @return array The mapped params.
     */
    private function map_params_names_to_hiive_names( $params, $map, $skip_fields=[] ) {
        $mapped_params = [];
        foreach ( $params as $param_name => $param_value ) {
            if ( in_array( $param_name, $skip_fields, true ) ) {
                continue;
            }
            $new_name                   = $map[ $param_name ];
            $mapped_params[ $new_name ] = $param_value;
        }
        return $mapped_params;
    }
    /**
     * Maps the names of the params which failed the update to the names used for Hiive events tracking.
     *
     * @param array $failures    The params names to map.
     * @param array $map         The map to use.
     * @param array $skip_fields The fields to skip.
     *
     * @return array The mapped params names.
     */
    private function map_failures_to_hiive_names( $failures, $map, $skip_fields=[] ) {
        $mapped_failures = [];
        foreach ( $failures as $failed_field_name) {
            if ( in_array( $failed_field_name, $skip_fields, true ) ) {
                continue;
            }
            $mapped_failures[] = $map[ $failed_field_name ];
        }
        return $mapped_failures;
    }
    /**
     * Checks whether a param is empty.
     *
     * @param mixed $param The param to check.
     *
     * @return bool Whether the param is empty.
     */
    private function is_param_empty( $param ) {
        if ( is_array( $param ) ) {
            return ( count( $param ) === 0 );
        }
        return ( strlen( $param ) === 0 );
    }
    /**
     * Gets the base url of a given url.
     *
     * @param string $url The url.
     *
     * @return string The base url.
     */
    private function get_base_url( $url ) {
        $parts = \parse_url( $url );
        return $parts['scheme'] . '://' . $parts['host'];
    }
    /**
     * Removes multiple occurences of other_social_urls from the failures array
     *
     * @param array $failures The failures array
     *
     * @return array The cleaned failures array
     */
    private function clean_social_profiles_failures ( $failures ) {
        $cleaned_failures = [];
        $other_social_profiles_failed = false;
        foreach ( $failures as $failure ) {
            if ( strpos( $failure, 'other_social_urls' ) === 0 ) {
                $other_social_profiles_failed = true;
                continue;
            }
            $cleaned_failures[] = $failure;
        }
        if ( $other_social_profiles_failed ) {
            $cleaned_failures[] = 'other_social_urls';
        }
        return $cleaned_failures;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/dashboard.html b/phpunit/html/includes/Listeners/dashboard.html new file mode 100644 index 00000000..5cd352ba --- /dev/null +++ b/phpunit/html/includes/Listeners/dashboard.html @@ -0,0 +1,420 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners + + + + + + + +
+
+ +
+
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+ +
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+ +
+ +
+ +
+ + + + + + diff --git a/phpunit/html/includes/Listeners/index.html b/phpunit/html/includes/Listeners/index.html new file mode 100644 index 00000000..532ae5f7 --- /dev/null +++ b/phpunit/html/includes/Listeners/index.html @@ -0,0 +1,456 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Listeners + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 5.93% covered (danger) +
+
+
5.93%
44 / 742
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 75
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 13
Admin.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 24
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
BluehostPlugin.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 57
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 7
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Commerce.php
+
+ 5.92% covered (danger) +
+
+
5.92%
10 / 169
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Content.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 60
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Cron.php
+
+ 73.91% covered (warning) +
+
+
73.91%
17 / 23
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Jetpack.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 53
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Listener.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Plugin.php
+
+ 25.00% covered (danger) +
+
+
25.00%
17 / 68
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
SiteHealth.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 16
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Theme.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 22
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
WPMail.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 10
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
WonderCart.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 88
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Yoast.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 143
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/Logger.php.html b/phpunit/html/includes/Logger.php.html new file mode 100644 index 00000000..f0fd61fd --- /dev/null +++ b/phpunit/html/includes/Logger.php.html @@ -0,0 +1,178 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/Logger.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
Logger
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
 notify
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
12.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
/**
 * Subscribes to the Event Manager and writes event data to a log file
 */
class Logger implements SubscriberInterface {
    /**
     * Method for handling receiving event data
     *
     * @param array $events Array of Event objects representing data about the events that occurred
     */
    public function notify( $events ) {
        foreach ( $events as $event ) {
            if ( ! $event ) {
                return;
            }
            $log = wp_json_encode( $event, JSON_UNESCAPED_SLASHES ) . "\n";
            file_put_contents( dirname( dirname( __FILE__ ) ) . '/debug.log', $log, FILE_APPEND );
        }
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteCapabilities.php.html b/phpunit/html/includes/SiteCapabilities.php.html new file mode 100644 index 00000000..58473d2b --- /dev/null +++ b/phpunit/html/includes/SiteCapabilities.php.html @@ -0,0 +1,339 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SiteCapabilities.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
CRAP
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
SiteCapabilities
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
12.12
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 get
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
 all
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
5 / 5
 exists
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
 fetch
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
5
+
+ 100.00% covered (success) +
+
+
100.00%
12 / 12
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
use NewfoldLabs\WP\Module\Data\Helpers\Transient;
/**
 * Class SiteCapabilities
 *
 * Class that handles fetching, caching, and checking of site capabilities.
 *
 * @package NewfoldLabs\WP\Module\Data
 */
class SiteCapabilities {
    /**
     * Implementation of transient functionality which uses the WordPress options table when an object cache is present.
     *
     * @var Transient
     */
    protected $transient;
    /**
     * Constructor.
     *
     * @param ?Transient $transient Inject instance of Transient class.
     */
    public function __construct( ?Transient $transient = null ) {
        $this->transient = $transient ?? new Transient();
    }
    /**
     * Get the value of a capability.
     *
     * @used-by \NewfoldLabs\WP\Module\AI\SiteGen\SiteGen::check_capabilities()
     * @used-by \NewfoldLabs\WP\Module\AI\Utils\AISearchUtil::check_capabilities()
     * @used-by \NewfoldLabs\WP\Module\AI\Utils\AISearchUtil::check_help_capability()
     * @used-by \NewfoldLabs\WP\Module\ECommerce\ECommerce::__construct()
     * @used-by \NewfoldLabs\WP\Module\HelpCenter\CapabilityController::get_capability()
     * @used-by \NewfoldLabs\WP\Module\Onboarding\Data\Config::get_site_capability()
     *
     * @param string $capability Capability name.
     */
    public function get( string $capability ): bool {
        return $this->exists( $capability ) && $this->all()[ $capability ];
    }
    /**
     * Get all capabilities.
     *
     * @used-by \NewfoldLabs\WP\Module\Runtime\Runtime::prepareRuntime()
     */
    public function all(): array {
        $capabilities = $this->transient->get( 'nfd_site_capabilities' );
        if ( false === $capabilities ) {
            $capabilities = $this->fetch();
            $this->transient->set( 'nfd_site_capabilities', $capabilities, 4 * constant( 'HOUR_IN_SECONDS' ) );
        }
        return $capabilities;
    }
    /**
     * Check if a capability exists.
     *
     * @param string $capability Capability name.
     */
    protected function exists( string $capability ): bool {
        return array_key_exists( $capability, $this->all() );
    }
    /**
     * Fetch all capabilities from Hiive.
     *
     * @return array<string, bool>
     */
    protected function fetch(): array {
        $capabilities = array();
        $response = wp_remote_get(
            constant( 'NFD_HIIVE_URL' ) . '/sites/v1/capabilities',
            array(
                'headers' => array(
                    'Content-Type'  => 'application/json',
                    'Accept'        => 'application/json',
                    'Authorization' => 'Bearer ' . HiiveConnection::get_auth_token(),
                ),
            )
        );
        if ( wp_remote_retrieve_response_code( $response ) === 200 && ! is_wp_error( $response ) ) {
            $body = wp_remote_retrieve_body( $response );
            $data = json_decode( $body, true );
            if ( $data && is_array( $data ) ) {
                $capabilities = $data;
            }
        }
        return $capabilities;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteClassification/PrimaryType.php.html b/phpunit/html/includes/SiteClassification/PrimaryType.php.html new file mode 100644 index 00000000..25eb1bf0 --- /dev/null +++ b/phpunit/html/includes/SiteClassification/PrimaryType.php.html @@ -0,0 +1,269 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/PrimaryType.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 23
PrimaryType
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
132.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 23
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 validate
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 9
 instantiate_from_option
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
42.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\SiteClassification;
/**
 * Class PrimaryType
 *
 * Class that manages the primary site classification type.
 *
 * @package NewfoldLabs\WP\Module\Data
 */
final class PrimaryType extends Types {
    /**
     * Name of the site classification primary option.
     *
     * @var string
     */
    public static $primary_option_name = 'nfd_data_site_classification_primary';
    /**
     * Constructor for PrimaryType.
     *
     * @param string $refers Indicates what the value refers to, slug(from default slugs)|custom(from a custom input field).
     * @param string $value The actual value of the site classification type.
     */
    public function __construct( $refers, $value ) {
        parent::__construct( self::$primary_option_name, $refers, $value );
    }
    /**
     * Validates the data.
     *
     * @return boolean
     */
    public function validate() {
        // If the primary type refers to a custom value (from a user input field) we cannot validate the value.
        if ( 'custom' === $this->refers ) {
            return true;
        }
        // Retrieve the data to validate.
        $classification = SiteClassification::get();
        // Checks if the value is a valid primary type slug.
        if ( ! isset( $classification['types'] ) || ! isset( $classification['types'][ $this->value ] ) ) {
            return false;
        }
        return true;
    }
    /**
     * Instantiates a class object from the data stored in the option.
     *
     * @return PrimaryType|boolean
     */
    public static function instantiate_from_option() {
        $data = get_option( self::$primary_option_name, false );
        if ( ! $data || ! is_array( $data ) || ! isset( $data['refers'] ) || ! isset( $data['value'] ) ) {
            delete_option( self::$primary_option_name );
            return false;
        }
        $instance = new static( $data['refers'], $data['value'] );
        if ( ! $instance->validate() ) {
            delete_option( self::$primary_option_name );
            return false;
        }
        return $instance;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteClassification/SecondaryType.php.html b/phpunit/html/includes/SiteClassification/SecondaryType.php.html new file mode 100644 index 00000000..af9e3042 --- /dev/null +++ b/phpunit/html/includes/SiteClassification/SecondaryType.php.html @@ -0,0 +1,276 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/SecondaryType.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
SecondaryType
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
156.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 validate
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
 instantiate_from_option
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
42.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\SiteClassification;
/**
 * Class SecondaryType
 *
 * Class that manages the secondary site classification type.
 *
 * @package NewfoldLabs\WP\Module\Data
 */
final class SecondaryType extends Types {
    /**
     * Name of the site classification secondary option.
     *
     * @var string
     */
    public static $secondary_option_name = 'nfd_data_site_classification_secondary';
    /**
     * Constructor for the SecondaryType class.
     *
     * @param string $refers Indicates what the value refers to, slug(from default slugs)|custom(from a custom input field).
     * @param string $value The actual value of the site classification type.
     */
    public function __construct( $refers, $value ) {
        parent::__construct( self::$secondary_option_name, $refers, $value );
    }
    /**
     * Validates the data.
     *
     * @return boolean
     */
    public function validate() {
        // If the secondary type refers to a custom value (from a user input field) we cannot validate the value.
        if ( 'custom' === $this->refers ) {
            return true;
        }
        // Retrieve the selected primary type.
        $primary = PrimaryType::instantiate_from_option();
        // If it does not exist, then give benefit of doubt.
        if ( ! ( $primary instanceof PrimaryType ) ) {
            return true;
        }
        $classification  = SiteClassification::get();
        $secondary_types = $classification['types'][ $primary->value ]['secondaryTypes'];
        // If secondaryTypes does not exist or the selected slug does not exist then return false.
        if ( ! isset( $secondary_types ) || ! isset( $secondary_types[ $this->value ] ) ) {
            return false;
        }
        return true;
    }
    /**
     * Instantiates a class object from the data stored in the option.
     *
     * @return SecondaryType|boolean
     */
    public static function instantiate_from_option() {
        $data = get_option( self::$secondary_option_name, false );
        if ( ! $data || ! is_array( $data ) || ! isset( $data['refers'] ) || ! isset( $data['value'] ) ) {
            delete_option( self::$secondary_option_name );
            return false;
        }
        $instance = new static( $data['refers'], $data['value'] );
        if ( ! $instance->validate() ) {
            delete_option( self::$secondary_option_name );
            return false;
        }
        return $instance;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteClassification/SiteClassification.php.html b/phpunit/html/includes/SiteClassification/SiteClassification.php.html new file mode 100644 index 00000000..6ef9cf6a --- /dev/null +++ b/phpunit/html/includes/SiteClassification/SiteClassification.php.html @@ -0,0 +1,317 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/SiteClassification.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 58
SiteClassification
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
210.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 58
 get
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
20.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 20
 fetch_from_worker
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 22
 fetch_from_static_file
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
30.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 16
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\SiteClassification;
use NewfoldLabs\WP\Module\Data\HiiveWorker;
/**
 * Class SiteClassification
 *
 * Class that handles fetching and caching of site classification data.
 *
 * @package NewfoldLabs\WP\Module\Data
 */
class SiteClassification {
    /**
     * Name of the site classification data transient.
     *
     * @var string
     */
    public static $transient_name = 'nfd_data_site_classification';
    /**
     * Retrieves the site classification data.
     *
     * @return array
     */
    public static function get() {
        // Get the current locale of the site.
        $locale = str_replace( '_', '-', get_locale() );
        $transient_name = self::$transient_name . '-' . $locale;
        // Checks the transient for data.
        $classification = get_transient( $transient_name );
        if ( false !== $classification ) {
            return $classification;
        }
        // Fetch data from the worker.
        $classification = self::fetch_from_worker( $locale );
        if ( ! empty( $classification ) ) {
            set_transient( $transient_name, $classification, DAY_IN_SECONDS );
            return $classification;
        }
        // Fetch data from the static JSON file.
        $classification = self::fetch_from_static_file( $locale );
        if ( ! empty( $classification ) ) {
            $classification['static'] = true;
            set_transient( $transient_name, $classification, HOUR_IN_SECONDS );
            return $classification;
        }
        // Cache an empty array for an hour if no data could be retrieved.
        set_transient( $transient_name, array(), HOUR_IN_SECONDS );
        return array();
    }
    /**
     * Fetch site classification data from the CF worker.
     *
     * @param string $locale The locale in kebab case.
     * @return array
     */
    public static function fetch_from_worker( $locale = 'en-US' ) {
        $worker   = new HiiveWorker( 'site-classification' );
        $response = $worker->request(
            'GET',
            array(
                'headers' => array(
                    'Accept' => 'application/json',
                ),
                'body'    => array(
                    'locale' => $locale,
                ),
            )
        );
        if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
            return array();
        }
        $body = wp_remote_retrieve_body( $response );
        $data = json_decode( $body, true );
        if ( ! $data || ! is_array( $data ) ) {
            return array();
        }
        return $data;
    }
    /**
     * Fetch site classification data from the static JSON file.
     *
     * @param string $locale The locale in kebab case.
     * @return array
     */
    public static function fetch_from_static_file( $locale = 'en-US' ) {
        $filename = realpath( __DIR__ . "/../Data/Static/site-classification-{$locale}.json" );
        if ( ! file_exists( $filename ) ) {
            if ( 'en-US' === $locale ) {
                return array();
            }
            // If the file does not exist and the locale is not en-US, then default to the en-US file.
            $filename = realpath( __DIR__ . '/../Data/Static/site-classification-en-US.json' );
            if ( ! file_exists( $filename ) ) {
                return array();
            }
        }
        $data = json_decode( file_get_contents( $filename ), true );
        if ( ! $data ) {
            return array();
        }
        return $data;
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteClassification/Types.php.html b/phpunit/html/includes/SiteClassification/Types.php.html new file mode 100644 index 00000000..2cabd12c --- /dev/null +++ b/phpunit/html/includes/SiteClassification/Types.php.html @@ -0,0 +1,346 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/Types.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 19
Types
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
56.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 19
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
 set_refers
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 set_value
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
 save
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
6.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 to_array
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
 validate
n/a
0 / 0
1
n/a
0 / 0
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\SiteClassification;
/**
 * Base class with common functionality across different site classification types.
 */
abstract class Types {
    /**
     * The option name to store the data.
     *
     * @var string
     */
    public $option_name;
    /**
     * Indicates what the value refers to, slug(from default slugs)|custom(from a custom input field).
     *
     * @var string
     */
    public $refers;
    /**
     * The actual value of the site classification type.
     *
     * @var string
     */
    public $value;
    /**
     * Constructor for the Type class.
     *
     * @param string $option_name The option name to store the data.
     * @param string $refers Indicates what the value refers to, slug(from default slugs)|custom(from a custom input field).
     * @param string $value The actual value of the site classification type.
     */
    public function __construct( $option_name, $refers, $value ) {
        $this->option_name = $option_name;
        $this->refers      = $refers;
        $this->value       = $value;
    }
    /**
     * Sets the refers property.
     *
     * @param string $refers Indicates what the value refers to, slug(from default slugs)|custom(from a custom input field).
     * @return void
     */
    public function set_refers( $refers ) {
        $this->refers = $refers;
    }
    /**
     * Sets the value property.
     *
     * @param string $value The actual value of the site classification type.
     * @return void
     */
    public function set_value( $value ) {
        $this->value = $value;
    }
    /**
     * Saves data to the option after validation.
     *
     * @return boolean
     */
    public function save() {
        if ( ! $this->validate() ) {
            return false;
        }
        update_option( $this->option_name, $this->to_array() );
        return true;
    }
    /**
     * Converts the object to an array.
     *
     * @return array
     */
    public function to_array() {
        return array(
            'refers' => $this->refers,
            'value'  => $this->value,
        );
    }
    /**
     * Validates the site classification type data.
     *
     * @return boolean
     */
    abstract public function validate();
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteClassification/dashboard.html b/phpunit/html/includes/SiteClassification/dashboard.html new file mode 100644 index 00000000..e57c53bf --- /dev/null +++ b/phpunit/html/includes/SiteClassification/dashboard.html @@ -0,0 +1,315 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification + + + + + + + +
+ +
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+ +
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+ +
+
+

Project Risks

+ +
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/SiteClassification/index.html b/phpunit/html/includes/SiteClassification/index.html new file mode 100644 index 00000000..551005c3 --- /dev/null +++ b/phpunit/html/includes/SiteClassification/index.html @@ -0,0 +1,204 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 128
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
PrimaryType.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 23
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
SecondaryType.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 28
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
SiteClassification.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 58
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Types.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 19
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 5
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/SubscriberInterface.php.html b/phpunit/html/includes/SubscriberInterface.php.html new file mode 100644 index 00000000..32db1d50 --- /dev/null +++ b/phpunit/html/includes/SubscriberInterface.php.html @@ -0,0 +1,105 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/SubscriberInterface.php + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
+
+ + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data;
/**
 * Subscriber interface for registering to receive event notifications
 */
interface SubscriberInterface {
    /**
     * Method for handling receiving event data
     *
     * @param array $events Array of Event objects representing data about the events that occurred
     */
    public function notify( $events );
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/WonderBlocks/Requests/Fetch.php.html b/phpunit/html/includes/WonderBlocks/Requests/Fetch.php.html new file mode 100644 index 00000000..a3403161 --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/Requests/Fetch.php.html @@ -0,0 +1,391 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests/Fetch.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
CRAP
+
+ 41.67% covered (danger) +
+
+
41.67%
10 / 24
Fetch
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
25.08
+
+ 41.67% covered (danger) +
+
+
41.67%
10 / 24
 __construct
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.03
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
 get_url
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
3.14
+
+ 75.00% covered (warning) +
+
+
75.00%
6 / 8
 get_args
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
 should_cache
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 get_cache_timeout
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
 get_md5_hash
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\WonderBlocks\Requests;
use NewfoldLabs\WP\Module\Data\SiteClassification\PrimaryType;
use NewfoldLabs\WP\Module\Data\SiteClassification\SecondaryType;
/**
 * Class Fetch
 *
 * Defines the structure of a WonderBlock fetch request.
 */
class Fetch extends Request {
    /**
     * The type of data to fetch.
     *
     * @var string
     */
    private $type;
    /**
     * A particular slug of data to fetch.
     *
     * @var string
     */
    private $slug;
    /**
     * The primary type query parameter. {@see PrimaryType} for information on primary types.
     *
     * @var string
     */
    private $primary_type;
    /**
     * The secondary type query parameter. {@see SecondaryType} for information on secondary types.
     *
     * @var string
     */
    private $secondary_type;
    /**
     * The category of data to fetch.
     *
     * @var string
     */
    private $category;
    /**
     * Defines whether or not the handler should cache the response data.
     *
     * @var bool
     */
    private $should_cache = true;
    /**
     * Defines the timeout for the cache.
     *
     * @var int
     */
    private $cache_timeout;
    /**
     * Constructor for the Fetch class.
     *
     * @param array{endpoint?:string,type?:string,slug?:string,primary_type?:string,secondary_string:string,category?:string,should_cache?:bool,cache_timeout?:int} $args An array of arguments that map to the class variables.
     */
    public function __construct( $args = array() ) {
        $this->cache_timeout = constant( 'DAY_IN_SECONDS' );
        foreach ( $args as $arg => $value ) {
            $this->$arg = $value;
        }
    }
    /**
     * Fetch the correct API URL.
     *
     * @return string
     */
    public function get_url() {
        $url = '';
        if ( isset( $this->endpoint ) ) {
            $url = $this->get_base_url() . "/{$this->endpoint}";
            if ( isset( $this->slug ) ) {
                $url .= "/{$this->slug}";
            }
        }
        return $url;
    }
    /**
     * Fetch all the valid arguments.
     *
     * @return array
     */
    public function get_args() {
        return array(
            'type'           => $this->type,
            'primary_type'   => $this->primary_type,
            'secondary_type' => $this->secondary_type,
            'category'       => $this->category,
        );
    }
    /**
     * Determines whether the response for this request should be cached.
     */
    public function should_cache(): bool {
        return $this->should_cache;
    }
    /**
     * Get the cache timeout.
     */
    public function get_cache_timeout(): int {
        return $this->cache_timeout;
    }
    /**
     * Get the MD5 hash to easily identify a request.
     */
    public function get_md5_hash(): string {
        $args = $this->get_args();
        // Slug is not part of args as it becomes a part of the URL path.
        $args['slug'] = $this->slug;
        return md5( serialize( $args ) );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/WonderBlocks/Requests/Request.php.html b/phpunit/html/includes/WonderBlocks/Requests/Request.php.html new file mode 100644 index 00000000..be4fc27a --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/Requests/Request.php.html @@ -0,0 +1,240 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests/Request.php + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 50.00% covered (danger) +
+
+
50.00%
1 / 2
CRAP
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
Request
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 50.00% covered (danger) +
+
+
50.00%
1 / 2
5.20
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
 get_base_url
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
3.14
+
+ 75.00% covered (warning) +
+
+
75.00%
3 / 4
 get_endpoint
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
1
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
 get_md5_hash
n/a
0 / 0
1
n/a
0 / 0
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\WonderBlocks\Requests;
/**
 * Base class for WonderBlock Requests.
 */
abstract class Request {
    /**
     * The production base URL.
     *
     * @var string
     */
    protected static $production_base_url = 'https://patterns.hiive.cloud';
    /**
     * The local base URL.
     *
     * @var string
     */
    protected static $local_base_url = 'http://localhost:8888';
    /**
     * The endpoint to request.
     *
     * @var string
     */
    protected $endpoint;
    /**
     * Get the base URL
     */
    public function get_base_url(): string {
        if ( defined( 'NFD_DATA_WB_DEV_MODE' ) && constant( 'NFD_DATA_WB_DEV_MODE' ) ) {
            return self::$local_base_url;
        }
        return self::$production_base_url;
    }
    /**
     * Get the request endpoint.
     */
    public function get_endpoint(): string {
        return $this->endpoint;
    }
    /**
     * This function should return a MD5 hashed string of the request parameters that can uniquely identify it.
     */
    abstract public function get_md5_hash(): string;
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/WonderBlocks/Requests/dashboard.html b/phpunit/html/includes/WonderBlocks/Requests/dashboard.html new file mode 100644 index 00000000..4d341827 --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/Requests/dashboard.html @@ -0,0 +1,300 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests + + + + + + + +
+ +
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+ +
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + +
MethodCoverage
get_args0%
should_cache0%
get_cache_timeout0%
get_md5_hash0%
get_url75%
get_base_url75%
__construct80%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + + + +
MethodCRAP
get_base_url3
get_url3
__construct2
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/WonderBlocks/Requests/index.html b/phpunit/html/includes/WonderBlocks/Requests/index.html new file mode 100644 index 00000000..e179ff52 --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/Requests/index.html @@ -0,0 +1,149 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 48.28% covered (danger) +
+
+
48.28%
14 / 29
+
+ 12.50% covered (danger) +
+
+
12.50%
1 / 8
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
Fetch.php
+
+ 41.67% covered (danger) +
+
+
41.67%
10 / 24
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 6
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Request.php
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
+
+ 50.00% covered (danger) +
+
+
50.00%
1 / 2
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/WonderBlocks/WonderBlocks.php.html b/phpunit/html/includes/WonderBlocks/WonderBlocks.php.html new file mode 100644 index 00000000..3f073bab --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/WonderBlocks.php.html @@ -0,0 +1,288 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/WonderBlocks.php + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 33.33% covered (danger) +
+
+
33.33%
1 / 3
CRAP
+
+ 52.50% covered (warning) +
+
+
52.50%
21 / 40
WonderBlocks
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 33.33% covered (danger) +
+
+
33.33%
1 / 3
31.11
+
+ 52.50% covered (warning) +
+
+
52.50%
21 / 40
 fetch
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
19.55
+
+ 54.29% covered (warning) +
+
+
54.29%
19 / 35
 is_dev_mode
+
+ 100.00% covered (success) +
+
+
100.00%
1 / 1
2
+
+ 100.00% covered (success) +
+
+
100.00%
2 / 2
 clear_cache
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
2.00
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
namespace NewfoldLabs\WP\Module\Data\WonderBlocks;
use NewfoldLabs\WP\Module\Data\HiiveConnection;
use NewfoldLabs\WP\Module\Data\WonderBlocks\Requests\Fetch;
use NewfoldLabs\WP\Module\Data\WonderBlocks\Requests\Request;
/**
 * Class WonderBlocks
 *
 * Handler for WonderBlock requests.
 */
class WonderBlocks {
    /**
     * Handle a WonderBlock fetch request.
     *
     * @param Fetch $request The request object.
     * @return array|false
     */
    public static function fetch( Fetch $request ) {
        // Generate a unique hash for the request object.
        $hash     = $request->get_md5_hash();
        $endpoint = $request->get_endpoint();
        // Do not use cache in development mode.
        if ( ! self::is_dev_mode() ) {
            // If the transient exists, return data from the transient. Add endpoint for batch clearing endpoint transients.
            $data = get_transient( "nfd_data_wb_{$endpoint}_{$hash}" );
            if ( ! empty( $data ) ) {
                return $data;
            }
        }
        $url = $request->get_url();
        if ( empty( $url ) ) {
            return false;
        }
        // Populate valid request arguments.
        $args = array(
            'headers' => array(
                'X-Hiive-Token' => HiiveConnection::get_auth_token(),
            ),
            'body'    => $request->get_args(),
            'method'  => \WP_REST_Server::READABLE,
        );
        $response = wp_remote_request(
            $url,
            $args
        );
        if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
            return false;
        }
        $body = wp_remote_retrieve_body( $response );
        $data = json_decode( $body, true );
        if ( ! $data || ! is_array( $data ) || ! isset( $data['data'] ) ) {
            return false;
        }
        // Cache the response data if specified.
        if ( $request->should_cache() ) {
            set_transient( "nfd_data_wb_{$endpoint}_{$hash}", $data['data'], $request->get_cache_timeout() );
        }
        return $data['data'];
    }
    /**
     * Check is the NFD_DATA_WB_DEV_MODE defined and defined as true.
     */
    protected static function is_dev_mode(): bool {
        return defined( 'NFD_DATA_WB_DEV_MODE' )
            && constant( 'NFD_DATA_WB_DEV_MODE' );
    }
    /**
     * Clear the cache related a particular request object.
     *
     * @param Request $request An instance of the Request class.
     */
    public static function clear_cache( Request $request ): bool {
        $endpoint = $request->get_endpoint();
        $hash     = $request->get_md5_hash();
        return delete_transient( "nfd_data_wb_{$endpoint}_{$hash}" );
    }
}
+ +
+ + + + + + diff --git a/phpunit/html/includes/WonderBlocks/dashboard.html b/phpunit/html/includes/WonderBlocks/dashboard.html new file mode 100644 index 00000000..adfdf877 --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/dashboard.html @@ -0,0 +1,304 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks + + + + + + + +
+ +
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+ +
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + + + +
MethodCoverage
get_args0%
should_cache0%
get_cache_timeout0%
get_md5_hash0%
clear_cache0%
fetch54%
get_url75%
get_base_url75%
__construct80%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + + + + +
MethodCRAP
fetch19
get_base_url3
get_url3
__construct2
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/WonderBlocks/index.html b/phpunit/html/includes/WonderBlocks/index.html new file mode 100644 index 00000000..daca81f7 --- /dev/null +++ b/phpunit/html/includes/WonderBlocks/index.html @@ -0,0 +1,148 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks + + + + + + + +
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 50.72% covered (warning) +
+
+
50.72%
35 / 69
+
+ 18.18% covered (danger) +
+
+
18.18%
2 / 11
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
Requests
+
+ 48.28% covered (danger) +
+
+
48.28%
14 / 29
+
+ 12.50% covered (danger) +
+
+
12.50%
1 / 8
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
WonderBlocks.php
+
+ 52.50% covered (warning) +
+
+
52.50%
21 / 40
+
+ 33.33% covered (danger) +
+
+
33.33%
1 / 3
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ +
+ + diff --git a/phpunit/html/includes/dashboard.html b/phpunit/html/includes/dashboard.html new file mode 100644 index 00000000..c9aa916f --- /dev/null +++ b/phpunit/html/includes/dashboard.html @@ -0,0 +1,587 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/includes + + + + + + + +
+
+
+ +
+
+
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClassCoverage
Queryable0%
NewfoldLabs\WP\Module\Data\Listeners\Content0%
NewfoldLabs\WP\Module\Data\SiteClassification\Types0%
NewfoldLabs\WP\Module\Data\SiteClassification\SiteClassification0%
NewfoldLabs\WP\Module\Data\SiteClassification\SecondaryType0%
NewfoldLabs\WP\Module\Data\SiteClassification\PrimaryType0%
NewfoldLabs\WP\Module\Data\Logger0%
NewfoldLabs\WP\Module\Data\Listeners\Yoast0%
NewfoldLabs\WP\Module\Data\Listeners\WonderCart0%
NewfoldLabs\WP\Module\Data\Listeners\WPMail0%
NewfoldLabs\WP\Module\Data\Listeners\Theme0%
NewfoldLabs\WP\Module\Data\Listeners\SiteHealth0%
NewfoldLabs\WP\Module\Data\Listeners\Listener0%
NewfoldLabs\WP\Module\Data\Listeners\Jetpack0%
NewfoldLabs\WP\Module\Data\Helpers\SiteHealth0%
NewfoldLabs\WP\Module\Data\Helpers\Plugin0%
NewfoldLabs\WP\Module\Data\EventQueue\EventQueue0%
NewfoldLabs\WP\Module\Data\Listeners\BluehostPlugin0%
NewfoldLabs\WP\Module\Data\EventQueue\Queues\BatchQueue0%
NewfoldLabs\WP\Module\Data\Listeners\Admin0%
NewfoldLabs\WP\Module\Data\HiiveWorker0%
NewfoldLabs\WP\Module\Data\Helpers\Encryption0%
NewfoldLabs\WP\Module\Data\Listeners\Commerce5%
NewfoldLabs\WP\Module\Data\API\Events10%
NewfoldLabs\WP\Module\Data\Listeners\Plugin25%
NewfoldLabs\WP\Module\Data\WonderBlocks\Requests\Fetch41%
NewfoldLabs\WP\Module\Data\Data49%
NewfoldLabs\WP\Module\Data\WonderBlocks\WonderBlocks52%
NewfoldLabs\WP\Module\Data\EventManager58%
NewfoldLabs\WP\Module\Data\HiiveConnection66%
NewfoldLabs\WP\Module\Data\Helpers\Transient72%
NewfoldLabs\WP\Module\Data\Listeners\Cron73%
NewfoldLabs\WP\Module\Data\WonderBlocks\Requests\Request80%
+
+
+ +
+
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodCoverage
__construct0%
mojo_preview0%
deleted0%
installed0%
register_hooks0%
tests_run0%
register_hooks0%
theme_changed0%
browse_wporg_themes0%
deactivated0%
register_hooks0%
mail_succeeded0%
register_hooks0%
register_campaign0%
create_campaign_modal_open0%
campaign_selected0%
save_deleted0%
activated0%
checkout_campaigns_used0%
connected0%
product_created_or_updated0%
register_routes0%
post_status0%
count_posts0%
comment_status0%
register_hooks0%
module_enabled0%
register_hooks0%
module_disabled0%
publicize0%
detect_plugin_activation0%
__construct0%
push0%
get_class_name0%
campaign_abandoned0%
register_hooks0%
paypal_connection0%
to_array0%
fetch_from_worker0%
fetch_from_static_file0%
__construct0%
set_refers0%
set_value0%
save0%
get_args0%
instantiate_from_option0%
should_cache0%
get_cache_timeout0%
get_md5_hash0%
clear_cache0%
query0%
table0%
get0%
validate0%
site_representation_updated0%
map_failures_to_hiive_names0%
social_profiles_updated0%
tracking_updated0%
maybe_push_site_representation_event0%
maybe_push_social_profiles_event0%
push_other_social_profiles0%
map_params_names_to_hiive_names0%
is_param_empty0%
__construct0%
get_base_url0%
clean_social_profiles_failures0%
notify0%
__construct0%
__construct0%
validate0%
instantiate_from_option0%
ecomdash_connected0%
register_hooks0%
stripe_connection0%
collect0%
count0%
__construct0%
get_key0%
get_salt0%
encrypt0%
decrypt0%
collect_installed0%
reserve0%
get_data0%
does_it_autoupdate0%
get_raw_data0%
shippo_connection0%
calculate_score0%
delete0%
release0%
remove0%
__construct0%
add_minutely_schedule0%
create_item_permissions_check0%
create_items0%
__construct0%
init0%
initialize_rest_endpoint0%
rest_api_init0%
get_subscribers0%
pull0%
get_listeners0%
getInstance0%
__construct0%
container0%
queue0%
__construct0%
push0%
__call0%
get_safe_data0%
register_verification_hooks0%
site_launch0%
razorpay_connection0%
thank_you_page0%
checkout_views0%
site_cart_views0%
orders_count0%
products_count0%
on_payment0%
rest_api_init0%
feature_disable0%
feature_enable0%
staging0%
sso_fail0%
sso_success0%
register_hooks0%
register_hooks0%
logout0%
ajax_verify0%
verify_token0%
throttle0%
get_throttle_interval0%
is_throttled0%
bulkInsert0%
login0%
__construct0%
request0%
view0%
register_hooks0%
initialize_listeners33%
send_saved_events_batch45%
create_item50%
fetch54%
updated57%
authenticate65%
woocommerce_hpos_enabled66%
update66%
installed_or_updated69%
add_weekly_schedule71%
get_url75%
get_base_url75%
delete_token_on_401_response75%
shutdown78%
__construct80%
register_hooks80%
send_event80%
+
+
+
+

Project Risks

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodCRAP
get_safe_data272
maybe_push_site_representation_event90
checkout_campaigns_used72
post_status56
social_profiles_updated42
instantiate_from_option42
instantiate_from_option42
pull30
get_data30
detect_plugin_activation30
get_throttle_interval30
ecomdash_connected30
maybe_push_social_profiles_event30
validate30
fetch_from_worker30
fetch_from_static_file30
create_items30
login30
clean_social_profiles_failures20
validate20
mojo_preview20
get20
paypal_connection20
stripe_connection20
shippo_connection20
razorpay_connection20
orders_count20
products_count20
bulkInsert20
collect_installed20
decrypt20
init20
fetch19
send_saved_events_batch18
authenticate12
verify_token12
get_salt12
tracking_updated12
get_key12
map_params_names_to_hiive_names12
map_failures_to_hiive_names12
comment_status12
site_representation_updated12
encrypt12
notify12
add_minutely_schedule12
view12
initialize_listeners8
shutdown7
installed_or_updated7
updated6
getInstance6
__construct6
push_other_social_profiles6
push6
save6
is_param_empty6
register_campaign6
create_campaign_modal_open6
does_it_autoupdate6
__construct6
ajax_verify6
__construct6
__call6
site_cart_views6
thank_you_page6
delete6
calculate_score6
get_raw_data6
create_item_permissions_check6
publicize6
collect6
register_hooks6
deleted6
theme_changed6
browse_wporg_themes6
create_item6
woocommerce_hpos_enabled5
add_weekly_schedule3
delete_token_on_401_response3
get_url3
get_base_url3
send_event3
register_hooks2
__construct2
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/includes/index.html b/phpunit/html/includes/index.html new file mode 100644 index 00000000..087c988e --- /dev/null +++ b/phpunit/html/includes/index.html @@ -0,0 +1,468 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/includes + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 19.38% covered (danger) +
+
+
19.38%
308 / 1589
+
+ 13.11% covered (danger) +
+
+
13.11%
24 / 183
+
+ 2.78% covered (danger) +
+
+
2.78%
1 / 36
API
+
+ 26.53% covered (danger) +
+
+
26.53%
26 / 98
+
+ 37.50% covered (danger) +
+
+
37.50%
3 / 8
+
+ 50.00% covered (danger) +
+
+
50.00%
1 / 2
EventQueue
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 101
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
Helpers
+
+ 11.27% covered (danger) +
+
+
11.27%
16 / 142
+
+ 17.65% covered (danger) +
+
+
17.65%
3 / 17
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
Listeners
+
+ 5.93% covered (danger) +
+
+
5.93%
44 / 742
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 75
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 13
SiteClassification
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 128
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 14
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 4
WonderBlocks
+
+ 50.72% covered (warning) +
+
+
50.72%
35 / 69
+
+ 18.18% covered (danger) +
+
+
18.18%
2 / 11
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 3
Data.php
+
+ 48.28% covered (danger) +
+
+
48.28%
28 / 58
+
+ 20.00% covered (danger) +
+
+
20.00%
1 / 5
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Event.php
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
EventManager.php
+
+ 58.06% covered (warning) +
+
+
58.06%
36 / 62
+
+ 38.46% covered (danger) +
+
+
38.46%
5 / 13
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
HiiveConnection.php
+
+ 66.93% covered (warning) +
+
+
66.93%
85 / 127
+
+ 35.29% covered (danger) +
+
+
35.29%
6 / 17
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
HiiveWorker.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 12
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 2
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
Logger.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 8
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
SiteCapabilities.php
+
+ 90.48% covered (success) +
+
+
90.48%
19 / 21
+
+ 80.00% covered (warning) +
+
+
80.00%
4 / 5
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
SubscriberInterface.php
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
+
+ +
+ + diff --git a/phpunit/html/index.html b/phpunit/html/index.html new file mode 100644 index 00000000..13204943 --- /dev/null +++ b/phpunit/html/index.html @@ -0,0 +1,136 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 19.13% covered (danger) +
+
+
19.13%
308 / 1610
+
+ 13.11% covered (danger) +
+
+
13.11%
24 / 183
+
+ 2.78% covered (danger) +
+
+
2.78%
1 / 36
includes
+
+ 19.38% covered (danger) +
+
+
19.38%
308 / 1589
+
+ 13.11% covered (danger) +
+
+
13.11%
24 / 183
+
+ 2.78% covered (danger) +
+
+
2.78%
1 / 36
upgrades
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 21
n/a
0 / 0
n/a
0 / 0
+
+ +
+ + diff --git a/phpunit/html/upgrades/2.3.1.php.html b/phpunit/html/upgrades/2.3.1.php.html new file mode 100644 index 00000000..9fd01cef --- /dev/null +++ b/phpunit/html/upgrades/2.3.1.php.html @@ -0,0 +1,97 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/upgrades/2.3.1.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ + + + + + + +
<?php
nfd_create_event_queue_table();
+ +
+ + + + + + diff --git a/phpunit/html/upgrades/2.4.2.php.html b/phpunit/html/upgrades/2.4.2.php.html new file mode 100644 index 00000000..cf4ae5ba --- /dev/null +++ b/phpunit/html/upgrades/2.4.2.php.html @@ -0,0 +1,97 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/upgrades/2.4.2.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
+
+ + + + + + + +
<?php
delete_transient( 'nfd_site_capabilities' );
+ +
+ + + + + + diff --git a/phpunit/html/upgrades/2.4.22.php.html b/phpunit/html/upgrades/2.4.22.php.html new file mode 100644 index 00000000..07c2706a --- /dev/null +++ b/phpunit/html/upgrades/2.4.22.php.html @@ -0,0 +1,118 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/upgrades/2.4.22.php + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 19
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?php
use NewfoldLabs\WP\ModuleLoader\Container;
add_action(
    'newfold_container_set',
    function ( Container $container ) {
        $brand_code = array(
            'bluehost'      => '86241',
            'hostgator'     => '57686',
            'web'           => '86239',
            'crazy-domains' => '57687',
            'default'       => '86240',
        );
        $brand      = $container->plugin()->id;
        if ( is_plugin_active( 'jetpack/jetpack.php' ) ) {
            if ( empty( $brand ) || ! array_key_exists( $brand, $brand_code ) ) {
                    $brand = 'default';
            }
            $jetpack_affiliate_code = get_option( 'jetpack_affiliate_code' );
            ! $jetpack_affiliate_code && update_option( 'jetpack_affiliate_code', $brand_code[ $brand ] );
        }
    }
);
+ +
+ + + + + + diff --git a/phpunit/html/upgrades/dashboard.html b/phpunit/html/upgrades/dashboard.html new file mode 100644 index 00000000..89cdbd6f --- /dev/null +++ b/phpunit/html/upgrades/dashboard.html @@ -0,0 +1,284 @@ + + + + + Dashboard for /home/runner/work/wp-module-data/wp-module-data/upgrades + + + + + + + +
+
+
+ +
+
+
+
+
+
+

Classes

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + +
ClassCoverage
+
+
+
+

Project Risks

+
+ + + + + + + + + + +
ClassCRAP
+
+
+
+
+
+

Methods

+
+
+
+
+

Coverage Distribution

+
+ +
+
+
+

Complexity

+
+ +
+
+
+
+
+

Insufficient Coverage

+
+ + + + + + + + + + +
MethodCoverage
+
+
+
+

Project Risks

+
+ + + + + + + + + + +
MethodCRAP
+
+
+
+ +
+ + + + + + diff --git a/phpunit/html/upgrades/index.html b/phpunit/html/upgrades/index.html new file mode 100644 index 00000000..4932dc87 --- /dev/null +++ b/phpunit/html/upgrades/index.html @@ -0,0 +1,135 @@ + + + + + Code Coverage for /home/runner/work/wp-module-data/wp-module-data/upgrades + + + + + + + +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 21
n/a
0 / 0
n/a
0 / 0
2.3.1.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
n/a
0 / 0
n/a
0 / 0
2.4.2.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 1
n/a
0 / 0
n/a
0 / 0
2.4.22.php
+
+ 0.00% covered (danger) +
+
+
0.00%
0 / 19
n/a
0 / 0
n/a
0 / 0
+
+ +
+ + diff --git a/phpunit/phpunit.cov b/phpunit/phpunit.cov new file mode 100644 index 00000000..0480175a --- /dev/null +++ b/phpunit/phpunit.cov @@ -0,0 +1,5984 @@ +setData(array ( + '/home/runner/work/wp-module-data/wp-module-data/includes/SubscriberInterface.php' => + array ( + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Data.php' => + array ( + 31 => + array ( + ), + 32 => + array ( + ), + 45 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_delete_token_on_401_response_is_added', + ), + 46 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_delete_token_on_401_response_is_added', + ), + 49 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_delete_token_on_401_response_is_added', + ), + 50 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_delete_token_on_401_response_is_added', + ), + 59 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 65 => + array ( + ), + 69 => + array ( + ), + 72 => + array ( + ), + 74 => + array ( + ), + 77 => + array ( + ), + 79 => + array ( + ), + 81 => + array ( + ), + 82 => + array ( + ), + 83 => + array ( + ), + 85 => + array ( + ), + 101 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_deletes_hiive_token_on_401', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_does_not_delete_hiive_token_on_hiive_200', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_does_not_delete_hiive_token_on_401_other_domain', + ), + 102 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_deletes_hiive_token_on_401', + ), + 105 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_deletes_hiive_token_on_401', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_does_not_delete_hiive_token_on_hiive_200', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_does_not_delete_hiive_token_on_401_other_domain', + ), + 106 => NULL, + 123 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_no_auth_header', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_not_a_rest_request', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_already_authenticated', + ), + 124 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_already_authenticated', + ), + 128 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_no_auth_header', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_not_a_rest_request', + ), + 129 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_not_a_rest_request', + ), + 133 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_no_auth_header', + ), + 134 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_no_auth_header', + ), + 137 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 140 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 141 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 142 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 143 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 146 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 147 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 149 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 152 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 154 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 157 => + array ( + ), + 162 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 163 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 167 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 168 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 170 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate', + ), + 175 => + array ( + ), + 176 => NULL, + 6 => + array ( + ), + 75 => + array ( + ), + 84 => + array ( + ), + 103 => + array ( + ), + 125 => + array ( + ), + 130 => + array ( + ), + 135 => + array ( + ), + 139 => + array ( + ), + 144 => + array ( + ), + 159 => + array ( + ), + 165 => + array ( + ), + 171 => + array ( + ), + 172 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/HiiveConnection.php' => + array ( + 47 => + array ( + ), + 48 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 84 => + array ( + ), + 85 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 91 => + array ( + ), + 92 => + array ( + ), + 100 => + array ( + ), + 102 => + array ( + ), + 103 => + array ( + ), + 105 => + array ( + ), + 108 => + array ( + ), + 109 => NULL, + 119 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 120 => NULL, + 130 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 131 => + array ( + ), + 134 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 136 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 137 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 139 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 140 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 141 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 144 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 150 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 153 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 154 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 157 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 158 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 160 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 161 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 164 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 165 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 166 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 169 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 170 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 173 => + array ( + ), + 174 => NULL, + 184 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + ), + 185 => NULL, + 193 => + array ( + ), + 195 => + array ( + ), + 196 => + array ( + ), + 205 => + array ( + ), + 213 => + array ( + ), + 214 => + array ( + ), + 215 => + array ( + ), + 216 => + array ( + ), + 217 => + array ( + ), + 218 => + array ( + ), + 219 => + array ( + ), + 220 => + array ( + ), + 222 => + array ( + ), + 224 => NULL, + 232 => + array ( + ), + 234 => + array ( + ), + 235 => NULL, + 250 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 251 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 254 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 256 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 258 => + array ( + ), + 261 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 263 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 264 => + array ( + ), + 268 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 270 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + ), + 271 => NULL, + 286 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_wp_error', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 5 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 287 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_wp_error', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 5 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 290 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_wp_error', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 5 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 292 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_wp_error', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 5 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 293 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_wp_error', + ), + 296 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 297 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error', + ), + 300 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 303 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 304 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + ), + 307 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 308 => NULL, + 329 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_hiive_request_returns_wperror_when_no_auth_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 333 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_hiive_request_returns_wperror_when_no_auth_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 334 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_hiive_request_returns_wperror_when_no_auth_token', + ), + 338 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 340 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 341 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 342 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 344 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 347 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 349 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 350 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 353 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 356 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 357 => + array ( + ), + 361 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 362 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + ), + 363 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + ), + 364 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + ), + 365 => + array ( + ), + 367 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + ), + 372 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 374 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 375 => NULL, + 385 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 386 => NULL, + 394 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 395 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 398 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 399 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 400 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 401 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 402 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 403 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 404 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 405 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 406 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 407 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 408 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 409 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 410 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 411 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 414 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive', + ), + 415 => NULL, + 426 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 427 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 428 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 430 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 432 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 434 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 435 => NULL, + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/EventManager.php' => + array ( + 53 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_init', + ), + 54 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_init', + ), + 57 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_init', + ), + 58 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_init', + ), + 67 => + array ( + ), + 68 => + array ( + ), + 76 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_cron', + ), + 79 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_cron', + ), + 82 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_cron', + ), + 83 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_cron', + ), + 85 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_cron', + ), + 91 => + array ( + ), + 92 => + array ( + ), + 93 => + array ( + ), + 105 => + array ( + ), + 106 => + array ( + ), + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 114 => + array ( + ), + 115 => NULL, + 125 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 126 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 127 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 128 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 133 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 134 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 135 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + ), + 136 => + array ( + ), + 137 => + array ( + ), + 142 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 143 => + array ( + ), + 147 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 148 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + ), + 150 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 4 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 158 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 159 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 167 => + array ( + ), + 168 => NULL, + 176 => + array ( + ), + 177 => NULL, + 183 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_listeners_burst_safety_enabled_no_listeners_hooks_registered', + ), + 185 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_listeners_burst_safety_enabled_no_listeners_hooks_registered', + ), + 187 => + array ( + ), + 188 => + array ( + ), + 189 => + array ( + ), + 191 => + array ( + ), + 204 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 205 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 206 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3', + ), + 216 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + ), + 220 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + ), + 223 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + ), + 225 => NULL, + 226 => NULL, + 229 => NULL, + 230 => NULL, + 231 => NULL, + 234 => NULL, + 235 => NULL, + 238 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive', + ), + 247 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_send_saved_events_reserve_fails', + ), + 254 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_send_saved_events_reserve_fails', + ), + 257 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_send_saved_events_reserve_fails', + ), + 258 => + array ( + ), + 262 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_send_saved_events_reserve_fails', + ), + 265 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_send_saved_events_reserve_fails', + ), + 268 => + array ( + ), + 272 => + array ( + ), + 275 => + array ( + ), + 277 => NULL, + 278 => NULL, + 281 => NULL, + 282 => NULL, + 283 => NULL, + 287 => NULL, + 288 => NULL, + 292 => NULL, + 293 => NULL, + 298 => + array ( + ), + 299 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues/BatchQueueInterface.php' => + array ( + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues/BatchQueue.php' => + array ( + 26 => + array ( + ), + 27 => + array ( + ), + 38 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 49 => + array ( + ), + 50 => NULL, + 59 => + array ( + ), + 62 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 75 => + array ( + ), + 76 => + array ( + ), + 77 => + array ( + ), + 81 => + array ( + ), + 82 => NULL, + 93 => + array ( + ), + 94 => + array ( + ), + 95 => + array ( + ), + 96 => + array ( + ), + 97 => NULL, + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 111 => + array ( + ), + 112 => NULL, + 123 => + array ( + ), + 124 => + array ( + ), + 125 => + array ( + ), + 126 => + array ( + ), + 127 => NULL, + 136 => + array ( + ), + 137 => + array ( + ), + 138 => + array ( + ), + 139 => + array ( + ), + 140 => + array ( + ), + 141 => + array ( + ), + 142 => NULL, + 46 => + array ( + ), + 47 => + array ( + ), + 61 => + array ( + ), + 73 => + array ( + ), + 78 => + array ( + ), + 79 => + array ( + ), + 92 => + array ( + ), + 107 => + array ( + ), + 122 => + array ( + ), + 135 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queryable.php' => + array ( + 13 => + array ( + ), + 14 => NULL, + 22 => + array ( + ), + 23 => NULL, + 35 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 50 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 54 => + array ( + ), + 57 => + array ( + ), + 61 => + array ( + ), + 64 => + array ( + ), + 65 => NULL, + 55 => + array ( + ), + 58 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Event.php' => + array ( + 60 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 63 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 64 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 65 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 66 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 69 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 71 => + array ( + ), + 72 => + array ( + ), + 74 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 78 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 79 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 80 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 81 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 82 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 86 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 87 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 88 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 89 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 90 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 91 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + 94 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data', + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/EventQueue.php' => + array ( + 29 => + array ( + ), + 30 => + array ( + ), + 33 => + array ( + ), + 34 => NULL, + 43 => + array ( + ), + 45 => + array ( + ), + 47 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 78 => + array ( + ), + 79 => NULL, + 87 => + array ( + ), + 88 => NULL, + 31 => + array ( + ), + 46 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 57 => + array ( + ), + 58 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Transient.php' => + array ( + 16 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_should_use_transients_bluehost_cloud', + ), + 17 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_should_use_transients_bluehost_cloud', + ), + 18 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_should_use_transients_bluehost_cloud', + ), + 19 => NULL, + 32 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_default', + 1 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options', + 2 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired', + ), + 33 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_default', + ), + 39 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options', + 1 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired', + ), + 40 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options', + 1 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired', + ), + 41 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options', + 1 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired', + ), + 42 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options', + ), + 44 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired', + ), + 48 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired', + ), + 49 => NULL, + 64 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_default', + 1 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_options', + ), + 65 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_default', + ), + 69 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_options', + ), + 70 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_options', + ), + 72 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_options', + ), + 73 => NULL, + 85 => + array ( + ), + 86 => + array ( + ), + 89 => + array ( + ), + 90 => NULL, + 102 => + array ( + ), + 103 => + array ( + ), + 105 => + array ( + ), + 106 => NULL, + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Listener.php' => + array ( + 26 => + array ( + ), + 27 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 53 => + array ( + ), + 54 => + array ( + ), + 56 => + array ( + ), + 57 => NULL, + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Plugin.php' => + array ( + 19 => + array ( + ), + 20 => + array ( + ), + 21 => + array ( + ), + 22 => + array ( + ), + 23 => + array ( + ), + 26 => + array ( + ), + 27 => + array ( + ), + 28 => + array ( + ), + 29 => + array ( + ), + 31 => + array ( + ), + 33 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 66 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + 79 => + array ( + ), + 80 => + array ( + ), + 92 => + array ( + ), + 94 => + array ( + ), + 96 => + array ( + ), + 99 => + array ( + ), + 100 => + array ( + ), + 113 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #1', + ), + 115 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #1', + ), + 116 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #1', + ), + 119 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 120 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 121 => + array ( + ), + 122 => + array ( + ), + 123 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 124 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 125 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 127 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 135 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 138 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 139 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 140 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 144 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 145 => + array ( + ), + 149 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 152 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 153 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0', + ), + 162 => + array ( + ), + 164 => + array ( + ), + 165 => + array ( + ), + 30 => + array ( + ), + 32 => + array ( + ), + 44 => + array ( + ), + 47 => + array ( + ), + 60 => + array ( + ), + 63 => + array ( + ), + 93 => + array ( + ), + 95 => + array ( + ), + 97 => + array ( + ), + 117 => + array ( + ), + 126 => + array ( + ), + 141 => + array ( + ), + 142 => + array ( + ), + 146 => + array ( + ), + 148 => + array ( + ), + 150 => + array ( + ), + 161 => + array ( + ), + 163 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Plugin.php' => + array ( + 18 => + array ( + ), + 19 => + array ( + ), + 22 => + array ( + ), + 23 => NULL, + 31 => + array ( + ), + 32 => + array ( + ), + 35 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 47 => + array ( + ), + 48 => NULL, + 60 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 69 => + array ( + ), + 70 => NULL, + 81 => + array ( + ), + 82 => + array ( + ), + 86 => + array ( + ), + 88 => + array ( + ), + 89 => NULL, + 20 => + array ( + ), + 33 => + array ( + ), + 40 => + array ( + ), + 45 => + array ( + ), + 83 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Commerce.php' => + array ( + 16 => + array ( + ), + 17 => + array ( + ), + 18 => + array ( + ), + 19 => + array ( + ), + 20 => + array ( + ), + 21 => + array ( + ), + 22 => + array ( + ), + 23 => + array ( + ), + 24 => + array ( + ), + 26 => + array ( + ), + 27 => + array ( + ), + 28 => + array ( + ), + 29 => + array ( + ), + 30 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 49 => + array ( + ), + 50 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 68 => + array ( + ), + 69 => NULL, + 79 => + array ( + ), + 80 => + array ( + ), + 82 => + array ( + ), + 83 => + array ( + ), + 84 => + array ( + ), + 87 => + array ( + ), + 88 => NULL, + 96 => + array ( + ), + 98 => + array ( + ), + 99 => + array ( + ), + 100 => + array ( + ), + 103 => + array ( + ), + 104 => + array ( + ), + 108 => + array ( + ), + 118 => + array ( + ), + 119 => + array ( + ), + 120 => + array ( + ), + 121 => + array ( + ), + 124 => + array ( + ), + 125 => + array ( + ), + 128 => + array ( + ), + 138 => + array ( + ), + 139 => + array ( + ), + 142 => + array ( + ), + 143 => + array ( + ), + 146 => + array ( + ), + 147 => + array ( + ), + 148 => + array ( + ), + 151 => + array ( + ), + 152 => + array ( + ), + 155 => + array ( + ), + 166 => + array ( + ), + 167 => + array ( + ), + 169 => + array ( + ), + 170 => + array ( + ), + 171 => + array ( + ), + 173 => + array ( + ), + 174 => + array ( + ), + 175 => + array ( + ), + 180 => + array ( + ), + 181 => NULL, + 192 => + array ( + ), + 193 => + array ( + ), + 195 => + array ( + ), + 196 => + array ( + ), + 197 => + array ( + ), + 199 => + array ( + ), + 200 => + array ( + ), + 201 => + array ( + ), + 206 => + array ( + ), + 207 => NULL, + 218 => + array ( + ), + 219 => + array ( + ), + 221 => + array ( + ), + 222 => + array ( + ), + 223 => + array ( + ), + 225 => + array ( + ), + 226 => + array ( + ), + 227 => + array ( + ), + 232 => + array ( + ), + 233 => NULL, + 244 => + array ( + ), + 245 => + array ( + ), + 247 => + array ( + ), + 248 => + array ( + ), + 249 => + array ( + ), + 251 => + array ( + ), + 252 => + array ( + ), + 253 => + array ( + ), + 258 => + array ( + ), + 259 => NULL, + 270 => + array ( + ), + 271 => + array ( + ), + 272 => + array ( + ), + 274 => + array ( + ), + 276 => + array ( + ), + 277 => + array ( + ), + 281 => + array ( + ), + 282 => NULL, + 293 => + array ( + ), + 294 => + array ( + ), + 295 => + array ( + ), + 298 => + array ( + ), + 299 => + array ( + ), + 302 => + array ( + ), + 315 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 316 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 317 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 318 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 321 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 322 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 323 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 326 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 327 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 331 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled', + ), + 42 => + array ( + ), + 47 => + array ( + ), + 62 => + array ( + ), + 66 => + array ( + ), + 81 => + array ( + ), + 85 => + array ( + ), + 97 => + array ( + ), + 101 => + array ( + ), + 105 => + array ( + ), + 106 => + array ( + ), + 107 => + array ( + ), + 117 => + array ( + ), + 122 => + array ( + ), + 126 => + array ( + ), + 127 => + array ( + ), + 144 => + array ( + ), + 145 => + array ( + ), + 149 => + array ( + ), + 153 => + array ( + ), + 154 => + array ( + ), + 168 => + array ( + ), + 172 => + array ( + ), + 176 => + array ( + ), + 177 => + array ( + ), + 178 => + array ( + ), + 194 => + array ( + ), + 198 => + array ( + ), + 202 => + array ( + ), + 203 => + array ( + ), + 204 => + array ( + ), + 220 => + array ( + ), + 224 => + array ( + ), + 228 => + array ( + ), + 229 => + array ( + ), + 230 => + array ( + ), + 246 => + array ( + ), + 250 => + array ( + ), + 254 => + array ( + ), + 255 => + array ( + ), + 256 => + array ( + ), + 273 => + array ( + ), + 275 => + array ( + ), + 278 => + array ( + ), + 279 => + array ( + ), + 280 => + array ( + ), + 292 => + array ( + ), + 296 => + array ( + ), + 300 => + array ( + ), + 301 => + array ( + ), + 320 => + array ( + ), + 324 => + array ( + ), + 328 => + array ( + ), + 329 => + array ( + ), + 330 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Cron.php' => + array ( + 23 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 26 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 29 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 30 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 31 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 32 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 33 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 36 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent', + ), + 46 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_cron_job_main_function', + ), + 49 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_cron_job_main_function', + ), + 51 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_cron_job_main_function', + ), + 52 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_cron_job_main_function', + ), + 64 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_add_weekly_schedule_to_wp_cron_schedules', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_fixes_weekly_schedule_in_wp_cron_schedules_if_value_is_wrong', + ), + 65 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_add_weekly_schedule_to_wp_cron_schedules', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_fixes_weekly_schedule_in_wp_cron_schedules_if_value_is_wrong', + ), + 66 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_add_weekly_schedule_to_wp_cron_schedules', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_fixes_weekly_schedule_in_wp_cron_schedules_if_value_is_wrong', + ), + 67 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_add_weekly_schedule_to_wp_cron_schedules', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_fixes_weekly_schedule_in_wp_cron_schedules_if_value_is_wrong', + ), + 70 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_add_weekly_schedule_to_wp_cron_schedules', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_fixes_weekly_schedule_in_wp_cron_schedules_if_value_is_wrong', + ), + 71 => NULL, + 34 => + array ( + ), + 35 => + array ( + ), + 45 => + array ( + ), + 47 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests/Request.php' => + array ( + 34 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url_dev_mode', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url_dev_mode_false', + ), + 35 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url_dev_mode', + ), + 38 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url_dev_mode_false', + ), + 39 => NULL, + 45 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_endpoint', + ), + 46 => NULL, + 36 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests/Fetch.php' => + array ( + 70 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 71 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 72 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 74 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 82 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 83 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 84 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 85 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 86 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 90 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug', + ), + 91 => NULL, + 100 => + array ( + ), + 101 => + array ( + ), + 102 => + array ( + ), + 103 => + array ( + ), + 105 => NULL, + 111 => + array ( + ), + 112 => NULL, + 118 => + array ( + ), + 119 => NULL, + 125 => + array ( + ), + 127 => + array ( + ), + 128 => + array ( + ), + 129 => NULL, + 73 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 99 => + array ( + ), + 104 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/WonderBlocks.php' => + array ( + 25 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 26 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 28 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 30 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 31 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 32 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 36 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 37 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 38 => + array ( + ), + 44 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 46 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 47 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 50 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 51 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 54 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 55 => + array ( + ), + 58 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 59 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 61 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 62 => + array ( + ), + 66 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 67 => + array ( + ), + 70 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + ), + 71 => NULL, + 77 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 78 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value', + ), + 79 => NULL, + 87 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 90 => NULL, + 33 => + array ( + ), + 34 => + array ( + ), + 39 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 45 => + array ( + ), + 48 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 56 => + array ( + ), + 63 => + array ( + ), + 68 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/API/Events.php' => + array ( + 37 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 57 => + array ( + ), + 58 => + array ( + ), + 59 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 73 => + array ( + ), + 74 => + array ( + ), + 78 => + array ( + ), + 79 => + array ( + ), + 81 => + array ( + ), + 82 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 93 => + array ( + ), + 94 => + array ( + ), + 95 => + array ( + ), + 98 => + array ( + ), + 99 => + array ( + ), + 100 => + array ( + ), + 104 => + array ( + ), + 121 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 122 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 123 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 125 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 128 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 129 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 131 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 132 => + array ( + ), + 135 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item', + ), + 139 => + array ( + ), + 141 => + array ( + ), + 143 => + array ( + ), + 144 => + array ( + ), + 145 => + array ( + ), + 149 => + array ( + ), + 151 => + array ( + ), + 152 => NULL, + 164 => + array ( + ), + 165 => + array ( + ), + 166 => + array ( + ), + 167 => + array ( + ), + 168 => + array ( + ), + 172 => + array ( + ), + 173 => NULL, + 182 => + array ( + ), + 183 => + array ( + ), + 184 => + array ( + ), + 185 => + array ( + ), + 186 => + array ( + ), + 190 => + array ( + ), + 191 => + array ( + ), + 192 => + array ( + ), + 193 => + array ( + ), + 194 => + array ( + ), + 196 => + array ( + ), + 197 => + array ( + ), + 198 => + array ( + ), + 199 => + array ( + ), + 200 => + array ( + ), + 202 => + array ( + ), + 203 => + array ( + ), + 209 => + array ( + ), + 210 => + array ( + ), + 211 => + array ( + ), + 212 => + array ( + ), + 214 => + array ( + ), + 219 => + array ( + ), + 220 => + array ( + ), + 221 => + array ( + ), + 223 => NULL, + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/API/Verify.php' => + array ( + 31 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 32 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 33 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 34 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 46 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 47 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 48 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 52 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 53 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 58 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 59 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 63 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes', + ), + 74 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid', + ), + 75 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid', + ), + 77 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid', + ), + 79 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid', + ), + 80 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid', + ), + 85 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid', + ), + 86 => NULL, + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteCapabilities.php' => + array ( + 29 => + array ( + ), + 30 => + array ( + ), + 45 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_get_capability', + ), + 46 => NULL, + 54 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_get_capability', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 55 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_get_capability', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 56 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 57 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 60 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_get_capability', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 3 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 61 => NULL, + 69 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_get_capability', + ), + 70 => NULL, + 78 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 80 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 81 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 84 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 85 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 86 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 91 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 92 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + ), + 93 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + ), + 94 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + ), + 95 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + ), + 99 => + array ( + 0 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities', + 1 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error', + 2 => 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401', + ), + 100 => NULL, + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Logger.php' => + array ( + 16 => + array ( + ), + 17 => + array ( + ), + 18 => + array ( + ), + 19 => + array ( + ), + 20 => + array ( + ), + 21 => + array ( + ), + 22 => + array ( + ), + 23 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/SiteHealth.php' => + array ( + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 44 => + array ( + ), + 46 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 63 => + array ( + ), + 65 => + array ( + ), + 67 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 73 => + array ( + ), + 74 => + array ( + ), + 75 => + array ( + ), + 76 => + array ( + ), + 78 => + array ( + ), + 79 => + array ( + ), + 80 => + array ( + ), + 81 => + array ( + ), + 82 => + array ( + ), + 85 => + array ( + ), + 86 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 90 => + array ( + ), + 91 => + array ( + ), + 92 => + array ( + ), + 93 => + array ( + ), + 94 => + array ( + ), + 95 => + array ( + ), + 96 => + array ( + ), + 97 => + array ( + ), + 99 => + array ( + ), + 100 => + array ( + ), + 101 => + array ( + ), + 103 => + array ( + ), + 105 => + array ( + ), + 106 => + array ( + ), + 121 => + array ( + ), + 123 => + array ( + ), + 124 => + array ( + ), + 126 => + array ( + ), + 127 => + array ( + ), + 128 => + array ( + ), + 131 => + array ( + ), + 132 => + array ( + ), + 133 => + array ( + ), + 135 => + array ( + ), + 136 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Encryption.php' => + array ( + 48 => + array ( + ), + 49 => + array ( + ), + 50 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 62 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 80 => + array ( + ), + 81 => + array ( + ), + 82 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 103 => + array ( + ), + 104 => + array ( + ), + 105 => + array ( + ), + 107 => + array ( + ), + 108 => + array ( + ), + 110 => + array ( + ), + 113 => + array ( + ), + 114 => + array ( + ), + 115 => + array ( + ), + 117 => + array ( + ), + 118 => + array ( + ), + 132 => + array ( + ), + 133 => + array ( + ), + 134 => + array ( + ), + 136 => + array ( + ), + 139 => + array ( + ), + 142 => + array ( + ), + 145 => + array ( + ), + 148 => + array ( + ), + 149 => + array ( + ), + 150 => + array ( + ), + 153 => + array ( + ), + 154 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/PrimaryType.php' => + array ( + 27 => + array ( + ), + 28 => + array ( + ), + 37 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 42 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 57 => + array ( + ), + 59 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 68 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/SiteClassification.php' => + array ( + 29 => + array ( + ), + 31 => + array ( + ), + 33 => + array ( + ), + 34 => + array ( + ), + 35 => + array ( + ), + 36 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 46 => + array ( + ), + 47 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 50 => + array ( + ), + 51 => + array ( + ), + 54 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 73 => + array ( + ), + 74 => + array ( + ), + 75 => + array ( + ), + 76 => + array ( + ), + 78 => + array ( + ), + 79 => + array ( + ), + 80 => + array ( + ), + 82 => + array ( + ), + 83 => + array ( + ), + 84 => + array ( + ), + 85 => + array ( + ), + 86 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 98 => + array ( + ), + 100 => + array ( + ), + 101 => + array ( + ), + 102 => + array ( + ), + 103 => + array ( + ), + 106 => + array ( + ), + 107 => + array ( + ), + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 112 => + array ( + ), + 113 => + array ( + ), + 114 => + array ( + ), + 115 => + array ( + ), + 117 => + array ( + ), + 119 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/Types.php' => + array ( + 38 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 50 => + array ( + ), + 51 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 73 => + array ( + ), + 75 => + array ( + ), + 83 => + array ( + ), + 84 => + array ( + ), + 85 => + array ( + ), + 86 => + array ( + ), + 87 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/SecondaryType.php' => + array ( + 27 => + array ( + ), + 28 => + array ( + ), + 37 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 42 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 64 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 73 => + array ( + ), + 74 => + array ( + ), + 75 => + array ( + ), + 77 => + array ( + ), + 78 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Admin.php' => + array ( + 17 => + array ( + ), + 18 => + array ( + ), + 21 => + array ( + ), + 24 => + array ( + ), + 25 => + array ( + ), + 33 => + array ( + ), + 35 => + array ( + ), + 36 => + array ( + ), + 37 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 57 => + array ( + ), + 58 => + array ( + ), + 59 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Content.php' => + array ( + 19 => + array ( + ), + 22 => + array ( + ), + 23 => + array ( + ), + 36 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 47 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 50 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 54 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 57 => + array ( + ), + 58 => + array ( + ), + 59 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 66 => + array ( + ), + 67 => + array ( + ), + 68 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 73 => + array ( + ), + 74 => + array ( + ), + 75 => + array ( + ), + 83 => + array ( + ), + 84 => + array ( + ), + 85 => + array ( + ), + 86 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 91 => + array ( + ), + 92 => + array ( + ), + 104 => + array ( + ), + 105 => + array ( + ), + 106 => + array ( + ), + 107 => + array ( + ), + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 111 => + array ( + ), + 112 => + array ( + ), + 113 => + array ( + ), + 114 => + array ( + ), + 115 => + array ( + ), + 116 => + array ( + ), + 117 => + array ( + ), + 118 => + array ( + ), + 119 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/WonderCart.php' => + array ( + 16 => + array ( + ), + 17 => + array ( + ), + 18 => + array ( + ), + 19 => + array ( + ), + 20 => + array ( + ), + 21 => + array ( + ), + 31 => + array ( + ), + 32 => + array ( + ), + 33 => + array ( + ), + 35 => + array ( + ), + 36 => + array ( + ), + 37 => + array ( + ), + 38 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 46 => + array ( + ), + 47 => + array ( + ), + 59 => + array ( + ), + 60 => + array ( + ), + 62 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 84 => + array ( + ), + 85 => + array ( + ), + 86 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 90 => + array ( + ), + 91 => + array ( + ), + 92 => + array ( + ), + 93 => + array ( + ), + 94 => + array ( + ), + 106 => + array ( + ), + 107 => + array ( + ), + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 112 => + array ( + ), + 113 => + array ( + ), + 114 => + array ( + ), + 115 => + array ( + ), + 116 => + array ( + ), + 125 => + array ( + ), + 126 => + array ( + ), + 128 => + array ( + ), + 131 => + array ( + ), + 132 => + array ( + ), + 133 => + array ( + ), + 134 => + array ( + ), + 137 => + array ( + ), + 138 => + array ( + ), + 139 => + array ( + ), + 140 => + array ( + ), + 141 => + array ( + ), + 142 => + array ( + ), + 143 => + array ( + ), + 144 => + array ( + ), + 145 => + array ( + ), + 148 => + array ( + ), + 149 => + array ( + ), + 150 => + array ( + ), + 151 => + array ( + ), + 152 => + array ( + ), + 153 => + array ( + ), + 154 => + array ( + ), + 155 => + array ( + ), + 156 => + array ( + ), + 157 => + array ( + ), + 158 => + array ( + ), + 159 => + array ( + ), + 160 => + array ( + ), + 161 => + array ( + ), + 162 => + array ( + ), + 163 => + array ( + ), + 164 => + array ( + ), + 165 => + array ( + ), + 166 => + array ( + ), + 167 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/WPMail.php' => + array ( + 16 => + array ( + ), + 17 => + array ( + ), + 26 => + array ( + ), + 27 => + array ( + ), + 28 => + array ( + ), + 29 => + array ( + ), + 30 => + array ( + ), + 31 => + array ( + ), + 32 => + array ( + ), + 33 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/SiteHealth.php' => + array ( + 21 => + array ( + ), + 22 => + array ( + ), + 33 => + array ( + ), + 34 => + array ( + ), + 35 => + array ( + ), + 36 => + array ( + ), + 37 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Jetpack.php' => + array ( + 5 => + array ( + ), + 35 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 54 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 57 => + array ( + ), + 58 => + array ( + ), + 59 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 70 => + array ( + ), + 71 => + array ( + ), + 72 => + array ( + ), + 73 => + array ( + ), + 74 => + array ( + ), + 75 => + array ( + ), + 76 => + array ( + ), + 77 => + array ( + ), + 86 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 90 => + array ( + ), + 91 => + array ( + ), + 92 => + array ( + ), + 93 => + array ( + ), + 106 => + array ( + ), + 107 => + array ( + ), + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 111 => + array ( + ), + 112 => + array ( + ), + 113 => + array ( + ), + 114 => + array ( + ), + 115 => + array ( + ), + 116 => + array ( + ), + 125 => + array ( + ), + 126 => + array ( + ), + 127 => + array ( + ), + 128 => + array ( + ), + 129 => + array ( + ), + 130 => + array ( + ), + 131 => + array ( + ), + 132 => + array ( + ), + 133 => + array ( + ), + 134 => + array ( + ), + 135 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Yoast.php' => + array ( + 35 => + array ( + ), + 36 => + array ( + ), + 37 => + array ( + ), + 38 => + array ( + ), + 51 => + array ( + ), + 52 => + array ( + ), + 53 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 57 => + array ( + ), + 59 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 75 => + array ( + ), + 76 => + array ( + ), + 77 => + array ( + ), + 80 => + array ( + ), + 81 => + array ( + ), + 82 => + array ( + ), + 85 => + array ( + ), + 87 => + array ( + ), + 88 => + array ( + ), + 89 => + array ( + ), + 91 => + array ( + ), + 93 => + array ( + ), + 94 => + array ( + ), + 95 => + array ( + ), + 96 => + array ( + ), + 98 => + array ( + ), + 99 => + array ( + ), + 100 => + array ( + ), + 101 => + array ( + ), + 102 => + array ( + ), + 115 => + array ( + ), + 116 => + array ( + ), + 117 => + array ( + ), + 119 => + array ( + ), + 120 => + array ( + ), + 133 => + array ( + ), + 136 => + array ( + ), + 137 => + array ( + ), + 138 => + array ( + ), + 139 => + array ( + ), + 142 => + array ( + ), + 147 => + array ( + ), + 148 => + array ( + ), + 149 => + array ( + ), + 150 => + array ( + ), + 151 => + array ( + ), + 157 => + array ( + ), + 158 => + array ( + ), + 159 => + array ( + ), + 160 => + array ( + ), + 163 => + array ( + ), + 164 => + array ( + ), + 165 => + array ( + ), + 166 => + array ( + ), + 167 => + array ( + ), + 168 => + array ( + ), + 169 => + array ( + ), + 171 => + array ( + ), + 172 => + array ( + ), + 173 => + array ( + ), + 174 => + array ( + ), + 175 => + array ( + ), + 176 => + array ( + ), + 189 => + array ( + ), + 192 => + array ( + ), + 193 => + array ( + ), + 194 => + array ( + ), + 195 => + array ( + ), + 198 => + array ( + ), + 199 => + array ( + ), + 200 => + array ( + ), + 201 => + array ( + ), + 202 => + array ( + ), + 205 => + array ( + ), + 206 => + array ( + ), + 207 => + array ( + ), + 208 => + array ( + ), + 211 => + array ( + ), + 212 => + array ( + ), + 213 => + array ( + ), + 228 => + array ( + ), + 229 => + array ( + ), + 230 => + array ( + ), + 231 => + array ( + ), + 233 => + array ( + ), + 235 => + array ( + ), + 236 => + array ( + ), + 237 => + array ( + ), + 238 => + array ( + ), + 241 => + array ( + ), + 242 => + array ( + ), + 243 => + array ( + ), + 244 => + array ( + ), + 245 => + array ( + ), + 246 => + array ( + ), + 247 => + array ( + ), + 249 => + array ( + ), + 250 => + array ( + ), + 262 => + array ( + ), + 264 => + array ( + ), + 265 => + array ( + ), + 266 => + array ( + ), + 267 => + array ( + ), + 269 => + array ( + ), + 270 => + array ( + ), + 271 => + array ( + ), + 273 => + array ( + ), + 274 => + array ( + ), + 286 => + array ( + ), + 288 => + array ( + ), + 289 => + array ( + ), + 290 => + array ( + ), + 291 => + array ( + ), + 293 => + array ( + ), + 294 => + array ( + ), + 296 => + array ( + ), + 297 => + array ( + ), + 307 => + array ( + ), + 308 => + array ( + ), + 309 => + array ( + ), + 311 => + array ( + ), + 312 => + array ( + ), + 322 => + array ( + ), + 324 => + array ( + ), + 325 => + array ( + ), + 335 => + array ( + ), + 336 => + array ( + ), + 338 => + array ( + ), + 339 => + array ( + ), + 340 => + array ( + ), + 341 => + array ( + ), + 342 => + array ( + ), + 343 => + array ( + ), + 344 => + array ( + ), + 346 => + array ( + ), + 347 => + array ( + ), + 348 => + array ( + ), + 350 => + array ( + ), + 351 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/BluehostPlugin.php' => + array ( + 18 => + array ( + ), + 21 => + array ( + ), + 22 => + array ( + ), + 25 => + array ( + ), + 26 => + array ( + ), + 29 => + array ( + ), + 32 => + array ( + ), + 33 => + array ( + ), + 34 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 45 => + array ( + ), + 46 => + array ( + ), + 47 => + array ( + ), + 48 => + array ( + ), + 49 => + array ( + ), + 60 => + array ( + ), + 61 => + array ( + ), + 62 => + array ( + ), + 63 => + array ( + ), + 64 => + array ( + ), + 65 => + array ( + ), + 66 => + array ( + ), + 74 => + array ( + ), + 75 => + array ( + ), + 76 => + array ( + ), + 77 => + array ( + ), + 78 => + array ( + ), + 79 => + array ( + ), + 80 => + array ( + ), + 81 => + array ( + ), + 91 => + array ( + ), + 92 => + array ( + ), + 93 => + array ( + ), + 94 => + array ( + ), + 95 => + array ( + ), + 96 => + array ( + ), + 97 => + array ( + ), + 98 => + array ( + ), + 108 => + array ( + ), + 109 => + array ( + ), + 110 => + array ( + ), + 111 => + array ( + ), + 112 => + array ( + ), + 113 => + array ( + ), + 114 => + array ( + ), + 115 => + array ( + ), + 125 => + array ( + ), + 126 => + array ( + ), + 127 => + array ( + ), + 128 => + array ( + ), + 129 => + array ( + ), + 130 => + array ( + ), + 131 => + array ( + ), + 132 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Theme.php' => + array ( + 17 => + array ( + ), + 20 => + array ( + ), + 24 => + array ( + ), + 27 => + array ( + ), + 37 => + array ( + ), + 38 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 42 => + array ( + ), + 43 => + array ( + ), + 44 => + array ( + ), + 46 => + array ( + ), + 47 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 57 => + array ( + ), + 58 => + array ( + ), + 59 => + array ( + ), + 67 => + array ( + ), + 68 => + array ( + ), + 69 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/includes/HiiveWorker.php' => + array ( + 35 => + array ( + ), + 36 => + array ( + ), + 37 => + array ( + ), + 39 => + array ( + ), + 40 => + array ( + ), + 41 => + array ( + ), + 51 => + array ( + ), + 53 => + array ( + ), + 54 => + array ( + ), + 55 => + array ( + ), + 56 => + array ( + ), + 57 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/upgrades/2.3.1.php' => + array ( + 3 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/upgrades/2.4.22.php' => + array ( + 5 => + array ( + ), + 6 => + array ( + ), + 8 => + array ( + ), + 9 => + array ( + ), + 10 => + array ( + ), + 11 => + array ( + ), + 12 => + array ( + ), + 13 => + array ( + ), + 14 => + array ( + ), + 15 => + array ( + ), + 16 => + array ( + ), + 17 => + array ( + ), + 18 => + array ( + ), + 19 => + array ( + ), + 20 => + array ( + ), + 21 => + array ( + ), + 22 => + array ( + ), + 23 => + array ( + ), + 24 => + array ( + ), + ), + '/home/runner/work/wp-module-data/wp-module-data/upgrades/2.4.2.php' => + array ( + 3 => + array ( + ), + ), +)); +$coverage->setTests(array ( + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_no_auth_header' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_not_a_rest_request' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_authenticate_returns_early_when_already_authenticated' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_delete_token_on_401_response_is_added' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_deletes_hiive_token_on_401' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_does_not_delete_hiive_token_on_hiive_200' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\DataTest::test_does_not_delete_hiive_token_on_401_other_domain' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_listeners_burst_safety_enabled_no_listeners_hooks_registered' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_initialize_cron' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_init' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerTest::test_send_saved_events_reserve_fails' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_default' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_set_transient_use_options' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_default' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_get_transient_use_options_expired' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_instance_call_method' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Helpers\\TransientTest::test_should_use_transients_bluehost_cloud' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_boxname_to_hiive' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_plugin_sends_server_path_to_hiive' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_hiive_request_returns_wperror_when_no_auth_token' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_success' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_notify_bad_token' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_fails_to_reconnect' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionTest::test_add_plugin_name_version_to_user_agent' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CommerceTest::test_woocommerce_hpos_enabled' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_register_hooks_schedules_job_when_absent' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_cron_job_main_function' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_add_weekly_schedule_to_wp_cron_schedules' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\CronTest::test_fixes_weekly_schedule_in_wp_cron_schedules_if_value_is_wrong' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #0' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\Listeners\\PluginTest::test_upgrader_process_complete_fired with data set #1' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\FetchTest::test_get_url_with_endpoint_and_slug' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url_dev_mode' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_base_url_dev_mode_false' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\Requests\\RequestTest::test_get_endpoint' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_in_dev_mode_no_cached_value' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\WonderBlocks\\WonderBlocksTest::test_request_has_hiive_token_not_dev_mode_with_cached_value' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\API\\EventsWPUnitTest::test_create_item' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_register_routes' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\API\\VerifyTest::test_get_items_invalid' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_empty_response_from_hiive' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #0' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #1' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #2' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\EventManagerWPUnitTest::test_does_not_send_certain_events with data set #3' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_non_blocking_returns_error' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_notify_wp_error' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_plugin_search' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_without_data' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\HiiveConnectionWPUnitTest::test_500_error_with_data' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_get_capability' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_wp_error' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'NewfoldLabs\\WP\\Module\\Data\\SiteCapabilitiesWPUnitTest::test_fetch_capabilities_401' => + array ( + 'size' => 'unknown', + 'status' => 0, + ), + 'UNCOVERED_FILES_FROM_WHITELIST' => + array ( + 'size' => 'unknown', + 'status' => -1, + ), +)); + +$filter = $coverage->filter(); +$filter->setWhitelistedFiles(array ( + '/home/runner/work/wp-module-data/wp-module-data/includes/API/Events.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/API/Verify.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Data.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Event.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/EventManager.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/EventQueue.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queryable.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues/BatchQueue.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/EventQueue/Queues/BatchQueueInterface.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Encryption.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Plugin.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/SiteHealth.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Helpers/Transient.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/HiiveConnection.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/HiiveWorker.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Admin.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/BluehostPlugin.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Commerce.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Content.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Cron.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Jetpack.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Listener.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Plugin.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/SiteHealth.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Theme.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/WPMail.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/WonderCart.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Listeners/Yoast.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/Logger.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteCapabilities.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/PrimaryType.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/SecondaryType.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/SiteClassification.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/SiteClassification/Types.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/SubscriberInterface.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests/Fetch.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/Requests/Request.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/includes/WonderBlocks/WonderBlocks.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/upgrades/2.3.1.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/upgrades/2.4.2.php' => true, + '/home/runner/work/wp-module-data/wp-module-data/upgrades/2.4.22.php' => true, +)); + +return $coverage; \ No newline at end of file