From a07e7b20332c7e12a65162526c3483abe5ff30ec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 18:48:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/main.yaml | 1 - README.md | 2 +- datacube-ows-tools/app.py | 61 +- datacube-ows-tools/static/css/custom.css | 14 +- datacube-ows-tools/static/js/wms.js | 2 +- .../static/vendor/bootstrap/css/bootstrap.css | 81 +- .../vendor/bootstrap/css/bootstrap.min.css | 81 +- .../vendor/bootstrap/js/bootstrap.bundle.js | 454 ++-- .../bootstrap/js/bootstrap.bundle.min.js | 120 +- .../static/vendor/bootstrap/js/bootstrap.js | 361 ++-- .../vendor/bootstrap/js/bootstrap.min.js | 78 +- .../static/vendor/jquery/jquery.js | 339 +-- .../static/vendor/jquery/jquery.min.js | 1827 +++++++++-------- .../static/vendor/jquery/jquery.slim.js | 273 +-- .../static/vendor/jquery/jquery.slim.min.js | 1756 ++++++++-------- datacube-ows-tools/templates/base.html | 157 +- .../templates/catalog-comparison.html | 339 ++- .../templates/getmap-comparison.html | 82 +- .../templates/legend-comparison.html | 6 +- datacube-ows-tools/util.py | 24 +- 20 files changed, 3192 insertions(+), 2866 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 37e8ac0..18f36ae 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -9,7 +9,6 @@ on: release: types: [created, edited, published] - env: ORG: opendatacube IMAGE: dea-web-tools diff --git a/README.md b/README.md index 6c5a8c4..9e2a82f 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ To run it locally docker-compose up ``` -To use a deployed version access from: http://datacube-ows-tools.dev.dea.ga.gov.au/ \ No newline at end of file +To use a deployed version access from: http://datacube-ows-tools.dev.dea.ga.gov.au/ diff --git a/datacube-ows-tools/app.py b/datacube-ows-tools/app.py index 188ec8c..6620923 100644 --- a/datacube-ows-tools/app.py +++ b/datacube-ows-tools/app.py @@ -7,12 +7,20 @@ from flask import render_template, jsonify, json as flask_json from flask_s3 import FlaskS3 from owslib.wms import WebMapService -from .util import disjoint_bbox, enclosed_bbox, fixed_bbox, v7_catalog_list, wms_endpoint_layers_list, v8_catalog_list +from .util import ( + disjoint_bbox, + enclosed_bbox, + fixed_bbox, + v7_catalog_list, + wms_endpoint_layers_list, + v8_catalog_list, +) app = Flask(__name__, static_url_path=os.getenv("STATIC_PATH", None)) app.config["FLASKS3_BUCKET_NAME"] = "dea-web-webtools-static" s3 = FlaskS3(app) + # for terria catalog generator @app.route("/") def terria_au(): @@ -35,9 +43,9 @@ def terria_wps(): def comp_legend(): return render_template("legend-comparison.html") + @app.route("/getmap_comp") def comp_getmap(): - return render_template("getmap-comparison.html") @@ -51,9 +59,9 @@ def comp_getfeatureinfo(): def getmap_url_generator(): getmap_urls = [] paramsJson = request.get_json() - stable_url = paramsJson['stable_url'] - bbox = paramsJson['bbox'] - crs = paramsJson['crs'] + stable_url = paramsJson["stable_url"] + bbox = paramsJson["bbox"] + crs = paramsJson["crs"] # print(f"request.get_json(): {request.get_json()}") @@ -85,17 +93,17 @@ def getmap_url_generator(): layers_url_list = [] for style in layer.styles: # print(time, file=sys.stdout) - + url = f"{stable_url}wms?service=WMS&version=1.3.0&request=GetMap&layers={layer_name}&styles={style}&width=250&height=250&crs={crs}&bbox={bbox}&format=image%2Fpng&transparent=TRUE&bgcolor=0xFFFFFF&exceptions=XML&time={time}" layers_url_list.append({"style": style, "url": url}) getmap_urls.append({"name": layer_name, "layersList": layers_url_list}) return json.dumps(getmap_urls) + # Utility functions @app.route("/catalog-match") def catalog_match_checker(): - prod_wms_url = "https://ows.dea.ga.gov.au" prod_wms_layers = wms_endpoint_layers_list(prod_wms_url) dev_wms_url = "https://ows.dev.dea.ga.gov.au" @@ -105,35 +113,40 @@ def catalog_match_checker(): terria_catalog_json = urllib.request.urlopen(terria_url) # TODO: optimise this # this is to by pass JSONDecodeError: Invalid \escape: line 626 column 79 (char 68035) - a = terria_catalog_json.read().decode(terria_catalog_json.headers.get_content_charset()) + a = terria_catalog_json.read().decode( + terria_catalog_json.headers.get_content_charset() + ) b = a.replace("\\n", "iampin").replace("\\\n", "iamnotpin") terria_data = json.loads(b) - dea_map_url = "https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/dev/terria/dea-maps-v8.json" dea_catalog_json = urllib.request.urlopen(dea_map_url) dea_map_data = json.loads(dea_catalog_json.read()) terria_prod_catalog_list = v8_catalog_list(terria_data, prod_wms_url) - terria_prod_non_released = list(set(prod_wms_layers)-set(terria_prod_catalog_list)) + terria_prod_non_released = list( + set(prod_wms_layers) - set(terria_prod_catalog_list) + ) terria_dev_catalog_list = v8_catalog_list(terria_data, dev_wms_url) - terria_dev_non_released = list(set(dev_wms_layers)-set(terria_dev_catalog_list)) - + terria_dev_non_released = list(set(dev_wms_layers) - set(terria_dev_catalog_list)) dea_map_catalog_list = v8_catalog_list(dea_map_data, prod_wms_url) - dea_map_non_released = list(set(prod_wms_layers)-set(dea_map_catalog_list)) - - return render_template("catalog-comparison.html", data={ - "dev_non_released": terria_dev_non_released, - "dev_wms_layers": dev_wms_layers, - "dev_catalog_list": terria_dev_catalog_list, - "prod_non_released": terria_prod_non_released, - "prod_wms_layers": prod_wms_layers, - "prod_catalog_list": terria_prod_catalog_list, - "dea_map_non_released": dea_map_non_released, - "dea_map_catalog_list": dea_map_catalog_list, - }) + dea_map_non_released = list(set(prod_wms_layers) - set(dea_map_catalog_list)) + + return render_template( + "catalog-comparison.html", + data={ + "dev_non_released": terria_dev_non_released, + "dev_wms_layers": dev_wms_layers, + "dev_catalog_list": terria_dev_catalog_list, + "prod_non_released": terria_prod_non_released, + "prod_wms_layers": prod_wms_layers, + "prod_catalog_list": terria_prod_catalog_list, + "dea_map_non_released": dea_map_non_released, + "dea_map_catalog_list": dea_map_catalog_list, + }, + ) @app.route("/jsongenerator", methods=["POST"]) diff --git a/datacube-ows-tools/static/css/custom.css b/datacube-ows-tools/static/css/custom.css index 1e462d0..f43f6de 100644 --- a/datacube-ows-tools/static/css/custom.css +++ b/datacube-ows-tools/static/css/custom.css @@ -24,15 +24,15 @@ padding-left: 45px; } ul.no-bullets { - list-style-type: none; /* Remove bullets */ - padding: 0; /* Remove padding */ - margin: 0; /* Remove margins */ + list-style-type: none; /* Remove bullets */ + padding: 0; /* Remove padding */ + margin: 0; /* Remove margins */ } ul.no-bullets li { - color: green; + color: green; } ul.no-bullets li.missing { - color: red; - font-weight: bold; -} \ No newline at end of file + color: red; + font-weight: bold; +} diff --git a/datacube-ows-tools/static/js/wms.js b/datacube-ows-tools/static/js/wms.js index 88e8a70..7fb0db9 100644 --- a/datacube-ows-tools/static/js/wms.js +++ b/datacube-ows-tools/static/js/wms.js @@ -55,6 +55,6 @@ function createCatalog() { // } // ); // end of get - } + }, ); } diff --git a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css index fbaaa30..9570783 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css +++ b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css @@ -1968,7 +1968,9 @@ pre code { background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -2215,7 +2217,8 @@ textarea.form-control.is-valid { .custom-select.is-valid { border-color: #28a745; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%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") + background: + url("data:image/svg+xml,%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 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2369,7 +2372,8 @@ textarea.form-control.is-invalid { .custom-select.is-invalid { border-color: #dc3545; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%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") + background: + url("data:image/svg+xml,%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 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2557,8 +2561,11 @@ textarea.form-control.is-invalid { font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -3993,12 +4000,21 @@ input[type="button"].btn-block { height: calc(1rem - 4px); background-color: #adb5bd; border-radius: 0.5rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, - box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, + -webkit-transform 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; } @@ -4165,15 +4181,21 @@ input[type="button"].btn-block { } .custom-range:focus::-webkit-slider-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-moz-range-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-ms-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range::-moz-focus-outer { @@ -4187,7 +4209,9 @@ input[type="button"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -webkit-appearance: none; appearance: none; @@ -4219,7 +4243,9 @@ input[type="button"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -moz-appearance: none; appearance: none; @@ -4254,7 +4280,9 @@ input[type="button"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @@ -4313,7 +4341,9 @@ input[type="button"].btn-block { .custom-control-label::before, .custom-file-label, .custom-select { - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @@ -5220,8 +5250,11 @@ input[type="button"].btn-block { white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -6070,7 +6103,9 @@ a.close.disabled { .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; + transition: + transform 0.3s ease-out, + -webkit-transform 0.3s ease-out; -webkit-transform: translate(0, -50px); transform: translate(0, -50px); } @@ -6601,7 +6636,9 @@ a.close.disabled { backface-visibility: hidden; transition: -webkit-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; - transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out; + transition: + transform 0.6s ease-in-out, + -webkit-transform 0.6s ease-in-out; } @media (prefers-reduced-motion: reduce) { diff --git a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css index 7449ab8..7f83c1e 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css +++ b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css @@ -1762,7 +1762,9 @@ pre code { background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .form-control { @@ -1972,7 +1974,8 @@ textarea.form-control.is-valid { .was-validated .custom-select:valid { border-color: #28a745; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%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") + background: + url("data:image/svg+xml,%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 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2105,7 +2108,8 @@ textarea.form-control.is-invalid { .was-validated .custom-select:invalid { border-color: #dc3545; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%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") + background: + url("data:image/svg+xml,%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 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2275,8 +2279,11 @@ textarea.form-control.is-invalid { font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .btn { @@ -3492,12 +3499,21 @@ input[type="submit"].btn-block { height: calc(1rem - 4px); background-color: #adb5bd; border-radius: 0.5rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, - box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, + -webkit-transform 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -3642,13 +3658,19 @@ input[type="submit"].btn-block { outline: 0; } .custom-range:focus::-webkit-slider-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-moz-range-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-ms-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range::-moz-focus-outer { border: 0; @@ -3660,7 +3682,9 @@ input[type="submit"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -webkit-appearance: none; appearance: none; @@ -3688,7 +3712,9 @@ input[type="submit"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -moz-appearance: none; appearance: none; @@ -3719,7 +3745,9 @@ input[type="submit"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @@ -3767,7 +3795,9 @@ input[type="submit"].btn-block { .custom-control-label::before, .custom-file-label, .custom-select { - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -4550,8 +4580,11 @@ input[type="submit"].btn-block { white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .badge { @@ -5267,7 +5300,9 @@ a.close.disabled { .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; + transition: + transform 0.3s ease-out, + -webkit-transform 0.3s ease-out; -webkit-transform: translate(0, -50px); transform: translate(0, -50px); } @@ -5727,7 +5762,9 @@ a.close.disabled { backface-visibility: hidden; transition: -webkit-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; - transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out; + transition: + transform 0.6s ease-in-out, + -webkit-transform 0.6s ease-in-out; } @media (prefers-reduced-motion: reduce) { .carousel-item { diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js index bace251..95e7bee 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js @@ -55,7 +55,7 @@ ownKeys = ownKeys.concat( Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; - }) + }), ); } @@ -160,7 +160,7 @@ } }, getTransitionDurationFromElement: function getTransitionDurationFromElement( - element + element, ) { if (!element) { return 0; @@ -198,7 +198,7 @@ typeCheckConfig: function typeCheckConfig( componentName, config, - configTypes + configTypes, ) { for (var property in configTypes) { if (Object.prototype.hasOwnProperty.call(configTypes, property)) { @@ -216,7 +216,7 @@ '" provided type "' + valueType + '" ') + - ('but expected type "' + expectedTypes + '".') + ('but expected type "' + expectedTypes + '".'), ); } } @@ -397,7 +397,7 @@ $(document).on( Event.CLICK_DATA_API, Selector.DISMISS, - Alert._handleDismiss(new Alert()) + Alert._handleDismiss(new Alert()), ); /** * ------------------------------------------------------------------------ @@ -479,7 +479,7 @@ triggerChangeEvent = false; } else { var activeElement = rootElement.querySelector( - Selector$1.ACTIVE + Selector$1.ACTIVE, ); if (activeElement) { @@ -499,7 +499,7 @@ } input.checked = !this._element.classList.contains( - ClassName$1.ACTIVE + ClassName$1.ACTIVE, ); $(input).trigger("change"); } @@ -512,7 +512,7 @@ if (addAriaPressed) { this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(ClassName$1.ACTIVE) + !this._element.classList.contains(ClassName$1.ACTIVE), ); } @@ -559,24 +559,31 @@ */ $(document) - .on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - event.preventDefault(); - var button = event.target; + .on( + Event$1.CLICK_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + event.preventDefault(); + var button = event.target; - if (!$(button).hasClass(ClassName$1.BUTTON)) { - button = $(button).closest(Selector$1.BUTTON); - } + if (!$(button).hasClass(ClassName$1.BUTTON)) { + button = $(button).closest(Selector$1.BUTTON); + } - Button._jQueryInterface.call($(button), "toggle"); - }) - .on(Event$1.FOCUS_BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - var button = $(event.target).closest(Selector$1.BUTTON)[0]; - $(button).toggleClass(ClassName$1.FOCUS, /^focus(in)?$/.test(event.type)); - }); + Button._jQueryInterface.call($(button), "toggle"); + }, + ) + .on( + Event$1.FOCUS_BLUR_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + var button = $(event.target).closest(Selector$1.BUTTON)[0]; + $(button).toggleClass( + ClassName$1.FOCUS, + /^focus(in)?$/.test(event.type), + ); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -693,13 +700,13 @@ this._config = this._getConfig(config); this._element = element; this._indicatorsElement = this._element.querySelector( - Selector$2.INDICATORS + Selector$2.INDICATORS, ); this._touchSupported = "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0; this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, ); this._addEventListeners(); @@ -759,9 +766,9 @@ if (this._config.interval && !this._isPaused) { this._interval = setInterval( (document.visibilityState ? this.nextWhenVisible : this.next).bind( - this + this, ), - this._config.interval + this._config.interval, ); } }; @@ -770,7 +777,7 @@ var _this = this; this._activeElement = this._element.querySelector( - Selector$2.ACTIVE_ITEM + Selector$2.ACTIVE_ITEM, ); var activeIndex = this._getItemIndex(this._activeElement); @@ -924,7 +931,7 @@ Event$2.DRAG_START, function (e) { return e.preventDefault(); - } + }, ); if (this._pointerEvent) { @@ -973,7 +980,7 @@ this._items = element && element.parentNode ? [].slice.call( - element.parentNode.querySelectorAll(Selector$2.ITEM) + element.parentNode.querySelectorAll(Selector$2.ITEM), ) : []; return this._items.indexOf(element); @@ -981,7 +988,7 @@ _proto._getItemByDirection = function _getItemByDirection( direction, - activeElement + activeElement, ) { var isNextDirection = direction === Direction.NEXT; var isPrevDirection = direction === Direction.PREV; @@ -1006,12 +1013,12 @@ _proto._triggerSlideEvent = function _triggerSlideEvent( relatedTarget, - eventDirectionName + eventDirectionName, ) { var targetIndex = this._getItemIndex(relatedTarget); var fromIndex = this._getItemIndex( - this._element.querySelector(Selector$2.ACTIVE_ITEM) + this._element.querySelector(Selector$2.ACTIVE_ITEM), ); var slideEvent = $.Event(Event$2.SLIDE, { @@ -1025,17 +1032,16 @@ }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement( - element + element, ) { if (this._indicatorsElement) { var indicators = [].slice.call( - this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE) + this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE), ); $(indicators).removeClass(ClassName$2.ACTIVE); - var nextIndicator = this._indicatorsElement.children[ - this._getItemIndex(element) - ]; + var nextIndicator = + this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { $(nextIndicator).addClass(ClassName$2.ACTIVE); @@ -1078,7 +1084,7 @@ var slideEvent = this._triggerSlideEvent( nextElement, - eventDirectionName + eventDirectionName, ); if (slideEvent.isDefaultPrevented()) { @@ -1112,7 +1118,7 @@ $(nextElement).addClass(directionalClassName); var nextElementInterval = parseInt( nextElement.getAttribute("data-interval"), - 10 + 10, ); if (nextElementInterval) { @@ -1124,9 +1130,8 @@ this._config.defaultInterval || this._config.interval; } - var transitionDuration = Util.getTransitionDurationFromElement( - activeElement - ); + var transitionDuration = + Util.getTransitionDurationFromElement(activeElement); $(activeElement) .one(Util.TRANSITION_END, function () { $(nextElement) @@ -1137,7 +1142,7 @@ " " + orderClassName + " " + - directionalClassName + directionalClassName, ); _this4._isSliding = false; setTimeout(function () { @@ -1245,11 +1250,11 @@ $(document).on( Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, - Carousel._dataApiClickHandler + Carousel._dataApiClickHandler, ); $(window).on(Event$2.LOAD_DATA_API, function () { var carousels = [].slice.call( - document.querySelectorAll(Selector$2.DATA_RIDE) + document.querySelectorAll(Selector$2.DATA_RIDE), ); for (var i = 0, len = carousels.length; i < len; i++) { @@ -1331,11 +1336,11 @@ '[data-toggle="collapse"][href="#' + element.id + '"],' + - ('[data-toggle="collapse"][data-target="#' + element.id + '"]') - ) + ('[data-toggle="collapse"][data-target="#' + element.id + '"]'), + ), ); var toggleList = [].slice.call( - document.querySelectorAll(Selector$3.DATA_TOGGLE) + document.querySelectorAll(Selector$3.DATA_TOGGLE), ); for (var i = 0, len = toggleList.length; i < len; i++) { @@ -1425,7 +1430,7 @@ if (actives) { Collapse._jQueryInterface.call( $(actives).not(this._selector), - "hide" + "hide", ); if (!activesData) { @@ -1464,7 +1469,7 @@ dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1530,7 +1535,7 @@ this._element.style[dimension] = ""; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1584,7 +1589,7 @@ $(children).each(function (i, element) { _this3._addAriaAndCollapsedClass( Collapse._getTargetFromElement(element), - [element] + [element], ); }); return parent; @@ -1592,7 +1597,7 @@ _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass( element, - triggerArray + triggerArray, ) { var isOpen = $(element).hasClass(ClassName$3.SHOW); @@ -1617,7 +1622,7 @@ {}, Default$1, $this.data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data && _config.toggle && /show|hide/.test(config)) { @@ -1662,25 +1667,27 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function ( - event - ) { - // preventDefault only for elements (which change the URL) not inside the collapsible element - if (event.currentTarget.tagName === "A") { - event.preventDefault(); - } + $(document).on( + Event$3.CLICK_DATA_API, + Selector$3.DATA_TOGGLE, + function (event) { + // preventDefault only for elements (which change the URL) not inside the collapsible element + if (event.currentTarget.tagName === "A") { + event.preventDefault(); + } - var $trigger = $(this); - var selector = Util.getSelectorFromElement(this); - var selectors = [].slice.call(document.querySelectorAll(selector)); - $(selectors).each(function () { - var $target = $(this); - var data = $target.data(DATA_KEY$3); - var config = data ? "toggle" : $trigger.data(); + var $trigger = $(this); + var selector = Util.getSelectorFromElement(this); + var selectors = [].slice.call(document.querySelectorAll(selector)); + $(selectors).each(function () { + var $target = $(this); + var data = $target.data(DATA_KEY$3); + var config = data ? "toggle" : $trigger.data(); - Collapse._jQueryInterface.call($target, config); - }); - }); + Collapse._jQueryInterface.call($target, config); + }); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -2071,12 +2078,14 @@ isIE(10) ? parseInt(html["offset" + axis]) + parseInt( - computedStyle["margin" + (axis === "Height" ? "Top" : "Left")] + computedStyle["margin" + (axis === "Height" ? "Top" : "Left")], ) + parseInt( - computedStyle["margin" + (axis === "Height" ? "Bottom" : "Right")] + computedStyle[ + "margin" + (axis === "Height" ? "Bottom" : "Right") + ], ) - : 0 + : 0, ); } @@ -2367,7 +2376,7 @@ if (boundariesElement === "viewport") { boundaries = getViewportOffsetRectRelativeToArtbitraryNode( offsetParent, - fixedPosition + fixedPosition, ); } else { // Handle other cases based on DOM element used as boundaries @@ -2386,7 +2395,7 @@ var offsets = getOffsetRectRelativeToArbitraryNode( boundariesNode, offsetParent, - fixedPosition + fixedPosition, ); // In case of HTML, we need a different computation @@ -2437,7 +2446,7 @@ refRect, popper, reference, - boundariesElement + boundariesElement, ) { var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; @@ -2450,7 +2459,7 @@ popper, reference, padding, - boundariesElement + boundariesElement, ); var rects = { @@ -2481,7 +2490,7 @@ rects[key], { area: getArea(rects[key]), - } + }, ); }) .sort(function (a, b) { @@ -2522,7 +2531,7 @@ return getOffsetRectRelativeToArbitraryNode( reference, commonOffsetParent, - fixedPosition + fixedPosition, ); } @@ -2711,7 +2720,7 @@ this.state, this.popper, this.reference, - this.options.positionFixed + this.options.positionFixed, ); // compute auto placement, store placement inside the data object, @@ -2723,7 +2732,7 @@ this.popper, this.reference, this.options.modifiers.flip.boundariesElement, - this.options.modifiers.flip.padding + this.options.modifiers.flip.padding, ); // store the computed placement inside `originalPlacement` @@ -2735,7 +2744,7 @@ data.offsets.popper = getPopperOffsets( this.popper, data.offsets.reference, - data.placement + data.placement, ); data.offsets.popper.position = this.options.positionFixed @@ -2840,7 +2849,7 @@ getScrollParent(target.parentNode), event, callback, - scrollParents + scrollParents, ); } scrollParents.push(target); @@ -2865,7 +2874,7 @@ scrollElement, "scroll", state.updateBound, - state.scrollParents + state.scrollParents, ); state.scrollElement = scrollElement; state.eventsEnabled = true; @@ -2885,7 +2894,7 @@ this.reference, this.options, this.state, - this.scheduleUpdate + this.scheduleUpdate, ); } } @@ -3023,14 +3032,14 @@ popper, options, modifierOptions, - state + state, ) { // compute reference element offsets var referenceOffsets = getReferenceOffsets( state, popper, reference, - options.positionFixed + options.positionFixed, ); // compute auto placement, store placement inside the data object, @@ -3042,7 +3051,7 @@ popper, reference, options.modifiers.flip.boundariesElement, - options.modifiers.flip.padding + options.modifiers.flip.padding, ); popper.setAttribute("x-placement", placement); @@ -3105,7 +3114,7 @@ left: horizontalToInteger( bothOddWidth && !isVariation && shouldRound ? popper.left - 1 - : popper.left + : popper.left, ), top: verticalToInteger(popper.top), bottom: verticalToInteger(popper.bottom), @@ -3129,14 +3138,15 @@ // Remove this legacy support in Popper.js v2 - var legacyGpuAccelerationOption = find(data.instance.modifiers, function ( - modifier - ) { - return modifier.name === "applyStyle"; - }).gpuAcceleration; + var legacyGpuAccelerationOption = find( + data.instance.modifiers, + function (modifier) { + return modifier.name === "applyStyle"; + }, + ).gpuAcceleration; if (legacyGpuAccelerationOption !== undefined) { console.warn( - "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!" + "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!", ); } var gpuAcceleration = @@ -3154,7 +3164,7 @@ var offsets = getRoundedOffsets( data, - window.devicePixelRatio < 2 || !isFirefox + window.devicePixelRatio < 2 || !isFirefox, ); var sideA = x === "bottom" ? "top" : "bottom"; @@ -3259,7 +3269,7 @@ _requesting + " modifier in order to work, be sure to include it before " + _requesting + - "!" + "!", ); } return isRequired; @@ -3295,7 +3305,7 @@ // provided DOM node is child of its popper node if (!data.instance.popper.contains(arrowElement)) { console.warn( - "WARNING: `arrow.element` must be child of its popper element!" + "WARNING: `arrow.element` must be child of its popper element!", ); return data; } @@ -3341,7 +3351,7 @@ var popperMarginSide = parseFloat(css["margin" + sideCapitalized], 10); var popperBorderSide = parseFloat( css["border" + sideCapitalized + "Width"], - 10 + 10, ); var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; @@ -3349,7 +3359,7 @@ // prevent arrowElement from being placed not contiguously to its popper sideValue = Math.max( Math.min(popper[len] - arrowElementSize, sideValue), - 0 + 0, ); data.arrowElement = arrowElement; @@ -3480,7 +3490,7 @@ data.instance.reference, options.padding, options.boundariesElement, - data.positionFixed + data.positionFixed, ); var placement = data.placement.split("-")[0]; @@ -3569,8 +3579,8 @@ getPopperOffsets( data.instance.popper, data.offsets.reference, - data.placement - ) + data.placement, + ), ); data = runModifiers(data.instance.modifiers, data, "flip"); @@ -3652,12 +3662,12 @@ if (unit === "vh") { size = Math.max( document.documentElement.clientHeight, - window.innerHeight || 0 + window.innerHeight || 0, ); } else { size = Math.max( document.documentElement.clientWidth, - window.innerWidth || 0 + window.innerWidth || 0, ); } return (size / 100) * value; @@ -3698,12 +3708,12 @@ var divider = fragments.indexOf( find(fragments, function (frag) { return frag.search(/,|\s/) !== -1; - }) + }), ); if (fragments[divider] && fragments[divider].indexOf(",") === -1) { console.warn( - "Offsets separated by white space(s) are deprecated, use a comma (,) instead." + "Offsets separated by white space(s) are deprecated, use a comma (,) instead.", ); } @@ -3717,7 +3727,7 @@ .slice(0, divider) .concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat( - fragments.slice(divider + 1) + fragments.slice(divider + 1), ), ] : [fragments]; @@ -3843,7 +3853,7 @@ data.instance.reference, options.padding, boundariesElement, - data.positionFixed + data.positionFixed, ); // NOTE: DOM access here @@ -3878,7 +3888,7 @@ value = Math.min( popper[mainSide], boundaries[placement] - - (placement === "right" ? popper.width : popper.height) + (placement === "right" ? popper.width : popper.height), ); } return defineProperty({}, mainSide, value); @@ -3923,7 +3933,7 @@ end: defineProperty( {}, side, - reference[side] + reference[measurement] - popper[measurement] + reference[side] + reference[measurement] - popper[measurement], ), }; @@ -4469,12 +4479,12 @@ // Deep merge modifiers options this.options.modifiers = {}; Object.keys( - _extends({}, Popper.Defaults.modifiers, options.modifiers) + _extends({}, Popper.Defaults.modifiers, options.modifiers), ).forEach(function (name) { _this.options.modifiers[name] = _extends( {}, Popper.Defaults.modifiers[name] || {}, - options.modifiers ? options.modifiers[name] : {} + options.modifiers ? options.modifiers[name] : {}, ); }); @@ -4485,7 +4495,7 @@ { name: name, }, - _this.options.modifiers[name] + _this.options.modifiers[name], ); }) // sort the modifiers by order @@ -4504,7 +4514,7 @@ _this.popper, _this.options, modifierOptions, - _this.state + _this.state, ); } }); @@ -4625,7 +4635,7 @@ var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) var REGEXP_KEYDOWN = new RegExp( - ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE + ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE, ); var Event$4 = { HIDE: "hide" + EVENT_KEY$4, @@ -4736,7 +4746,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); } @@ -4761,7 +4771,7 @@ this._popper = new Popper( referenceElement, this._menu, - this._getPopperConfig() + this._getPopperConfig(), ); } // If this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; @@ -4878,7 +4888,7 @@ {}, this.constructor.Default, $(this._element).data(), - config + config, ); Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); return config; @@ -4931,7 +4941,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this2._config.offset(data.offsets, _this2._element) || {} + _this2._config.offset(data.offsets, _this2._element) || {}, ); return data; }; @@ -4996,7 +5006,7 @@ } var toggles = [].slice.call( - document.querySelectorAll(Selector$4.DATA_TOGGLE) + document.querySelectorAll(Selector$4.DATA_TOGGLE), ); for (var i = 0, len = toggles.length; i < len; i++) { @@ -5108,7 +5118,7 @@ } var items = [].slice.call( - parent.querySelectorAll(Selector$4.VISIBLE_ITEMS) + parent.querySelectorAll(Selector$4.VISIBLE_ITEMS), ); if (items.length === 0) { @@ -5167,16 +5177,16 @@ .on( Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.KEYDOWN_DATA_API, Selector$4.MENU, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, - Dropdown._clearMenus + Dropdown._clearMenus, ) .on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) { event.preventDefault(); @@ -5321,7 +5331,7 @@ Selector$5.DATA_DISMISS, function (event) { return _this.hide(event); - } + }, ); $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () { $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) { @@ -5372,7 +5382,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, function (event) { @@ -5467,7 +5477,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._dialog + this._dialog, ); $(this._dialog) .one(Util.TRANSITION_END, transitionComplete) @@ -5598,9 +5608,8 @@ return; } - var backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callback) .emulateTransitionEnd(backdropTransitionDuration); @@ -5616,9 +5625,8 @@ }; if ($(this._element).hasClass(ClassName$5.FADE)) { - var _backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var _backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callbackRemove) @@ -5665,10 +5673,10 @@ // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); var stickyContent = [].slice.call( - document.querySelectorAll(Selector$5.STICKY_CONTENT) + document.querySelectorAll(Selector$5.STICKY_CONTENT), ); // Adjust fixed content padding $(fixedContent).each(function (index, element) { @@ -5678,7 +5686,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px" + parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px", ); }); // Adjust sticky content margin @@ -5689,7 +5697,7 @@ .data("margin-right", actualMargin) .css( "margin-right", - parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px" + parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px", ); }); // Adjust body padding @@ -5699,7 +5707,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + this._scrollbarWidth + "px" + parseFloat(calculatedPadding) + this._scrollbarWidth + "px", ); } @@ -5709,7 +5717,7 @@ _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); $(fixedContent).each(function (index, element) { var padding = $(element).data("padding-right"); @@ -5718,7 +5726,7 @@ }); // Restore sticky content var elements = [].slice.call( - document.querySelectorAll("" + Selector$5.STICKY_CONTENT) + document.querySelectorAll("" + Selector$5.STICKY_CONTENT), ); $(elements).each(function (index, element) { var margin = $(element).data("margin-right"); @@ -5746,7 +5754,7 @@ Modal._jQueryInterface = function _jQueryInterface( config, - relatedTarget + relatedTarget, ) { return this.each(function () { var data = $(this).data(DATA_KEY$5); @@ -5755,7 +5763,7 @@ {}, Default$3, $(this).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data) { @@ -5798,41 +5806,43 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function ( - event - ) { - var _this10 = this; + $(document).on( + Event$5.CLICK_DATA_API, + Selector$5.DATA_TOGGLE, + function (event) { + var _this10 = this; - var target; - var selector = Util.getSelectorFromElement(this); + var target; + var selector = Util.getSelectorFromElement(this); - if (selector) { - target = document.querySelector(selector); - } - - var config = $(target).data(DATA_KEY$5) - ? "toggle" - : _objectSpread({}, $(target).data(), $(this).data()); + if (selector) { + target = document.querySelector(selector); + } - if (this.tagName === "A" || this.tagName === "AREA") { - event.preventDefault(); - } + var config = $(target).data(DATA_KEY$5) + ? "toggle" + : _objectSpread({}, $(target).data(), $(this).data()); - var $target = $(target).one(Event$5.SHOW, function (showEvent) { - if (showEvent.isDefaultPrevented()) { - // Only register focus restorer if modal will actually get shown - return; + if (this.tagName === "A" || this.tagName === "AREA") { + event.preventDefault(); } - $target.one(Event$5.HIDDEN, function () { - if ($(_this10).is(":visible")) { - _this10.focus(); + var $target = $(target).one(Event$5.SHOW, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; } + + $target.one(Event$5.HIDDEN, function () { + if ($(_this10).is(":visible")) { + _this10.focus(); + } + }); }); - }); - Modal._jQueryInterface.call($(target), config, this); - }); + Modal._jQueryInterface.call($(target), config, this); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -5902,14 +5912,16 @@ * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ }; - var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + var SAFE_URL_PATTERN = + /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; /** * A pattern that matches safe data URLs. Only matches image, video and audio types. * * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ - var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + var DATA_URL_PATTERN = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function allowedAttribute(attr, allowedAttributeList) { var attrName = attr.nodeName.toLowerCase(); @@ -5918,7 +5930,7 @@ if (uriAttrs.indexOf(attrName) !== -1) { return Boolean( attr.nodeValue.match(SAFE_URL_PATTERN) || - attr.nodeValue.match(DATA_URL_PATTERN) + attr.nodeValue.match(DATA_URL_PATTERN), ); } @@ -5964,7 +5976,7 @@ var attributeList = [].slice.call(el.attributes); var whitelistedAttributes = [].concat( whiteList["*"] || [], - whiteList[elName] || [] + whiteList[elName] || [], ); attributeList.forEach(function (attr) { if (!allowedAttribute(attr, whitelistedAttributes)) { @@ -6087,7 +6099,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); } // private @@ -6131,7 +6143,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -6195,7 +6207,7 @@ shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (showEvent.isDefaultPrevented() || !isInTheDom) { @@ -6280,7 +6292,7 @@ if ($(this.tip).hasClass(ClassName$6.FADE)) { var transitionDuration = Util.getTransitionDurationFromElement( - this.tip + this.tip, ); $(this.tip) .one(Util.TRANSITION_END, complete) @@ -6369,7 +6381,7 @@ var tip = this.getTipElement(); this.setElementContent( $(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), - this.getTitle() + this.getTitle(), ); $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW); }; @@ -6396,7 +6408,7 @@ content = sanitizeHtml( content, this.config.whiteList, - this.config.sanitizeFn + this.config.sanitizeFn, ); } @@ -6429,7 +6441,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this3.config.offset(data.offsets, _this3.element) || {} + _this3.config.offset(data.offsets, _this3.element) || {}, ); return data; }; @@ -6467,7 +6479,7 @@ _this4.config.selector, function (event) { return _this4.toggle(event); - } + }, ); } else if (trigger !== Trigger.MANUAL) { var eventIn = @@ -6511,7 +6523,7 @@ if (this.element.getAttribute("title") || titleType !== "string") { this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ); this.element.setAttribute("title", ""); } @@ -6524,7 +6536,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -6565,7 +6577,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -6616,7 +6628,7 @@ {}, this.constructor.Default, dataAttributes, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.delay === "number") { @@ -6640,7 +6652,7 @@ config.template = sanitizeHtml( config.template, config.whiteList, - config.sanitizeFn + config.sanitizeFn, ); } @@ -6670,16 +6682,15 @@ } }; - _proto._handlePopperPlacementChange = function _handlePopperPlacementChange( - popperData - ) { - var popperInstance = popperData.instance; - this.tip = popperInstance.popper; + _proto._handlePopperPlacementChange = + function _handlePopperPlacementChange(popperData) { + var popperInstance = popperData.instance; + this.tip = popperInstance.popper; - this._cleanTipClass(); + this._cleanTipClass(); - this.addAttachmentClass(this._getAttachment(popperData.placement)); - }; + this.addAttachmentClass(this._getAttachment(popperData.placement)); + }; _proto._fixTransition = function _fixTransition() { var tip = this.getTipElement(); @@ -6796,7 +6807,7 @@ var CLASS_PREFIX$1 = "bs-popover"; var BSCLS_PREFIX_REGEX$1 = new RegExp( "(^|\\s)" + CLASS_PREFIX$1 + "\\S+", - "g" + "g", ); var Default$5 = _objectSpread({}, Tooltip.Default, { @@ -7132,7 +7143,7 @@ config = _objectSpread( {}, Default$6, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.target !== "string") { @@ -7161,7 +7172,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }; @@ -7240,7 +7251,7 @@ }); var $link = $( - [].slice.call(document.querySelectorAll(queries.join(","))) + [].slice.call(document.querySelectorAll(queries.join(","))), ); if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) { @@ -7328,7 +7339,7 @@ $(window).on(Event$8.LOAD_DATA_API, function () { var scrollSpys = [].slice.call( - document.querySelectorAll(Selector$8.DATA_SPY) + document.querySelectorAll(Selector$8.DATA_SPY), ); var scrollSpysLength = scrollSpys.length; @@ -7419,7 +7430,7 @@ var target; var previous; var listElement = $(this._element).closest( - Selector$9.NAV_LIST_GROUP + Selector$9.NAV_LIST_GROUP, )[0]; var selector = Util.getSelectorFromElement(this._element); @@ -7495,9 +7506,8 @@ }; if (active && isTransitioning) { - var transitionDuration = Util.getTransitionDurationFromElement( - active - ); + var transitionDuration = + Util.getTransitionDurationFromElement(active); $(active) .removeClass(ClassName$9.SHOW) .one(Util.TRANSITION_END, complete) @@ -7510,12 +7520,12 @@ _proto._transitionComplete = function _transitionComplete( element, active, - callback + callback, ) { if (active) { $(active).removeClass(ClassName$9.ACTIVE); var dropdownChild = $(active.parentNode).find( - Selector$9.DROPDOWN_ACTIVE_CHILD + Selector$9.DROPDOWN_ACTIVE_CHILD, )[0]; if (dropdownChild) { @@ -7547,7 +7557,7 @@ if (dropdownElement) { var dropdownToggleList = [].slice.call( - dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE) + dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE), ); $(dropdownToggleList).addClass(ClassName$9.ACTIVE); } @@ -7597,13 +7607,15 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function ( - event - ) { - event.preventDefault(); + $(document).on( + Event$9.CLICK_DATA_API, + Selector$9.DATA_TOGGLE, + function (event) { + event.preventDefault(); - Tab._jQueryInterface.call($(this), "show"); - }); + Tab._jQueryInterface.call($(this), "show"); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -7702,7 +7714,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -7749,7 +7761,7 @@ {}, Default$7, $(this._element).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType); return config; @@ -7763,7 +7775,7 @@ Selector$a.DATA_DISMISS, function () { return _this3.hide(true); - } + }, ); }; @@ -7780,7 +7792,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -7859,7 +7871,7 @@ (function () { if (typeof $ === "undefined") { throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); } @@ -7878,7 +7890,7 @@ version[0] >= maxMajor ) { throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); } })(); diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js index 2ff82a6..90d2652 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js @@ -31,7 +31,7 @@ (e = e.concat( Object.getOwnPropertySymbols(r).filter(function (t) { return Object.getOwnPropertyDescriptor(r, t).enumerable; - }) + }), )), e.forEach(function (t) { var e, n, i; @@ -128,7 +128,7 @@ s + '" but expected type "' + o + - '".' + '".', ); } var a; @@ -234,7 +234,7 @@ p(document).on( h.CLICK_DATA_API, '[data-dismiss="alert"]', - g._handleDismiss(new g()) + g._handleDismiss(new g()), ), (p.fn[o] = g._jQueryInterface), (p.fn[o].Constructor = g), @@ -294,7 +294,7 @@ e && this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(w) + !this._element.classList.contains(w), ), t && p(this._element).toggleClass(w); }), @@ -409,7 +409,7 @@ "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints), (this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, )), this._addEventListeners(); } @@ -445,7 +445,7 @@ ? this.nextWhenVisible : this.next ).bind(this), - this._config.interval + this._config.interval, )); }), (t.to = function (t) { @@ -522,11 +522,12 @@ return n.cycle(t); }, 500 + n._config.interval))); }; - p(this._element.querySelectorAll(et)).on(q.DRAG_START, function ( - t - ) { - return t.preventDefault(); - }), + p(this._element.querySelectorAll(et)).on( + q.DRAG_START, + function (t) { + return t.preventDefault(); + }, + ), this._pointerEvent ? (p(this._element).on(q.POINTERDOWN, function (t) { return e(t); @@ -758,8 +759,8 @@ e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + - '"]' - ) + '"]', + ), )); for ( var n = [].slice.call(document.querySelectorAll(wt)), @@ -856,7 +857,7 @@ s = m.getSelectorFromElement(r); if (null !== s) p([].slice.call(document.querySelectorAll(s))).hasClass( - mt + mt, ) || p(r).addClass(vt).attr("aria-expanded", !1); } this.setTransitioning(!0); @@ -1106,7 +1107,7 @@ ? parseInt(n["offset" + t]) + parseInt(i["margin" + ("Height" === t ? "Top" : "Left")]) + parseInt(i["margin" + ("Height" === t ? "Bottom" : "Right")]) - : 0 + : 0, ); } function Bt(t) { @@ -1370,7 +1371,7 @@ return t[e] === n; }); return t.indexOf(i); - })(t, "name", e) + })(t, "name", e), ) ).forEach(function (t) { t.function && @@ -1474,7 +1475,7 @@ r + " modifier in order to work, be sure to include it before " + r + - "!" + "!", ); } return o; @@ -1515,12 +1516,12 @@ i = n.indexOf( ne(n, function (t) { return -1 !== t.search(/,|\s/); - }) + }), ); n[i] && -1 === n[i].indexOf(",") && console.warn( - "Offsets separated by white space(s) are deprecated, use a comma (,) instead." + "Offsets separated by white space(s) are deprecated, use a comma (,) instead.", ); var l = /\s*,\s*|\s+/, c = @@ -1554,11 +1555,11 @@ : (("vh" === s ? Math.max( document.documentElement.clientHeight, - window.innerHeight || 0 + window.innerHeight || 0, ) : Math.max( document.documentElement.clientWidth, - window.innerWidth || 0 + window.innerWidth || 0, )) / 100) * r; @@ -1657,7 +1658,7 @@ t.instance.reference, i.padding, e, - t.positionFixed + t.positionFixed, ); (o.top = r), (o.left = s), (o[n] = a), (i.boundaries = l); var c = i.priority, @@ -1680,7 +1681,7 @@ !i.escapeWithReference && (n = Math.min( h[e], - l[t] - ("right" === t ? h.width : h.height) + l[t] - ("right" === t ? h.width : h.height), )), Kt({}, e, n) ); @@ -1732,7 +1733,7 @@ } else if (!t.instance.popper.contains(i)) return ( console.warn( - "WARNING: `arrow.element` must be child of its popper element!" + "WARNING: `arrow.element` must be child of its popper element!", ), t ); @@ -1776,7 +1777,7 @@ p.instance.reference, m.padding, m.boundariesElement, - p.positionFixed + p.positionFixed, ), _ = p.placement.split("-")[0], v = te(_), @@ -1834,7 +1835,7 @@ (p.offsets.popper = Qt( {}, p.offsets.popper, - ee(p.instance.popper, p.offsets.reference, p.placement) + ee(p.instance.popper, p.offsets.reference, p.placement), )), (p = ie(p.instance.modifiers, p, "flip"))); }), @@ -1901,7 +1902,7 @@ }).gpuAcceleration; void 0 !== r && console.warn( - "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!" + "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!", ); var s, a, @@ -1939,7 +1940,7 @@ (y = a ? u : d), { left: (v = a ? (g || _ || p % 2 == m % 2 ? u : f) : d)( - p % 2 == 1 && m % 2 == 1 && !_ && a ? c.left - 1 : c.left + p % 2 == 1 && m % 2 == 1 && !_ && a ? c.left - 1 : c.left, ), top: y(c.top), bottom: y(c.bottom), @@ -2012,7 +2013,7 @@ e, t, n.modifiers.flip.boundariesElement, - n.modifiers.flip.padding + n.modifiers.flip.padding, ); return ( e.setAttribute("x-placement", s), @@ -2047,9 +2048,9 @@ n.options.modifiers[t] = Qt( {}, r.Defaults.modifiers[t] || {}, - i.modifiers ? i.modifiers[t] : {} + i.modifiers ? i.modifiers[t] : {}, ); - } + }, ), (this.modifiers = Object.keys(this.options.modifiers) .map(function (t) { @@ -2086,7 +2087,7 @@ this.state, this.popper, this.reference, - this.options.positionFixed + this.options.positionFixed, )), (t.placement = $t( this.options.placement, @@ -2094,14 +2095,14 @@ this.popper, this.reference, this.options.modifiers.flip.boundariesElement, - this.options.modifiers.flip.padding + this.options.modifiers.flip.padding, )), (t.originalPlacement = t.placement), (t.positionFixed = this.options.positionFixed), (t.offsets.popper = ee( this.popper, t.offsets.reference, - t.placement + t.placement, )), (t.offsets.popper.position = this.options.positionFixed ? "fixed" @@ -2146,7 +2147,7 @@ this.reference, this.options, this.state, - this.scheduleUpdate + this.scheduleUpdate, )); }.call(this); }, @@ -2234,7 +2235,7 @@ if (!this._inNavbar) { if ("undefined" == typeof be) throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); var o = this._element; "parent" === this._config.reference @@ -2248,7 +2249,7 @@ (this._popper = new be( o, this._menu, - this._getPopperConfig() + this._getPopperConfig(), )); } "ontouchstart" in document.documentElement && @@ -2352,7 +2353,7 @@ (t.offsets = l( {}, t.offsets, - e._config.offset(t.offsets, e._element) || {} + e._config.offset(t.offsets, e._element) || {}, )), t ); @@ -2788,7 +2789,7 @@ .data("margin-right", n) .css( "margin-right", - parseFloat(i) - o._scrollbarWidth + "px" + parseFloat(i) - o._scrollbarWidth + "px", ); }); var n = document.body.style.paddingRight, @@ -2797,7 +2798,7 @@ .data("padding-right", n) .css( "padding-right", - parseFloat(i) + this._scrollbarWidth + "px" + parseFloat(i) + this._scrollbarWidth + "px", ); } p(document.body).addClass(an); @@ -2918,7 +2919,8 @@ ul: [], }, yn = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi, - En = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + En = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function bn(t, s, e) { if (0 === t.length) return t; if (e && "function" == typeof e) return e(t); @@ -3038,7 +3040,7 @@ function i(t, e) { if ("undefined" == typeof be) throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); (this._isEnabled = !0), (this._timeout = 0), @@ -3069,7 +3071,7 @@ n || ((n = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), p(t.currentTarget).data(e, n)), (n._activeTrigger.click = !n._activeTrigger.click), @@ -3108,7 +3110,7 @@ var n = m.findShadowRoot(this.element), i = p.contains( null !== n ? n : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (t.isDefaultPrevented() || !i) return; var o = this.getTipElement(), @@ -3127,7 +3129,7 @@ p(o).data(this.constructor.DATA_KEY, this), p.contains( this.element.ownerDocument.documentElement, - this.tip + this.tip, ) || p(o).appendTo(l), p(this.element).trigger(this.constructor.Event.INSERTED), (this._popper = new be(this.element, o, { @@ -3241,7 +3243,7 @@ (t.offsets = l( {}, t.offsets, - e.config.offset(t.offsets, e.element) || {} + e.config.offset(t.offsets, e.element) || {}, )), t ); @@ -3269,7 +3271,7 @@ i.config.selector, function (t) { return i.toggle(t); - } + }, ); else if (t !== Bn) { var e = @@ -3306,7 +3308,7 @@ (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ), this.element.setAttribute("title", "")); }), @@ -3315,7 +3317,7 @@ (e = e || p(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), p(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusin" === t.type ? Wn : Mn] = !0), @@ -3334,7 +3336,7 @@ (e = e || p(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), p(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusout" === t.type ? Wn : Mn] = !1), @@ -3363,7 +3365,7 @@ {}, this.constructor.Default, e, - "object" == typeof t && t ? t : {} + "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()), @@ -3718,7 +3720,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }), @@ -3894,9 +3896,11 @@ }), (t._activate = function (t, e, n) { var i = this, - o = (!e || ("UL" !== e.nodeName && "OL" !== e.nodeName) - ? p(e).children(Hi) - : p(e).find(ji))[0], + o = ( + !e || ("UL" !== e.nodeName && "OL" !== e.nodeName) + ? p(e).children(Hi) + : p(e).find(ji) + )[0], r = n && o && p(o).hasClass(ki), s = function () { return i._transitionComplete(t, o, n); @@ -4038,7 +4042,7 @@ {}, $i, p(this._element).data(), - "object" == typeof t && t ? t : {} + "object" == typeof t && t ? t : {}, )), m.typeCheckConfig(Ui, t, this.constructor.DefaultType), t @@ -4106,7 +4110,7 @@ (function () { if ("undefined" == typeof p) throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); var t = p.fn.jquery.split(" ")[0].split("."); if ( @@ -4115,7 +4119,7 @@ 4 <= t[0] ) throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); })(), (t.Util = m), diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js index 49cb0db..a5ff4b0 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js @@ -57,7 +57,7 @@ ownKeys = ownKeys.concat( Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; - }) + }), ); } @@ -162,7 +162,7 @@ } }, getTransitionDurationFromElement: function getTransitionDurationFromElement( - element + element, ) { if (!element) { return 0; @@ -200,7 +200,7 @@ typeCheckConfig: function typeCheckConfig( componentName, config, - configTypes + configTypes, ) { for (var property in configTypes) { if (Object.prototype.hasOwnProperty.call(configTypes, property)) { @@ -218,7 +218,7 @@ '" provided type "' + valueType + '" ') + - ('but expected type "' + expectedTypes + '".') + ('but expected type "' + expectedTypes + '".'), ); } } @@ -399,7 +399,7 @@ $(document).on( Event.CLICK_DATA_API, Selector.DISMISS, - Alert._handleDismiss(new Alert()) + Alert._handleDismiss(new Alert()), ); /** * ------------------------------------------------------------------------ @@ -481,7 +481,7 @@ triggerChangeEvent = false; } else { var activeElement = rootElement.querySelector( - Selector$1.ACTIVE + Selector$1.ACTIVE, ); if (activeElement) { @@ -501,7 +501,7 @@ } input.checked = !this._element.classList.contains( - ClassName$1.ACTIVE + ClassName$1.ACTIVE, ); $(input).trigger("change"); } @@ -514,7 +514,7 @@ if (addAriaPressed) { this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(ClassName$1.ACTIVE) + !this._element.classList.contains(ClassName$1.ACTIVE), ); } @@ -561,24 +561,31 @@ */ $(document) - .on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - event.preventDefault(); - var button = event.target; + .on( + Event$1.CLICK_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + event.preventDefault(); + var button = event.target; - if (!$(button).hasClass(ClassName$1.BUTTON)) { - button = $(button).closest(Selector$1.BUTTON); - } + if (!$(button).hasClass(ClassName$1.BUTTON)) { + button = $(button).closest(Selector$1.BUTTON); + } - Button._jQueryInterface.call($(button), "toggle"); - }) - .on(Event$1.FOCUS_BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - var button = $(event.target).closest(Selector$1.BUTTON)[0]; - $(button).toggleClass(ClassName$1.FOCUS, /^focus(in)?$/.test(event.type)); - }); + Button._jQueryInterface.call($(button), "toggle"); + }, + ) + .on( + Event$1.FOCUS_BLUR_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + var button = $(event.target).closest(Selector$1.BUTTON)[0]; + $(button).toggleClass( + ClassName$1.FOCUS, + /^focus(in)?$/.test(event.type), + ); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -695,13 +702,13 @@ this._config = this._getConfig(config); this._element = element; this._indicatorsElement = this._element.querySelector( - Selector$2.INDICATORS + Selector$2.INDICATORS, ); this._touchSupported = "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0; this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, ); this._addEventListeners(); @@ -761,9 +768,9 @@ if (this._config.interval && !this._isPaused) { this._interval = setInterval( (document.visibilityState ? this.nextWhenVisible : this.next).bind( - this + this, ), - this._config.interval + this._config.interval, ); } }; @@ -772,7 +779,7 @@ var _this = this; this._activeElement = this._element.querySelector( - Selector$2.ACTIVE_ITEM + Selector$2.ACTIVE_ITEM, ); var activeIndex = this._getItemIndex(this._activeElement); @@ -926,7 +933,7 @@ Event$2.DRAG_START, function (e) { return e.preventDefault(); - } + }, ); if (this._pointerEvent) { @@ -975,7 +982,7 @@ this._items = element && element.parentNode ? [].slice.call( - element.parentNode.querySelectorAll(Selector$2.ITEM) + element.parentNode.querySelectorAll(Selector$2.ITEM), ) : []; return this._items.indexOf(element); @@ -983,7 +990,7 @@ _proto._getItemByDirection = function _getItemByDirection( direction, - activeElement + activeElement, ) { var isNextDirection = direction === Direction.NEXT; var isPrevDirection = direction === Direction.PREV; @@ -1008,12 +1015,12 @@ _proto._triggerSlideEvent = function _triggerSlideEvent( relatedTarget, - eventDirectionName + eventDirectionName, ) { var targetIndex = this._getItemIndex(relatedTarget); var fromIndex = this._getItemIndex( - this._element.querySelector(Selector$2.ACTIVE_ITEM) + this._element.querySelector(Selector$2.ACTIVE_ITEM), ); var slideEvent = $.Event(Event$2.SLIDE, { @@ -1027,17 +1034,16 @@ }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement( - element + element, ) { if (this._indicatorsElement) { var indicators = [].slice.call( - this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE) + this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE), ); $(indicators).removeClass(ClassName$2.ACTIVE); - var nextIndicator = this._indicatorsElement.children[ - this._getItemIndex(element) - ]; + var nextIndicator = + this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { $(nextIndicator).addClass(ClassName$2.ACTIVE); @@ -1080,7 +1086,7 @@ var slideEvent = this._triggerSlideEvent( nextElement, - eventDirectionName + eventDirectionName, ); if (slideEvent.isDefaultPrevented()) { @@ -1114,7 +1120,7 @@ $(nextElement).addClass(directionalClassName); var nextElementInterval = parseInt( nextElement.getAttribute("data-interval"), - 10 + 10, ); if (nextElementInterval) { @@ -1126,9 +1132,8 @@ this._config.defaultInterval || this._config.interval; } - var transitionDuration = Util.getTransitionDurationFromElement( - activeElement - ); + var transitionDuration = + Util.getTransitionDurationFromElement(activeElement); $(activeElement) .one(Util.TRANSITION_END, function () { $(nextElement) @@ -1139,7 +1144,7 @@ " " + orderClassName + " " + - directionalClassName + directionalClassName, ); _this4._isSliding = false; setTimeout(function () { @@ -1247,11 +1252,11 @@ $(document).on( Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, - Carousel._dataApiClickHandler + Carousel._dataApiClickHandler, ); $(window).on(Event$2.LOAD_DATA_API, function () { var carousels = [].slice.call( - document.querySelectorAll(Selector$2.DATA_RIDE) + document.querySelectorAll(Selector$2.DATA_RIDE), ); for (var i = 0, len = carousels.length; i < len; i++) { @@ -1333,11 +1338,11 @@ '[data-toggle="collapse"][href="#' + element.id + '"],' + - ('[data-toggle="collapse"][data-target="#' + element.id + '"]') - ) + ('[data-toggle="collapse"][data-target="#' + element.id + '"]'), + ), ); var toggleList = [].slice.call( - document.querySelectorAll(Selector$3.DATA_TOGGLE) + document.querySelectorAll(Selector$3.DATA_TOGGLE), ); for (var i = 0, len = toggleList.length; i < len; i++) { @@ -1427,7 +1432,7 @@ if (actives) { Collapse._jQueryInterface.call( $(actives).not(this._selector), - "hide" + "hide", ); if (!activesData) { @@ -1466,7 +1471,7 @@ dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1532,7 +1537,7 @@ this._element.style[dimension] = ""; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1586,7 +1591,7 @@ $(children).each(function (i, element) { _this3._addAriaAndCollapsedClass( Collapse._getTargetFromElement(element), - [element] + [element], ); }); return parent; @@ -1594,7 +1599,7 @@ _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass( element, - triggerArray + triggerArray, ) { var isOpen = $(element).hasClass(ClassName$3.SHOW); @@ -1619,7 +1624,7 @@ {}, Default$1, $this.data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data && _config.toggle && /show|hide/.test(config)) { @@ -1664,25 +1669,27 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function ( - event - ) { - // preventDefault only for elements (which change the URL) not inside the collapsible element - if (event.currentTarget.tagName === "A") { - event.preventDefault(); - } + $(document).on( + Event$3.CLICK_DATA_API, + Selector$3.DATA_TOGGLE, + function (event) { + // preventDefault only for elements (which change the URL) not inside the collapsible element + if (event.currentTarget.tagName === "A") { + event.preventDefault(); + } - var $trigger = $(this); - var selector = Util.getSelectorFromElement(this); - var selectors = [].slice.call(document.querySelectorAll(selector)); - $(selectors).each(function () { - var $target = $(this); - var data = $target.data(DATA_KEY$3); - var config = data ? "toggle" : $trigger.data(); + var $trigger = $(this); + var selector = Util.getSelectorFromElement(this); + var selectors = [].slice.call(document.querySelectorAll(selector)); + $(selectors).each(function () { + var $target = $(this); + var data = $target.data(DATA_KEY$3); + var config = data ? "toggle" : $trigger.data(); - Collapse._jQueryInterface.call($target, config); - }); - }); + Collapse._jQueryInterface.call($target, config); + }); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -1722,7 +1729,7 @@ var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) var REGEXP_KEYDOWN = new RegExp( - ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE + ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE, ); var Event$4 = { HIDE: "hide" + EVENT_KEY$4, @@ -1833,7 +1840,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); } @@ -1858,7 +1865,7 @@ this._popper = new Popper( referenceElement, this._menu, - this._getPopperConfig() + this._getPopperConfig(), ); } // If this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; @@ -1975,7 +1982,7 @@ {}, this.constructor.Default, $(this._element).data(), - config + config, ); Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); return config; @@ -2028,7 +2035,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this2._config.offset(data.offsets, _this2._element) || {} + _this2._config.offset(data.offsets, _this2._element) || {}, ); return data; }; @@ -2093,7 +2100,7 @@ } var toggles = [].slice.call( - document.querySelectorAll(Selector$4.DATA_TOGGLE) + document.querySelectorAll(Selector$4.DATA_TOGGLE), ); for (var i = 0, len = toggles.length; i < len; i++) { @@ -2205,7 +2212,7 @@ } var items = [].slice.call( - parent.querySelectorAll(Selector$4.VISIBLE_ITEMS) + parent.querySelectorAll(Selector$4.VISIBLE_ITEMS), ); if (items.length === 0) { @@ -2264,16 +2271,16 @@ .on( Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.KEYDOWN_DATA_API, Selector$4.MENU, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, - Dropdown._clearMenus + Dropdown._clearMenus, ) .on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) { event.preventDefault(); @@ -2418,7 +2425,7 @@ Selector$5.DATA_DISMISS, function (event) { return _this.hide(event); - } + }, ); $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () { $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) { @@ -2469,7 +2476,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, function (event) { @@ -2564,7 +2571,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._dialog + this._dialog, ); $(this._dialog) .one(Util.TRANSITION_END, transitionComplete) @@ -2695,9 +2702,8 @@ return; } - var backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callback) .emulateTransitionEnd(backdropTransitionDuration); @@ -2713,9 +2719,8 @@ }; if ($(this._element).hasClass(ClassName$5.FADE)) { - var _backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var _backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callbackRemove) @@ -2762,10 +2767,10 @@ // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); var stickyContent = [].slice.call( - document.querySelectorAll(Selector$5.STICKY_CONTENT) + document.querySelectorAll(Selector$5.STICKY_CONTENT), ); // Adjust fixed content padding $(fixedContent).each(function (index, element) { @@ -2775,7 +2780,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px" + parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px", ); }); // Adjust sticky content margin @@ -2786,7 +2791,7 @@ .data("margin-right", actualMargin) .css( "margin-right", - parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px" + parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px", ); }); // Adjust body padding @@ -2796,7 +2801,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + this._scrollbarWidth + "px" + parseFloat(calculatedPadding) + this._scrollbarWidth + "px", ); } @@ -2806,7 +2811,7 @@ _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); $(fixedContent).each(function (index, element) { var padding = $(element).data("padding-right"); @@ -2815,7 +2820,7 @@ }); // Restore sticky content var elements = [].slice.call( - document.querySelectorAll("" + Selector$5.STICKY_CONTENT) + document.querySelectorAll("" + Selector$5.STICKY_CONTENT), ); $(elements).each(function (index, element) { var margin = $(element).data("margin-right"); @@ -2843,7 +2848,7 @@ Modal._jQueryInterface = function _jQueryInterface( config, - relatedTarget + relatedTarget, ) { return this.each(function () { var data = $(this).data(DATA_KEY$5); @@ -2852,7 +2857,7 @@ {}, Default$3, $(this).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data) { @@ -2895,41 +2900,43 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function ( - event - ) { - var _this10 = this; + $(document).on( + Event$5.CLICK_DATA_API, + Selector$5.DATA_TOGGLE, + function (event) { + var _this10 = this; - var target; - var selector = Util.getSelectorFromElement(this); + var target; + var selector = Util.getSelectorFromElement(this); - if (selector) { - target = document.querySelector(selector); - } - - var config = $(target).data(DATA_KEY$5) - ? "toggle" - : _objectSpread({}, $(target).data(), $(this).data()); + if (selector) { + target = document.querySelector(selector); + } - if (this.tagName === "A" || this.tagName === "AREA") { - event.preventDefault(); - } + var config = $(target).data(DATA_KEY$5) + ? "toggle" + : _objectSpread({}, $(target).data(), $(this).data()); - var $target = $(target).one(Event$5.SHOW, function (showEvent) { - if (showEvent.isDefaultPrevented()) { - // Only register focus restorer if modal will actually get shown - return; + if (this.tagName === "A" || this.tagName === "AREA") { + event.preventDefault(); } - $target.one(Event$5.HIDDEN, function () { - if ($(_this10).is(":visible")) { - _this10.focus(); + var $target = $(target).one(Event$5.SHOW, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; } + + $target.one(Event$5.HIDDEN, function () { + if ($(_this10).is(":visible")) { + _this10.focus(); + } + }); }); - }); - Modal._jQueryInterface.call($(target), config, this); - }); + Modal._jQueryInterface.call($(target), config, this); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -2999,14 +3006,16 @@ * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ }; - var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + var SAFE_URL_PATTERN = + /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; /** * A pattern that matches safe data URLs. Only matches image, video and audio types. * * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ - var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + var DATA_URL_PATTERN = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function allowedAttribute(attr, allowedAttributeList) { var attrName = attr.nodeName.toLowerCase(); @@ -3015,7 +3024,7 @@ if (uriAttrs.indexOf(attrName) !== -1) { return Boolean( attr.nodeValue.match(SAFE_URL_PATTERN) || - attr.nodeValue.match(DATA_URL_PATTERN) + attr.nodeValue.match(DATA_URL_PATTERN), ); } @@ -3061,7 +3070,7 @@ var attributeList = [].slice.call(el.attributes); var whitelistedAttributes = [].concat( whiteList["*"] || [], - whiteList[elName] || [] + whiteList[elName] || [], ); attributeList.forEach(function (attr) { if (!allowedAttribute(attr, whitelistedAttributes)) { @@ -3184,7 +3193,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); } // private @@ -3228,7 +3237,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -3292,7 +3301,7 @@ shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (showEvent.isDefaultPrevented() || !isInTheDom) { @@ -3377,7 +3386,7 @@ if ($(this.tip).hasClass(ClassName$6.FADE)) { var transitionDuration = Util.getTransitionDurationFromElement( - this.tip + this.tip, ); $(this.tip) .one(Util.TRANSITION_END, complete) @@ -3466,7 +3475,7 @@ var tip = this.getTipElement(); this.setElementContent( $(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), - this.getTitle() + this.getTitle(), ); $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW); }; @@ -3493,7 +3502,7 @@ content = sanitizeHtml( content, this.config.whiteList, - this.config.sanitizeFn + this.config.sanitizeFn, ); } @@ -3526,7 +3535,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this3.config.offset(data.offsets, _this3.element) || {} + _this3.config.offset(data.offsets, _this3.element) || {}, ); return data; }; @@ -3564,7 +3573,7 @@ _this4.config.selector, function (event) { return _this4.toggle(event); - } + }, ); } else if (trigger !== Trigger.MANUAL) { var eventIn = @@ -3608,7 +3617,7 @@ if (this.element.getAttribute("title") || titleType !== "string") { this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ); this.element.setAttribute("title", ""); } @@ -3621,7 +3630,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -3662,7 +3671,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -3713,7 +3722,7 @@ {}, this.constructor.Default, dataAttributes, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.delay === "number") { @@ -3737,7 +3746,7 @@ config.template = sanitizeHtml( config.template, config.whiteList, - config.sanitizeFn + config.sanitizeFn, ); } @@ -3767,16 +3776,15 @@ } }; - _proto._handlePopperPlacementChange = function _handlePopperPlacementChange( - popperData - ) { - var popperInstance = popperData.instance; - this.tip = popperInstance.popper; + _proto._handlePopperPlacementChange = + function _handlePopperPlacementChange(popperData) { + var popperInstance = popperData.instance; + this.tip = popperInstance.popper; - this._cleanTipClass(); + this._cleanTipClass(); - this.addAttachmentClass(this._getAttachment(popperData.placement)); - }; + this.addAttachmentClass(this._getAttachment(popperData.placement)); + }; _proto._fixTransition = function _fixTransition() { var tip = this.getTipElement(); @@ -3893,7 +3901,7 @@ var CLASS_PREFIX$1 = "bs-popover"; var BSCLS_PREFIX_REGEX$1 = new RegExp( "(^|\\s)" + CLASS_PREFIX$1 + "\\S+", - "g" + "g", ); var Default$5 = _objectSpread({}, Tooltip.Default, { @@ -4229,7 +4237,7 @@ config = _objectSpread( {}, Default$6, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.target !== "string") { @@ -4258,7 +4266,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }; @@ -4337,7 +4345,7 @@ }); var $link = $( - [].slice.call(document.querySelectorAll(queries.join(","))) + [].slice.call(document.querySelectorAll(queries.join(","))), ); if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) { @@ -4425,7 +4433,7 @@ $(window).on(Event$8.LOAD_DATA_API, function () { var scrollSpys = [].slice.call( - document.querySelectorAll(Selector$8.DATA_SPY) + document.querySelectorAll(Selector$8.DATA_SPY), ); var scrollSpysLength = scrollSpys.length; @@ -4516,7 +4524,7 @@ var target; var previous; var listElement = $(this._element).closest( - Selector$9.NAV_LIST_GROUP + Selector$9.NAV_LIST_GROUP, )[0]; var selector = Util.getSelectorFromElement(this._element); @@ -4592,9 +4600,8 @@ }; if (active && isTransitioning) { - var transitionDuration = Util.getTransitionDurationFromElement( - active - ); + var transitionDuration = + Util.getTransitionDurationFromElement(active); $(active) .removeClass(ClassName$9.SHOW) .one(Util.TRANSITION_END, complete) @@ -4607,12 +4614,12 @@ _proto._transitionComplete = function _transitionComplete( element, active, - callback + callback, ) { if (active) { $(active).removeClass(ClassName$9.ACTIVE); var dropdownChild = $(active.parentNode).find( - Selector$9.DROPDOWN_ACTIVE_CHILD + Selector$9.DROPDOWN_ACTIVE_CHILD, )[0]; if (dropdownChild) { @@ -4644,7 +4651,7 @@ if (dropdownElement) { var dropdownToggleList = [].slice.call( - dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE) + dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE), ); $(dropdownToggleList).addClass(ClassName$9.ACTIVE); } @@ -4694,13 +4701,15 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function ( - event - ) { - event.preventDefault(); + $(document).on( + Event$9.CLICK_DATA_API, + Selector$9.DATA_TOGGLE, + function (event) { + event.preventDefault(); - Tab._jQueryInterface.call($(this), "show"); - }); + Tab._jQueryInterface.call($(this), "show"); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -4799,7 +4808,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -4846,7 +4855,7 @@ {}, Default$7, $(this._element).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType); return config; @@ -4860,7 +4869,7 @@ Selector$a.DATA_DISMISS, function () { return _this3.hide(true); - } + }, ); }; @@ -4877,7 +4886,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -4956,7 +4965,7 @@ (function () { if (typeof $ === "undefined") { throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); } @@ -4975,7 +4984,7 @@ version[0] >= maxMajor ) { throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); } })(); diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js index a451d21..ea1c6f1 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js @@ -31,7 +31,7 @@ (e = e.concat( Object.getOwnPropertySymbols(r).filter(function (t) { return Object.getOwnPropertyDescriptor(r, t).enumerable; - }) + }), )), e.forEach(function (t) { var e, n, i; @@ -129,7 +129,7 @@ s + '" but expected type "' + o + - '".' + '".', ); } var a; @@ -235,7 +235,7 @@ g(document).on( h.CLICK_DATA_API, '[data-dismiss="alert"]', - p._handleDismiss(new p()) + p._handleDismiss(new p()), ), (g.fn[o] = p._jQueryInterface), (g.fn[o].Constructor = p), @@ -295,7 +295,7 @@ e && this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(S) + !this._element.classList.contains(S), ), t && g(this._element).toggleClass(S); }), @@ -410,7 +410,7 @@ "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints), (this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, )), this._addEventListeners(); } @@ -446,7 +446,7 @@ ? this.nextWhenVisible : this.next ).bind(this), - this._config.interval + this._config.interval, )); }), (t.to = function (t) { @@ -523,11 +523,12 @@ return n.cycle(t); }, 500 + n._config.interval))); }; - g(this._element.querySelectorAll(nt)).on(Q.DRAG_START, function ( - t - ) { - return t.preventDefault(); - }), + g(this._element.querySelectorAll(nt)).on( + Q.DRAG_START, + function (t) { + return t.preventDefault(); + }, + ), this._pointerEvent ? (g(this._element).on(Q.POINTERDOWN, function (t) { return e(t); @@ -759,8 +760,8 @@ e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + - '"]' - ) + '"]', + ), )); for ( var n = [].slice.call(document.querySelectorAll(St)), @@ -857,7 +858,7 @@ s = _.getSelectorFromElement(r); if (null !== s) g([].slice.call(document.querySelectorAll(s))).hasClass( - mt + mt, ) || g(r).addClass(yt).attr("aria-expanded", !1); } this.setTransitioning(!0); @@ -1043,7 +1044,7 @@ if (!this._inNavbar) { if ("undefined" == typeof u) throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); var o = this._element; "parent" === this._config.reference @@ -1057,7 +1058,7 @@ (this._popper = new u( o, this._menu, - this._getPopperConfig() + this._getPopperConfig(), )); } "ontouchstart" in document.documentElement && @@ -1161,7 +1162,7 @@ (t.offsets = l( {}, t.offsets, - e._config.offset(t.offsets, e._element) || {} + e._config.offset(t.offsets, e._element) || {}, )), t ); @@ -1597,7 +1598,7 @@ .data("margin-right", n) .css( "margin-right", - parseFloat(i) - o._scrollbarWidth + "px" + parseFloat(i) - o._scrollbarWidth + "px", ); }); var n = document.body.style.paddingRight, @@ -1606,7 +1607,7 @@ .data("padding-right", n) .css( "padding-right", - parseFloat(i) + this._scrollbarWidth + "px" + parseFloat(i) + this._scrollbarWidth + "px", ); } g(document.body).addClass(ce); @@ -1727,7 +1728,8 @@ ul: [], }, Ce = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi, - Te = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + Te = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function Se(t, s, e) { if (0 === t.length) return t; if (e && "function" == typeof e) return e(t); @@ -1847,7 +1849,7 @@ function i(t, e) { if ("undefined" == typeof u) throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); (this._isEnabled = !0), (this._timeout = 0), @@ -1878,7 +1880,7 @@ n || ((n = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), g(t.currentTarget).data(e, n)), (n._activeTrigger.click = !n._activeTrigger.click), @@ -1917,7 +1919,7 @@ var n = _.findShadowRoot(this.element), i = g.contains( null !== n ? n : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (t.isDefaultPrevented() || !i) return; var o = this.getTipElement(), @@ -1936,7 +1938,7 @@ g(o).data(this.constructor.DATA_KEY, this), g.contains( this.element.ownerDocument.documentElement, - this.tip + this.tip, ) || g(o).appendTo(l), g(this.element).trigger(this.constructor.Event.INSERTED), (this._popper = new u(this.element, o, { @@ -2050,7 +2052,7 @@ (t.offsets = l( {}, t.offsets, - e.config.offset(t.offsets, e.element) || {} + e.config.offset(t.offsets, e.element) || {}, )), t ); @@ -2078,7 +2080,7 @@ i.config.selector, function (t) { return i.toggle(t); - } + }, ); else if (t !== Qe) { var e = @@ -2115,7 +2117,7 @@ (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ), this.element.setAttribute("title", "")); }), @@ -2124,7 +2126,7 @@ (e = e || g(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), g(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusin" === t.type ? Me : qe] = !0), @@ -2143,7 +2145,7 @@ (e = e || g(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), g(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusout" === t.type ? Me : qe] = !1), @@ -2172,7 +2174,7 @@ {}, this.constructor.Default, e, - "object" == typeof t && t ? t : {} + "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()), @@ -2527,7 +2529,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }), @@ -2703,9 +2705,11 @@ }), (t._activate = function (t, e, n) { var i = this, - o = (!e || ("UL" !== e.nodeName && "OL" !== e.nodeName) - ? g(e).children(Fn) - : g(e).find(Un))[0], + o = ( + !e || ("UL" !== e.nodeName && "OL" !== e.nodeName) + ? g(e).children(Fn) + : g(e).find(Un) + )[0], r = n && o && g(o).hasClass(jn), s = function () { return i._transitionComplete(t, o, n); @@ -2847,7 +2851,7 @@ {}, ti, g(this._element).data(), - "object" == typeof t && t ? t : {} + "object" == typeof t && t ? t : {}, )), _.typeCheckConfig(Qn, t, this.constructor.DefaultType), t @@ -2915,7 +2919,7 @@ (function () { if ("undefined" == typeof g) throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); var t = g.fn.jquery.split(" ")[0].split("."); if ( @@ -2924,7 +2928,7 @@ 4 <= t[0] ) throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); })(), (t.Util = _), diff --git a/datacube-ows-tools/static/vendor/jquery/jquery.js b/datacube-ows-tools/static/vendor/jquery/jquery.js index cc71d3f..71162be 100644 --- a/datacube-ows-tools/static/vendor/jquery/jquery.js +++ b/datacube-ows-tools/static/vendor/jquery/jquery.js @@ -188,7 +188,7 @@ return this.pushStack( jQuery.map(this, function (elem, i) { return callback.call(elem, i, elem); - }) + }), ); }, @@ -479,11 +479,11 @@ // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( - " " + " ", ), function (i, name) { class2type["[object " + name + "]"] = name.toLowerCase(); - } + }, ); function isArrayLike(obj) { @@ -613,11 +613,11 @@ rwhitespace = new RegExp(whitespace + "+", "g"), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", - "g" + "g", ), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp( - "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" + "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*", ), rdescend = new RegExp(whitespace + "|>"), rpseudo = new RegExp(pseudos), @@ -638,7 +638,7 @@ "*(\\d+)|))" + whitespace + "*\\)|)", - "i" + "i", ), bool: new RegExp("^(?:" + booleans + ")$", "i"), // For use in libraries implementing .is() @@ -651,7 +651,7 @@ "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", - "i" + "i", ), }, rhtml = /HTML$/i, @@ -665,7 +665,7 @@ // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", - "ig" + "ig", ), funescape = function (_, escaped, escapedWhitespace) { var high = "0x" + escaped - 0x10000; @@ -680,7 +680,7 @@ : // Supplemental Plane codepoint (surrogate pair) String.fromCharCode( (high >> 10) | 0xd800, - (high & 0x3ff) | 0xdc00 + (high & 0x3ff) | 0xdc00, ); }, // CSS string/identifier serialization @@ -719,14 +719,14 @@ elem.nodeName.toLowerCase() === "fieldset" ); }, - { dir: "parentNode", next: "legend" } + { dir: "parentNode", next: "legend" }, ); // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call(preferredDoc.childNodes)), - preferredDoc.childNodes + preferredDoc.childNodes, ); // Support: Android<4.0 // Detect silently failing push.apply @@ -1114,7 +1114,7 @@ // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes // https://bugs.jquery.com/ticket/4833 return !rhtml.test( - namespace || (docElem && docElem.nodeName) || "HTML" + namespace || (docElem && docElem.nodeName) || "HTML", ); }; @@ -1177,7 +1177,7 @@ // Support: IE<9 support.getElementsByClassName = rnative.test( - document.getElementsByClassName + document.getElementsByClassName, ); // Support: IE<10 @@ -1343,7 +1343,7 @@ // Boolean attributes and "value" are not treated correctly if (!el.querySelectorAll("[selected]").length) { rbuggyQSA.push( - "\\[" + whitespace + "*(?:value|" + booleans + ")" + "\\[" + whitespace + "*(?:value|" + booleans + ")", ); } @@ -1410,7 +1410,7 @@ docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || - docElem.msMatchesSelector) + docElem.msMatchesSelector), )) ) { assert(function (el) { @@ -1752,7 +1752,7 @@ // Move the given value to match[3] whether quoted or unquoted match[3] = (match[3] || match[4] || match[5] || "").replace( runescape, - funescape + funescape, ); if (match[2] === "~=") { @@ -1851,14 +1851,14 @@ return ( pattern || ((pattern = new RegExp( - "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" + "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)", )) && classCache(className, function (elem) { return pattern.test( (typeof elem.className === "string" && elem.className) || (typeof elem.getAttribute !== "undefined" && elem.getAttribute("class")) || - "" + "", ); })) ); @@ -1889,7 +1889,7 @@ ? check && result.slice(-check.length) === check : operator === "~=" ? (" " + result.replace(rwhitespace, " ") + " ").indexOf( - check + check, ) > -1 : operator === "|=" ? result === check || @@ -2523,7 +2523,7 @@ matcher, postFilter, postFinder, - postSelector + postSelector, ) { if (postFilter && !postFilter[expando]) { postFilter = setMatcher(postFilter); @@ -2544,7 +2544,7 @@ multipleContexts( selector || "*", context.nodeType ? [context] : context, - [] + [], ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = @@ -2611,7 +2611,7 @@ matcherOut = condense( matcherOut === results ? matcherOut.splice(preexisting, matcherOut.length) - : matcherOut + : matcherOut, ); if (postFinder) { postFinder(null, results, matcherOut, xml); @@ -2636,14 +2636,14 @@ return elem === checkContext; }, implicitRelative, - true + true, ), matchAnyContext = addCombinator( function (elem) { return indexOf(checkContext, elem) > -1; }, implicitRelative, - true + true, ), matchers = [ function (elem, context, xml) { @@ -2664,7 +2664,7 @@ } else { matcher = Expr.filter[tokens[i].type].apply( null, - tokens[i].matches + tokens[i].matches, ); // Return special upon seeing a positional matcher @@ -2683,12 +2683,12 @@ // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens .slice(0, i - 1) - .concat({ value: tokens[i - 2].type === " " ? "*" : "" }) + .concat({ value: tokens[i - 2].type === " " ? "*" : "" }), ).replace(rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens((tokens = tokens.slice(j))), - j < len && toSelector(tokens) + j < len && toSelector(tokens), ); } matchers.push(matcher); @@ -2815,7 +2815,7 @@ compile = Sizzle.compile = function ( selector, - match /* Internal Use Only */ + match /* Internal Use Only */, ) { var i, setMatchers = [], @@ -2840,7 +2840,7 @@ // Cache the compiled function cached = compilerCache( selector, - matcherFromGroupMatchers(elementMatchers, setMatchers) + matcherFromGroupMatchers(elementMatchers, setMatchers), ); // Save selector and tokenization @@ -2883,7 +2883,7 @@ ) { context = (Expr.find["ID"]( token.matches[0].replace(runescape, funescape), - context + context, ) || [])[0]; if (!context) { return results; @@ -2912,7 +2912,7 @@ token.matches[0].replace(runescape, funescape), (rsibling.test(tokens[0].type) && testContext(context.parentNode)) || - context + context, )) ) { // If seed is empty or no tokens remain, we can return early @@ -2938,7 +2938,7 @@ results, !context || (rsibling.test(selector) && testContext(context.parentNode)) || - context + context, ); return results; }; @@ -2978,7 +2978,7 @@ if (!isXML) { return elem.getAttribute( name, - name.toLowerCase() === "type" ? 1 : 2 + name.toLowerCase() === "type" ? 1 : 2, ); } }); @@ -3066,7 +3066,8 @@ function nodeName(elem, name) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); } - var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; + var rsingleTag = + /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; // Implement the identical functionality for filter and not function winnow(elements, qualifier, not) { @@ -3109,7 +3110,7 @@ expr, jQuery.grep(elems, function (elem) { return elem.nodeType === 1; - }) + }), ); }; @@ -3128,7 +3129,7 @@ return true; } } - }) + }), ); } @@ -3155,7 +3156,7 @@ typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [], - false + false, ).length; }, }); @@ -3209,8 +3210,8 @@ context && context.nodeType ? context.ownerDocument || context : document, - true - ) + true, + ), ); // HANDLE: $(html, props) @@ -3327,7 +3328,7 @@ } return this.pushStack( - matched.length > 1 ? jQuery.uniqueSort(matched) : matched + matched.length > 1 ? jQuery.uniqueSort(matched) : matched, ); }, @@ -3350,19 +3351,19 @@ this, // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem + elem.jquery ? elem[0] : elem, ); }, add: function (selector, context) { return this.pushStack( - jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))) + jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))), ); }, addBack: function (selector) { return this.add( - selector == null ? this.prevObject : this.prevObject.filter(selector) + selector == null ? this.prevObject : this.prevObject.filter(selector), ); }, }); @@ -3449,7 +3450,7 @@ return this.pushStack(matched); }; - } + }, ); var rnothtmlwhite = /[^\x20\t\r\n\f]+/g; @@ -3766,7 +3767,7 @@ } else { newDefer[tuple[0] + "With"]( this, - fn ? [returned] : arguments + fn ? [returned] : arguments, ); } }); @@ -3819,7 +3820,7 @@ then.call( returned, resolve(maxDepth, deferred, Identity, special), - resolve(maxDepth, deferred, Thrower, special) + resolve(maxDepth, deferred, Thrower, special), ); // Normal processors (resolve) also hook into progress @@ -3835,8 +3836,8 @@ maxDepth, deferred, Identity, - deferred.notifyWith - ) + deferred.notifyWith, + ), ); } @@ -3864,7 +3865,7 @@ if (jQuery.Deferred.exceptionHook) { jQuery.Deferred.exceptionHook( e, - process.stackTrace + process.stackTrace, ); } @@ -3909,8 +3910,8 @@ 0, newDefer, isFunction(onProgress) ? onProgress : Identity, - newDefer.notifyWith - ) + newDefer.notifyWith, + ), ); // fulfilled_handlers.add( ... ) @@ -3918,8 +3919,8 @@ resolve( 0, newDefer, - isFunction(onFulfilled) ? onFulfilled : Identity - ) + isFunction(onFulfilled) ? onFulfilled : Identity, + ), ); // rejected_handlers.add( ... ) @@ -3927,8 +3928,8 @@ resolve( 0, newDefer, - isFunction(onRejected) ? onRejected : Thrower - ) + isFunction(onRejected) ? onRejected : Thrower, + ), ); }) .promise(); @@ -3973,7 +3974,7 @@ tuples[0][2].lock, // progress_handlers.lock - tuples[0][3].lock + tuples[0][3].lock, ); } @@ -3988,7 +3989,7 @@ deferred[tuple[0]] = function () { deferred[tuple[0] + "With"]( this === deferred ? undefined : this, - arguments + arguments, ); return this; }; @@ -4040,7 +4041,7 @@ singleValue, master.done(updateFunc(i)).resolve, master.reject, - !remaining + !remaining, ); // Use .then() to unwrap secondary thenables (cf. gh-3000) @@ -4077,7 +4078,7 @@ window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, - stack + stack, ); } }; @@ -4202,7 +4203,7 @@ fn( elems[i], key, - raw ? value : value.call(elems[i], i, fn(elems[i], key)) + raw ? value : value.call(elems[i], i, fn(elems[i], key)), ); } } @@ -4553,7 +4554,7 @@ value, arguments.length > 1, null, - true + true, ); }, @@ -4950,8 +4951,11 @@ // Support: IE <=9 only wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = - wrapMap.thead; + wrapMap.tbody = + wrapMap.tfoot = + wrapMap.colgroup = + wrapMap.caption = + wrapMap.thead; wrapMap.th = wrapMap.td; function getAll(context, tag) { @@ -4983,7 +4987,7 @@ dataPriv.set( elems[i], "globalEval", - !refElements || dataPriv.get(refElements[i], "globalEval") + !refElements || dataPriv.get(refElements[i], "globalEval"), ); } } @@ -5286,7 +5290,7 @@ selector && jQuery.expr.match.needsContext.test(selector), namespace: namespaces.join("."), }, - handleObjIn + handleObjIn, ); // Init the event handler queue if we're the first @@ -5728,7 +5732,7 @@ // Extend with the prototype to reset the above stopImmediatePropagation() jQuery.extend(saved[0], jQuery.Event.prototype), saved.slice(1), - this + this, ), }); @@ -5901,35 +5905,35 @@ return event.which; }, }, - jQuery.event.addProp + jQuery.event.addProp, ); - jQuery.each({ focus: "focusin", blur: "focusout" }, function ( - type, - delegateType - ) { - jQuery.event.special[type] = { - // Utilize native event if possible so blur/focus sequence is correct - setup: function () { - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative(this, type, expectSync); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function () { - // Force setup before trigger - leverageNative(this, type); + jQuery.each( + { focus: "focusin", blur: "focusout" }, + function (type, delegateType) { + jQuery.event.special[type] = { + // Utilize native event if possible so blur/focus sequence is correct + setup: function () { + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative(this, type, expectSync); - // Return non-false to allow normal event-path propagation - return true; - }, + // Return false to allow normal processing in the caller + return false; + }, + trigger: function () { + // Force setup before trigger + leverageNative(this, type); - delegateType: delegateType, - }; - }); + // Return non-false to allow normal event-path propagation + return true; + }, + + delegateType: delegateType, + }; + }, + ); // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. @@ -5970,7 +5974,7 @@ return ret; }, }; - } + }, ); jQuery.fn.extend({ @@ -5990,7 +5994,7 @@ ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, - handleObj.handler + handleObj.handler, ); return this; } @@ -6018,7 +6022,8 @@ var /* eslint-disable max-len */ // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + rxhtmlTag = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, /* eslint-enable */ // Support: IE <=10 - 11, Edge 12 - 13 only @@ -6143,7 +6148,7 @@ collection[0].ownerDocument, false, collection, - ignored + ignored, ); first = fragment.firstChild; @@ -6345,7 +6350,7 @@ }, null, value, - arguments.length + arguments.length, ); }, @@ -6461,7 +6466,7 @@ }, null, value, - arguments.length + arguments.length, ); }, @@ -6484,7 +6489,7 @@ // Force callback invocation }, - ignored + ignored, ); }, }); @@ -6516,7 +6521,7 @@ return this.pushStack(ret); }; - } + }, ); var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i"); @@ -6760,7 +6765,7 @@ box, isBorderBox, styles, - computedVal + computedVal, ) { var i = dimension === "width" ? 1 : 0, extra = 0, @@ -6788,7 +6793,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); // But still keep track of it otherwise @@ -6797,7 +6802,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); } @@ -6815,7 +6820,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); } } @@ -6833,11 +6838,11 @@ computedVal - delta - extra - - 0.5 + 0.5, // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter // Use an explicit zero to avoid NaN (gh-3964) - ) + ), ) || 0; } @@ -6907,7 +6912,7 @@ styles, // Provide the current computed size to request scroll gutter calculation (gh-3589) - val + val, ) + "px" ); @@ -7128,7 +7133,7 @@ elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - parseFloat(styles[dimension]) - boxModelAdjustment(elem, dimension, "border", false, styles) - - 0.5 + 0.5, ); } @@ -7159,7 +7164,7 @@ })) + "px" ); } - } + }, ); // These hooks are used by animate to expand properties @@ -7189,7 +7194,7 @@ if (prefix !== "margin") { jQuery.cssHooks[prefix + suffix].set = setPositiveNumber; } - } + }, ); jQuery.fn.extend({ @@ -7219,7 +7224,7 @@ }, name, value, - arguments.length > 1 + arguments.length > 1, ); }, }); @@ -7257,7 +7262,7 @@ this.options.duration * percent, 0, 1, - this.options.duration + this.options.duration, ); } else { this.pos = eased = percent; @@ -7396,7 +7401,7 @@ function createTween(value, prop, animation) { var tween, collection = (Animation.tweeners[prop] || []).concat( - Animation.tweeners["*"] + Animation.tweeners["*"], ), index = 0, length = collection.length; @@ -7638,7 +7643,7 @@ var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, - animation.startTime + animation.duration - currentTime + animation.startTime + animation.duration - currentTime, ), // Support: Android 2.3 only // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) @@ -7676,7 +7681,7 @@ specialEasing: {}, easing: jQuery.easing._default, }, - options + options, ), originalProperties: properties, originalOptions: options, @@ -7689,7 +7694,7 @@ animation.opts, prop, end, - animation.opts.specialEasing[prop] || animation.opts.easing + animation.opts.specialEasing[prop] || animation.opts.easing, ); animation.tweens.push(tween); return tween; @@ -7726,14 +7731,12 @@ animation, elem, props, - animation.opts + animation.opts, ); if (result) { if (isFunction(result.stop)) { - jQuery._queueHooks( - animation.elem, - animation.opts.queue - ).stop = result.stop.bind(result); + jQuery._queueHooks(animation.elem, animation.opts.queue).stop = + result.stop.bind(result); } return result; } @@ -7757,7 +7760,7 @@ elem: elem, anim: animation, queue: animation.opts.queue, - }) + }), ); return animation; @@ -7998,7 +8001,7 @@ jQuery.fn[name] = function (speed, easing, callback) { return this.animate(props, speed, easing, callback); }; - } + }, ); jQuery.timers = []; @@ -8353,7 +8356,7 @@ ], function () { jQuery.propFix[this.toLowerCase()] = this; - } + }, ); // Strip and collapse whitespace according to HTML spec @@ -8483,7 +8486,7 @@ return this.each(function (i) { jQuery(this).toggleClass( value.call(this, i, getClass(this), stateVal), - stateVal + stateVal, ); }); } @@ -8523,7 +8526,7 @@ "class", className || value === false ? "" - : dataPriv.get(this, "__className__") || "" + : dataPriv.get(this, "__className__") || "", ); } } @@ -9010,7 +9013,7 @@ prefix + "[" + (typeof v === "object" && v != null ? i : "") + "]", v, traditional, - add + add, ); } }); @@ -9110,7 +9113,8 @@ rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/gm, // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rlocalProtocol = + /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, /* Prefilters @@ -9170,7 +9174,7 @@ structure, options, originalOptions, - jqXHR + jqXHR, ) { var inspected = {}, seekingTransport = structure === transports; @@ -9182,7 +9186,7 @@ var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, - jqXHR + jqXHR, ); if ( typeof dataTypeOrTransport === "string" && @@ -9595,7 +9599,7 @@ // We also use the url parameter if available s.url = ((url || s.url || location.href) + "").replace( rprotocol, - location.protocol + "//" + location.protocol + "//", ); // Alias method option to type as per ticket #12004 @@ -9699,7 +9703,7 @@ if (jQuery.lastModified[cacheURL]) { jqXHR.setRequestHeader( "If-Modified-Since", - jQuery.lastModified[cacheURL] + jQuery.lastModified[cacheURL], ); } if (jQuery.etag[cacheURL]) { @@ -9721,7 +9725,7 @@ s.dataTypes[0] && s.accepts[s.dataTypes[0]] ? s.accepts[s.dataTypes[0]] + (s.dataTypes[0] !== "*" ? ", " + allTypes + "; q=0.01" : "") - : s.accepts["*"] + : s.accepts["*"], ); // Check for headers option @@ -9935,8 +9939,8 @@ data: data, success: callback, }, - jQuery.isPlainObject(url) && url - ) + jQuery.isPlainObject(url) && url, + ), ); }; }); @@ -10078,7 +10082,7 @@ options.url, options.async, options.username, - options.password + options.password, ); // Apply custom fields if provided @@ -10111,7 +10115,14 @@ callback = function (type) { return function () { if (callback) { - callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null; + callback = + errorCallback = + xhr.onload = + xhr.onerror = + xhr.onabort = + xhr.ontimeout = + xhr.onreadystatechange = + null; if (type === "abort") { xhr.abort(); @@ -10125,7 +10136,7 @@ complete( // File: protocol always yields status 0; see #8605, #14207 xhr.status, - xhr.statusText + xhr.statusText, ); } } else { @@ -10140,7 +10151,7 @@ typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, - xhr.getAllResponseHeaders() + xhr.getAllResponseHeaders(), ); } } @@ -10249,7 +10260,7 @@ if (evt) { complete(evt.type === "error" ? 404 : 200, evt.type); } - }) + }), ); // Use native DOM manipulation to avoid our domManip AJAX trickery @@ -10288,7 +10299,7 @@ ? "url" : typeof s.data === "string" && (s.contentType || "").indexOf( - "application/x-www-form-urlencoded" + "application/x-www-form-urlencoded", ) === 0 && rjsonp.test(s.data) && "data"); @@ -10469,7 +10480,7 @@ .append(jQuery.parseHTML(responseText)) .find(selector) : // Otherwise use the full result - responseText + responseText, ); // If the request succeeds, this function gets "data", "status", "jqXHR" @@ -10482,10 +10493,10 @@ self.each(function () { callback.apply( this, - response || [jqXHR.responseText, status, jqXHR] + response || [jqXHR.responseText, status, jqXHR], ); }); - } + }, ); } @@ -10506,7 +10517,7 @@ jQuery.fn[type] = function (fn) { return this.on(type, fn); }; - } + }, ); jQuery.expr.pseudos.animated = function (elem) { @@ -10650,7 +10661,7 @@ parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", - true + true, ); } } @@ -10717,7 +10728,7 @@ if (win) { win.scrollTo( !top ? val : win.pageXOffset, - top ? val : win.pageYOffset + top ? val : win.pageYOffset, ); } else { elem[method] = val; @@ -10725,10 +10736,10 @@ }, method, val, - arguments.length + arguments.length, ); }; - } + }, ); // Support: Safari <=7 - 9.1, Chrome <=37 - 49 @@ -10738,19 +10749,19 @@ // getComputedStyle returns percent when specified for top/left/bottom/right; // rather than make the css module depend on the offset module, just check for it here jQuery.each(["top", "left"], function (i, prop) { - jQuery.cssHooks[prop] = addGetHookIf(support.pixelPosition, function ( - elem, - computed - ) { - if (computed) { - computed = curCSS(elem, prop); + jQuery.cssHooks[prop] = addGetHookIf( + support.pixelPosition, + function (elem, computed) { + if (computed) { + computed = curCSS(elem, prop); - // If curCSS returns percentage, fallback to offset - return rnumnonpx.test(computed) - ? jQuery(elem).position()[prop] + "px" - : computed; - } - }); + // If curCSS returns percentage, fallback to offset + return rnumnonpx.test(computed) + ? jQuery(elem).position()[prop] + "px" + : computed; + } + }, + ); }); // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods @@ -10789,7 +10800,7 @@ doc["scroll" + name], elem.body["offset" + name], doc["offset" + name], - doc["client" + name] + doc["client" + name], ); } @@ -10801,10 +10812,10 @@ }, type, chainable ? margin : undefined, - chainable + chainable, ); }; - } + }, ); }); @@ -10821,7 +10832,7 @@ ? this.on(name, null, data, fn) : this.trigger(name); }; - } + }, ); jQuery.fn.extend({ diff --git a/datacube-ows-tools/static/vendor/jquery/jquery.min.js b/datacube-ows-tools/static/vendor/jquery/jquery.min.js index f55b4f1..e4d294a 100644 --- a/datacube-ows-tools/static/vendor/jquery/jquery.min.js +++ b/datacube-ows-tools/static/vendor/jquery/jquery.min.js @@ -65,87 +65,93 @@ ("number" == typeof t && 0 < t && t - 1 in e)) ); } - (k.fn = k.prototype = { - jquery: f, - constructor: k, - length: 0, - toArray: function () { - return s.call(this); - }, - get: function (e) { - return null == e ? s.call(this) : e < 0 ? this[e + this.length] : this[e]; - }, - pushStack: function (e) { - var t = k.merge(this.constructor(), e); - return (t.prevObject = this), t; - }, - each: function (e) { - return k.each(this, e); - }, - map: function (n) { - return this.pushStack( - k.map(this, function (e, t) { - return n.call(e, t, e); - }) - ); - }, - slice: function () { - return this.pushStack(s.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(0 <= n && n < t ? [this[n]] : []); - }, - end: function () { - return this.prevObject || this.constructor(); - }, - push: u, - sort: t.sort, - splice: t.splice, - }), - (k.extend = k.fn.extend = function () { - var e, - t, - n, - r, - i, - o, - a = arguments[0] || {}, - s = 1, - u = arguments.length, - l = !1; - for ( - "boolean" == typeof a && ((l = a), (a = arguments[s] || {}), s++), - "object" == typeof a || m(a) || (a = {}), - s === u && ((a = this), s--); - s < u; - s++ - ) - if (null != (e = arguments[s])) - for (t in e) - (r = e[t]), - "__proto__" !== t && - a !== r && - (l && r && (k.isPlainObject(r) || (i = Array.isArray(r))) - ? ((n = a[t]), - (o = - i && !Array.isArray(n) - ? [] - : i || k.isPlainObject(n) - ? n - : {}), - (i = !1), - (a[t] = k.extend(l, o, r))) - : void 0 !== r && (a[t] = r)); - return a; + (k.fn = k.prototype = + { + jquery: f, + constructor: k, + length: 0, + toArray: function () { + return s.call(this); + }, + get: function (e) { + return null == e + ? s.call(this) + : e < 0 + ? this[e + this.length] + : this[e]; + }, + pushStack: function (e) { + var t = k.merge(this.constructor(), e); + return (t.prevObject = this), t; + }, + each: function (e) { + return k.each(this, e); + }, + map: function (n) { + return this.pushStack( + k.map(this, function (e, t) { + return n.call(e, t, e); + }), + ); + }, + slice: function () { + return this.pushStack(s.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(0 <= n && n < t ? [this[n]] : []); + }, + end: function () { + return this.prevObject || this.constructor(); + }, + push: u, + sort: t.sort, + splice: t.splice, }), + (k.extend = k.fn.extend = + function () { + var e, + t, + n, + r, + i, + o, + a = arguments[0] || {}, + s = 1, + u = arguments.length, + l = !1; + for ( + "boolean" == typeof a && ((l = a), (a = arguments[s] || {}), s++), + "object" == typeof a || m(a) || (a = {}), + s === u && ((a = this), s--); + s < u; + s++ + ) + if (null != (e = arguments[s])) + for (t in e) + (r = e[t]), + "__proto__" !== t && + a !== r && + (l && r && (k.isPlainObject(r) || (i = Array.isArray(r))) + ? ((n = a[t]), + (o = + i && !Array.isArray(n) + ? [] + : i || k.isPlainObject(n) + ? n + : {}), + (i = !1), + (a[t] = k.extend(l, o, r))) + : void 0 !== r && (a[t] = r)); + return a; + }), k.extend({ expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), isReady: !0, @@ -222,11 +228,11 @@ "function" == typeof Symbol && (k.fn[Symbol.iterator] = t[Symbol.iterator]), k.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( - " " + " ", ), function (e, t) { n["[object " + t + "]"] = t.toLowerCase(); - } + }, ); var h = (function (n) { var e, @@ -316,7 +322,7 @@ "*(\\d+)|))" + M + "*\\)|)", - "i" + "i", ), bool: new RegExp("^(?:" + R + ")$", "i"), needsContext: new RegExp( @@ -327,7 +333,7 @@ "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)", - "i" + "i", ), }, Y = /HTML$/i, @@ -363,7 +369,7 @@ function (e) { return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase(); }, - { dir: "parentNode", next: "legend" } + { dir: "parentNode", next: "legend" }, ); try { H.apply((t = O.call(m.childNodes)), m.childNodes), @@ -521,240 +527,243 @@ return e && "undefined" != typeof e.getElementsByTagName && e; } for (e in ((d = se.support = {}), - (i = se.isXML = function (e) { - var t = e.namespaceURI, - n = (e.ownerDocument || e).documentElement; - return !Y.test(t || (n && n.nodeName) || "HTML"); - }), - (T = se.setDocument = function (e) { - var t, - n, - r = e ? e.ownerDocument || e : m; - return ( - r !== C && - 9 === r.nodeType && - r.documentElement && - ((a = (C = r).documentElement), - (E = !i(C)), - m !== C && - (n = C.defaultView) && - n.top !== n && - (n.addEventListener - ? n.addEventListener("unload", oe, !1) - : n.attachEvent && n.attachEvent("onunload", oe)), - (d.attributes = ce(function (e) { - return (e.className = "i"), !e.getAttribute("className"); - })), - (d.getElementsByTagName = ce(function (e) { - return ( - e.appendChild(C.createComment("")), - !e.getElementsByTagName("*").length - ); - })), - (d.getElementsByClassName = K.test(C.getElementsByClassName)), - (d.getById = ce(function (e) { - return ( - (a.appendChild(e).id = k), - !C.getElementsByName || !C.getElementsByName(k).length - ); - })), - d.getById - ? ((b.filter.ID = function (e) { - var t = e.replace(te, ne); - return function (e) { - return e.getAttribute("id") === t; - }; - }), - (b.find.ID = function (e, t) { - if ("undefined" != typeof t.getElementById && E) { - var n = t.getElementById(e); - return n ? [n] : []; - } - })) - : ((b.filter.ID = function (e) { - var n = e.replace(te, ne); - return function (e) { - var t = - "undefined" != typeof e.getAttributeNode && - e.getAttributeNode("id"); - return t && t.value === n; - }; - }), - (b.find.ID = function (e, t) { - if ("undefined" != typeof t.getElementById && E) { - 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++])) + (i = se.isXML = + function (e) { + var t = e.namespaceURI, + n = (e.ownerDocument || e).documentElement; + return !Y.test(t || (n && n.nodeName) || "HTML"); + }), + (T = se.setDocument = + function (e) { + var t, + n, + r = e ? e.ownerDocument || e : m; + return ( + r !== C && + 9 === r.nodeType && + r.documentElement && + ((a = (C = r).documentElement), + (E = !i(C)), + m !== C && + (n = C.defaultView) && + n.top !== n && + (n.addEventListener + ? n.addEventListener("unload", oe, !1) + : n.attachEvent && n.attachEvent("onunload", oe)), + (d.attributes = ce(function (e) { + return (e.className = "i"), !e.getAttribute("className"); + })), + (d.getElementsByTagName = ce(function (e) { + return ( + e.appendChild(C.createComment("")), + !e.getElementsByTagName("*").length + ); + })), + (d.getElementsByClassName = K.test(C.getElementsByClassName)), + (d.getById = ce(function (e) { + return ( + (a.appendChild(e).id = k), + !C.getElementsByName || !C.getElementsByName(k).length + ); + })), + d.getById + ? ((b.filter.ID = function (e) { + var t = e.replace(te, ne); + return function (e) { + return e.getAttribute("id") === t; + }; + }), + (b.find.ID = function (e, t) { + if ("undefined" != typeof t.getElementById && E) { + var n = t.getElementById(e); + return n ? [n] : []; + } + })) + : ((b.filter.ID = function (e) { + var n = e.replace(te, ne); + return function (e) { + var t = + "undefined" != typeof e.getAttributeNode && + e.getAttributeNode("id"); + return t && t.value === n; + }; + }), + (b.find.ID = function (e, t) { + if ("undefined" != typeof t.getElementById && E) { + 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 []; } - return []; + })), + (b.find.TAG = d.getElementsByTagName + ? function (e, t) { + return "undefined" != typeof t.getElementsByTagName + ? t.getElementsByTagName(e) + : d.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; + }), + (b.find.CLASS = + d.getElementsByClassName && + function (e, t) { + if ("undefined" != typeof t.getElementsByClassName && E) + return t.getElementsByClassName(e); + }), + (s = []), + (v = []), + (d.qsa = K.test(C.querySelectorAll)) && + (ce(function (e) { + (a.appendChild(e).innerHTML = + ""), + e.querySelectorAll("[msallowcapture^='']").length && + v.push("[*^$]=" + M + "*(?:''|\"\")"), + e.querySelectorAll("[selected]").length || + v.push("\\[" + M + "*(?:value|" + R + ")"), + e.querySelectorAll("[id~=" + k + "-]").length || v.push("~="), + e.querySelectorAll(":checked").length || v.push(":checked"), + e.querySelectorAll("a#" + k + "+*").length || + v.push(".#.+[+~]"); + }), + ce(function (e) { + e.innerHTML = + ""; + var t = C.createElement("input"); + t.setAttribute("type", "hidden"), + e.appendChild(t).setAttribute("name", "D"), + e.querySelectorAll("[name=d]").length && + v.push("name" + M + "*[*^$|!~]?="), + 2 !== e.querySelectorAll(":enabled").length && + v.push(":enabled", ":disabled"), + (a.appendChild(e).disabled = !0), + 2 !== e.querySelectorAll(":disabled").length && + v.push(":enabled", ":disabled"), + e.querySelectorAll("*,:x"), + v.push(",.*:"); })), - (b.find.TAG = d.getElementsByTagName - ? function (e, t) { - return "undefined" != typeof t.getElementsByTagName - ? t.getElementsByTagName(e) - : d.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; + (d.matchesSelector = K.test( + (c = + a.matches || + a.webkitMatchesSelector || + a.mozMatchesSelector || + a.oMatchesSelector || + a.msMatchesSelector), + )) && + ce(function (e) { + (d.disconnectedMatch = c.call(e, "*")), + c.call(e, "[s!='']:x"), + s.push("!=", $); }), - (b.find.CLASS = - d.getElementsByClassName && - function (e, t) { - if ("undefined" != typeof t.getElementsByClassName && E) - return t.getElementsByClassName(e); - }), - (s = []), - (v = []), - (d.qsa = K.test(C.querySelectorAll)) && - (ce(function (e) { - (a.appendChild(e).innerHTML = - ""), - e.querySelectorAll("[msallowcapture^='']").length && - v.push("[*^$]=" + M + "*(?:''|\"\")"), - e.querySelectorAll("[selected]").length || - v.push("\\[" + M + "*(?:value|" + R + ")"), - e.querySelectorAll("[id~=" + k + "-]").length || v.push("~="), - e.querySelectorAll(":checked").length || v.push(":checked"), - e.querySelectorAll("a#" + k + "+*").length || - v.push(".#.+[+~]"); - }), - ce(function (e) { - e.innerHTML = - ""; - var t = C.createElement("input"); - t.setAttribute("type", "hidden"), - e.appendChild(t).setAttribute("name", "D"), - e.querySelectorAll("[name=d]").length && - v.push("name" + M + "*[*^$|!~]?="), - 2 !== e.querySelectorAll(":enabled").length && - v.push(":enabled", ":disabled"), - (a.appendChild(e).disabled = !0), - 2 !== e.querySelectorAll(":disabled").length && - v.push(":enabled", ":disabled"), - e.querySelectorAll("*,:x"), - v.push(",.*:"); - })), - (d.matchesSelector = K.test( - (c = - a.matches || - a.webkitMatchesSelector || - a.mozMatchesSelector || - a.oMatchesSelector || - a.msMatchesSelector) - )) && - ce(function (e) { - (d.disconnectedMatch = c.call(e, "*")), - c.call(e, "[s!='']:x"), - s.push("!=", $); - }), - (v = v.length && new RegExp(v.join("|"))), - (s = s.length && new RegExp(s.join("|"))), - (t = K.test(a.compareDocumentPosition)), - (y = - t || K.test(a.contains) + (v = v.length && new RegExp(v.join("|"))), + (s = s.length && new RegExp(s.join("|"))), + (t = K.test(a.compareDocumentPosition)), + (y = + t || K.test(a.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) { - var n = 9 === e.nodeType ? e.documentElement : e, - r = t && t.parentNode; + if (e === t) return (l = !0), 0; + var n = + !e.compareDocumentPosition - !t.compareDocumentPosition; return ( - e === r || - !( - !r || - 1 !== r.nodeType || - !(n.contains - ? n.contains(r) - : e.compareDocumentPosition && - 16 & e.compareDocumentPosition(r)) - ) + n || + (1 & + (n = + (e.ownerDocument || e) === (t.ownerDocument || t) + ? e.compareDocumentPosition(t) + : 1) || + (!d.sortDetached && t.compareDocumentPosition(e) === n) + ? e === C || (e.ownerDocument === m && y(m, e)) + ? -1 + : t === C || (t.ownerDocument === m && y(m, t)) + ? 1 + : u + ? P(u, e) - P(u, t) + : 0 + : 4 & n + ? -1 + : 1) ); } : 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 (l = !0), 0; - var n = !e.compareDocumentPosition - !t.compareDocumentPosition; - return ( - n || - (1 & - (n = - (e.ownerDocument || e) === (t.ownerDocument || t) - ? e.compareDocumentPosition(t) - : 1) || - (!d.sortDetached && t.compareDocumentPosition(e) === n) - ? e === C || (e.ownerDocument === m && y(m, e)) + if (e === t) return (l = !0), 0; + var n, + r = 0, + i = e.parentNode, + o = t.parentNode, + a = [e], + s = [t]; + if (!i || !o) + return e === C + ? -1 + : t === C + ? 1 + : i ? -1 - : t === C || (t.ownerDocument === m && y(m, t)) + : o ? 1 : u ? P(u, e) - P(u, t) - : 0 - : 4 & n + : 0; + if (i === o) return pe(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 + ? pe(a[r], s[r]) + : a[r] === m ? -1 - : 1) - ); - } - : function (e, t) { - if (e === t) return (l = !0), 0; - var n, - r = 0, - i = e.parentNode, - o = t.parentNode, - a = [e], - s = [t]; - if (!i || !o) - return e === C - ? -1 - : t === C + : s[r] === m ? 1 - : i - ? -1 - : o - ? 1 - : u - ? P(u, e) - P(u, t) : 0; - if (i === o) return pe(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 - ? pe(a[r], s[r]) - : a[r] === m - ? -1 - : s[r] === m - ? 1 - : 0; - })), - C - ); - }), + })), + C + ); + }), (se.matches = function (e, t) { return se(e, null, null, t); }), @@ -817,340 +826,347 @@ } return (u = null), e; }), - (o = se.getText = function (e) { - var t, - n = "", - r = 0, - i = e.nodeType; - if (i) { - if (1 === i || 9 === i || 11 === i) { - if ("string" == typeof e.textContent) return e.textContent; - for (e = e.firstChild; e; e = e.nextSibling) n += o(e); - } else if (3 === i || 4 === i) return e.nodeValue; - } else while ((t = e[r++])) n += o(t); - return n; - }), - ((b = se.selectors = { - cacheLength: 50, - createPseudo: le, - match: G, - 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(te, ne)), - (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), - "~=" === 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] || se.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] && se.error(e[0]), - e - ); - }, - PSEUDO: function (e) { - var t, - n = !e[6] && e[2]; - return G.CHILD.test(e[0]) - ? null - : (e[3] - ? (e[2] = e[4] || e[5] || "") - : n && - X.test(n) && - (t = h(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(te, ne).toLowerCase(); - return "*" === e - ? function () { - return !0; - } - : function (e) { - return e.nodeName && e.nodeName.toLowerCase() === t; - }; - }, - CLASS: function (e) { - var t = p[e + " "]; - return ( - t || - ((t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && - p(e, function (e) { - return t.test( - ("string" == typeof e.className && e.className) || - ("undefined" != typeof e.getAttribute && - e.getAttribute("class")) || - "" - ); - })) - ); + (o = se.getText = + function (e) { + var t, + n = "", + r = 0, + i = e.nodeType; + if (i) { + if (1 === i || 9 === i || 11 === i) { + if ("string" == typeof e.textContent) return e.textContent; + for (e = e.firstChild; e; e = e.nextSibling) n += o(e); + } else if (3 === i || 4 === i) return e.nodeValue; + } else while ((t = e[r++])) n += o(t); + return n; + }), + ((b = se.selectors = + { + cacheLength: 50, + createPseudo: le, + match: G, + attrHandle: {}, + find: {}, + relative: { + ">": { dir: "parentNode", first: !0 }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: !0 }, + "~": { dir: "previousSibling" }, }, - ATTR: function (n, r, i) { - return function (e) { - var t = se.attr(e, n); - return null == t - ? "!=" === r - : !r || - ((t += ""), - "=" === r - ? t === i - : "!=" === r - ? t !== i - : "^=" === r - ? i && 0 === t.indexOf(i) - : "*=" === r - ? i && -1 < t.indexOf(i) - : "$=" === r - ? i && t.slice(-i.length) === i - : "~=" === r - ? -1 < (" " + t.replace(F, " ") + " ").indexOf(i) - : "|=" === r && - (t === i || t.slice(0, i.length + 1) === i + "-")); - }; + preFilter: { + ATTR: function (e) { + return ( + (e[1] = e[1].replace(te, ne)), + (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), + "~=" === 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] || se.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] && se.error(e[0]), + e + ); + }, + PSEUDO: function (e) { + var t, + n = !e[6] && e[2]; + return G.CHILD.test(e[0]) + ? null + : (e[3] + ? (e[2] = e[4] || e[5] || "") + : n && + X.test(n) && + (t = h(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)); + }, }, - CHILD: function (h, e, t, g, v) { - var y = "nth" !== h.slice(0, 3), - m = "last" !== h.slice(-4), - x = "of-type" === e; - return 1 === g && 0 === v - ? function (e) { - return !!e.parentNode; - } - : function (e, t, n) { - var r, - i, - o, - a, - s, - u, - l = y !== m ? "nextSibling" : "previousSibling", - c = e.parentNode, - f = x && e.nodeName.toLowerCase(), - p = !n && !x, - d = !1; - if (c) { - if (y) { - while (l) { - a = e; - while ((a = a[l])) + filter: { + TAG: function (e) { + var t = e.replace(te, ne).toLowerCase(); + return "*" === e + ? function () { + return !0; + } + : function (e) { + return e.nodeName && e.nodeName.toLowerCase() === t; + }; + }, + CLASS: function (e) { + var t = p[e + " "]; + return ( + t || + ((t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && + p(e, function (e) { + return t.test( + ("string" == typeof e.className && e.className) || + ("undefined" != typeof e.getAttribute && + e.getAttribute("class")) || + "", + ); + })) + ); + }, + ATTR: function (n, r, i) { + return function (e) { + var t = se.attr(e, n); + return null == t + ? "!=" === r + : !r || + ((t += ""), + "=" === r + ? t === i + : "!=" === r + ? t !== i + : "^=" === r + ? i && 0 === t.indexOf(i) + : "*=" === r + ? i && -1 < t.indexOf(i) + : "$=" === r + ? i && t.slice(-i.length) === i + : "~=" === r + ? -1 < (" " + t.replace(F, " ") + " ").indexOf(i) + : "|=" === r && + (t === i || t.slice(0, i.length + 1) === i + "-")); + }; + }, + CHILD: function (h, e, t, g, v) { + var y = "nth" !== h.slice(0, 3), + m = "last" !== h.slice(-4), + x = "of-type" === e; + return 1 === g && 0 === v + ? function (e) { + return !!e.parentNode; + } + : function (e, t, n) { + var r, + i, + o, + a, + s, + u, + l = y !== m ? "nextSibling" : "previousSibling", + c = e.parentNode, + f = x && e.nodeName.toLowerCase(), + p = !n && !x, + d = !1; + if (c) { + if (y) { + while (l) { + a = e; + while ((a = a[l])) + if ( + x + ? a.nodeName.toLowerCase() === f + : 1 === a.nodeType + ) + return !1; + u = l = "only" === h && !u && "nextSibling"; + } + return !0; + } + if (((u = [m ? c.firstChild : c.lastChild]), m && p)) { + (d = + (s = + (r = + (i = + (o = (a = c)[k] || (a[k] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] || [])[0] === S && + r[1]) && r[2]), + (a = s && c.childNodes[s]); + while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) + if (1 === a.nodeType && ++d && a === e) { + i[h] = [S, s, d]; + break; + } + } else if ( + (p && + (d = s = + (r = + (i = + (o = (a = e)[k] || (a[k] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] || [])[0] === S && r[1]), + !1 === d) + ) + while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) if ( - x ? a.nodeName.toLowerCase() === f : 1 === a.nodeType + (x + ? a.nodeName.toLowerCase() === f + : 1 === a.nodeType) && + ++d && + (p && + ((i = + (o = a[k] || (a[k] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] = [S, d]), + a === e) ) - return !1; - u = l = "only" === h && !u && "nextSibling"; - } - return !0; + break; + return (d -= v) === g || (d % g == 0 && 0 <= d / g); } - if (((u = [m ? c.firstChild : c.lastChild]), m && p)) { - (d = - (s = - (r = - (i = - (o = (a = c)[k] || (a[k] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] || [])[0] === S && r[1]) && - r[2]), - (a = s && c.childNodes[s]); - while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) - if (1 === a.nodeType && ++d && a === e) { - i[h] = [S, s, d]; - break; - } - } else if ( - (p && - (d = s = - (r = - (i = - (o = (a = e)[k] || (a[k] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] || [])[0] === S && r[1]), - !1 === d) - ) - while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) - if ( - (x - ? a.nodeName.toLowerCase() === f - : 1 === a.nodeType) && - ++d && - (p && - ((i = - (o = a[k] || (a[k] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] = [S, d]), - a === e) - ) - break; - return (d -= v) === g || (d % g == 0 && 0 <= d / g); - } - }; - }, - PSEUDO: function (e, o) { - var t, - a = - b.pseudos[e] || - b.setFilters[e.toLowerCase()] || - se.error("unsupported pseudo: " + e); - return a[k] - ? a(o) - : 1 < a.length - ? ((t = [e, e, "", o]), - b.setFilters.hasOwnProperty(e.toLowerCase()) - ? le(function (e, t) { - var n, - r = a(e, o), - i = r.length; - while (i--) e[(n = P(e, r[i]))] = !(t[n] = r[i]); - }) - : function (e) { - return a(e, 0, t); - }) - : a; - }, - }, - pseudos: { - not: le(function (e) { - var r = [], - i = [], - s = f(e.replace(B, "$1")); - return s[k] - ? le(function (e, t, n, r) { - var i, - o = s(e, null, r, []), - a = e.length; - while (a--) (i = o[a]) && (e[a] = !(t[a] = i)); - }) - : function (e, t, n) { - return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop(); - }; - }), - has: le(function (t) { - return function (e) { - return 0 < se(t, e).length; - }; - }), - contains: le(function (t) { - return ( - (t = t.replace(te, ne)), - function (e) { - return -1 < (e.textContent || o(e)).indexOf(t); - } - ); - }), - lang: le(function (n) { - return ( - V.test(n || "") || se.error("unsupported lang: " + n), - (n = n.replace(te, ne).toLowerCase()), - function (e) { - var t; - do { - if ( - (t = E - ? e.lang - : e.getAttribute("xml:lang") || e.getAttribute("lang")) - ) - return ( - (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") - ); - } while ((e = e.parentNode) && 1 === e.nodeType); - return !1; - } - ); - }), - target: function (e) { - var t = n.location && n.location.hash; - return t && t.slice(1) === e.id; - }, - root: function (e) { - return e === a; - }, - focus: function (e) { - return ( - e === C.activeElement && - (!C.hasFocus || C.hasFocus()) && - !!(e.type || e.href || ~e.tabIndex) - ); - }, - enabled: ge(!1), - disabled: ge(!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 !b.pseudos.empty(e); - }, - header: function (e) { - return J.test(e.nodeName); - }, - input: function (e) { - return Q.test(e.nodeName); - }, - button: function (e) { - var t = e.nodeName.toLowerCase(); - return ("input" === t && "button" === e.type) || "button" === t; + }; + }, + PSEUDO: function (e, o) { + var t, + a = + b.pseudos[e] || + b.setFilters[e.toLowerCase()] || + se.error("unsupported pseudo: " + e); + return a[k] + ? a(o) + : 1 < a.length + ? ((t = [e, e, "", o]), + b.setFilters.hasOwnProperty(e.toLowerCase()) + ? le(function (e, t) { + var n, + r = a(e, o), + i = r.length; + while (i--) e[(n = P(e, r[i]))] = !(t[n] = r[i]); + }) + : function (e) { + return a(e, 0, t); + }) + : a; + }, }, - text: function (e) { - var t; - return ( - "input" === e.nodeName.toLowerCase() && - "text" === e.type && - (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) - ); + pseudos: { + not: le(function (e) { + var r = [], + i = [], + s = f(e.replace(B, "$1")); + return s[k] + ? le(function (e, t, n, r) { + var i, + o = s(e, null, r, []), + a = e.length; + while (a--) (i = o[a]) && (e[a] = !(t[a] = i)); + }) + : function (e, t, n) { + return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop(); + }; + }), + has: le(function (t) { + return function (e) { + return 0 < se(t, e).length; + }; + }), + contains: le(function (t) { + return ( + (t = t.replace(te, ne)), + function (e) { + return -1 < (e.textContent || o(e)).indexOf(t); + } + ); + }), + lang: le(function (n) { + return ( + V.test(n || "") || se.error("unsupported lang: " + n), + (n = n.replace(te, ne).toLowerCase()), + function (e) { + var t; + do { + if ( + (t = E + ? e.lang + : e.getAttribute("xml:lang") || e.getAttribute("lang")) + ) + return ( + (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") + ); + } while ((e = e.parentNode) && 1 === e.nodeType); + return !1; + } + ); + }), + target: function (e) { + var t = n.location && n.location.hash; + return t && t.slice(1) === e.id; + }, + root: function (e) { + return e === a; + }, + focus: function (e) { + return ( + e === C.activeElement && + (!C.hasFocus || C.hasFocus()) && + !!(e.type || e.href || ~e.tabIndex) + ); + }, + enabled: ge(!1), + disabled: ge(!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 !b.pseudos.empty(e); + }, + header: function (e) { + return J.test(e.nodeName); + }, + input: function (e) { + return Q.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: ve(function () { + return [0]; + }), + last: ve(function (e, t) { + return [t - 1]; + }), + eq: ve(function (e, t, n) { + return [n < 0 ? n + t : n]; + }), + even: ve(function (e, t) { + for (var n = 0; n < t; n += 2) e.push(n); + return e; + }), + odd: ve(function (e, t) { + for (var n = 1; n < t; n += 2) e.push(n); + return e; + }), + lt: ve(function (e, t, n) { + for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r); + return e; + }), + gt: ve(function (e, t, n) { + for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); + return e; + }), }, - first: ve(function () { - return [0]; - }), - last: ve(function (e, t) { - return [t - 1]; - }), - eq: ve(function (e, t, n) { - return [n < 0 ? n + t : n]; - }), - even: ve(function (e, t) { - for (var n = 0; n < t; n += 2) e.push(n); - return e; - }), - odd: ve(function (e, t) { - for (var n = 1; n < t; n += 2) e.push(n); - return e; - }), - lt: ve(function (e, t, n) { - for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r); - return e; - }), - gt: ve(function (e, t, n) { - for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); - return e; - }), - }, - }).pseudos.nth = b.pseudos.eq), + }).pseudos.nth = b.pseudos.eq), { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })) b.pseudos[e] = de(e); for (e in { submit: !0, reset: !0 }) b.pseudos[e] = he(e); @@ -1246,7 +1262,9 @@ -1 < (i = y ? P(e, a) : s[o]) && (e[i] = !(t[i] = a)); } - } else (p = Te(p === t ? p.splice(l, p.length) : p)), y ? y(null, t, p, r) : H.apply(t, p); + } else + (p = Te(p === t ? p.splice(l, p.length) : p)), + y ? y(null, t, p, r) : H.apply(t, p); }) ); } @@ -1264,14 +1282,14 @@ return e === i; }, a, - !0 + !0, ), l = be( function (e) { return -1 < P(i, e); }, a, - !0 + !0, ), c = [ function (e, t, n) { @@ -1294,12 +1312,12 @@ xe( e .slice(0, s - 1) - .concat({ value: " " === e[s - 2].type ? "*" : "" }) + .concat({ value: " " === e[s - 2].type ? "*" : "" }), ).replace(B, "$1"), t, s < n && Ee(e.slice(s, n)), n < r && Ee((e = e.slice(n))), - n < r && xe(e) + n < r && xe(e), ); } c.push(t); @@ -1309,149 +1327,152 @@ return ( (me.prototype = b.filters = b.pseudos), (b.setFilters = new me()), - (h = se.tokenize = function (e, t) { - var n, - r, - i, - o, - a, - s, - u, - l = x[e + " "]; - if (l) return t ? 0 : l.slice(0); - (a = e), (s = []), (u = b.preFilter); - while (a) { - for (o in ((n && !(r = _.exec(a))) || - (r && (a = a.slice(r[0].length) || a), s.push((i = []))), - (n = !1), - (r = z.exec(a)) && - ((n = r.shift()), - i.push({ value: n, type: r[0].replace(B, " ") }), - (a = a.slice(n.length))), - b.filter)) - !(r = G[o].exec(a)) || - (u[o] && !(r = u[o](r))) || + (h = se.tokenize = + function (e, t) { + var n, + r, + i, + o, + a, + s, + u, + l = x[e + " "]; + if (l) return t ? 0 : l.slice(0); + (a = e), (s = []), (u = b.preFilter); + while (a) { + for (o in ((n && !(r = _.exec(a))) || + (r && (a = a.slice(r[0].length) || a), s.push((i = []))), + (n = !1), + (r = z.exec(a)) && ((n = r.shift()), - i.push({ value: n, type: o, matches: r }), - (a = a.slice(n.length))); - if (!n) break; - } - return t ? a.length : a ? se.error(e) : x(e, s).slice(0); - }), - (f = se.compile = function (e, t) { - var n, - v, - y, - m, - x, - r, - i = [], - o = [], - a = N[e + " "]; - if (!a) { - t || (t = h(e)), (n = t.length); - while (n--) (a = Ee(t[n]))[k] ? i.push(a) : o.push(a); - (a = N( - e, - ((v = o), - (m = 0 < (y = i).length), - (x = 0 < v.length), - (r = function (e, t, n, r, i) { - var o, - a, - s, - u = 0, - l = "0", - c = e && [], - f = [], - p = w, - d = e || (x && b.find.TAG("*", i)), - h = (S += null == p ? 1 : Math.random() || 0.1), - g = d.length; - for ( - i && (w = t === C || t || i); - l !== g && null != (o = d[l]); - l++ - ) { - if (x && o) { - (a = 0), t || o.ownerDocument === C || (T(o), (n = !E)); - while ((s = v[a++])) - if (s(o, t || C, n)) { - r.push(o); - break; - } - i && (S = h); + i.push({ value: n, type: r[0].replace(B, " ") }), + (a = a.slice(n.length))), + b.filter)) + !(r = G[o].exec(a)) || + (u[o] && !(r = u[o](r))) || + ((n = r.shift()), + i.push({ value: n, type: o, matches: r }), + (a = a.slice(n.length))); + if (!n) break; + } + return t ? a.length : a ? se.error(e) : x(e, s).slice(0); + }), + (f = se.compile = + function (e, t) { + var n, + v, + y, + m, + x, + r, + i = [], + o = [], + a = N[e + " "]; + if (!a) { + t || (t = h(e)), (n = t.length); + while (n--) (a = Ee(t[n]))[k] ? i.push(a) : o.push(a); + (a = N( + e, + ((v = o), + (m = 0 < (y = i).length), + (x = 0 < v.length), + (r = function (e, t, n, r, i) { + var o, + a, + s, + u = 0, + l = "0", + c = e && [], + f = [], + p = w, + d = e || (x && b.find.TAG("*", i)), + h = (S += null == p ? 1 : Math.random() || 0.1), + g = d.length; + for ( + i && (w = t === C || t || i); + l !== g && null != (o = d[l]); + l++ + ) { + if (x && o) { + (a = 0), t || o.ownerDocument === C || (T(o), (n = !E)); + while ((s = v[a++])) + if (s(o, t || C, n)) { + r.push(o); + break; + } + i && (S = h); + } + m && ((o = !s && o) && u--, e && c.push(o)); } - m && ((o = !s && o) && u--, e && c.push(o)); - } - if (((u += l), m && l !== u)) { - a = 0; - while ((s = y[a++])) s(c, f, t, n); - if (e) { - if (0 < u) while (l--) c[l] || f[l] || (f[l] = q.call(r)); - f = Te(f); + if (((u += l), m && l !== u)) { + a = 0; + while ((s = y[a++])) s(c, f, t, n); + if (e) { + if (0 < u) while (l--) c[l] || f[l] || (f[l] = q.call(r)); + f = Te(f); + } + H.apply(r, f), + i && + !e && + 0 < f.length && + 1 < u + y.length && + se.uniqueSort(r); } - H.apply(r, f), - i && - !e && - 0 < f.length && - 1 < u + y.length && - se.uniqueSort(r); - } - return i && ((S = h), (w = p)), c; - }), - m ? le(r) : r) - )).selector = e; - } - return a; - }), - (g = se.select = function (e, t, n, r) { - var i, - o, - a, - s, - u, - l = "function" == typeof e && e, - c = !r && h((e = l.selector || e)); - if (((n = n || []), 1 === c.length)) { - if ( - 2 < (o = c[0] = c[0].slice(0)).length && - "ID" === (a = o[0]).type && - 9 === t.nodeType && - E && - b.relative[o[1].type] - ) { - if (!(t = (b.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) - return n; - l && (t = t.parentNode), (e = e.slice(o.shift().value.length)); + return i && ((S = h), (w = p)), c; + }), + m ? le(r) : r), + )).selector = e; } - i = G.needsContext.test(e) ? 0 : o.length; - while (i--) { - if (((a = o[i]), b.relative[(s = a.type)])) break; + return a; + }), + (g = se.select = + function (e, t, n, r) { + var i, + o, + a, + s, + u, + l = "function" == typeof e && e, + c = !r && h((e = l.selector || e)); + if (((n = n || []), 1 === c.length)) { if ( - (u = b.find[s]) && - (r = u( - a.matches[0].replace(te, ne), - (ee.test(o[0].type) && ye(t.parentNode)) || t - )) + 2 < (o = c[0] = c[0].slice(0)).length && + "ID" === (a = o[0]).type && + 9 === t.nodeType && + E && + b.relative[o[1].type] ) { - if ((o.splice(i, 1), !(e = r.length && xe(o)))) - return H.apply(n, r), n; - break; + if (!(t = (b.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) + return n; + l && (t = t.parentNode), (e = e.slice(o.shift().value.length)); + } + i = G.needsContext.test(e) ? 0 : o.length; + while (i--) { + if (((a = o[i]), b.relative[(s = a.type)])) break; + if ( + (u = b.find[s]) && + (r = u( + a.matches[0].replace(te, ne), + (ee.test(o[0].type) && ye(t.parentNode)) || t, + )) + ) { + if ((o.splice(i, 1), !(e = r.length && xe(o)))) + return H.apply(n, r), n; + break; + } } } - } - return ( - (l || f(e, c))( - r, - t, - !E, - n, - !t || (ee.test(e) && ye(t.parentNode)) || t - ), - n - ); - }), + return ( + (l || f(e, c))( + r, + t, + !E, + n, + !t || (ee.test(e) && ye(t.parentNode)) || t, + ), + n + ); + }), (d.sortStable = k.split("").sort(D).join("") === k), (d.detectDuplicates = !!l), T(), @@ -1548,7 +1569,7 @@ e, k.grep(t, function (e) { return 1 === e.nodeType; - }) + }), ) ); }), @@ -1562,7 +1583,7 @@ return this.pushStack( k(e).filter(function () { for (t = 0; t < r; t++) if (k.contains(i[t], this)) return !0; - }) + }), ); for (n = this.pushStack([]), t = 0; t < r; t++) k.find(e, i[t], n); return 1 < r ? k.uniqueSort(n) : n; @@ -1597,7 +1618,7 @@ ((t = t instanceof k ? t[0] : t), k.merge( this, - k.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : E, !0) + k.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : E, !0), ), D.test(r[1]) && k.isPlainObject(t)) ) @@ -1721,7 +1742,7 @@ this.pushStack(n) ); }; - } + }, ); var R = /[^\x20\t\r\n\f]+/g; function M(e) { @@ -1914,7 +1935,7 @@ e, l(u, o, M, s), l(u, o, I, s), - l(u, o, M, o.notifyWith) + l(u, o, M, o.notifyWith), )) : (a !== M && ((n = void 0), (r = [e])), (s || o.resolveWith)(n, r)); @@ -1966,7 +1987,7 @@ o[3 - e][2].disable, o[3 - e][3].disable, o[0][2].lock, - o[0][3].lock + o[0][3].lock, ), n.add(t[3].fire), (s[t[0]] = function () { @@ -2224,7 +2245,7 @@ e, 1 < arguments.length, null, - !0 + !0, ); }, removeData: function (e) { @@ -2262,7 +2283,7 @@ function () { k.dequeue(e, t); }, - o + o, )), !r && o && o.empty.fire(); }, @@ -2578,7 +2599,7 @@ value: k.event.trigger( k.extend(r[0], k.Event.prototype), r.slice(1), - this + this, ), }), e.stopImmediatePropagation()); @@ -2607,11 +2628,12 @@ n.guid || (n.guid = k.guid++), (u = v.events) || (u = v.events = {}), (a = v.handle) || - (a = v.handle = function (e) { - return "undefined" != typeof k && k.event.triggered !== e.type - ? k.event.dispatch.apply(t, arguments) - : void 0; - }), + (a = v.handle = + function (e) { + return "undefined" != typeof k && k.event.triggered !== e.type + ? k.event.dispatch.apply(t, arguments) + : void 0; + }), (l = (e = (e || "").match(R) || [""]).length); while (l--) (d = g = (s = Ee.exec(e[l]) || [])[1]), @@ -2631,7 +2653,7 @@ needsContext: i && k.expr.match.needsContext.test(i), namespace: h.join("."), }, - o + o, )), (p = u[d]) || (((p = u[d] = []).delegateCount = 0), @@ -2903,7 +2925,7 @@ : e.which; }, }, - k.event.addProp + k.event.addProp, ), k.each({ focus: "focusin", blur: "focusout" }, function (e, t) { k.event.special[e] = { @@ -2940,7 +2962,7 @@ ); }, }; - } + }, ), k.fn.extend({ on: function (e, t, n, r) { @@ -2957,7 +2979,7 @@ k(e.delegateTarget).off( r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, - r.handler + r.handler, ), this ); @@ -2974,7 +2996,8 @@ ); }, }); - var je = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + var je = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, qe = /\s*$/g; @@ -3134,7 +3157,7 @@ }, null, e, - arguments.length + arguments.length, ); }, append: function () { @@ -3206,7 +3229,7 @@ }, null, e, - arguments.length + arguments.length, ); }, replaceWith: function () { @@ -3219,7 +3242,7 @@ k.inArray(this, n) < 0 && (k.cleanData(ve(this)), t && t.replaceChild(e, this)); }, - n + n, ); }, }), @@ -3239,7 +3262,7 @@ u.apply(n, t.get()); return this.pushStack(n); }; - } + }, ); var $e = new RegExp("^(" + te + ")(?!px)[a-z%]+$", "i"), Fe = function (e) { @@ -3379,8 +3402,8 @@ Math.max( 0, Math.ceil( - e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - 0.5 - ) + e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - 0.5, + ), ) || 0), u ); @@ -3517,7 +3540,7 @@ e["offset" + u[0].toUpperCase() + u.slice(1)] - parseFloat(i[u]) - et(e, u, "border", !1, i) - - 0.5 + 0.5, )), s && (r = ne.exec(t)) && @@ -3570,7 +3593,7 @@ }, e, t, - 1 < arguments.length + 1 < arguments.length, ); }, }), @@ -3594,13 +3617,14 @@ n = nt.propHooks[this.prop]; return ( this.options.duration - ? (this.pos = t = k.easing[this.easing]( - e, - this.options.duration * e, - 0, - 1, - this.options.duration - )) + ? (this.pos = t = + k.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 && @@ -3630,11 +3654,12 @@ : k.style(e.elem, e.prop, e.now + e.unit); }, }, - }).scrollTop = nt.propHooks.scrollLeft = { - set: function (e) { - e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now); - }, - }), + }).scrollTop = nt.propHooks.scrollLeft = + { + set: function (e) { + e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now); + }, + }), (k.easing = { linear: function (e) { return e; @@ -3728,7 +3753,7 @@ l.opts, e, t, - l.opts.specialEasing[e] || l.opts.easing + l.opts.specialEasing[e] || l.opts.easing, ); return l.tweens.push(n), n; }, @@ -4003,7 +4028,7 @@ k.fn[e] = function (e, t, n) { return this.animate(r, e, t, n); }; - } + }, ), (k.timers = []), (k.fx.tick = function () { @@ -4198,7 +4223,7 @@ ], function () { k.propFix[this.toLowerCase()] = this; - } + }, ), k.fn.extend({ addClass: function (t) { @@ -4266,7 +4291,14 @@ (t = 0), (n = k(this)), (r = bt(i)); while ((e = r[t++])) n.hasClass(e) ? n.removeClass(e) : n.addClass(e); - } else (void 0 !== i && "boolean" !== o) || ((e = xt(this)) && Q.set(this, "__className__", e), this.setAttribute && this.setAttribute("class", e || !1 === i ? "" : Q.get(this, "__className__") || "")); + } else + (void 0 !== i && "boolean" !== o) || + ((e = xt(this)) && Q.set(this, "__className__", e), + this.setAttribute && + this.setAttribute( + "class", + e || !1 === i ? "" : Q.get(this, "__className__") || "", + )); }); }, hasClass: function (e) { @@ -4521,7 +4553,7 @@ n + "[" + ("object" == typeof t && null != t ? e : "") + "]", t, r, - i + i, ); }); else if (r || "object" !== w(e)) i(n, e); @@ -4633,9 +4665,10 @@ ajaxSettings: { url: Et.href, type: "GET", - isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test( - Et.protocol - ), + isLocal: + /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test( + Et.protocol, + ), global: !0, processData: !0, async: !0, @@ -4733,7 +4766,7 @@ (x.promise(T), (v.url = ((e || v.url || Et.href) + "").replace( Mt, - Et.protocol + "//" + Et.protocol + "//", )), (v.type = t.method || t.type || v.method || v.type), (v.dataTypes = (v.dataType || "*").toLowerCase().match(R) || [""]), @@ -4769,7 +4802,7 @@ v.processData && 0 === (v.contentType || "").indexOf( - "application/x-www-form-urlencoded" + "application/x-www-form-urlencoded", ) && (v.data = v.data.replace(Lt, "+")) : ((o = v.url.slice(f.length)), @@ -4791,7 +4824,7 @@ v.dataTypes[0] && v.accepts[v.dataTypes[0]] ? v.accepts[v.dataTypes[0]] + ("*" !== v.dataTypes[0] ? ", " + $t + "; q=0.01" : "") - : v.accepts["*"] + : v.accepts["*"], ), v.headers)) T.setRequestHeader(i, v.headers[i]); @@ -4948,8 +4981,8 @@ k.ajax( k.extend( { url: e, type: i, dataType: r, data: t, success: n }, - k.isPlainObject(e) && e - ) + k.isPlainObject(e) && e, + ), ) ); }; @@ -5052,7 +5085,14 @@ (o = function (e) { return function () { o && - ((o = a = r.onload = r.onerror = r.onabort = r.ontimeout = r.onreadystatechange = null), + ((o = + a = + r.onload = + r.onerror = + r.onabort = + r.ontimeout = + r.onreadystatechange = + null), "abort" === e ? r.abort() : "error" === e @@ -5066,7 +5106,7 @@ "string" != typeof r.responseText ? { binary: r.response } : { text: r.responseText }, - r.getAllResponseHeaders() + r.getAllResponseHeaders(), )); }; }), @@ -5124,7 +5164,7 @@ r.remove(), (i = null), e && t("error" === e.type ? 404 : 200, e.type); - }) + }), )), E.head.appendChild(r[0]); }, @@ -5154,15 +5194,14 @@ : "string" == typeof e.data && 0 === (e.contentType || "").indexOf( - "application/x-www-form-urlencoded" + "application/x-www-form-urlencoded", ) && Yt.test(e.data) && "data"); if (a || "jsonp" === e.dataTypes[0]) return ( - (r = e.jsonpCallback = m(e.jsonpCallback) - ? e.jsonpCallback() - : e.jsonpCallback), + (r = e.jsonpCallback = + m(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback), a ? (e[a] = e[a].replace(Yt, "$1" + r)) : !1 !== e.jsonp && @@ -5194,9 +5233,10 @@ : ("boolean" == typeof t && ((n = t), (t = !1)), t || (y.createHTMLDocument - ? (((r = (t = E.implementation.createHTMLDocument( - "" - )).createElement("base")).href = E.location.href), + ? (((r = (t = + E.implementation.createHTMLDocument("")).createElement( + "base", + )).href = E.location.href), t.head.appendChild(r)) : (t = E)), (o = !n && []), @@ -5231,7 +5271,7 @@ a.each(function () { n.apply(this, o || [e.responseText, t, e]); }); - } + }, ), this ); @@ -5249,7 +5289,7 @@ k.fn[t] = function (e) { return this.on(t, e); }; - } + }, ), (k.expr.pseudos.animated = function (t) { return k.grep(k.timers, function (e) { @@ -5337,76 +5377,76 @@ }); }, }), - k.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function ( - t, - i - ) { - var o = "pageYOffset" === i; - k.fn[t] = function (e) { - return _( - this, - function (e, t, n) { - var r; - if ( - (x(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView), - void 0 === n) - ) - return r ? r[i] : e[t]; - r - ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset) - : (e[t] = n); - }, - t, - e, - arguments.length - ); - }; - }), - k.each(["top", "left"], function (e, n) { - k.cssHooks[n] = ze(y.pixelPosition, function (e, t) { - if (t) - return (t = _e(e, n)), $e.test(t) ? k(e).position()[n] + "px" : t; - }); - }), - k.each({ Height: "height", Width: "width" }, function (a, s) { - k.each({ padding: "inner" + a, content: s, "": "outer" + a }, function ( - r, - o - ) { - k.fn[o] = function (e, t) { - var n = arguments.length && (r || "boolean" != typeof e), - i = r || (!0 === e || !0 === t ? "margin" : "border"); + k.each( + { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, + function (t, i) { + var o = "pageYOffset" === i; + k.fn[t] = function (e) { return _( this, function (e, t, n) { var r; - return x(e) - ? 0 === o.indexOf("outer") - ? e["inner" + a] - : e.document.documentElement["client" + a] - : 9 === e.nodeType - ? ((r = e.documentElement), - Math.max( - e.body["scroll" + a], - r["scroll" + a], - e.body["offset" + a], - r["offset" + a], - r["client" + a] - )) - : void 0 === n - ? k.css(e, t, i) - : k.style(e, t, n, i); + if ( + (x(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView), + void 0 === n) + ) + return r ? r[i] : e[t]; + r + ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset) + : (e[t] = n); }, - s, - n ? e : void 0, - n + t, + e, + arguments.length, ); }; + }, + ), + k.each(["top", "left"], function (e, n) { + k.cssHooks[n] = ze(y.pixelPosition, function (e, t) { + if (t) + return (t = _e(e, n)), $e.test(t) ? k(e).position()[n] + "px" : t; }); }), + k.each({ Height: "height", Width: "width" }, function (a, s) { + k.each( + { padding: "inner" + a, content: s, "": "outer" + a }, + function (r, o) { + k.fn[o] = function (e, t) { + var n = arguments.length && (r || "boolean" != typeof e), + i = r || (!0 === e || !0 === t ? "margin" : "border"); + return _( + this, + function (e, t, n) { + var r; + return x(e) + ? 0 === o.indexOf("outer") + ? e["inner" + a] + : e.document.documentElement["client" + a] + : 9 === e.nodeType + ? ((r = e.documentElement), + Math.max( + e.body["scroll" + a], + r["scroll" + a], + e.body["offset" + a], + r["offset" + a], + r["client" + a], + )) + : void 0 === n + ? k.css(e, t, i) + : k.style(e, t, n, i); + }, + s, + n ? e : void 0, + n, + ); + }; + }, + ); + }), k.each( "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split( - " " + " ", ), function (e, n) { k.fn[n] = function (e, t) { @@ -5414,7 +5454,7 @@ ? this.on(n, null, e, t) : this.trigger(n); }; - } + }, ), k.fn.extend({ hover: function (e, t) { @@ -5444,7 +5484,8 @@ (r = s.call(arguments, 2)), ((i = function () { return e.apply(t || this, r.concat(s.call(arguments))); - }).guid = e.guid = e.guid || k.guid++), + }).guid = e.guid = + e.guid || k.guid++), i ); }), diff --git a/datacube-ows-tools/static/vendor/jquery/jquery.slim.js b/datacube-ows-tools/static/vendor/jquery/jquery.slim.js index a25b85c..7c5a14c 100644 --- a/datacube-ows-tools/static/vendor/jquery/jquery.slim.js +++ b/datacube-ows-tools/static/vendor/jquery/jquery.slim.js @@ -189,7 +189,7 @@ return this.pushStack( jQuery.map(this, function (elem, i) { return callback.call(elem, i, elem); - }) + }), ); }, @@ -480,11 +480,11 @@ // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( - " " + " ", ), function (i, name) { class2type["[object " + name + "]"] = name.toLowerCase(); - } + }, ); function isArrayLike(obj) { @@ -614,11 +614,11 @@ rwhitespace = new RegExp(whitespace + "+", "g"), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", - "g" + "g", ), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp( - "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" + "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*", ), rdescend = new RegExp(whitespace + "|>"), rpseudo = new RegExp(pseudos), @@ -639,7 +639,7 @@ "*(\\d+)|))" + whitespace + "*\\)|)", - "i" + "i", ), bool: new RegExp("^(?:" + booleans + ")$", "i"), // For use in libraries implementing .is() @@ -652,7 +652,7 @@ "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", - "i" + "i", ), }, rhtml = /HTML$/i, @@ -666,7 +666,7 @@ // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", - "ig" + "ig", ), funescape = function (_, escaped, escapedWhitespace) { var high = "0x" + escaped - 0x10000; @@ -681,7 +681,7 @@ : // Supplemental Plane codepoint (surrogate pair) String.fromCharCode( (high >> 10) | 0xd800, - (high & 0x3ff) | 0xdc00 + (high & 0x3ff) | 0xdc00, ); }, // CSS string/identifier serialization @@ -720,14 +720,14 @@ elem.nodeName.toLowerCase() === "fieldset" ); }, - { dir: "parentNode", next: "legend" } + { dir: "parentNode", next: "legend" }, ); // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call(preferredDoc.childNodes)), - preferredDoc.childNodes + preferredDoc.childNodes, ); // Support: Android<4.0 // Detect silently failing push.apply @@ -1115,7 +1115,7 @@ // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes // https://bugs.jquery.com/ticket/4833 return !rhtml.test( - namespace || (docElem && docElem.nodeName) || "HTML" + namespace || (docElem && docElem.nodeName) || "HTML", ); }; @@ -1178,7 +1178,7 @@ // Support: IE<9 support.getElementsByClassName = rnative.test( - document.getElementsByClassName + document.getElementsByClassName, ); // Support: IE<10 @@ -1344,7 +1344,7 @@ // Boolean attributes and "value" are not treated correctly if (!el.querySelectorAll("[selected]").length) { rbuggyQSA.push( - "\\[" + whitespace + "*(?:value|" + booleans + ")" + "\\[" + whitespace + "*(?:value|" + booleans + ")", ); } @@ -1411,7 +1411,7 @@ docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || - docElem.msMatchesSelector) + docElem.msMatchesSelector), )) ) { assert(function (el) { @@ -1753,7 +1753,7 @@ // Move the given value to match[3] whether quoted or unquoted match[3] = (match[3] || match[4] || match[5] || "").replace( runescape, - funescape + funescape, ); if (match[2] === "~=") { @@ -1852,14 +1852,14 @@ return ( pattern || ((pattern = new RegExp( - "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" + "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)", )) && classCache(className, function (elem) { return pattern.test( (typeof elem.className === "string" && elem.className) || (typeof elem.getAttribute !== "undefined" && elem.getAttribute("class")) || - "" + "", ); })) ); @@ -1890,7 +1890,7 @@ ? check && result.slice(-check.length) === check : operator === "~=" ? (" " + result.replace(rwhitespace, " ") + " ").indexOf( - check + check, ) > -1 : operator === "|=" ? result === check || @@ -2524,7 +2524,7 @@ matcher, postFilter, postFinder, - postSelector + postSelector, ) { if (postFilter && !postFilter[expando]) { postFilter = setMatcher(postFilter); @@ -2545,7 +2545,7 @@ multipleContexts( selector || "*", context.nodeType ? [context] : context, - [] + [], ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = @@ -2612,7 +2612,7 @@ matcherOut = condense( matcherOut === results ? matcherOut.splice(preexisting, matcherOut.length) - : matcherOut + : matcherOut, ); if (postFinder) { postFinder(null, results, matcherOut, xml); @@ -2637,14 +2637,14 @@ return elem === checkContext; }, implicitRelative, - true + true, ), matchAnyContext = addCombinator( function (elem) { return indexOf(checkContext, elem) > -1; }, implicitRelative, - true + true, ), matchers = [ function (elem, context, xml) { @@ -2665,7 +2665,7 @@ } else { matcher = Expr.filter[tokens[i].type].apply( null, - tokens[i].matches + tokens[i].matches, ); // Return special upon seeing a positional matcher @@ -2684,12 +2684,12 @@ // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens .slice(0, i - 1) - .concat({ value: tokens[i - 2].type === " " ? "*" : "" }) + .concat({ value: tokens[i - 2].type === " " ? "*" : "" }), ).replace(rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens((tokens = tokens.slice(j))), - j < len && toSelector(tokens) + j < len && toSelector(tokens), ); } matchers.push(matcher); @@ -2816,7 +2816,7 @@ compile = Sizzle.compile = function ( selector, - match /* Internal Use Only */ + match /* Internal Use Only */, ) { var i, setMatchers = [], @@ -2841,7 +2841,7 @@ // Cache the compiled function cached = compilerCache( selector, - matcherFromGroupMatchers(elementMatchers, setMatchers) + matcherFromGroupMatchers(elementMatchers, setMatchers), ); // Save selector and tokenization @@ -2884,7 +2884,7 @@ ) { context = (Expr.find["ID"]( token.matches[0].replace(runescape, funescape), - context + context, ) || [])[0]; if (!context) { return results; @@ -2913,7 +2913,7 @@ token.matches[0].replace(runescape, funescape), (rsibling.test(tokens[0].type) && testContext(context.parentNode)) || - context + context, )) ) { // If seed is empty or no tokens remain, we can return early @@ -2939,7 +2939,7 @@ results, !context || (rsibling.test(selector) && testContext(context.parentNode)) || - context + context, ); return results; }; @@ -2979,7 +2979,7 @@ if (!isXML) { return elem.getAttribute( name, - name.toLowerCase() === "type" ? 1 : 2 + name.toLowerCase() === "type" ? 1 : 2, ); } }); @@ -3067,7 +3067,8 @@ function nodeName(elem, name) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); } - var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; + var rsingleTag = + /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; // Implement the identical functionality for filter and not function winnow(elements, qualifier, not) { @@ -3110,7 +3111,7 @@ expr, jQuery.grep(elems, function (elem) { return elem.nodeType === 1; - }) + }), ); }; @@ -3129,7 +3130,7 @@ return true; } } - }) + }), ); } @@ -3156,7 +3157,7 @@ typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [], - false + false, ).length; }, }); @@ -3210,8 +3211,8 @@ context && context.nodeType ? context.ownerDocument || context : document, - true - ) + true, + ), ); // HANDLE: $(html, props) @@ -3328,7 +3329,7 @@ } return this.pushStack( - matched.length > 1 ? jQuery.uniqueSort(matched) : matched + matched.length > 1 ? jQuery.uniqueSort(matched) : matched, ); }, @@ -3351,19 +3352,19 @@ this, // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem + elem.jquery ? elem[0] : elem, ); }, add: function (selector, context) { return this.pushStack( - jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))) + jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))), ); }, addBack: function (selector) { return this.add( - selector == null ? this.prevObject : this.prevObject.filter(selector) + selector == null ? this.prevObject : this.prevObject.filter(selector), ); }, }); @@ -3450,7 +3451,7 @@ return this.pushStack(matched); }; - } + }, ); var rnothtmlwhite = /[^\x20\t\r\n\f]+/g; @@ -3767,7 +3768,7 @@ } else { newDefer[tuple[0] + "With"]( this, - fn ? [returned] : arguments + fn ? [returned] : arguments, ); } }); @@ -3820,7 +3821,7 @@ then.call( returned, resolve(maxDepth, deferred, Identity, special), - resolve(maxDepth, deferred, Thrower, special) + resolve(maxDepth, deferred, Thrower, special), ); // Normal processors (resolve) also hook into progress @@ -3836,8 +3837,8 @@ maxDepth, deferred, Identity, - deferred.notifyWith - ) + deferred.notifyWith, + ), ); } @@ -3865,7 +3866,7 @@ if (jQuery.Deferred.exceptionHook) { jQuery.Deferred.exceptionHook( e, - process.stackTrace + process.stackTrace, ); } @@ -3910,8 +3911,8 @@ 0, newDefer, isFunction(onProgress) ? onProgress : Identity, - newDefer.notifyWith - ) + newDefer.notifyWith, + ), ); // fulfilled_handlers.add( ... ) @@ -3919,8 +3920,8 @@ resolve( 0, newDefer, - isFunction(onFulfilled) ? onFulfilled : Identity - ) + isFunction(onFulfilled) ? onFulfilled : Identity, + ), ); // rejected_handlers.add( ... ) @@ -3928,8 +3929,8 @@ resolve( 0, newDefer, - isFunction(onRejected) ? onRejected : Thrower - ) + isFunction(onRejected) ? onRejected : Thrower, + ), ); }) .promise(); @@ -3974,7 +3975,7 @@ tuples[0][2].lock, // progress_handlers.lock - tuples[0][3].lock + tuples[0][3].lock, ); } @@ -3989,7 +3990,7 @@ deferred[tuple[0]] = function () { deferred[tuple[0] + "With"]( this === deferred ? undefined : this, - arguments + arguments, ); return this; }; @@ -4041,7 +4042,7 @@ singleValue, master.done(updateFunc(i)).resolve, master.reject, - !remaining + !remaining, ); // Use .then() to unwrap secondary thenables (cf. gh-3000) @@ -4078,7 +4079,7 @@ window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, - stack + stack, ); } }; @@ -4203,7 +4204,7 @@ fn( elems[i], key, - raw ? value : value.call(elems[i], i, fn(elems[i], key)) + raw ? value : value.call(elems[i], i, fn(elems[i], key)), ); } } @@ -4554,7 +4555,7 @@ value, arguments.length > 1, null, - true + true, ); }, @@ -4951,8 +4952,11 @@ // Support: IE <=9 only wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = - wrapMap.thead; + wrapMap.tbody = + wrapMap.tfoot = + wrapMap.colgroup = + wrapMap.caption = + wrapMap.thead; wrapMap.th = wrapMap.td; function getAll(context, tag) { @@ -4984,7 +4988,7 @@ dataPriv.set( elems[i], "globalEval", - !refElements || dataPriv.get(refElements[i], "globalEval") + !refElements || dataPriv.get(refElements[i], "globalEval"), ); } } @@ -5287,7 +5291,7 @@ selector && jQuery.expr.match.needsContext.test(selector), namespace: namespaces.join("."), }, - handleObjIn + handleObjIn, ); // Init the event handler queue if we're the first @@ -5729,7 +5733,7 @@ // Extend with the prototype to reset the above stopImmediatePropagation() jQuery.extend(saved[0], jQuery.Event.prototype), saved.slice(1), - this + this, ), }); @@ -5902,35 +5906,35 @@ return event.which; }, }, - jQuery.event.addProp + jQuery.event.addProp, ); - jQuery.each({ focus: "focusin", blur: "focusout" }, function ( - type, - delegateType - ) { - jQuery.event.special[type] = { - // Utilize native event if possible so blur/focus sequence is correct - setup: function () { - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative(this, type, expectSync); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function () { - // Force setup before trigger - leverageNative(this, type); + jQuery.each( + { focus: "focusin", blur: "focusout" }, + function (type, delegateType) { + jQuery.event.special[type] = { + // Utilize native event if possible so blur/focus sequence is correct + setup: function () { + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative(this, type, expectSync); - // Return non-false to allow normal event-path propagation - return true; - }, + // Return false to allow normal processing in the caller + return false; + }, + trigger: function () { + // Force setup before trigger + leverageNative(this, type); - delegateType: delegateType, - }; - }); + // Return non-false to allow normal event-path propagation + return true; + }, + + delegateType: delegateType, + }; + }, + ); // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. @@ -5971,7 +5975,7 @@ return ret; }, }; - } + }, ); jQuery.fn.extend({ @@ -5991,7 +5995,7 @@ ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, - handleObj.handler + handleObj.handler, ); return this; } @@ -6019,7 +6023,8 @@ var /* eslint-disable max-len */ // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + rxhtmlTag = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, /* eslint-enable */ // Support: IE <=10 - 11, Edge 12 - 13 only @@ -6144,7 +6149,7 @@ collection[0].ownerDocument, false, collection, - ignored + ignored, ); first = fragment.firstChild; @@ -6346,7 +6351,7 @@ }, null, value, - arguments.length + arguments.length, ); }, @@ -6462,7 +6467,7 @@ }, null, value, - arguments.length + arguments.length, ); }, @@ -6485,7 +6490,7 @@ // Force callback invocation }, - ignored + ignored, ); }, }); @@ -6517,7 +6522,7 @@ return this.pushStack(ret); }; - } + }, ); var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i"); @@ -6761,7 +6766,7 @@ box, isBorderBox, styles, - computedVal + computedVal, ) { var i = dimension === "width" ? 1 : 0, extra = 0, @@ -6789,7 +6794,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); // But still keep track of it otherwise @@ -6798,7 +6803,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); } @@ -6816,7 +6821,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); } } @@ -6834,11 +6839,11 @@ computedVal - delta - extra - - 0.5 + 0.5, // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter // Use an explicit zero to avoid NaN (gh-3964) - ) + ), ) || 0; } @@ -6908,7 +6913,7 @@ styles, // Provide the current computed size to request scroll gutter calculation (gh-3589) - val + val, ) + "px" ); @@ -7129,7 +7134,7 @@ elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - parseFloat(styles[dimension]) - boxModelAdjustment(elem, dimension, "border", false, styles) - - 0.5 + 0.5, ); } @@ -7160,7 +7165,7 @@ })) + "px" ); } - } + }, ); // These hooks are used by animate to expand properties @@ -7190,7 +7195,7 @@ if (prefix !== "margin") { jQuery.cssHooks[prefix + suffix].set = setPositiveNumber; } - } + }, ); jQuery.fn.extend({ @@ -7220,7 +7225,7 @@ }, name, value, - arguments.length > 1 + arguments.length > 1, ); }, }); @@ -7527,7 +7532,7 @@ ], function () { jQuery.propFix[this.toLowerCase()] = this; - } + }, ); // Strip and collapse whitespace according to HTML spec @@ -7657,7 +7662,7 @@ return this.each(function (i) { jQuery(this).toggleClass( value.call(this, i, getClass(this), stateVal), - stateVal + stateVal, ); }); } @@ -7697,7 +7702,7 @@ "class", className || value === false ? "" - : dataPriv.get(this, "__className__") || "" + : dataPriv.get(this, "__className__") || "", ); } } @@ -8158,7 +8163,7 @@ prefix + "[" + (typeof v === "object" && v != null ? i : "") + "]", v, traditional, - add + add, ); } }); @@ -8528,7 +8533,7 @@ parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", - true + true, ); } } @@ -8595,7 +8600,7 @@ if (win) { win.scrollTo( !top ? val : win.pageXOffset, - top ? val : win.pageYOffset + top ? val : win.pageYOffset, ); } else { elem[method] = val; @@ -8603,10 +8608,10 @@ }, method, val, - arguments.length + arguments.length, ); }; - } + }, ); // Support: Safari <=7 - 9.1, Chrome <=37 - 49 @@ -8616,19 +8621,19 @@ // getComputedStyle returns percent when specified for top/left/bottom/right; // rather than make the css module depend on the offset module, just check for it here jQuery.each(["top", "left"], function (i, prop) { - jQuery.cssHooks[prop] = addGetHookIf(support.pixelPosition, function ( - elem, - computed - ) { - if (computed) { - computed = curCSS(elem, prop); + jQuery.cssHooks[prop] = addGetHookIf( + support.pixelPosition, + function (elem, computed) { + if (computed) { + computed = curCSS(elem, prop); - // If curCSS returns percentage, fallback to offset - return rnumnonpx.test(computed) - ? jQuery(elem).position()[prop] + "px" - : computed; - } - }); + // If curCSS returns percentage, fallback to offset + return rnumnonpx.test(computed) + ? jQuery(elem).position()[prop] + "px" + : computed; + } + }, + ); }); // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods @@ -8667,7 +8672,7 @@ doc["scroll" + name], elem.body["offset" + name], doc["offset" + name], - doc["client" + name] + doc["client" + name], ); } @@ -8679,10 +8684,10 @@ }, type, chainable ? margin : undefined, - chainable + chainable, ); }; - } + }, ); }); @@ -8699,7 +8704,7 @@ ? this.on(name, null, data, fn) : this.trigger(name); }; - } + }, ); jQuery.fn.extend({ diff --git a/datacube-ows-tools/static/vendor/jquery/jquery.slim.min.js b/datacube-ows-tools/static/vendor/jquery/jquery.slim.min.js index 56bceec..585bf3b 100644 --- a/datacube-ows-tools/static/vendor/jquery/jquery.slim.min.js +++ b/datacube-ows-tools/static/vendor/jquery/jquery.slim.min.js @@ -66,87 +66,93 @@ ("number" == typeof t && 0 < t && t - 1 in e)) ); } - (E.fn = E.prototype = { - jquery: f, - constructor: E, - length: 0, - toArray: function () { - return s.call(this); - }, - get: function (e) { - return null == e ? s.call(this) : e < 0 ? this[e + this.length] : this[e]; - }, - pushStack: function (e) { - var t = E.merge(this.constructor(), e); - return (t.prevObject = this), t; - }, - each: function (e) { - return E.each(this, e); - }, - map: function (n) { - return this.pushStack( - E.map(this, function (e, t) { - return n.call(e, t, e); - }) - ); - }, - slice: function () { - return this.pushStack(s.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(0 <= n && n < t ? [this[n]] : []); - }, - end: function () { - return this.prevObject || this.constructor(); - }, - push: u, - sort: t.sort, - splice: t.splice, - }), - (E.extend = E.fn.extend = function () { - var e, - t, - n, - r, - i, - o, - a = arguments[0] || {}, - s = 1, - u = arguments.length, - l = !1; - for ( - "boolean" == typeof a && ((l = a), (a = arguments[s] || {}), s++), - "object" == typeof a || x(a) || (a = {}), - s === u && ((a = this), s--); - s < u; - s++ - ) - if (null != (e = arguments[s])) - for (t in e) - (r = e[t]), - "__proto__" !== t && - a !== r && - (l && r && (E.isPlainObject(r) || (i = Array.isArray(r))) - ? ((n = a[t]), - (o = - i && !Array.isArray(n) - ? [] - : i || E.isPlainObject(n) - ? n - : {}), - (i = !1), - (a[t] = E.extend(l, o, r))) - : void 0 !== r && (a[t] = r)); - return a; + (E.fn = E.prototype = + { + jquery: f, + constructor: E, + length: 0, + toArray: function () { + return s.call(this); + }, + get: function (e) { + return null == e + ? s.call(this) + : e < 0 + ? this[e + this.length] + : this[e]; + }, + pushStack: function (e) { + var t = E.merge(this.constructor(), e); + return (t.prevObject = this), t; + }, + each: function (e) { + return E.each(this, e); + }, + map: function (n) { + return this.pushStack( + E.map(this, function (e, t) { + return n.call(e, t, e); + }), + ); + }, + slice: function () { + return this.pushStack(s.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(0 <= n && n < t ? [this[n]] : []); + }, + end: function () { + return this.prevObject || this.constructor(); + }, + push: u, + sort: t.sort, + splice: t.splice, }), + (E.extend = E.fn.extend = + function () { + var e, + t, + n, + r, + i, + o, + a = arguments[0] || {}, + s = 1, + u = arguments.length, + l = !1; + for ( + "boolean" == typeof a && ((l = a), (a = arguments[s] || {}), s++), + "object" == typeof a || x(a) || (a = {}), + s === u && ((a = this), s--); + s < u; + s++ + ) + if (null != (e = arguments[s])) + for (t in e) + (r = e[t]), + "__proto__" !== t && + a !== r && + (l && r && (E.isPlainObject(r) || (i = Array.isArray(r))) + ? ((n = a[t]), + (o = + i && !Array.isArray(n) + ? [] + : i || E.isPlainObject(n) + ? n + : {}), + (i = !1), + (a[t] = E.extend(l, o, r))) + : void 0 !== r && (a[t] = r)); + return a; + }), E.extend({ expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), isReady: !0, @@ -223,11 +229,11 @@ "function" == typeof Symbol && (E.fn[Symbol.iterator] = t[Symbol.iterator]), E.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( - " " + " ", ), function (e, t) { n["[object " + t + "]"] = t.toLowerCase(); - } + }, ); var h = (function (n) { var e, @@ -317,7 +323,7 @@ "*(\\d+)|))" + R + "*\\)|)", - "i" + "i", ), bool: new RegExp("^(?:" + I + ")$", "i"), needsContext: new RegExp( @@ -328,7 +334,7 @@ "*((?:-\\d)?\\d*)" + R + "*\\)|)(?=[^-]|$)", - "i" + "i", ), }, Y = /HTML$/i, @@ -364,7 +370,7 @@ function (e) { return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase(); }, - { dir: "parentNode", next: "legend" } + { dir: "parentNode", next: "legend" }, ); try { O.apply((t = P.call(m.childNodes)), m.childNodes), @@ -522,240 +528,243 @@ return e && "undefined" != typeof e.getElementsByTagName && e; } for (e in ((p = se.support = {}), - (i = se.isXML = function (e) { - var t = e.namespaceURI, - n = (e.ownerDocument || e).documentElement; - return !Y.test(t || (n && n.nodeName) || "HTML"); - }), - (C = se.setDocument = function (e) { - var t, - n, - r = e ? e.ownerDocument || e : m; - return ( - r !== T && - 9 === r.nodeType && - r.documentElement && - ((a = (T = r).documentElement), - (E = !i(T)), - m !== T && - (n = T.defaultView) && - n.top !== n && - (n.addEventListener - ? n.addEventListener("unload", oe, !1) - : n.attachEvent && n.attachEvent("onunload", oe)), - (p.attributes = ce(function (e) { - return (e.className = "i"), !e.getAttribute("className"); - })), - (p.getElementsByTagName = ce(function (e) { - return ( - e.appendChild(T.createComment("")), - !e.getElementsByTagName("*").length - ); - })), - (p.getElementsByClassName = J.test(T.getElementsByClassName)), - (p.getById = ce(function (e) { - return ( - (a.appendChild(e).id = N), - !T.getElementsByName || !T.getElementsByName(N).length - ); - })), - p.getById - ? ((x.filter.ID = function (e) { - var t = e.replace(te, ne); - return function (e) { - return e.getAttribute("id") === t; - }; - }), - (x.find.ID = function (e, t) { - if ("undefined" != typeof t.getElementById && E) { - var n = t.getElementById(e); - return n ? [n] : []; - } - })) - : ((x.filter.ID = function (e) { - var n = e.replace(te, ne); - return function (e) { - var t = - "undefined" != typeof e.getAttributeNode && - e.getAttributeNode("id"); - return t && t.value === n; - }; - }), - (x.find.ID = function (e, t) { - if ("undefined" != typeof t.getElementById && E) { - 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++])) + (i = se.isXML = + function (e) { + var t = e.namespaceURI, + n = (e.ownerDocument || e).documentElement; + return !Y.test(t || (n && n.nodeName) || "HTML"); + }), + (C = se.setDocument = + function (e) { + var t, + n, + r = e ? e.ownerDocument || e : m; + return ( + r !== T && + 9 === r.nodeType && + r.documentElement && + ((a = (T = r).documentElement), + (E = !i(T)), + m !== T && + (n = T.defaultView) && + n.top !== n && + (n.addEventListener + ? n.addEventListener("unload", oe, !1) + : n.attachEvent && n.attachEvent("onunload", oe)), + (p.attributes = ce(function (e) { + return (e.className = "i"), !e.getAttribute("className"); + })), + (p.getElementsByTagName = ce(function (e) { + return ( + e.appendChild(T.createComment("")), + !e.getElementsByTagName("*").length + ); + })), + (p.getElementsByClassName = J.test(T.getElementsByClassName)), + (p.getById = ce(function (e) { + return ( + (a.appendChild(e).id = N), + !T.getElementsByName || !T.getElementsByName(N).length + ); + })), + p.getById + ? ((x.filter.ID = function (e) { + var t = e.replace(te, ne); + return function (e) { + return e.getAttribute("id") === t; + }; + }), + (x.find.ID = function (e, t) { + if ("undefined" != typeof t.getElementById && E) { + var n = t.getElementById(e); + return n ? [n] : []; + } + })) + : ((x.filter.ID = function (e) { + var n = e.replace(te, ne); + return function (e) { + var t = + "undefined" != typeof e.getAttributeNode && + e.getAttributeNode("id"); + return t && t.value === n; + }; + }), + (x.find.ID = function (e, t) { + if ("undefined" != typeof t.getElementById && E) { + 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 []; } - return []; + })), + (x.find.TAG = p.getElementsByTagName + ? function (e, t) { + return "undefined" != typeof t.getElementsByTagName + ? t.getElementsByTagName(e) + : p.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; + }), + (x.find.CLASS = + p.getElementsByClassName && + function (e, t) { + if ("undefined" != typeof t.getElementsByClassName && E) + return t.getElementsByClassName(e); + }), + (s = []), + (v = []), + (p.qsa = J.test(T.querySelectorAll)) && + (ce(function (e) { + (a.appendChild(e).innerHTML = + ""), + e.querySelectorAll("[msallowcapture^='']").length && + v.push("[*^$]=" + R + "*(?:''|\"\")"), + e.querySelectorAll("[selected]").length || + v.push("\\[" + R + "*(?:value|" + I + ")"), + e.querySelectorAll("[id~=" + N + "-]").length || v.push("~="), + e.querySelectorAll(":checked").length || v.push(":checked"), + e.querySelectorAll("a#" + N + "+*").length || + v.push(".#.+[+~]"); + }), + ce(function (e) { + e.innerHTML = + ""; + var t = T.createElement("input"); + t.setAttribute("type", "hidden"), + e.appendChild(t).setAttribute("name", "D"), + e.querySelectorAll("[name=d]").length && + v.push("name" + R + "*[*^$|!~]?="), + 2 !== e.querySelectorAll(":enabled").length && + v.push(":enabled", ":disabled"), + (a.appendChild(e).disabled = !0), + 2 !== e.querySelectorAll(":disabled").length && + v.push(":enabled", ":disabled"), + e.querySelectorAll("*,:x"), + v.push(",.*:"); })), - (x.find.TAG = p.getElementsByTagName - ? function (e, t) { - return "undefined" != typeof t.getElementsByTagName - ? t.getElementsByTagName(e) - : p.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; + (p.matchesSelector = J.test( + (c = + a.matches || + a.webkitMatchesSelector || + a.mozMatchesSelector || + a.oMatchesSelector || + a.msMatchesSelector), + )) && + ce(function (e) { + (p.disconnectedMatch = c.call(e, "*")), + c.call(e, "[s!='']:x"), + s.push("!=", W); }), - (x.find.CLASS = - p.getElementsByClassName && - function (e, t) { - if ("undefined" != typeof t.getElementsByClassName && E) - return t.getElementsByClassName(e); - }), - (s = []), - (v = []), - (p.qsa = J.test(T.querySelectorAll)) && - (ce(function (e) { - (a.appendChild(e).innerHTML = - ""), - e.querySelectorAll("[msallowcapture^='']").length && - v.push("[*^$]=" + R + "*(?:''|\"\")"), - e.querySelectorAll("[selected]").length || - v.push("\\[" + R + "*(?:value|" + I + ")"), - e.querySelectorAll("[id~=" + N + "-]").length || v.push("~="), - e.querySelectorAll(":checked").length || v.push(":checked"), - e.querySelectorAll("a#" + N + "+*").length || - v.push(".#.+[+~]"); - }), - ce(function (e) { - e.innerHTML = - ""; - var t = T.createElement("input"); - t.setAttribute("type", "hidden"), - e.appendChild(t).setAttribute("name", "D"), - e.querySelectorAll("[name=d]").length && - v.push("name" + R + "*[*^$|!~]?="), - 2 !== e.querySelectorAll(":enabled").length && - v.push(":enabled", ":disabled"), - (a.appendChild(e).disabled = !0), - 2 !== e.querySelectorAll(":disabled").length && - v.push(":enabled", ":disabled"), - e.querySelectorAll("*,:x"), - v.push(",.*:"); - })), - (p.matchesSelector = J.test( - (c = - a.matches || - a.webkitMatchesSelector || - a.mozMatchesSelector || - a.oMatchesSelector || - a.msMatchesSelector) - )) && - ce(function (e) { - (p.disconnectedMatch = c.call(e, "*")), - c.call(e, "[s!='']:x"), - s.push("!=", W); - }), - (v = v.length && new RegExp(v.join("|"))), - (s = s.length && new RegExp(s.join("|"))), - (t = J.test(a.compareDocumentPosition)), - (y = - t || J.test(a.contains) + (v = v.length && new RegExp(v.join("|"))), + (s = s.length && new RegExp(s.join("|"))), + (t = J.test(a.compareDocumentPosition)), + (y = + t || J.test(a.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) { - var n = 9 === e.nodeType ? e.documentElement : e, - r = t && t.parentNode; + if (e === t) return (l = !0), 0; + var n = + !e.compareDocumentPosition - !t.compareDocumentPosition; return ( - e === r || - !( - !r || - 1 !== r.nodeType || - !(n.contains - ? n.contains(r) - : e.compareDocumentPosition && - 16 & e.compareDocumentPosition(r)) - ) + n || + (1 & + (n = + (e.ownerDocument || e) === (t.ownerDocument || t) + ? e.compareDocumentPosition(t) + : 1) || + (!p.sortDetached && t.compareDocumentPosition(e) === n) + ? e === T || (e.ownerDocument === m && y(m, e)) + ? -1 + : t === T || (t.ownerDocument === m && y(m, t)) + ? 1 + : u + ? H(u, e) - H(u, t) + : 0 + : 4 & n + ? -1 + : 1) ); } : 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 (l = !0), 0; - var n = !e.compareDocumentPosition - !t.compareDocumentPosition; - return ( - n || - (1 & - (n = - (e.ownerDocument || e) === (t.ownerDocument || t) - ? e.compareDocumentPosition(t) - : 1) || - (!p.sortDetached && t.compareDocumentPosition(e) === n) - ? e === T || (e.ownerDocument === m && y(m, e)) + if (e === t) return (l = !0), 0; + var n, + r = 0, + i = e.parentNode, + o = t.parentNode, + a = [e], + s = [t]; + if (!i || !o) + return e === T ? -1 - : t === T || (t.ownerDocument === m && y(m, t)) + : t === T + ? 1 + : i + ? -1 + : o ? 1 : u ? H(u, e) - H(u, t) - : 0 - : 4 & n - ? -1 - : 1) - ); - } - : function (e, t) { - if (e === t) return (l = !0), 0; - var n, - r = 0, - i = e.parentNode, - o = t.parentNode, - a = [e], - s = [t]; - if (!i || !o) - return e === T - ? -1 - : t === T - ? 1 - : i + : 0; + if (i === o) return de(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 + ? de(a[r], s[r]) + : a[r] === m ? -1 - : o + : s[r] === m ? 1 - : u - ? H(u, e) - H(u, t) : 0; - if (i === o) return de(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 - ? de(a[r], s[r]) - : a[r] === m - ? -1 - : s[r] === m - ? 1 - : 0; - })), - T - ); - }), + })), + T + ); + }), (se.matches = function (e, t) { return se(e, null, null, t); }), @@ -818,340 +827,347 @@ } return (u = null), e; }), - (o = se.getText = function (e) { - var t, - n = "", - r = 0, - i = e.nodeType; - if (i) { - if (1 === i || 9 === i || 11 === i) { - if ("string" == typeof e.textContent) return e.textContent; - for (e = e.firstChild; e; e = e.nextSibling) n += o(e); - } else if (3 === i || 4 === i) return e.nodeValue; - } else while ((t = e[r++])) n += o(t); - return n; - }), - ((x = se.selectors = { - cacheLength: 50, - createPseudo: le, - match: Q, - 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(te, ne)), - (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), - "~=" === 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] || se.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] && se.error(e[0]), - e - ); - }, - PSEUDO: function (e) { - var t, - n = !e[6] && e[2]; - return Q.CHILD.test(e[0]) - ? null - : (e[3] - ? (e[2] = e[4] || e[5] || "") - : n && - V.test(n) && - (t = h(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(te, ne).toLowerCase(); - return "*" === e - ? function () { - return !0; - } - : function (e) { - return e.nodeName && e.nodeName.toLowerCase() === t; - }; - }, - CLASS: function (e) { - var t = d[e + " "]; - return ( - t || - ((t = new RegExp("(^|" + R + ")" + e + "(" + R + "|$)")) && - d(e, function (e) { - return t.test( - ("string" == typeof e.className && e.className) || - ("undefined" != typeof e.getAttribute && - e.getAttribute("class")) || - "" - ); - })) - ); + (o = se.getText = + function (e) { + var t, + n = "", + r = 0, + i = e.nodeType; + if (i) { + if (1 === i || 9 === i || 11 === i) { + if ("string" == typeof e.textContent) return e.textContent; + for (e = e.firstChild; e; e = e.nextSibling) n += o(e); + } else if (3 === i || 4 === i) return e.nodeValue; + } else while ((t = e[r++])) n += o(t); + return n; + }), + ((x = se.selectors = + { + cacheLength: 50, + createPseudo: le, + match: Q, + attrHandle: {}, + find: {}, + relative: { + ">": { dir: "parentNode", first: !0 }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: !0 }, + "~": { dir: "previousSibling" }, }, - ATTR: function (n, r, i) { - return function (e) { - var t = se.attr(e, n); - return null == t - ? "!=" === r - : !r || - ((t += ""), - "=" === r - ? t === i - : "!=" === r - ? t !== i - : "^=" === r - ? i && 0 === t.indexOf(i) - : "*=" === r - ? i && -1 < t.indexOf(i) - : "$=" === r - ? i && t.slice(-i.length) === i - : "~=" === r - ? -1 < (" " + t.replace($, " ") + " ").indexOf(i) - : "|=" === r && - (t === i || t.slice(0, i.length + 1) === i + "-")); - }; + preFilter: { + ATTR: function (e) { + return ( + (e[1] = e[1].replace(te, ne)), + (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), + "~=" === 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] || se.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] && se.error(e[0]), + e + ); + }, + PSEUDO: function (e) { + var t, + n = !e[6] && e[2]; + return Q.CHILD.test(e[0]) + ? null + : (e[3] + ? (e[2] = e[4] || e[5] || "") + : n && + V.test(n) && + (t = h(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)); + }, }, - CHILD: function (h, e, t, g, v) { - var y = "nth" !== h.slice(0, 3), - m = "last" !== h.slice(-4), - b = "of-type" === e; - return 1 === g && 0 === v - ? function (e) { - return !!e.parentNode; - } - : function (e, t, n) { - var r, - i, - o, - a, - s, - u, - l = y !== m ? "nextSibling" : "previousSibling", - c = e.parentNode, - f = b && e.nodeName.toLowerCase(), - d = !n && !b, - p = !1; - if (c) { - if (y) { - while (l) { - a = e; - while ((a = a[l])) + filter: { + TAG: function (e) { + var t = e.replace(te, ne).toLowerCase(); + return "*" === e + ? function () { + return !0; + } + : function (e) { + return e.nodeName && e.nodeName.toLowerCase() === t; + }; + }, + CLASS: function (e) { + var t = d[e + " "]; + return ( + t || + ((t = new RegExp("(^|" + R + ")" + e + "(" + R + "|$)")) && + d(e, function (e) { + return t.test( + ("string" == typeof e.className && e.className) || + ("undefined" != typeof e.getAttribute && + e.getAttribute("class")) || + "", + ); + })) + ); + }, + ATTR: function (n, r, i) { + return function (e) { + var t = se.attr(e, n); + return null == t + ? "!=" === r + : !r || + ((t += ""), + "=" === r + ? t === i + : "!=" === r + ? t !== i + : "^=" === r + ? i && 0 === t.indexOf(i) + : "*=" === r + ? i && -1 < t.indexOf(i) + : "$=" === r + ? i && t.slice(-i.length) === i + : "~=" === r + ? -1 < (" " + t.replace($, " ") + " ").indexOf(i) + : "|=" === r && + (t === i || t.slice(0, i.length + 1) === i + "-")); + }; + }, + CHILD: function (h, e, t, g, v) { + var y = "nth" !== h.slice(0, 3), + m = "last" !== h.slice(-4), + b = "of-type" === e; + return 1 === g && 0 === v + ? function (e) { + return !!e.parentNode; + } + : function (e, t, n) { + var r, + i, + o, + a, + s, + u, + l = y !== m ? "nextSibling" : "previousSibling", + c = e.parentNode, + f = b && e.nodeName.toLowerCase(), + d = !n && !b, + p = !1; + if (c) { + if (y) { + while (l) { + a = e; + while ((a = a[l])) + if ( + b + ? a.nodeName.toLowerCase() === f + : 1 === a.nodeType + ) + return !1; + u = l = "only" === h && !u && "nextSibling"; + } + return !0; + } + if (((u = [m ? c.firstChild : c.lastChild]), m && d)) { + (p = + (s = + (r = + (i = + (o = (a = c)[N] || (a[N] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] || [])[0] === A && + r[1]) && r[2]), + (a = s && c.childNodes[s]); + while ((a = (++s && a && a[l]) || (p = s = 0) || u.pop())) + if (1 === a.nodeType && ++p && a === e) { + i[h] = [A, s, p]; + break; + } + } else if ( + (d && + (p = s = + (r = + (i = + (o = (a = e)[N] || (a[N] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] || [])[0] === A && r[1]), + !1 === p) + ) + while ((a = (++s && a && a[l]) || (p = s = 0) || u.pop())) if ( - b ? a.nodeName.toLowerCase() === f : 1 === a.nodeType + (b + ? a.nodeName.toLowerCase() === f + : 1 === a.nodeType) && + ++p && + (d && + ((i = + (o = a[N] || (a[N] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] = [A, p]), + a === e) ) - return !1; - u = l = "only" === h && !u && "nextSibling"; - } - return !0; + break; + return (p -= v) === g || (p % g == 0 && 0 <= p / g); } - if (((u = [m ? c.firstChild : c.lastChild]), m && d)) { - (p = - (s = - (r = - (i = - (o = (a = c)[N] || (a[N] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] || [])[0] === A && r[1]) && - r[2]), - (a = s && c.childNodes[s]); - while ((a = (++s && a && a[l]) || (p = s = 0) || u.pop())) - if (1 === a.nodeType && ++p && a === e) { - i[h] = [A, s, p]; - break; - } - } else if ( - (d && - (p = s = - (r = - (i = - (o = (a = e)[N] || (a[N] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] || [])[0] === A && r[1]), - !1 === p) - ) - while ((a = (++s && a && a[l]) || (p = s = 0) || u.pop())) - if ( - (b - ? a.nodeName.toLowerCase() === f - : 1 === a.nodeType) && - ++p && - (d && - ((i = - (o = a[N] || (a[N] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] = [A, p]), - a === e) - ) - break; - return (p -= v) === g || (p % g == 0 && 0 <= p / g); - } - }; - }, - PSEUDO: function (e, o) { - var t, - a = - x.pseudos[e] || - x.setFilters[e.toLowerCase()] || - se.error("unsupported pseudo: " + e); - return a[N] - ? a(o) - : 1 < a.length - ? ((t = [e, e, "", o]), - x.setFilters.hasOwnProperty(e.toLowerCase()) - ? le(function (e, t) { - var n, - r = a(e, o), - i = r.length; - while (i--) e[(n = H(e, r[i]))] = !(t[n] = r[i]); - }) - : function (e) { - return a(e, 0, t); - }) - : a; - }, - }, - pseudos: { - not: le(function (e) { - var r = [], - i = [], - s = f(e.replace(F, "$1")); - return s[N] - ? le(function (e, t, n, r) { - var i, - o = s(e, null, r, []), - a = e.length; - while (a--) (i = o[a]) && (e[a] = !(t[a] = i)); - }) - : function (e, t, n) { - return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop(); - }; - }), - has: le(function (t) { - return function (e) { - return 0 < se(t, e).length; - }; - }), - contains: le(function (t) { - return ( - (t = t.replace(te, ne)), - function (e) { - return -1 < (e.textContent || o(e)).indexOf(t); - } - ); - }), - lang: le(function (n) { - return ( - X.test(n || "") || se.error("unsupported lang: " + n), - (n = n.replace(te, ne).toLowerCase()), - function (e) { - var t; - do { - if ( - (t = E - ? e.lang - : e.getAttribute("xml:lang") || e.getAttribute("lang")) - ) - return ( - (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") - ); - } while ((e = e.parentNode) && 1 === e.nodeType); - return !1; - } - ); - }), - target: function (e) { - var t = n.location && n.location.hash; - return t && t.slice(1) === e.id; - }, - root: function (e) { - return e === a; - }, - focus: function (e) { - return ( - e === T.activeElement && - (!T.hasFocus || T.hasFocus()) && - !!(e.type || e.href || ~e.tabIndex) - ); - }, - enabled: ge(!1), - disabled: ge(!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 !x.pseudos.empty(e); - }, - header: function (e) { - return K.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; + }; + }, + PSEUDO: function (e, o) { + var t, + a = + x.pseudos[e] || + x.setFilters[e.toLowerCase()] || + se.error("unsupported pseudo: " + e); + return a[N] + ? a(o) + : 1 < a.length + ? ((t = [e, e, "", o]), + x.setFilters.hasOwnProperty(e.toLowerCase()) + ? le(function (e, t) { + var n, + r = a(e, o), + i = r.length; + while (i--) e[(n = H(e, r[i]))] = !(t[n] = r[i]); + }) + : function (e) { + return a(e, 0, t); + }) + : a; + }, }, - text: function (e) { - var t; - return ( - "input" === e.nodeName.toLowerCase() && - "text" === e.type && - (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) - ); + pseudos: { + not: le(function (e) { + var r = [], + i = [], + s = f(e.replace(F, "$1")); + return s[N] + ? le(function (e, t, n, r) { + var i, + o = s(e, null, r, []), + a = e.length; + while (a--) (i = o[a]) && (e[a] = !(t[a] = i)); + }) + : function (e, t, n) { + return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop(); + }; + }), + has: le(function (t) { + return function (e) { + return 0 < se(t, e).length; + }; + }), + contains: le(function (t) { + return ( + (t = t.replace(te, ne)), + function (e) { + return -1 < (e.textContent || o(e)).indexOf(t); + } + ); + }), + lang: le(function (n) { + return ( + X.test(n || "") || se.error("unsupported lang: " + n), + (n = n.replace(te, ne).toLowerCase()), + function (e) { + var t; + do { + if ( + (t = E + ? e.lang + : e.getAttribute("xml:lang") || e.getAttribute("lang")) + ) + return ( + (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") + ); + } while ((e = e.parentNode) && 1 === e.nodeType); + return !1; + } + ); + }), + target: function (e) { + var t = n.location && n.location.hash; + return t && t.slice(1) === e.id; + }, + root: function (e) { + return e === a; + }, + focus: function (e) { + return ( + e === T.activeElement && + (!T.hasFocus || T.hasFocus()) && + !!(e.type || e.href || ~e.tabIndex) + ); + }, + enabled: ge(!1), + disabled: ge(!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 !x.pseudos.empty(e); + }, + header: function (e) { + return K.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: ve(function () { + return [0]; + }), + last: ve(function (e, t) { + return [t - 1]; + }), + eq: ve(function (e, t, n) { + return [n < 0 ? n + t : n]; + }), + even: ve(function (e, t) { + for (var n = 0; n < t; n += 2) e.push(n); + return e; + }), + odd: ve(function (e, t) { + for (var n = 1; n < t; n += 2) e.push(n); + return e; + }), + lt: ve(function (e, t, n) { + for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r); + return e; + }), + gt: ve(function (e, t, n) { + for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); + return e; + }), }, - first: ve(function () { - return [0]; - }), - last: ve(function (e, t) { - return [t - 1]; - }), - eq: ve(function (e, t, n) { - return [n < 0 ? n + t : n]; - }), - even: ve(function (e, t) { - for (var n = 0; n < t; n += 2) e.push(n); - return e; - }), - odd: ve(function (e, t) { - for (var n = 1; n < t; n += 2) e.push(n); - return e; - }), - lt: ve(function (e, t, n) { - for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r); - return e; - }), - gt: ve(function (e, t, n) { - for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); - return e; - }), - }, - }).pseudos.nth = x.pseudos.eq), + }).pseudos.nth = x.pseudos.eq), { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })) x.pseudos[e] = pe(e); for (e in { submit: !0, reset: !0 }) x.pseudos[e] = he(e); @@ -1247,7 +1263,9 @@ -1 < (i = y ? H(e, a) : s[o]) && (e[i] = !(t[i] = a)); } - } else (d = Ce(d === t ? d.splice(l, d.length) : d)), y ? y(null, t, d, r) : O.apply(t, d); + } else + (d = Ce(d === t ? d.splice(l, d.length) : d)), + y ? y(null, t, d, r) : O.apply(t, d); }) ); } @@ -1265,14 +1283,14 @@ return e === i; }, a, - !0 + !0, ), l = xe( function (e) { return -1 < H(i, e); }, a, - !0 + !0, ), c = [ function (e, t, n) { @@ -1295,12 +1313,12 @@ be( e .slice(0, s - 1) - .concat({ value: " " === e[s - 2].type ? "*" : "" }) + .concat({ value: " " === e[s - 2].type ? "*" : "" }), ).replace(F, "$1"), t, s < n && Ee(e.slice(s, n)), n < r && Ee((e = e.slice(n))), - n < r && be(e) + n < r && be(e), ); } c.push(t); @@ -1310,149 +1328,152 @@ return ( (me.prototype = x.filters = x.pseudos), (x.setFilters = new me()), - (h = se.tokenize = function (e, t) { - var n, - r, - i, - o, - a, - s, - u, - l = b[e + " "]; - if (l) return t ? 0 : l.slice(0); - (a = e), (s = []), (u = x.preFilter); - while (a) { - for (o in ((n && !(r = z.exec(a))) || - (r && (a = a.slice(r[0].length) || a), s.push((i = []))), - (n = !1), - (r = _.exec(a)) && - ((n = r.shift()), - i.push({ value: n, type: r[0].replace(F, " ") }), - (a = a.slice(n.length))), - x.filter)) - !(r = Q[o].exec(a)) || - (u[o] && !(r = u[o](r))) || + (h = se.tokenize = + function (e, t) { + var n, + r, + i, + o, + a, + s, + u, + l = b[e + " "]; + if (l) return t ? 0 : l.slice(0); + (a = e), (s = []), (u = x.preFilter); + while (a) { + for (o in ((n && !(r = z.exec(a))) || + (r && (a = a.slice(r[0].length) || a), s.push((i = []))), + (n = !1), + (r = _.exec(a)) && ((n = r.shift()), - i.push({ value: n, type: o, matches: r }), - (a = a.slice(n.length))); - if (!n) break; - } - return t ? a.length : a ? se.error(e) : b(e, s).slice(0); - }), - (f = se.compile = function (e, t) { - var n, - v, - y, - m, - b, - r, - i = [], - o = [], - a = k[e + " "]; - if (!a) { - t || (t = h(e)), (n = t.length); - while (n--) (a = Ee(t[n]))[N] ? i.push(a) : o.push(a); - (a = k( - e, - ((v = o), - (m = 0 < (y = i).length), - (b = 0 < v.length), - (r = function (e, t, n, r, i) { - var o, - a, - s, - u = 0, - l = "0", - c = e && [], - f = [], - d = w, - p = e || (b && x.find.TAG("*", i)), - h = (A += null == d ? 1 : Math.random() || 0.1), - g = p.length; - for ( - i && (w = t === T || t || i); - l !== g && null != (o = p[l]); - l++ - ) { - if (b && o) { - (a = 0), t || o.ownerDocument === T || (C(o), (n = !E)); - while ((s = v[a++])) - if (s(o, t || T, n)) { - r.push(o); - break; - } - i && (A = h); + i.push({ value: n, type: r[0].replace(F, " ") }), + (a = a.slice(n.length))), + x.filter)) + !(r = Q[o].exec(a)) || + (u[o] && !(r = u[o](r))) || + ((n = r.shift()), + i.push({ value: n, type: o, matches: r }), + (a = a.slice(n.length))); + if (!n) break; + } + return t ? a.length : a ? se.error(e) : b(e, s).slice(0); + }), + (f = se.compile = + function (e, t) { + var n, + v, + y, + m, + b, + r, + i = [], + o = [], + a = k[e + " "]; + if (!a) { + t || (t = h(e)), (n = t.length); + while (n--) (a = Ee(t[n]))[N] ? i.push(a) : o.push(a); + (a = k( + e, + ((v = o), + (m = 0 < (y = i).length), + (b = 0 < v.length), + (r = function (e, t, n, r, i) { + var o, + a, + s, + u = 0, + l = "0", + c = e && [], + f = [], + d = w, + p = e || (b && x.find.TAG("*", i)), + h = (A += null == d ? 1 : Math.random() || 0.1), + g = p.length; + for ( + i && (w = t === T || t || i); + l !== g && null != (o = p[l]); + l++ + ) { + if (b && o) { + (a = 0), t || o.ownerDocument === T || (C(o), (n = !E)); + while ((s = v[a++])) + if (s(o, t || T, n)) { + r.push(o); + break; + } + i && (A = h); + } + m && ((o = !s && o) && u--, e && c.push(o)); } - m && ((o = !s && o) && u--, e && c.push(o)); - } - if (((u += l), m && l !== u)) { - a = 0; - while ((s = y[a++])) s(c, f, t, n); - if (e) { - if (0 < u) while (l--) c[l] || f[l] || (f[l] = j.call(r)); - f = Ce(f); + if (((u += l), m && l !== u)) { + a = 0; + while ((s = y[a++])) s(c, f, t, n); + if (e) { + if (0 < u) while (l--) c[l] || f[l] || (f[l] = j.call(r)); + f = Ce(f); + } + O.apply(r, f), + i && + !e && + 0 < f.length && + 1 < u + y.length && + se.uniqueSort(r); } - O.apply(r, f), - i && - !e && - 0 < f.length && - 1 < u + y.length && - se.uniqueSort(r); - } - return i && ((A = h), (w = d)), c; - }), - m ? le(r) : r) - )).selector = e; - } - return a; - }), - (g = se.select = function (e, t, n, r) { - var i, - o, - a, - s, - u, - l = "function" == typeof e && e, - c = !r && h((e = l.selector || e)); - if (((n = n || []), 1 === c.length)) { - if ( - 2 < (o = c[0] = c[0].slice(0)).length && - "ID" === (a = o[0]).type && - 9 === t.nodeType && - E && - x.relative[o[1].type] - ) { - if (!(t = (x.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) - return n; - l && (t = t.parentNode), (e = e.slice(o.shift().value.length)); + return i && ((A = h), (w = d)), c; + }), + m ? le(r) : r), + )).selector = e; } - i = Q.needsContext.test(e) ? 0 : o.length; - while (i--) { - if (((a = o[i]), x.relative[(s = a.type)])) break; + return a; + }), + (g = se.select = + function (e, t, n, r) { + var i, + o, + a, + s, + u, + l = "function" == typeof e && e, + c = !r && h((e = l.selector || e)); + if (((n = n || []), 1 === c.length)) { if ( - (u = x.find[s]) && - (r = u( - a.matches[0].replace(te, ne), - (ee.test(o[0].type) && ye(t.parentNode)) || t - )) + 2 < (o = c[0] = c[0].slice(0)).length && + "ID" === (a = o[0]).type && + 9 === t.nodeType && + E && + x.relative[o[1].type] ) { - if ((o.splice(i, 1), !(e = r.length && be(o)))) - return O.apply(n, r), n; - break; + if (!(t = (x.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) + return n; + l && (t = t.parentNode), (e = e.slice(o.shift().value.length)); + } + i = Q.needsContext.test(e) ? 0 : o.length; + while (i--) { + if (((a = o[i]), x.relative[(s = a.type)])) break; + if ( + (u = x.find[s]) && + (r = u( + a.matches[0].replace(te, ne), + (ee.test(o[0].type) && ye(t.parentNode)) || t, + )) + ) { + if ((o.splice(i, 1), !(e = r.length && be(o)))) + return O.apply(n, r), n; + break; + } } } - } - return ( - (l || f(e, c))( - r, - t, - !E, - n, - !t || (ee.test(e) && ye(t.parentNode)) || t - ), - n - ); - }), + return ( + (l || f(e, c))( + r, + t, + !E, + n, + !t || (ee.test(e) && ye(t.parentNode)) || t, + ), + n + ); + }), (p.sortStable = N.split("").sort(D).join("") === N), (p.detectDuplicates = !!l), C(), @@ -1549,7 +1570,7 @@ e, E.grep(t, function (e) { return 1 === e.nodeType; - }) + }), ) ); }), @@ -1563,7 +1584,7 @@ return this.pushStack( E(e).filter(function () { for (t = 0; t < r; t++) if (E.contains(i[t], this)) return !0; - }) + }), ); for (n = this.pushStack([]), t = 0; t < r; t++) E.find(e, i[t], n); return 1 < r ? E.uniqueSort(n) : n; @@ -1598,7 +1619,7 @@ ((t = t instanceof E ? t[0] : t), E.merge( this, - E.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : v, !0) + E.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : v, !0), ), D.test(r[1]) && E.isPlainObject(t)) ) @@ -1722,7 +1743,7 @@ this.pushStack(n) ); }; - } + }, ); var I = /[^\x20\t\r\n\f]+/g; function R(e) { @@ -1913,7 +1934,7 @@ e, l(u, o, R, s), l(u, o, B, s), - l(u, o, R, o.notifyWith) + l(u, o, R, o.notifyWith), )) : (a !== R && ((n = void 0), (r = [e])), (s || o.resolveWith)(n, r)); @@ -1963,7 +1984,7 @@ o[3 - e][2].disable, o[3 - e][3].disable, o[0][2].lock, - o[0][3].lock + o[0][3].lock, ), n.add(t[3].fire), (s[t[0]] = function () { @@ -2221,7 +2242,7 @@ e, 1 < arguments.length, null, - !0 + !0, ); }, removeData: function (e) { @@ -2259,7 +2280,7 @@ function () { E.dequeue(e, t); }, - o + o, )), !r && o && o.empty.fire(); }, @@ -2542,7 +2563,7 @@ value: E.event.trigger( E.extend(r[0], E.Event.prototype), r.slice(1), - this + this, ), }), e.stopImmediatePropagation()); @@ -2571,11 +2592,12 @@ n.guid || (n.guid = E.guid++), (u = v.events) || (u = v.events = {}), (a = v.handle) || - (a = v.handle = function (e) { - return "undefined" != typeof E && E.event.triggered !== e.type - ? E.event.dispatch.apply(t, arguments) - : void 0; - }), + (a = v.handle = + function (e) { + return "undefined" != typeof E && E.event.triggered !== e.type + ? E.event.dispatch.apply(t, arguments) + : void 0; + }), (l = (e = (e || "").match(I) || [""]).length); while (l--) (p = g = (s = Te.exec(e[l]) || [])[1]), @@ -2595,7 +2617,7 @@ needsContext: i && E.expr.match.needsContext.test(i), namespace: h.join("."), }, - o + o, )), (d = u[p]) || (((d = u[p] = []).delegateCount = 0), @@ -2867,7 +2889,7 @@ : e.which; }, }, - E.event.addProp + E.event.addProp, ), E.each({ focus: "focusin", blur: "focusout" }, function (e, t) { E.event.special[e] = { @@ -2904,7 +2926,7 @@ ); }, }; - } + }, ), E.fn.extend({ on: function (e, t, n, r) { @@ -2921,7 +2943,7 @@ E(e.delegateTarget).off( r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, - r.handler + r.handler, ), this ); @@ -2938,7 +2960,8 @@ ); }, }); - var De = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + var De = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, Le = /\s*$/g; @@ -3098,7 +3121,7 @@ }, null, e, - arguments.length + arguments.length, ); }, append: function () { @@ -3170,7 +3193,7 @@ }, null, e, - arguments.length + arguments.length, ); }, replaceWith: function () { @@ -3183,7 +3206,7 @@ E.inArray(this, n) < 0 && (E.cleanData(ge(this)), t && t.replaceChild(e, this)); }, - n + n, ); }, }), @@ -3203,7 +3226,7 @@ u.apply(n, t.get()); return this.pushStack(n); }; - } + }, ); var Me = new RegExp("^(" + te + ")(?!px)[a-z%]+$", "i"), We = function (e) { @@ -3345,8 +3368,8 @@ Math.max( 0, Math.ceil( - e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - 0.5 - ) + e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - 0.5, + ), ) || 0), u ); @@ -3513,7 +3536,7 @@ e["offset" + u[0].toUpperCase() + u.slice(1)] - parseFloat(i[u]) - tt(e, u, "border", !1, i) - - 0.5 + 0.5, )), s && (r = ne.exec(t)) && @@ -3566,7 +3589,7 @@ }, e, t, - 1 < arguments.length + 1 < arguments.length, ); }, }), @@ -3743,7 +3766,7 @@ ], function () { E.propFix[this.toLowerCase()] = this; - } + }, ), E.fn.extend({ addClass: function (t) { @@ -3811,7 +3834,14 @@ (t = 0), (n = E(this)), (r = lt(i)); while ((e = r[t++])) n.hasClass(e) ? n.removeClass(e) : n.addClass(e); - } else (void 0 !== i && "boolean" !== o) || ((e = ut(this)) && G.set(this, "__className__", e), this.setAttribute && this.setAttribute("class", e || !1 === i ? "" : G.get(this, "__className__") || "")); + } else + (void 0 !== i && "boolean" !== o) || + ((e = ut(this)) && G.set(this, "__className__", e), + this.setAttribute && + this.setAttribute( + "class", + e || !1 === i ? "" : G.get(this, "__className__") || "", + )); }); }, hasClass: function (e) { @@ -4050,7 +4080,7 @@ n + "[" + ("object" == typeof t && null != t ? e : "") + "]", t, r, - i + i, ); }); else if (r || "object" !== T(e)) i(n, e); @@ -4166,9 +4196,10 @@ : ("boolean" == typeof t && ((n = t), (t = !1)), t || (b.createHTMLDocument - ? (((r = (t = v.implementation.createHTMLDocument( - "" - )).createElement("base")).href = v.location.href), + ? (((r = (t = + v.implementation.createHTMLDocument("")).createElement( + "base", + )).href = v.location.href), t.head.appendChild(r)) : (t = v)), (o = !n && []), @@ -4260,76 +4291,76 @@ }); }, }), - E.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function ( - t, - i - ) { - var o = "pageYOffset" === i; - E.fn[t] = function (e) { - return z( - this, - function (e, t, n) { - var r; - if ( - (w(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView), - void 0 === n) - ) - return r ? r[i] : e[t]; - r - ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset) - : (e[t] = n); - }, - t, - e, - arguments.length - ); - }; - }), - E.each(["top", "left"], function (e, n) { - E.cssHooks[n] = ze(b.pixelPosition, function (e, t) { - if (t) - return (t = Fe(e, n)), Me.test(t) ? E(e).position()[n] + "px" : t; - }); - }), - E.each({ Height: "height", Width: "width" }, function (a, s) { - E.each({ padding: "inner" + a, content: s, "": "outer" + a }, function ( - r, - o - ) { - E.fn[o] = function (e, t) { - var n = arguments.length && (r || "boolean" != typeof e), - i = r || (!0 === e || !0 === t ? "margin" : "border"); + E.each( + { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, + function (t, i) { + var o = "pageYOffset" === i; + E.fn[t] = function (e) { return z( this, function (e, t, n) { var r; - return w(e) - ? 0 === o.indexOf("outer") - ? e["inner" + a] - : e.document.documentElement["client" + a] - : 9 === e.nodeType - ? ((r = e.documentElement), - Math.max( - e.body["scroll" + a], - r["scroll" + a], - e.body["offset" + a], - r["offset" + a], - r["client" + a] - )) - : void 0 === n - ? E.css(e, t, i) - : E.style(e, t, n, i); + if ( + (w(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView), + void 0 === n) + ) + return r ? r[i] : e[t]; + r + ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset) + : (e[t] = n); }, - s, - n ? e : void 0, - n + t, + e, + arguments.length, ); }; + }, + ), + E.each(["top", "left"], function (e, n) { + E.cssHooks[n] = ze(b.pixelPosition, function (e, t) { + if (t) + return (t = Fe(e, n)), Me.test(t) ? E(e).position()[n] + "px" : t; }); }), + E.each({ Height: "height", Width: "width" }, function (a, s) { + E.each( + { padding: "inner" + a, content: s, "": "outer" + a }, + function (r, o) { + E.fn[o] = function (e, t) { + var n = arguments.length && (r || "boolean" != typeof e), + i = r || (!0 === e || !0 === t ? "margin" : "border"); + return z( + this, + function (e, t, n) { + var r; + return w(e) + ? 0 === o.indexOf("outer") + ? e["inner" + a] + : e.document.documentElement["client" + a] + : 9 === e.nodeType + ? ((r = e.documentElement), + Math.max( + e.body["scroll" + a], + r["scroll" + a], + e.body["offset" + a], + r["offset" + a], + r["client" + a], + )) + : void 0 === n + ? E.css(e, t, i) + : E.style(e, t, n, i); + }, + s, + n ? e : void 0, + n, + ); + }; + }, + ); + }), E.each( "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split( - " " + " ", ), function (e, n) { E.fn[n] = function (e, t) { @@ -4337,7 +4368,7 @@ ? this.on(n, null, e, t) : this.trigger(n); }; - } + }, ), E.fn.extend({ hover: function (e, t) { @@ -4367,7 +4398,8 @@ (r = s.call(arguments, 2)), ((i = function () { return e.apply(t || this, r.concat(s.call(arguments))); - }).guid = e.guid = e.guid || E.guid++), + }).guid = e.guid = + e.guid || E.guid++), i ); }), diff --git a/datacube-ows-tools/templates/base.html b/datacube-ows-tools/templates/base.html index d674d23..b194f2d 100644 --- a/datacube-ows-tools/templates/base.html +++ b/datacube-ows-tools/templates/base.html @@ -1,4 +1,4 @@ - + @@ -63,7 +63,11 @@ GetMap Comparison - Catalog Comparison + Catalog Comparison @@ -97,88 +101,79 @@ -
- - -
- - -
- - -
- - -
Footer Content
-

Here you can use rows and columns to organize your footer content.

- -
- - -
- - -
- - -
Links
- - - -
- - - -
- - -
Links
- - - +
+ +
+ +
+ +
+ +
Footer Content
+

+ Here you can use rows and columns to organize your footer content. +

+
+ + +
+ + +
+ +
Links
+ + +
+ + + +
+ +
Links
+ + +
+
- - +
- - -
- - - - - + -
- + + + + + diff --git a/datacube-ows-tools/templates/catalog-comparison.html b/datacube-ows-tools/templates/catalog-comparison.html index 9d2818b..3500222 100644 --- a/datacube-ows-tools/templates/catalog-comparison.html +++ b/datacube-ows-tools/templates/catalog-comparison.html @@ -1,122 +1,233 @@ {% extends "base.html" %} {% block page %}
-

Catalog Comparison Tool

-

product name showing green indicates products that is listed in the corresponding terria catalog, products showing red is products available in ows instance but not listed in corresponding terria catalog.

-
-
-
-
-

- -

- Number of non-released wms layers: {{ data.dea_map_non_released|length }} -
-
-
-
-
-

Catalog listing

-

catalog items count {{ data.dea_map_catalog_list|length}}

-
    - {% for layer in data.prod_wms_layers %} -
  • {{ layer }} -
  • - {% endfor %} -
-
-
-

WMS layers

-

WMS layers count {{ data.prod_wms_layers|length}}

-
    - {% for layer in data.prod_wms_layers %} -
  • {{ layer }} -
  • - {% endfor %} -
-
-
-
-
+

Catalog Comparison Tool

+

+ product name showing green indicates products that is listed in the + corresponding terria catalog, products showing red is products available in + ows instance but not listed in corresponding terria catalog. +

+
+
+
+
+

+ +

+ Number of non-released wms layers: + {{ data.dea_map_non_released|length }} +
+
+
+
+
+

Catalog listing

+

catalog items count {{ data.dea_map_catalog_list|length}}

+
    + {% for layer in data.prod_wms_layers %} +
  • + {{ layer }} +
  • + {% endfor %} +
+
+
+

WMS layers

+

WMS layers count {{ data.prod_wms_layers|length}}

+
    + {% for layer in data.prod_wms_layers %} +
  • + {{ layer }} +
  • + {% endfor %} +
+
-
-
-

- -

- Number of non-released wms layers: {{ data.prod_non_released|length }} -
-
-
-
-
-

Catalog listing

-

catalog items count {{ data.prod_catalog_list|length}}

-
    - {% for layer in data.prod_wms_layers %} -
  • {{ layer }} -
  • - {% endfor %} -
-
-
-

WMS layers

-

WMS layers count {{ data.prod_wms_layers|length}}

-
    - {% for layer in data.prod_wms_layers %} -
  • {{ layer }} -
  • - {% endfor %} -
-
-
-
-
+
+
+
+
+
+

+ +

+ Number of non-released wms layers: + {{ data.prod_non_released|length }} +
+
+
+
+
+

Catalog listing

+

catalog items count {{ data.prod_catalog_list|length}}

+
    + {% for layer in data.prod_wms_layers %} +
  • + {{ layer }} +
  • + {% endfor %} +
+
+
+

WMS layers

+

WMS layers count {{ data.prod_wms_layers|length}}

+
    + {% for layer in data.prod_wms_layers %} +
  • + {{ layer }} +
  • + {% endfor %} +
+
-
-
-

- -

- Number of non-released wms layers: {{ data.dev_non_released|length }} -
-
-
-
-
-

Catalog listing

-

catalog items count {{ data.dev_catalog_list|length}}

-
    - {% for layer in data.dev_wms_layers %} -
  • {{ layer }} -
  • - {% endfor %} -
-
-
-

WMS layers

-

WMS layers count {{ data.dev_wms_layers|length}}

-
    - {% for layer in data.dev_wms_layers %} -
  • {{ layer }} -
  • - {% endfor %} -
-
-
-
-
+
+
+
+
+
+

+ +

+ Number of non-released wms layers: + {{ data.dev_non_released|length }} +
+
+
+
+
+

Catalog listing

+

catalog items count {{ data.dev_catalog_list|length}}

+
    + {% for layer in data.dev_wms_layers %} +
  • + {{ layer }} +
  • + {% endfor %} +
+
+
+

WMS layers

+

WMS layers count {{ data.dev_wms_layers|length}}

+
    + {% for layer in data.dev_wms_layers %} +
  • + {{ layer }} +
  • + {% endfor %} +
+
+
+
+
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/datacube-ows-tools/templates/getmap-comparison.html b/datacube-ows-tools/templates/getmap-comparison.html index 168b7ec..05efa69 100644 --- a/datacube-ows-tools/templates/getmap-comparison.html +++ b/datacube-ows-tools/templates/getmap-comparison.html @@ -23,34 +23,33 @@

GetMaps Comparison Tool

value="https://ows-ping.dev.dea.ga.gov.au/" />
- +
- Sample area:
- + Sample area:
+ -
+
- + -
+
- + -
+
- + -
+
- + -
+
- + -
- +
@@ -69,11 +68,11 @@

GetMaps Comparison Tool

$("#getmap-compare-row").empty(); var stableowsurl = $("#stable-ows-url").val(); var comparableowsurl = $("#comparable-ows-url").val(); - var radioActive = -1 // Default + var radioActive = -1; // Default // Wow is it *actually* this convoluted... they should be in a heirarchy // Thanks to: https://stackoverflow.com/a/9618826 - var radios = document.getElementsByName('bboxarea'); + var radios = document.getElementsByName("bboxarea"); for (var i = 0, length = radios.length; i < length; i++) { if (radios[i].checked) { radioActive = i; //radios[i].value; @@ -82,46 +81,53 @@

GetMaps Comparison Tool

} // Now substitute the appropriate bbox... (%2C is comma) - switch(radioActive) { + switch (radioActive) { case 0: // Cairns - staticBbox = "16202204.01155224%2C-1956787.9241005108%2C16221771.890793245%2C-1937220.0448595062" - staticCrs = "EPSG%3A3857" + staticBbox = + "16202204.01155224%2C-1956787.9241005108%2C16221771.890793245%2C-1937220.0448595062"; + staticCrs = "EPSG%3A3857"; break; case 1: // Inland water / swamp - staticBbox = "15771710.668250125%2C-3209132.1955248415%2C15791278.54749113%2C-3189564.3162838332" - staticCrs = "EPSG%3A3857" + staticBbox = + "15771710.668250125%2C-3209132.1955248415%2C15791278.54749113%2C-3189564.3162838332"; + staticCrs = "EPSG%3A3857"; break; case 2: // Dry inland. Could be updated to something more specific later. - staticBbox = "13604568.042308811%2C-3135752.6483710706%2C13609460.012119059%2C-3130860.6785608195" - staticCrs = "EPSG%3A3857" + staticBbox = + "13604568.042308811%2C-3135752.6483710706%2C13609460.012119059%2C-3130860.6785608195"; + staticCrs = "EPSG%3A3857"; break; case 3: // Mountains - staticBbox = "16662049.173715863%2C-4304933.433021128%2C16671833.113336366%2C-4295149.493400626" - staticCrs = "EPSG%3A3857" + staticBbox = + "16662049.173715863%2C-4304933.433021128%2C16671833.113336366%2C-4295149.493400626"; + staticCrs = "EPSG%3A3857"; break; case 4: // Broome coast - staticBbox = "13599676.072498556%2C-2074195.199546542%2C13609460.012119059%2C-2064411.2599260397" - staticCrs = "EPSG%3A3857" + staticBbox = + "13599676.072498556%2C-2074195.199546542%2C13609460.012119059%2C-2064411.2599260397"; + staticCrs = "EPSG%3A3857"; break; case 5: // urban - Sydney - staticBbox = "16818592.2076439%2C-4011415.244406048%2C16823484.177454155%2C-4006523.274595797" - staticCrs = "EPSG%3A3857" + staticBbox = + "16818592.2076439%2C-4011415.244406048%2C16823484.177454155%2C-4006523.274595797"; + staticCrs = "EPSG%3A3857"; break; default: - staticBbox = "15028131.257091936%2C-2504688.542848654%2C15654303.392804097%2C-1878516.4071364924" - staticCrs = "EPSG%3A3857" + staticBbox = + "15028131.257091936%2C-2504688.542848654%2C15654303.392804097%2C-1878516.4071364924"; + staticCrs = "EPSG%3A3857"; } - var paramsblob = {} - paramsblob['stable_url'] = stableowsurl // Note that comparableowsurl gets substituted in at the point of loading images. getmap_url_generator() does not use it. - paramsblob['bbox'] = staticBbox - paramsblob['crs'] = staticCrs + var paramsblob = {}; + paramsblob["stable_url"] = stableowsurl; // Note that comparableowsurl gets substituted in at the point of loading images. getmap_url_generator() does not use it. + paramsblob["bbox"] = staticBbox; + paramsblob["crs"] = staticCrs; $.ajax({ url: "{{ url_for('getmap_url_generator') }}", @@ -138,7 +144,7 @@

GetMaps Comparison Tool

var stablegetmapImageSrc = urls["url"]; var comparablegetmapImageSrc = stablegetmapImageSrc.replace( stableowsurl, - comparableowsurl + comparableowsurl, ); console.log(comparablegetmapImageSrc); $("#getmap-compare-row").append( @@ -148,7 +154,7 @@

GetMaps Comparison Tool

stablegetmapImageSrc + '>" + $(this).find("Name").first().text() + "" + "

" + $(this).find("Name").first().text() + "

", ); $(this) .find("Style") @@ -64,14 +64,14 @@

Legend Comparison Tool

.attr("xlink:href"); var comparablelegendImageSrc = legendImageSrc.replace( stableowsurl, - comparableowsurl + comparableowsurl, ); $("#legend-compare-row").append( '