diff --git a/.github/workflows/.publish_master.yml.swp b/.github/workflows/.publish_master.yml.swp new file mode 100644 index 000000000..259e8d2d7 Binary files /dev/null and b/.github/workflows/.publish_master.yml.swp differ diff --git a/.github/workflows/push_to_s3.yml b/.github/workflows/push_to_s3.yml index 00a302187..5e7f9bb3e 100644 --- a/.github/workflows/push_to_s3.yml +++ b/.github/workflows/push_to_s3.yml @@ -23,7 +23,6 @@ name: push-to-s3 on: push: branches: - - develop - develop-ui jobs: diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 000000000..36a39a905 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,48 @@ +# Copyright 2021 Agnostiq Inc. +# +# This file is part of Covalent. +# +# Licensed under the GNU Affero General Public License 3.0 (the "License"). +# A copy of the License may be obtained with this software package or at +# +# https://www.gnu.org/licenses/agpl-3.0.en.html +# +# Use of this file is prohibited except in compliance with the License. Any +# modifications or derivative works of this file must retain this copyright +# notice, and modified files must contain a notice indicating that they have +# been altered from the originals. +# +# Covalent is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. +# +# Relief from the License may be granted by purchasing a commercial license. + +name: pypi + +on: + push: + branches: + - master + +jobs: + pypi: + runs-on: ubuntu-latest + steps: + - name: Check out master + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install twine + - name: Build Distribution + run: python setup.py sdist + - name: Upload Distribution + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload sdist/* diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40a15a7db..09df4d99f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,14 +29,14 @@ jobs: tests: runs-on: ubuntu-latest steps: -# - name: Start notification -# uses: rtCamp/action-slack-notify@v2 -# env: -# SLACK_CHANNEL: "covalent-ci" -# SLACK_USERNAME: "CovalentOpsBot" -# SLACK_MESSAGE: "Test started by push." -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} -# SLACK_COLOR: "#808080" + - name: Start notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: "covalent-ci" + SLACK_USERNAME: "CovalentOpsBot" + SLACK_MESSAGE: "Test started by push." + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_COLOR: "#808080" - name: Check out head uses: actions/checkout@v2 with: @@ -56,24 +56,24 @@ jobs: run: covalent start -d - name: Run tests and measure coverage run: pytest -v --cov=covalent --cov=covalent_dispatcher -# - name: Notify success -# if: success() -# uses: rtCamp/action-slack-notify@v2 -# env: -# SLACK_CHANNEL: "covalent-ci" -# SLACK_USERNAME: "CovalentOpsBot" -# SLACK_MESSAGE: "Test succeeded." -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} -# SLACK_COLOR: ${{ job.status }} -# - name: Notify failure -# if: failure() -# uses: rtCamp/action-slack-notify@v2 -# env: -# SLACK_CHANNEL: "covalent-ci" -# SLACK_USERNAME: "CovalentOpsBot" -# SLACK_MESSAGE: "Test failed." -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} -# SLACK_COLOR: ${{ job.status }} + - name: Notify success + if: success() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: "covalent-ci" + SLACK_USERNAME: "CovalentOpsBot" + SLACK_MESSAGE: "Test succeeded." + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_COLOR: ${{ job.status }} + - name: Notify failure + if: failure() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: "covalent-ci" + SLACK_USERNAME: "CovalentOpsBot" + SLACK_MESSAGE: "Test failed." + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_COLOR: ${{ job.status }} - name: Generate coverage report run: coverage xml - name: Upload report to Codecov @@ -89,17 +89,17 @@ jobs: git remote set-url origin https://${{ secrets.COVALENT_OPS_BOT_TOKEN }}@github.com/AgnostiqHQ/covalent.git git fetch --unshallow git push origin HEAD:master -# - name: Format Slack message -# if: github.ref == 'refs/heads/develop' -# run: | -# VERSION="$(cat ./VERSION)" -# SLACK_MSG=":rocket: Version $VERSION is now available." -# echo "SLACK_MSG=$SLACK_MSG" >> $GITHUB_ENV -# - name: Notify Slack -# if: github.ref == 'refs/heads/develop' -# uses: rtCamp/action-slack-notify@v2 -# env: -# SLACK_CHANNEL: "covalent-ci" -# SLACK_USERNAME: "CovalentOpsBot" -# SLACK_MESSAGE: ${{ env.SLACK_MSG }} -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + - name: Format Slack message + if: github.ref == 'refs/heads/develop' + run: | + VERSION="$(cat ./VERSION)" + SLACK_MSG=":rocket: Version $VERSION is now available." + echo "SLACK_MSG=$SLACK_MSG" >> $GITHUB_ENV + - name: Notify Slack + if: github.ref == 'refs/heads/develop' + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: "covalent-ci" + SLACK_USERNAME: "CovalentOpsBot" + SLACK_MESSAGE: ${{ env.SLACK_MSG }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 306e4b6fd..09e681bff 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -82,12 +82,12 @@ jobs: else echo "Pass due to bad version format in develop branch." fi -# - name: Notify failure -# if: failure() -# uses: rtCamp/action-slack-notify@v2 -# env: -# SLACK_CHANNEL: "covalent-ci" -# SLACK_USERNAME: "CovalentOpsBot" -# SLACK_MESSAGE: "Failed to validate version or changelog." -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} -# SLACK_COLOR: ${{ job.status }} + - name: Notify failure + if: failure() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: "covalent-ci" + SLACK_USERNAME: "CovalentOpsBot" + SLACK_MESSAGE: "Failed to validate version or changelog." + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_COLOR: ${{ job.status }} diff --git a/.gitignore b/.gitignore index 8bae81fef..83b32d530 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,7 @@ # # Relief from the License may be granted by purchasing a commercial license. -# Ignore results folderss +# Ignore results folders **/results/** **/result_* !covalent_ui/result_webhook.py diff --git a/CHANGELOG.md b/CHANGELOG.md index fbbc1b6a5..6a3040a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.22.1] - 2022-01-25 + +### Added + +- Code of conduct +- Manifest.in file +- Citation info +- Action to upload to pypi + +### Fixed + +- Absolute URLs used in README +- Workflow badges updated URLs +- `install_package_data` -> `include_package_data` in `setup.py` + ## [0.22.0] - 2022-01-25 ### Changed diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..f3564cf3e --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,78 @@ + +# Code of Conduct + +## Our Pledge + +The Covalent community is committed to ensuring that every interested individual is empowered to participate in this project fully and safely. All participants, including attendees, speakers, sponsors, volunteers, and online contributors are expected to adhere to this pledge. We as members, contributors, and leaders pledge to make Covalent a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community while engaging online and offline. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience +* Focusing on what is best not just for us as individuals, but for the overall community +* Practicing blameless engineering and treating technical issues as opportunities for learning and improvement + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [support@agnostiq.ai](mailto:support@agnostiq.ai). All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of actions. + +**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version [2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html). + +Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://www.mozilla.org/en-US/about/governance/policies/participation/). + +Additional concepts and language are adapted from the [Qiskit Code of Conduct](https://github.com/Qiskit/qiskit/blob/master/CODE_OF_CONDUCT.md) diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..510b4afff --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include VERSION +include requirements.txt diff --git a/README.md b/README.md index 22dfefd2b..04f7052cb 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@
c.relevance&&(c=u),u.relevance>n.relevance&&(c=n,n=u));c.language&&(n.secondBest=c);return n},t.registerLanguage=function(e,t){r.registerLanguage(e,t)},t.listLanguages=function(){return r.listLanguages()},t.registerAlias=function(e,t){var n,o=e;t&&((o={})[e]=t);for(n in o)r.registerAliases(o[n],{languageName:n})},c.prototype.addText=function(e){var t,n,r=this.stack;if(""===e)return;t=r[r.length-1],(n=t.children[t.children.length-1])&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})},c.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},c.prototype.addSublanguage=function(e,t){var n=this.stack,r=n[n.length-1],o=e.rootNode.children,i=t?{type:"element",tagName:"span",properties:{className:[t]},children:o}:o;r.children=r.children.concat(i)},c.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],o={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(o),t.push(o)},c.prototype.closeNode=function(){this.stack.pop()},c.prototype.closeAllNodes=u,c.prototype.finalize=u,c.prototype.toHTML=function(){return""};var i="hljs-";function a(e,t,n){var a,u=r.configure({}),s=(n||{}).prefix;if("string"!==typeof e)throw o("Expected `string` for name, got `%s`",e);if(!r.getLanguage(e))throw o("Unknown language: `%s` is not registered",e);if("string"!==typeof t)throw o("Expected `string` for value, got `%s`",t);if(null!==s&&void 0!==s||(s=i),r.configure({__emitter:c,classPrefix:s}),a=r.highlight(t,{language:e,ignoreIllegals:!0}),r.configure(u||{}),a.errorRaised)throw a.errorRaised;return{relevance:a.relevance,language:a.language,value:a.emitter.rootNode.children}}function c(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function u(){}},function(e,t,n){"use strict";var r=n(3),o=n(2),i=n(4),a=n(189),c=n(554);function u(e,t,n){var i;return Object(o.a)({toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var s=n(153),l=n(85),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:f.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},O={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function j(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(l.d)(e.main,o):"dark"===t&&(e.dark=Object(l.b)(e.main,i)))}function x(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,c=void 0===r?3:r,u=e.tonalOffset,x=void 0===u?.2:u,E=Object(i.a)(e,y),_=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(n),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(n),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(n),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(n),P=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(n),M=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:"#ed6c02",light:v[500],dark:v[900]}}(n);function T(e){return Object(l.c)(e,O.text.primary)>=c?O.text.primary:w.text.primary}var N=function(e){var t=e.color,n=e.name,r=e.mainShade,i=void 0===r?500:r,a=e.lightShade,c=void 0===a?300:a,u=e.darkShade,l=void 0===u?700:u;if(!(t=Object(o.a)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error(Object(s.a)(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error(Object(s.a)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return j(t,"light",c,x),j(t,"dark",l,x),t.contrastText||(t.contrastText=T(t.main)),t},R={dark:O,light:w};return Object(a.a)(Object(o.a)({common:f,mode:n,primary:N({color:_,name:"primary"}),secondary:N({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:S,name:"error"}),warning:N({color:M,name:"warning"}),info:N({color:C,name:"info"}),success:N({color:P,name:"success"}),grey:d,contrastThreshold:c,getContrastText:T,augmentColor:N,tonalOffset:x},R[n]),E)}var E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var _={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function S(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,c=void 0===r?k:r,u=n.fontSize,s=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,g=void 0===m?700:m,b=n.htmlFontSize,y=void 0===b?16:b,w=n.allVariants,O=n.pxToRem,j=Object(i.a)(n,E);var x=s/14,S=O||function(e){return"".concat(e/y*x,"rem")},C=function(e,t,n,r,i){return Object(o.a)({fontFamily:c,fontWeight:e,fontSize:S(t),lineHeight:n},c===k?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},i,w);var a},P={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(v,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(v,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(v,14,1.75,.4,_),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,_)};return Object(a.a)(Object(o.a)({htmlFontSize:y,pxToRem:S,fontFamily:c,fontSize:s,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:g},P),j,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],M=n(44),T={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,s=void 0===r?{}:r,l=e.transitions,f=void 0===l?{}:l,d=e.typography,p=void 0===d?{}:d,h=Object(i.a)(e,N),v=x(s),m=Object(c.a)(e),g=Object(a.a)(m,{mixins:u(m.breakpoints,m.spacing,n),palette:v,shadows:P.slice(),typography:S(v,p),transitions:Object(M.a)(f),zIndex:Object(o.a)({},T)});g=Object(a.a)(g,h);for(var b=arguments.length,y=new Array(b>1?b-1:0),w=1;w2&&void 0!==arguments[2]?arguments[2]:{clone:!0},a=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?a[r]=i(e[r],t[r],n):a[r]=t[r])})),a}},,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r ' + func(text) + ' fred, barney, & pebbles2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,o=void 0===r||r,i=function e(n){var r=Object.keys(n),i=ie(n);if(!i&&r.length>1&&!oe(n))return e(ce(n));if(ae(n)){var a=i?n[ne]:r[0],c=i?n[re]:n[a];if(!f(c))throw new Error(b(a));var u={keyId:E(a),pattern:c};return o&&(u.searcher=J(c,t)),u}var s={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];l(r)&&r.forEach((function(t){s.children.push(e(t))}))})),s};return oe(e)||(e=ce(e)),i(e)}function se(e,t){var n=t.ignoreFieldNorm,r=void 0===n?k.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,o=e.norm,i=e.score,a=n?n.weight:null;t*=Math.pow(0===i&&a?Number.EPSILON:i,(a||1)*(r?1:o))})),e.score=t}))}function le(e,t){var n=e.matches;t.matches=[],v(n)&&n.forEach((function(e){if(v(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function fe(e,t){t.score=e.score}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,o=void 0===r?k.includeMatches:r,i=n.includeScore,a=void 0===i?k.includeScore:i,c=[];return o&&c.push(le),a&&c.push(fe),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return c.length&&c.forEach((function(t){t(e,r)})),r}))}var pe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;Object(u.a)(this,e),this.options=Object(c.a)(Object(c.a)({},k),n),this.options.useExtendedSearch,this._keyStore=new O(this.options.keys),this.setCollection(t,r)}return Object(s.a)(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof P))throw new Error("Incorrect 'index' type");this._myIndex=t||M(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){v(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;nu.lim&&(s=u,l=!0);var f=r.filter(t.edges(),(function(t){return l===b(e,e.node(t.v),s)&&l!==b(e,e.node(t.w),s)}));return r.minBy(f,(function(e){return i(t,e)}))}function g(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),p(e),f(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=c(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)}))}(e,t)}function b(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=l,l.initLowLimValues=p,l.initCutValues=f,l.calcCutValue=d,l.leaveEdge=v,l.enterEdge=m,l.exchangeEdges=g},function(e,t,n){var r=n(25);e.exports=function(e){var t=function(e){var t={},n=0;function o(i){var a=n;r.forEach(e.children(i),o),t[i]={low:a,lim:n++}}return r.forEach(e.children(),o),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){var o,i,a=[],c=[],u=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>u||s>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)c.push(o);return{path:a.concat(c.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,c=i.lca,u=0,s=a[u],l=!0;n!==o.w;){if(r=e.node(n),l){for(;(s=a[u])!==c&&e.node(s).maxRank0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;s+=e.weight*n}))),s}e.exports=function(e,t){for(var n=0,r=1;r
/g,"\n"))},"after:highlightElement":function(e){var t=e.result;s.useBR&&(t.value=t.value.replace(/\n/g,"
"))}},b=/^(<[^>]+>|\t)+/gm,y={"after:highlightElement":function(e){var t=e.result;s.tabReplace&&(t.value=t.value.replace(b,(function(e){return e.replace(/\t/g,s.tabReplace)})))}};function w(e){var t=function(e){var t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";var n=s.languageDetectRe.exec(t);if(n){var r=x(n[1]);return r||(ce(c.replace("{}",n[1])),ce("Falling back to no-highlight mode for this block.",e)),r?n[1]:"no-highlight"}return t.split(/\s+/).find((function(e){return f(e)||x(e)}))}(e);if(!f(t)){k("before:highlightElement",{el:e,language:t});var r=e.textContent,o=t?p(r,{language:t,ignoreIllegals:!0}):v(r);k("after:highlightElement",{el:e,result:o,text:r}),e.innerHTML=o.value,function(e,t,r){var o=t?n[t]:r;e.classList.add("hljs"),o&&e.classList.add(o)}(e,t,o.language),e.result={language:o.language,re:o.relevance,relavance:o.relevance},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.relevance,relavance:o.second_best.relevance})}}var O=!1;function j(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(w):O=!0}function x(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function E(e,t){var r=t.languageName;"string"===typeof e&&(e=[e]),e.forEach((function(e){n[e.toLowerCase()]=r}))}function _(e){var t=x(e);return t&&!t.disableAutodetect}function k(e,t){var n=e;o.forEach((function(e){e[n]&&e[n](t)}))}for(var S in"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){O&&j()}),!1),Object.assign(e,{highlight:p,highlightAuto:v,highlightAll:j,fixMarkup:function(e){return ue("10.2.0","fixMarkup will be removed entirely in v11.0"),ue("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,s.tabReplace||s.useBR?t.replace(a,(function(e){return"\n"===e?s.useBR?"
":e:s.tabReplace?e.replace(/\t/g,s.tabReplace):e})):t;var t},highlightElement:w,highlightBlock:function(e){return ue("10.7.0","highlightBlock will be removed entirely in v12.0"),ue("10.7.0","Please use highlightElement now."),w(e)},configure:function(e){e.useBR&&(ue("10.3.0","'useBR' will be removed entirely in v11.0"),ue("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),s=le(s,e)},initHighlighting:function e(){e.called||(e.called=!0,ue("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(w))},initHighlightingOnLoad:function(){ue("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),O=!0},registerLanguage:function(n,r){var o=null;try{o=r(e)}catch(a){if(ae("Language definition for '{}' could not be registered.".replace("{}",n)),!i)throw a;ae(a),o=u}o.name||(o.name=n),t[n]=o,o.rawDefinition=r.bind(null,e),o.aliases&&E(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(var r=0,o=Object.keys(n);r>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(t*u-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&c,p+=h,c/=256,o-=8);for(a=a<