diff options
54 files changed, 1662 insertions, 522 deletions
diff --git a/plugins/CoreAdminHome/templates/trackingCodeGenerator.twig b/plugins/CoreAdminHome/templates/trackingCodeGenerator.twig index 6525897174..d390b56940 100644 --- a/plugins/CoreAdminHome/templates/trackingCodeGenerator.twig +++ b/plugins/CoreAdminHome/templates/trackingCodeGenerator.twig @@ -18,11 +18,11 @@ </div> <div class="card-action"> {{ 'General_GoTo2'|translate }}: - <a href="#javaScriptTracking">{{ 'CoreAdminHome_JavaScriptTracking'|translate }}</a> - <a href="#imageTracking">{{ 'CoreAdminHome_ImageTracking'|translate }}</a> - <a href="#importServerLogs">{{ 'CoreAdminHome_ImportingServerLogs'|translate }}</a> - <a href="#mobileAppsAndSdks">{{ 'SitesManager_MobileAppsAndSDKs'|translate }}</a> - <a href="#trackingApi">{{ 'CoreAdminHome_HttpTrackingApi'|translate }}</a> + <a href="#/javaScriptTracking">{{ 'CoreAdminHome_JavaScriptTracking'|translate }}</a> + <a href="#/imageTracking">{{ 'CoreAdminHome_ImageTracking'|translate }}</a> + <a href="#/importServerLogs">{{ 'CoreAdminHome_ImportingServerLogs'|translate }}</a> + <a href="#/mobileAppsAndSdks">{{ 'SitesManager_MobileAppsAndSDKs'|translate }}</a> + <a href="#/trackingApi">{{ 'CoreAdminHome_HttpTrackingApi'|translate }}</a> {{ postEvent('Template.endTrackingCodePageTableOfContents') }} </div> </div> diff --git a/plugins/CoreHome/CoreHome.php b/plugins/CoreHome/CoreHome.php index 7c682d77b7..641fac9a1e 100644 --- a/plugins/CoreHome/CoreHome.php +++ b/plugins/CoreHome/CoreHome.php @@ -136,7 +136,7 @@ class CoreHome extends \Piwik\Plugin $stylesheets[] = "plugins/CoreHome/stylesheets/notification.less"; $stylesheets[] = "plugins/CoreHome/stylesheets/zen-mode.less"; $stylesheets[] = "plugins/CoreHome/stylesheets/layout.less"; - $stylesheets[] = "plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.less"; + $stylesheets[] = "plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.less"; $stylesheets[] = "plugins/CoreHome/angularjs/notification/notification.directive.less"; $stylesheets[] = "plugins/CoreHome/angularjs/quick-access/quick-access.directive.less"; $stylesheets[] = "plugins/CoreHome/angularjs/selector/selector.directive.less"; @@ -237,9 +237,7 @@ class CoreHome extends \Piwik\Plugin $jsFiles[] = "plugins/CoreHome/angularjs/menudropdown/menudropdown.directive.js"; - $jsFiles[] = "plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.js"; $jsFiles[] = "plugins/CoreHome/angularjs/content-intro/content-intro.directive.js"; - $jsFiles[] = "plugins/CoreHome/angularjs/content-block/content-block.directive.js"; $jsFiles[] = "plugins/CoreHome/angularjs/notification/notification.controller.js"; $jsFiles[] = "plugins/CoreHome/angularjs/notification/notification.directive.js"; diff --git a/plugins/CoreHome/angularjs/content-block/content-block.directive.html b/plugins/CoreHome/angularjs/content-block/content-block.directive.html deleted file mode 100644 index 547ea79878..0000000000 --- a/plugins/CoreHome/angularjs/content-block/content-block.directive.html +++ /dev/null @@ -1,10 +0,0 @@ -<div class="card"> - <div class="card-content"> - <h2 ng-if="contentTitle && !feature && !helpUrl && !helpText" class="card-title">{{contentTitle}}</h2> - <h2 ng-if="contentTitle && (feature || helpUrl || helpText)" class="card-title" - piwik-enriched-headline feature-name="{{feature}}" help-url="{{helpUrl}}" inline-help="{{ helpText }}"> - {{contentTitle}}</h2> - <div ng-transclude> - </div> - </div> -</div>
\ No newline at end of file diff --git a/plugins/CoreHome/angularjs/content-block/content-block.directive.js b/plugins/CoreHome/angularjs/content-block/content-block.directive.js deleted file mode 100644 index d803bb98c5..0000000000 --- a/plugins/CoreHome/angularjs/content-block/content-block.directive.js +++ /dev/null @@ -1,89 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -/** - * Usage: - * <div piwik-content-block> - */ -(function () { - angular.module('piwikApp').directive('piwikContentBlock', piwikContentBlock); - - piwikContentBlock.$inject = ['piwik']; - - function piwikContentBlock(piwik){ - - var adminContent = null; - - return { - restrict: 'A', - replace: true, - transclude: true, - scope: { - contentTitle: '@', - feature: '@', - helpUrl: '@', - helpText: '@', - anchor: '@?' - }, - templateUrl: 'plugins/CoreHome/angularjs/content-block/content-block.directive.html?cb=' + piwik.cacheBuster, - controllerAs: 'contentBlock', - compile: function (element, attrs) { - - if (attrs.feature === 'true') { - attrs.feature = true; - } - - return function (scope, element, attrs) { - if (scope.anchor) { - var anchor = $('<a></a>').attr('id', scope.anchor); - element.prepend(anchor); - } - - var inlineHelp = element.find('[ng-transclude] > .contentHelp'); - if (inlineHelp.length) { - scope.helpText = inlineHelp.html(); - inlineHelp.remove(); - } - - if (scope.feature && (scope.feature===true || scope.feature ==='true')) { - scope.feature = scope.contentTitle; - } - - if (adminContent === null) { - // cache admin node for further content blocks - adminContent = $('#content.admin'); - } - - var contentTopPosition = false; - - if (adminContent.length) { - contentTopPosition = adminContent.offset().top; - } - - if (contentTopPosition || contentTopPosition === 0) { - var parents = element.parentsUntil('.col', '[piwik-widget-loader]'); - var topThis; - if (parents.length) { - // when shown within the widget loader, we need to get the offset of that element - // as the widget loader might be still shown. Would otherwise not position correctly - // the widgets on the admin home page - topThis = parents.offset().top; - } else { - topThis = element.offset().top; - } - - if ((topThis - contentTopPosition) < 17) { - // we make sure to display the first card with no margin-top to have it on same as line as - // navigation - element.css('marginTop', '0'); - } - } - }; - } - }; - } -})(); diff --git a/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.html b/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.html deleted file mode 100644 index 4907525499..0000000000 --- a/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.html +++ /dev/null @@ -1,34 +0,0 @@ -<div class="enrichedHeadline" - ng-mouseenter="view.showIcons=true" ng-mouseleave="view.showIcons=false"> - <div ng-show="!editUrl" class="title" ng-transclude tabindex="6"></div> - <a ng-show="editUrl" class="title" href="{{ editUrl }}" - title="{{ 'CoreHome_ClickToEditX'|translate:(featureName|escape) }}" - ng-transclude ></a> - - <span ng-show="view.showIcons || view.showInlineHelp" class="iconsBar"> - <a ng-if="helpUrl && !inlineHelp" - rel="noreferrer noopener" - target="_blank" - href="{{ helpUrl }}" - title="{{ 'CoreHome_ExternalHelp'|translate }}" - class="helpIcon"><span class="icon-help"></span></a> - - <a ng-if="inlineHelp" - title="{{ (reportGenerated ? 'General_HelpReport' : 'General_Help' )|translate }}" - ng-click="view.showInlineHelp=!view.showInlineHelp" - class="helpIcon" ng-class="{ 'active': view.showInlineHelp }"><span class="icon-info"></span></a> - - <div class="ratingIcons" - piwik-rate-feature - title="{{ featureName }}"></div> - </span> - - <div class="inlineHelp" ng-show="view.showInlineHelp"> - <div ng-bind-html="inlineHelp"></div> - <a ng-if="helpUrl" - rel="noreferrer noopener" - target="_blank" - href="{{ helpUrl }}" - class="readMore">{{ 'General_MoreDetails'|translate }}</a> - </div> -</div> diff --git a/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.js b/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.js deleted file mode 100644 index 6280736cf7..0000000000 --- a/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.js +++ /dev/null @@ -1,111 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -/** - * Usage: - * - * <h2 piwik-enriched-headline>All Websites Dashboard</h2> - * -> uses "All Websites Dashboard" as featurename - * - * <h2 piwik-enriched-headline feature-name="All Websites Dashboard">All Websites Dashboard (Total: 309 Visits)</h2> - * -> custom featurename - * - * <h2 piwik-enriched-headline help-url="http://piwik.org/guide">All Websites Dashboard</h2> - * -> shows help icon and links to external url - * - * <h2 piwik-enriched-headline edit-url="index.php?module=Foo&action=bar&id=4">All Websites Dashboard</h2> - * -> makes the headline clickable linking to the specified url - * - * <h2 piwik-enriched-headline inline-help="inlineHelp">Pages report</h2> - * -> inlineHelp specified via a attribute shows help icon on headline hover - * - * <h2 piwik-enriched-headline>All Websites Dashboard - * <div class="inlineHelp">My <strong>inline help</strong></div> - * </h2> - * -> alternative definition for inline help - * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url - * - * * <h2 piwik-enriched-headline report-generated="generated time">Pages report</h2> - * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which activated by hover - * -> the tooltip shows the value of the attribute - */ -(function () { - angular.module('piwikApp').directive('piwikEnrichedHeadline', piwikEnrichedHeadline); - - piwikEnrichedHeadline.$inject = ['$document', 'piwik', '$filter', '$parse', 'piwikPeriods']; - - function piwikEnrichedHeadline($document, piwik, $filter, $parse, piwikPeriods){ - var defaults = { - helpUrl: '', - editUrl: '', - }; - - return { - transclude: true, - restrict: 'A', - scope: { - helpUrl: '@', - editUrl: '@', - reportGenerated: '@?', - featureName: '@', - inlineHelp: '@?', - }, - templateUrl: 'plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.html?cb=' + piwik.cacheBuster, - compile: function (element, attrs) { - - for (var index in defaults) { - if (!attrs[index]) { attrs[index] = defaults[index]; } - } - - return function (scope, element, attrs) { - if (!scope.inlineHelp) { - - var helpNode = $('[ng-transclude] .inlineHelp', element); - - if ((!helpNode || !helpNode.length) && element.next()) { - // hack for reports :( - helpNode = element.next().find('.reportDocumentation'); - } - - if (helpNode && helpNode.length) { - - // hackish solution to get binded html of p tag within the help node - // at this point the ng-bind-html is not yet converted into html when report is not - // initially loaded. Using $compile doesn't work. So get and set it manually - var helpParagraph = $('p[ng-bind-html]', helpNode); - - if (helpParagraph.length) { - helpParagraph.html($parse(helpParagraph.attr('ng-bind-html'))); - } - - if ($.trim(helpNode.text())) { - scope.inlineHelp = $.trim(helpNode.html()); - } - helpNode.remove(); - } - } - - if (!attrs.featureName) { - attrs.featureName = $.trim(element.find('.title').first().text()); - } - - if (scope.reportGenerated && piwikPeriods.parse(piwik.period, piwik.currentDateString).containsToday()) { - element.find('.report-generated').first().tooltip({ - track: true, - content: scope.reportGenerated, - items: 'div', - show: false, - hide: false - }); - - - } - }; - } - }; - } -})(); diff --git a/plugins/CoreHome/angularjs/enrichedheadline/help.png b/plugins/CoreHome/angularjs/enrichedheadline/help.png Binary files differdeleted file mode 100644 index c5174cdf63..0000000000 --- a/plugins/CoreHome/angularjs/enrichedheadline/help.png +++ /dev/null diff --git a/plugins/CoreHome/templates/_dataTable.twig b/plugins/CoreHome/templates/_dataTable.twig index 9cc562a977..f9abda1fc2 100644 --- a/plugins/CoreHome/templates/_dataTable.twig +++ b/plugins/CoreHome/templates/_dataTable.twig @@ -41,7 +41,7 @@ <div class="card-description">{{ properties.description }}</div> {% endif %} - <div class="reportDocumentation"> + <div class="reportDocumentation" data-content="{{ properties.documentation|default|e('html_attr') }}"> {% if properties.documentation|default is not empty %}<p ng-bind-html="{{ properties.documentation|json_encode|e('html_attr') }}"></p>{% endif %} {% if properties.onlineGuideUrl|default is not empty %}<a href="{{ properties.onlineGuideUrl|safelink|e('html_attr') }}" target="_blank" rel="noreferrer noopener" class="onlineGuide">{{ 'CoreHome_ReadMoreOnlineGuide'|translate }}</a>{% endif %} {% if reportLastUpdatedMessage is defined and reportLastUpdatedMessage %}<span class="helpDate">{{ reportLastUpdatedMessage|raw }}</span>{% endif %} diff --git a/plugins/CoreHome/vue/dist/CoreHome.umd.js b/plugins/CoreHome/vue/dist/CoreHome.umd.js index 7c16b4c88f..5f237e71cb 100644 --- a/plugins/CoreHome/vue/dist/CoreHome.umd.js +++ b/plugins/CoreHome/vue/dist/CoreHome.umd.js @@ -147,6 +147,8 @@ __webpack_require__.d(__webpack_exports__, "getToday", function() { return /* re __webpack_require__.d(__webpack_exports__, "parseDate", function() { return /* reexport */ parseDate; }); __webpack_require__.d(__webpack_exports__, "todayIsInRange", function() { return /* reexport */ todayIsInRange; }); __webpack_require__.d(__webpack_exports__, "MatomoDialog", function() { return /* reexport */ MatomoDialog; }); +__webpack_require__.d(__webpack_exports__, "EnrichedHeadline", function() { return /* reexport */ EnrichedHeadline; }); +__webpack_require__.d(__webpack_exports__, "ContentBlock", function() { return /* reexport */ ContentBlock; }); // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js // This file is imported into lib/wc client bundles. @@ -485,8 +487,14 @@ var noAdblockFlag = __webpack_require__("2342"); * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -function translate(translationStringId, values = []) { - return window._pk_translate(translationStringId, values); // eslint-disable-line +function translate(translationStringId, ...values) { + let pkArgs = values; // handle variadic args AND single array of values (to match _pk_translate signature) + + if (values.length === 1 && values[0] && values[0] instanceof Array) { + [pkArgs] = values; + } + + return window._pk_translate(translationStringId, pkArgs); // eslint-disable-line } // CONCATENATED MODULE: ./plugins/CoreHome/vue/src/Periods/Day.ts function Day_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } @@ -1007,6 +1015,14 @@ class AjaxHelper_AjaxHelper { /** * Handle for current request */ + // helper method entry point + static fetch(params) { + const helper = new AjaxHelper_AjaxHelper(); + helper.setFormat('json'); + helper.addParams(params, 'get'); + return helper.send(); + } + constructor() { AjaxHelper_defineProperty(this, "format", 'json'); @@ -1564,12 +1580,15 @@ angular.module('piwikApp.service').run(Piwik_adapter_initPiwikService); // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); -// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?vue&type=template&id=42c028e0 +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?vue&type=template&id=50fda6d8 +const _hoisted_1 = { + ref: "root" +}; function render(_ctx, _cache, $props, $setup, $data, $options) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default"); + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.modelValue]]); } -// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?vue&type=template&id=42c028e0 +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?vue&type=template&id=50fda6d8 // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-3!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?vue&type=script&lang=ts @@ -1579,7 +1598,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { /** * Whether the modal is displayed or not; */ - show: { + modelValue: { type: Boolean, required: true }, @@ -1596,17 +1615,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { required: false } }, - emits: ['yes', 'no', 'closeEnd', 'close'], + emits: ['yes', 'no', 'closeEnd', 'close', 'update:modelValue'], + + setup() { + const root = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null); + return { + root + }; + }, activated() { - const slotElement = this.element || this.$slots.default()[0].el; - slotElement.style.display = 'none'; + this.$emit('update:modelValue', false); }, watch: { - show(newValue, oldValue) { + modelValue(newValue, oldValue) { if (newValue) { - const slotElement = this.element || this.$slots.default()[0].el; + const slotElement = this.element || this.$refs.root.firstElementChild; Matomo_Matomo.helper.modalConfirm(slotElement, { yes: () => { this.$emit('yes'); @@ -1616,6 +1641,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { } }, { onCloseEnd: () => { + // materialize removes the child element, so we move it back to the slot + if (!this.element) { + this.$refs.root.appendChild(slotElement); + } + + this.$emit('update:modelValue', false); this.$emit('closeEnd'); } }); @@ -1644,6 +1675,8 @@ MatomoDialogvue_type_script_lang_ts.render = render * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ + +let transcludeCounter = 0; function createAngularJsAdapter(options) { const { component, @@ -1656,8 +1689,18 @@ function createAngularJsAdapter(options) { postCreate, noScope } = options; + const currentTranscludeCounter = transcludeCounter; + + if (transclude) { + transcludeCounter += 1; + } + const angularJsScope = {}; Object.entries(scope).forEach(([scopeVarName, info]) => { + if (!info.vue) { + info.vue = scopeVarName; + } + if (info.angularJsBind) { angularJsScope[scopeVarName] = info.angularJsBind; } @@ -1670,14 +1713,14 @@ function createAngularJsAdapter(options) { compile: function angularJsAdapterCompile() { return { post: function angularJsAdapterLink(ngScope, ngElement, ngAttrs) { - const clone = ngElement.find('[ng-transclude]'); + const clone = transclude ? ngElement.find(`[ng-transclude][counter=${currentTranscludeCounter}]`) : null; let rootVueTemplate = '<root-component'; Object.entries(scope).forEach(([, info]) => { rootVueTemplate += ` :${info.vue}="${info.vue}"`; }); Object.entries(events).forEach(info => { const [eventName] = info; - rootVueTemplate += ` @${eventName}="onEventHandler('${eventName}')"`; + rootVueTemplate += ` @${eventName}="onEventHandler('${eventName}', $event)"`; }); rootVueTemplate += '>'; @@ -1715,15 +1758,16 @@ function createAngularJsAdapter(options) { }, methods: { - onEventHandler(name) { + onEventHandler(name, $event) { if (events[name]) { - events[name](ngScope, ngElement, ngAttrs, ...injectedServices); + events[name]($event, ngScope, ngElement, ngAttrs, ...injectedServices); } } } }); app.config.globalProperties.$sanitize = window.vueSanitize; + app.config.globalProperties.translate = translate; app.component('root-component', component); const mountPoint = mountPointFactory ? mountPointFactory(ngScope, ngElement, ngAttrs, ...injectedServices) : ngElement[0]; const vm = app.mount(mountPoint); @@ -1755,7 +1799,7 @@ function createAngularJsAdapter(options) { if (transclude) { adapter.transclude = true; - adapter.template = '<div ng-transclude/>'; + adapter.template = `<div ng-transclude counter="${currentTranscludeCounter}"/>`; } return adapter; @@ -1778,16 +1822,15 @@ function createAngularJsAdapter(options) { component: MatomoDialog, scope: { show: { - vue: 'show', + vue: 'modelValue', default: false }, element: { - vue: 'element', default: (scope, element) => element[0] } }, events: { - yes: (scope, element, attrs) => { + yes: ($event, scope, element, attrs) => { if (attrs.yes) { scope.$eval(attrs.yes); setTimeout(() => { @@ -1795,7 +1838,7 @@ function createAngularJsAdapter(options) { }, 0); } }, - no: (scope, element, attrs) => { + no: ($event, scope, element, attrs) => { if (attrs.no) { scope.$eval(attrs.no); setTimeout(() => { @@ -1803,7 +1846,7 @@ function createAngularJsAdapter(options) { }, 0); } }, - close: (scope, element, attrs) => { + close: ($event, scope, element, attrs) => { if (attrs.close) { scope.$eval(attrs.close); setTimeout(() => { @@ -1811,9 +1854,9 @@ function createAngularJsAdapter(options) { }, 0); } }, - closeEnd: (scope, element, attrs, $parse) => { + 'update:modelValue': (newValue, scope, element, attrs, $parse) => { setTimeout(() => { - scope.$apply($parse(attrs.piwikDialog).assign(scope, false)); + scope.$apply($parse(attrs.piwikDialog).assign(scope, newValue)); }, 0); } }, @@ -1826,25 +1869,443 @@ function createAngularJsAdapter(options) { return vueRootPlaceholder[0]; }, postCreate: (vm, scope, element, attrs) => { - scope.$watch(attrs.piwikDialog, newValue => { - vm.show = newValue || false; + scope.$watch(attrs.piwikDialog, (newValue, oldValue) => { + if (oldValue !== newValue) { + vm.modelValue = newValue || false; + } }); }, noScope: true })); +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?vue&type=template&id=678de864 + +const EnrichedHeadlinevue_type_template_id_678de864_hoisted_1 = { + key: 0, + class: "title", + tabindex: "6" +}; +const _hoisted_2 = ["href", "title"]; +const _hoisted_3 = { + class: "iconsBar" +}; +const _hoisted_4 = ["href", "title"]; + +const _hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + class: "icon-help" +}, null, -1); + +const _hoisted_6 = [_hoisted_5]; +const _hoisted_7 = ["title"]; + +const _hoisted_8 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", { + class: "icon-info" +}, null, -1); + +const _hoisted_9 = [_hoisted_8]; +const _hoisted_10 = { + class: "ratingIcons" +}; +const _hoisted_11 = { + class: "inlineHelp" +}; +const _hoisted_12 = ["innerHTML"]; +const _hoisted_13 = ["href"]; +function EnrichedHeadlinevue_type_template_id_678de864_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_RateFeature = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("RateFeature"); + + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + class: "enrichedHeadline", + onMouseenter: _cache[1] || (_cache[1] = $event => _ctx.showIcons = true), + onMouseleave: _cache[2] || (_cache[2] = $event => _ctx.showIcons = false), + ref: "root" + }, [!_ctx.editUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", EnrichedHeadlinevue_type_template_id_678de864_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.editUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 1, + class: "title", + href: _ctx.editUrl, + title: _ctx.translate('CoreHome_ClickToEditX', _ctx.$sanitize(_ctx.actualFeatureName)) + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 8, _hoisted_2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", _hoisted_3, [_ctx.helpUrl && !_ctx.actualInlineHelp ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 0, + rel: "noreferrer noopener", + target: "_blank", + class: "helpIcon", + href: _ctx.helpUrl, + title: _ctx.translate('CoreHome_ExternalHelp') + }, _hoisted_6, 8, _hoisted_4)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.actualInlineHelp ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 1, + onClick: _cache[0] || (_cache[0] = $event => _ctx.showInlineHelp = !_ctx.showInlineHelp), + class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])(["helpIcon", { + 'active': _ctx.showInlineHelp + }]), + title: _ctx.translate(_ctx.reportGenerated ? 'General_HelpReport' : 'General_Help') + }, _hoisted_9, 10, _hoisted_7)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_RateFeature, { + title: _ctx.actualFeatureName + }, null, 8, ["title"])])], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showIcons || _ctx.showInlineHelp]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_11, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + innerHTML: _ctx.$sanitize(_ctx.actualInlineHelp) + }, null, 8, _hoisted_12), _ctx.helpUrl ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("a", { + key: 0, + rel: "noreferrer noopener", + target: "_blank", + class: "readMore", + href: _ctx.helpUrl + }, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('General_MoreDetails')), 9, _hoisted_13)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showInlineHelp]])], 544); +} +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?vue&type=template&id=678de864 + +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-3!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?vue&type=script&lang=ts + + + // working around a cycle in dependencies (CoreHome depends on Feedback, Feedback depends on +// CoreHome) +// TODO: may need a generic solution at some point, but it's bad practice to have +// cyclic dependencies like this. it worked before because it was individual files +// dependening on each other, not whole plugins. + +const RateFeature = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineAsyncComponent"])(() => new Promise(resolve => { + window.$(document).ready(() => { + resolve(window.Feedback.RateFeature); // eslint-disable-line + }); +})); +/** + * Usage: + * + * <h2 piwik-enriched-headline>All Websites Dashboard</h2> + * -> uses "All Websites Dashboard" as featurename + * + * <h2 piwik-enriched-headline feature-name="All Websites Dashboard">All Websites Dashboard (Total: + * 309 Visits)</h2> + * -> custom featurename + * + * <h2 piwik-enriched-headline help-url="http://piwik.org/guide">All Websites Dashboard</h2> + * -> shows help icon and links to external url + * + * <h2 piwik-enriched-headline edit-url="index.php?module=Foo&action=bar&id=4">All Websites + * Dashboard</h2> + * -> makes the headline clickable linking to the specified url + * + * <h2 piwik-enriched-headline inline-help="inlineHelp">Pages report</h2> + * -> inlineHelp specified via a attribute shows help icon on headline hover + * + * <h2 piwik-enriched-headline>All Websites Dashboard + * <div class="inlineHelp">My <strong>inline help</strong></div> + * </h2> + * -> alternative definition for inline help + * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url + * + * * <h2 piwik-enriched-headline report-generated="generated time">Pages report</h2> + * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which + * activated by hover + * -> the tooltip shows the value of the attribute + */ + +/* harmony default export */ var EnrichedHeadlinevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ + props: { + helpUrl: { + type: String, + default: '' + }, + editUrl: { + type: String, + default: '' + }, + reportGenerated: String, + featureName: String, + inlineHelp: String + }, + components: { + RateFeature + }, + + data() { + return { + showIcons: false, + showInlineHelp: false, + actualFeatureName: this.featureName, + actualInlineHelp: this.inlineHelp + }; + }, + + setup() { + const root = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null); + return { + root + }; + }, + + watch: { + inlineHelp(newValue) { + this.actualInlineHelp = newValue; + }, + + featureName(newValue) { + this.actualFeatureName = newValue; + } + + }, + + mounted() { + const { + root + } = this.$refs; + + if (!this.actualInlineHelp) { + let helpNode = root.querySelector('.title .inlineHelp'); + + if (!helpNode && root.parentElement.nextElementSibling) { + // hack for reports :( + helpNode = root.parentElement.nextElementSibling.querySelector('.reportDocumentation'); + } + + if (helpNode) { + // hackish solution to get binded html of p tag within the help node + // at this point the ng-bind-html is not yet converted into html when report is not + // initially loaded. Using $compile doesn't work. So get and set it manually + const helpDocs = helpNode.getAttribute('data-content').trim(); + + if (helpDocs.length) { + this.actualInlineHelp = `<p>${helpDocs}</p>`; + setTimeout(() => helpNode.remove(), 0); + } + } + } + + if (!this.actualFeatureName) { + this.actualFeatureName = root.querySelector('.title').textContent; + } + + if (this.reportGenerated && Periods_Periods.parse(Matomo_Matomo.period, Matomo_Matomo.currentDateString).containsToday()) { + window.$(root.querySelector('.report-generated')).tooltip({ + track: true, + content: this.reportGenerated, + items: 'div', + show: false, + hide: false + }); + } + } + +})); +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?vue&type=script&lang=ts + +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue + + + +EnrichedHeadlinevue_type_script_lang_ts.render = EnrichedHeadlinevue_type_template_id_678de864_render + +/* harmony default export */ var EnrichedHeadline = (EnrichedHeadlinevue_type_script_lang_ts); +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.adapter.ts +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + + +/* harmony default export */ var EnrichedHeadline_adapter = (createAngularJsAdapter({ + component: EnrichedHeadline, + scope: { + helpUrl: { + angularJsBind: '@' + }, + editUrl: { + angularJsBind: '@' + }, + reportGenerated: { + angularJsBind: '@?' + }, + featureName: { + angularJsBind: '@' + }, + inlineHelp: { + angularJsBind: '@?' + } + }, + directiveName: 'piwikEnrichedHeadline', + transclude: true +})); +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=template&id=5f6844c4 + +const ContentBlockvue_type_template_id_5f6844c4_hoisted_1 = { + class: "card", + ref: "root" +}; +const ContentBlockvue_type_template_id_5f6844c4_hoisted_2 = { + class: "card-content" +}; +const ContentBlockvue_type_template_id_5f6844c4_hoisted_3 = { + key: 0, + class: "card-title" +}; +const ContentBlockvue_type_template_id_5f6844c4_hoisted_4 = { + key: 1, + class: "card-title" +}; +const ContentBlockvue_type_template_id_5f6844c4_hoisted_5 = { + ref: "content" +}; +function ContentBlockvue_type_template_id_5f6844c4_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_EnrichedHeadline = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("EnrichedHeadline"); + + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ContentBlockvue_type_template_id_5f6844c4_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ContentBlockvue_type_template_id_5f6844c4_hoisted_2, [_ctx.contentTitle && !_ctx.actualFeature && !_ctx.helpUrl && !_ctx.actualHelpText ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h2", ContentBlockvue_type_template_id_5f6844c4_hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.contentTitle), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.contentTitle && (_ctx.actualFeature || _ctx.helpUrl || _ctx.actualHelpText) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("h2", ContentBlockvue_type_template_id_5f6844c4_hoisted_4, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_EnrichedHeadline, { + "feature-name": _ctx.actualFeature, + "help-url": _ctx.helpUrl, + "inline-help": _ctx.actualHelpText + }, { + default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.contentTitle), 1)]), + _: 1 + }, 8, ["feature-name", "help-url", "inline-help"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", ContentBlockvue_type_template_id_5f6844c4_hoisted_5, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512)])], 512); +} +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=template&id=5f6844c4 + +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-3!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=script&lang=ts + + +let adminContent = null; +/* harmony default export */ var ContentBlockvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ + props: { + contentTitle: String, + feature: String, + helpUrl: String, + helpText: String, + anchor: String + }, + components: { + EnrichedHeadline: EnrichedHeadline + }, + + data() { + return { + actualFeature: this.feature, + actualHelpText: this.helpText + }; + }, + + setup() { + const root = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null); + const content = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(null); + return { + root, + content + }; + }, + + watch: { + feature(newValue) { + this.actualFeature = newValue; + }, + + helpText(newValue) { + this.actualHelpText = newValue; + } + + }, + + mounted() { + const { + root, + content + } = this.$refs; + + if (this.anchor) { + const anchorElement = document.createElement('a'); + anchorElement.id = this.anchor; + root.parentElement.prepend(anchorElement); + } + + setTimeout(() => { + const inlineHelp = content.querySelector('.contentHelp'); + + if (inlineHelp) { + this.actualHelpText = inlineHelp.innerHTML; + inlineHelp.remove(); + } + }, 0); + + if (this.actualFeature && (this.actualFeature === true || this.actualFeature === 'true')) { + this.actualFeature = this.contentTitle; + } + + if (adminContent === null) { + // cache admin node for further content blocks + adminContent = document.querySelector('#content.admin'); + } + + let contentTopPosition; + + if (adminContent) { + contentTopPosition = adminContent.offsetTop; + } + + if (contentTopPosition || contentTopPosition === 0) { + const parents = root.closest('[piwik-widget-loader]'); // when shown within the widget loader, we need to get the offset of that element + // as the widget loader might be still shown. Would otherwise not position correctly + // the widgets on the admin home page + + const topThis = parents ? parents.offsetTop : root.offsetTop; + + if (topThis - contentTopPosition < 17) { + // we make sure to display the first card with no margin-top to have it on same as line as + // navigation + root.style.marginTop = 0; + } + } + } + +})); +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?vue&type=script&lang=ts + +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue + + + +ContentBlockvue_type_script_lang_ts.render = ContentBlockvue_type_template_id_5f6844c4_render + +/* harmony default export */ var ContentBlock = (ContentBlockvue_type_script_lang_ts); +// CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.adapter.ts +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + + +/* harmony default export */ var ContentBlock_adapter = (createAngularJsAdapter({ + component: ContentBlock, + scope: { + contentTitle: { + angularJsBind: '@' + }, + feature: { + angularJsBind: '@' + }, + helpUrl: { + angularJsBind: '@' + }, + helpText: { + angularJsBind: '@' + }, + anchor: { + angularJsBind: '@?' + } + }, + directiveName: 'piwikContentBlock', + transclude: true +})); // CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?vue&type=template&id=6af4d064 -const _hoisted_1 = { +const ActivityIndicatorvue_type_template_id_6af4d064_hoisted_1 = { class: "loadingPiwik" }; -const _hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { +const ActivityIndicatorvue_type_template_id_6af4d064_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { src: "plugins/Morpheus/images/loading-blue.gif", alt: "" }, null, -1); function ActivityIndicatorvue_type_template_id_6af4d064_render(_ctx, _cache, $props, $setup, $data, $options) { - return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_1, [_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.loadingMessage), 1)], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.loading]]); + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ActivityIndicatorvue_type_template_id_6af4d064_hoisted_1, [ActivityIndicatorvue_type_template_id_6af4d064_hoisted_2, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("span", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.loadingMessage), 1)], 512)), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.loading]]); } // CONCATENATED MODULE: ./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?vue&type=template&id=6af4d064 @@ -1995,6 +2456,10 @@ Alertvue_type_script_lang_ts.render = Alertvue_type_template_id_c3863ae2_render + + + + // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js diff --git a/plugins/CoreHome/vue/dist/CoreHome.umd.js.map b/plugins/CoreHome/vue/dist/CoreHome.umd.js.map index b4dd196131..0c88a2e6e3 100644 --- a/plugins/CoreHome/vue/dist/CoreHome.umd.js.map +++ b/plugins/CoreHome/vue/dist/CoreHome.umd.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://CoreHome/webpack/universalModuleDefinition","webpack://CoreHome/webpack/bootstrap","webpack://CoreHome/./plugins/CoreHome/vue/src/noAdblockFlag.ts","webpack://CoreHome/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://CoreHome/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/utilities.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/translate.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Day.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Week.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Month.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Year.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Range.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?c435","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?a576","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?7b62","webpack://CoreHome/./plugins/CoreHome/vue/src/createAngularJsAdapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?0bf6","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?f42e","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?6f80","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?14a2","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?92a9","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?cc69","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/index.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/index.ts","webpack://CoreHome/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;AClFA;;;;;AAKG;AAEH;;AACA,MAAM,CAAC,iBAAP,GAA2B,KAA3B,C;;;;;;;ACRA,mD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACe,sDAAI;;;ACrBnB;;;;;AAKG;;AAEH;;;AAGG;AACH,MAAM,SAAS,GAAG;AAChB,gBAAc,CAAC,SAAD,EAAkB;AAC9B,UAAM,IAAI,GAAG,MAAM,CAAC,QAAP,CAAgB,IAAhB,CAAqB,KAArB,CAA2B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AAE,KADyB;AAEpC,OAAK,EAAE;AACL,YAAQ,EAAE;AACR,SAAG,EAAE,UADG;AAER,mBAAa,EAAE;AAFP;AADL,GAF6B;AAQpC,eAAa,EAAE,YARqB;AASpC,YAAU,EAAE;AATwB,CAAD,CAArC,E;;ACVA;;;;;AAKG;AACH;AAEA;AACA;AACA;AACA;AACA;AACA;;;ACbA;;;;;AAKG;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AC7BwB;AACF","file":"CoreHome.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"CoreHome\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"CoreHome\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"plugins/CoreHome/vue/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n// see https://github.com/matomo-org/matomo/issues/5094 used to detect an ad blocker\nwindow.hasBlockedContent = false;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst MatomoUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default MatomoUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport MatomoUrl from './MatomoUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: MatomoUrl.getSearchParam.bind(MatomoUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\ninterface Period {\n getPrettyString(): string;\n getDateRange(): Date[];\n containsToday(): boolean;\n}\n\ninterface PeriodClass {\n parse(strDate: string|Date): Period;\n getDisplayText(): string;\n}\n\n/**\n * Matomo period management service for the frontend.\n *\n * Usage:\n *\n * var DayPeriod = matomoPeriods.get('day');\n * var day = new DayPeriod(new Date());\n *\n * or\n *\n * var day = matomoPeriods.parse('day', '2013-04-05');\n *\n * Adding custom periods:\n *\n * To add your own period to the frontend, create a period class for it\n * w/ the following methods:\n *\n * - **getPrettyString()**: returns a human readable display string for the period.\n * - **getDateRange()**: returns an array w/ two elements, the first being the start\n * Date of the period, the second being the end Date. The dates\n * must be Date objects, not strings, and are inclusive.\n * - **containsToday()**: returns true if the date period contains today. False if not.\n * - (_static_) **parse(strDate)**: creates a new instance of this period from the\n * value of the 'date' query parameter.\n * - (_static_) **getDisplayText**: returns translated text for the period, eg, 'month',\n * 'week', etc.\n *\n * Then call Periods.addCustomPeriod w/ your period class:\n *\n * Periods.addCustomPeriod('mycustomperiod', MyCustomPeriod);\n *\n * NOTE: currently only single date periods like day, week, month year can\n * be extended. Other types of periods that require a special UI to\n * view/edit aren't, since there is currently no way to use a\n * custom UI for a custom period.\n */\nclass Periods {\n periods: {[name: string]: PeriodClass} = {};\n\n periodOrder: string[] = [];\n\n addCustomPeriod(name: string, periodClass: PeriodClass) {\n if (this.periods[name]) {\n throw new Error(`The \"${name}\" period already exists! It cannot be overridden.`);\n }\n\n this.periods[name] = periodClass;\n this.periodOrder.push(name);\n }\n\n getAllLabels(): string[] {\n return Array<string>().concat(this.periodOrder);\n }\n\n get(strPeriod: string): PeriodClass {\n const periodClass = this.periods[strPeriod];\n if (!periodClass) {\n throw new Error(`Invalid period label: ${strPeriod}`);\n }\n return periodClass;\n }\n\n parse(strPeriod: string, strDate: string): Period {\n return this.get(strPeriod).parse(strDate);\n }\n\n isRecognizedPeriod(strPeriod: string): boolean {\n return !!this.periods[strPeriod];\n }\n}\n\nexport default new Periods();\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport function format(date: Date): string {\n return $.datepicker.formatDate('yy-mm-dd', date);\n}\n\nexport function getToday(): Date {\n const date = new Date(Date.now());\n\n // undo browser timezone\n date.setTime(date.getTime() + date.getTimezoneOffset() * 60 * 1000);\n\n // apply Matomo site timezone (if it exists)\n date.setHours(date.getHours() + ((window.piwik.timezoneOffset || 0) / 3600));\n\n // get rid of hours/minutes/seconds/etc.\n date.setHours(0);\n date.setMinutes(0);\n date.setSeconds(0);\n date.setMilliseconds(0);\n return date;\n}\n\nexport function parseDate(date: string|Date): Date {\n if (date instanceof Date) {\n return date;\n }\n\n const strDate = decodeURIComponent(date);\n\n if (strDate === 'today'\n || strDate === 'now'\n ) {\n return getToday();\n }\n\n if (strDate === 'yesterday'\n // note: ignoring the 'same time' part since the frontend doesn't care about the time\n || strDate === 'yesterdaySameTime'\n ) {\n const yesterday = getToday();\n yesterday.setDate(yesterday.getDate() - 1);\n return yesterday;\n }\n\n if (strDate.match(/last[ -]?week/i)) {\n const lastWeek = getToday();\n lastWeek.setDate(lastWeek.getDate() - 7);\n return lastWeek;\n }\n\n if (strDate.match(/last[ -]?month/i)) {\n const lastMonth = getToday();\n lastMonth.setDate(1);\n lastMonth.setMonth(lastMonth.getMonth() - 1);\n return lastMonth;\n }\n\n if (strDate.match(/last[ -]?year/i)) {\n const lastYear = getToday();\n lastYear.setFullYear(lastYear.getFullYear() - 1);\n return lastYear;\n }\n\n try {\n return $.datepicker.parseDate('yy-mm-dd', strDate);\n } catch (err) {\n // angular swallows this error, so manual console log here\n console.error(err.message || err);\n throw err;\n }\n}\n\nexport function todayIsInRange(dateRange: Date[]): boolean {\n if (dateRange.length !== 2) {\n return false;\n }\n\n if (getToday() >= dateRange[0] && getToday() <= dateRange[1]) {\n return true;\n }\n\n return false;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = MatomoUrl.getSearchParam('date');\n const period = MatomoUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Matomo = piwik;\nexport default Matomo;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Matomo from './Matomo';\n\nfunction piwikService() {\n return Matomo;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport default function translate(translationStringId: string, values: string[] = []): string {\n return window._pk_translate(translationStringId, values); // eslint-disable-line\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class DayPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): DayPeriod {\n return new DayPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodDay');\n }\n\n getPrettyString(): string {\n return format(this.dateInPeriod);\n }\n\n getDateRange(): Date[] {\n return [new Date(this.dateInPeriod.getTime()), new Date(this.dateInPeriod.getTime())];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('day', DayPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class WeekPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): WeekPeriod {\n return new WeekPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodWeek');\n }\n\n getPrettyString(): string {\n const weekDates = this.getDateRange();\n const startWeek = format(weekDates[0]);\n const endWeek = format(weekDates[1]);\n\n return translate('General_DateRangeFromTo', [startWeek, endWeek]);\n }\n\n getDateRange(): Date[] {\n const daysToMonday = (this.dateInPeriod.getDay() + 6) % 7;\n\n const startWeek = new Date(this.dateInPeriod.getTime());\n startWeek.setDate(this.dateInPeriod.getDate() - daysToMonday);\n\n const endWeek = new Date(startWeek.getTime());\n endWeek.setDate(startWeek.getDate() + 6);\n\n return [startWeek, endWeek];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('week', WeekPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class MonthPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): MonthPeriod {\n return new MonthPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodMonth');\n }\n\n getPrettyString(): string {\n const month = translate(`Intl_Month_Long_StandAlone_${this.dateInPeriod.getMonth() + 1}`);\n return `${month} ${this.dateInPeriod.getFullYear()}`;\n }\n\n getDateRange(): Date[] {\n const startMonth = new Date(this.dateInPeriod.getTime());\n startMonth.setDate(1);\n\n const endMonth = new Date(this.dateInPeriod.getTime());\n endMonth.setDate(1);\n endMonth.setMonth(endMonth.getMonth() + 1);\n endMonth.setDate(0);\n\n return [startMonth, endMonth];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('month', MonthPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class YearPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): YearPeriod {\n return new YearPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodYear');\n }\n\n getPrettyString(): string {\n return this.dateInPeriod.getFullYear().toString();\n }\n\n getDateRange(): Date[] {\n const startYear = new Date(this.dateInPeriod.getTime());\n startYear.setMonth(0);\n startYear.setDate(1);\n\n const endYear = new Date(this.dateInPeriod.getTime());\n endYear.setMonth(12);\n endYear.setDate(0);\n\n return [startYear, endYear];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('year', YearPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport {\n parseDate,\n format,\n getToday,\n todayIsInRange,\n} from './utilities';\n\nexport default class RangePeriod {\n constructor(\n public readonly startDate: Date,\n public readonly endDate: Date,\n public readonly childPeriodType: string,\n ) {}\n\n /**\n * Returns a range representing the last N childPeriodType periods, including the current one.\n */\n static getLastNRange(\n childPeriodType: string,\n strAmount: string|number,\n strEndDate?: Date|string,\n ): RangePeriod {\n const nAmount = Math.max(parseInt(strAmount.toString(), 10) - 1, 0);\n if (Number.isNaN(nAmount)) {\n throw new Error('Invalid range strAmount');\n }\n\n let endDate = strEndDate ? parseDate(strEndDate) : getToday();\n\n let startDate = new Date(endDate.getTime());\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - nAmount);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (nAmount * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - nAmount);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - nAmount);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n /**\n * Returns a range representing a specific child date range counted back from the end date\n *\n * @param childPeriodType Type of the period, eg. day, week, year\n * @param rangeEndDate\n * @param countBack Return only the child date range for this specific period number\n * @returns {RangePeriod}\n */\n static getLastNRangeChild(\n childPeriodType: string,\n rangeEndDate: Date|string,\n countBack: number,\n ): RangePeriod {\n const ed = rangeEndDate ? parseDate(rangeEndDate) : getToday();\n let startDate = new Date(ed.getTime());\n let endDate = new Date(ed.getTime());\n\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - countBack);\n endDate.setDate(endDate.getDate() - countBack);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (countBack * 7));\n endDate.setDate(endDate.getDate() - (countBack * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - countBack);\n endDate.setDate(1);\n endDate.setMonth(endDate.getMonth() - countBack);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - countBack);\n endDate.setFullYear(endDate.getFullYear() - countBack);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n static parse(strDate: string, childPeriodType = 'day'): RangePeriod {\n if (/^previous/.test(strDate)) {\n const endDate = RangePeriod.getLastNRange(childPeriodType, '2').startDate;\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(8), endDate);\n }\n\n if (/^last/.test(strDate)) {\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(4));\n }\n\n const parts = decodeURIComponent(strDate).split(',');\n return new RangePeriod(parseDate(parts[0]), parseDate(parts[1]), childPeriodType);\n }\n\n static getDisplayText(): string {\n return translate('General_DateRangeInPeriodList');\n }\n\n getPrettyString(): string {\n const start = format(this.startDate);\n const end = format(this.endDate);\n return translate('General_DateRangeFromTo', [start, end]);\n }\n\n getDateRange(): Date[] {\n return [this.startDate, this.endDate];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('range', RangePeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Periods from './Periods';\nimport RangePeriod from './Range';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nwindow.piwik.addCustomPeriod = Periods.addCustomPeriod.bind(Periods);\n\nfunction piwikPeriods() {\n return {\n getAllLabels: Periods.getAllLabels.bind(Periods),\n isRecognizedPeriod: Periods.isRecognizedPeriod.bind(Periods),\n get: Periods.get.bind(Periods),\n parse: Periods.parse.bind(Periods),\n parseDate,\n format,\n RangePeriod,\n todayIsInRange,\n };\n}\n\nangular.module('piwikApp.service').factory('piwikPeriods', piwikPeriods);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Matomo from '../Matomo/Matomo';\n\nwindow.globalAjaxQueue = [] as GlobalAjaxQueue;\nwindow.globalAjaxQueue.active = 0;\n\nwindow.globalAjaxQueue.clean = function globalAjaxQueueClean() {\n for (let i = this.length; i >= 0; i -= 1) {\n if (!this[i] || this[i].readyState === 4) {\n this.splice(i, 1);\n }\n }\n};\n\nwindow.globalAjaxQueue.push = function globalAjaxQueuePush(...args: (XMLHttpRequest|null)[]) {\n this.active += args.length;\n\n // cleanup ajax queue\n this.clean();\n\n // call original array push\n return Array.prototype.push.call(this, ...args);\n};\n\nwindow.globalAjaxQueue.abort = function globalAjaxQueueAbort() {\n // abort all queued requests if possible\n this.forEach((x) => x && x.abort && x.abort());\n\n // remove all elements from array\n this.splice(0, this.length);\n\n this.active = 0;\n};\n\ntype ParameterValue = string | number | null | undefined | ParameterValue[];\ntype Parameters = {[name: string]: ParameterValue | Parameters};\ntype AnyFunction = (...params:any[]) => any; // eslint-disable-line\n\n/**\n * error callback to use by default\n */\nfunction defaultErrorCallback(deferred: XMLHttpRequest, status: string): void {\n // do not display error message if request was aborted\n if (status === 'abort') {\n return;\n }\n\n const loadingError = $('#loadingError');\n if (Piwik_Popover.isOpen() && deferred && deferred.status === 500) {\n if (deferred && deferred.status === 500) {\n $(document.body).html(piwikHelper.escape(deferred.responseText));\n }\n } else {\n loadingError.show();\n }\n}\n\n/**\n * Global ajax helper to handle requests within Matomo\n */\nexport default class AjaxHelper {\n /**\n * Format of response\n */\n format = 'json';\n\n /**\n * A timeout for the request which will override any global timeout\n */\n timeout = null;\n\n /**\n * Callback function to be executed on success\n */\n callback: AnyFunction = null;\n\n /**\n * Use this.callback if an error is returned\n */\n useRegularCallbackInCaseOfError = false;\n\n /**\n * Callback function to be executed on error\n *\n * @deprecated use the jquery promise API\n */\n errorCallback: AnyFunction;\n\n withToken = false;\n\n /**\n * Callback function to be executed on complete (after error or success)\n *\n * @deprecated use the jquery promise API\n */\n completeCallback: AnyFunction;\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultGetParams\n */\n getParams: Parameters = {};\n\n /**\n * Base URL used in the AJAX request. Can be set by setUrl.\n *\n * It is set to '?' rather than 'index.php?' to increase chances that it works\n * including for users who have an automatic 301 redirection from index.php? to ?\n * POST values are missing when there is such 301 redirection. So by by-passing\n * this 301 redirection, we avoid this issue.\n *\n * @see ajaxHelper.setUrl\n */\n getUrl = '?';\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultPostParams\n */\n postParams: Parameters = {};\n\n /**\n * Element to be displayed while loading\n */\n loadingElement: HTMLElement|null|JQuery|JQLite|string = null;\n\n /**\n * Element to be displayed on error\n */\n errorElement: HTMLElement|JQuery|JQLite|string = '#ajaxError';\n\n /**\n * Handle for current request\n */\n requestHandle: XMLHttpRequest|JQuery.jqXHR|null = null;\n\n defaultParams = ['idSite', 'period', 'date', 'segment'];\n\n constructor() {\n this.errorCallback = defaultErrorCallback;\n }\n\n /**\n * Adds params to the request.\n * If params are given more then once, the latest given value is used for the request\n *\n * @param params\n * @param type type of given parameters (POST or GET)\n * @return {void}\n */\n addParams(params: Parameters|string, type: string): void {\n if (typeof params === 'string') {\n // TODO: add global types for broadcast (multiple uses below)\n params = window['broadcast'].getValuesFromUrl(params); // eslint-disable-line\n }\n\n const arrayParams = ['compareSegments', 'comparePeriods', 'compareDates'];\n Object.keys(params).forEach((key) => {\n const value = params[key];\n if (arrayParams.indexOf(key) !== -1\n && !value\n ) {\n return;\n }\n\n if (type.toLowerCase() === 'get') {\n this.getParams[key] = value;\n } else if (type.toLowerCase() === 'post') {\n this.postParams[key] = value;\n }\n });\n }\n\n withTokenInUrl(): void {\n this.withToken = true;\n }\n\n /**\n * Sets the base URL to use in the AJAX request.\n */\n setUrl(url: string): void {\n this.addParams(broadcast.getValuesFromUrl(url), 'GET');\n }\n\n /**\n * Gets this helper instance ready to send a bulk request. Each argument to this\n * function is a single request to use.\n */\n setBulkRequests(...urls: string[]): void {\n const urlsProcessed = urls.map((u) => $.param(u));\n\n this.addParams({\n module: 'API',\n method: 'API.getBulkRequest',\n urls: urlsProcessed,\n format: 'json',\n }, 'post');\n }\n\n /**\n * Set a timeout (in milliseconds) for the request. This will override any global timeout.\n *\n * @param timeout Timeout in milliseconds\n */\n setTimeout(timeout: number): void {\n this.timeout = timeout;\n }\n\n /**\n * Sets the callback called after the request finishes\n *\n * @param callback Callback function\n * @deprecated use the jquery promise API\n */\n setCallback(callback: AnyFunction): void {\n this.callback = callback;\n }\n\n /**\n * Set that the callback passed to setCallback() should be used if an application error (i.e. an\n * Exception in PHP) is returned.\n */\n useCallbackInCaseOfError(): void {\n this.useRegularCallbackInCaseOfError = true;\n }\n\n /**\n * Set callback to redirect on success handler\n * &update=1(+x) will be appended to the current url\n *\n * @param [params] to modify in redirect url\n * @return {void}\n */\n redirectOnSuccess(params: Parameters): void {\n this.setCallback(() => {\n piwikHelper.redirect(params);\n });\n }\n\n /**\n * Sets the callback called in case of an error within the request\n *\n * @deprecated use the jquery promise API\n */\n setErrorCallback(callback: AnyFunction): void {\n this.errorCallback = callback;\n }\n\n /**\n * Sets the complete callback which is called after an error or success callback.\n *\n * @deprecated use the jquery promise API\n */\n setCompleteCallback(callback: AnyFunction): void {\n this.completeCallback = callback;\n }\n\n /**\n * Sets the response format for the request\n *\n * @param format response format (e.g. json, html, ...)\n */\n setFormat(format: string): void {\n this.format = format;\n }\n\n /**\n * Set the div element to show while request is loading\n *\n * @param [element] selector for the loading element\n */\n setLoadingElement(element: string|HTMLElement|JQuery): void {\n this.loadingElement = element || '#ajaxLoadingDiv';\n }\n\n /**\n * Set the div element to show on error\n *\n * @param element selector for the error element\n */\n setErrorElement(element: HTMLElement|JQuery|string): void {\n if (!element) {\n return;\n }\n this.errorElement = element;\n }\n\n /**\n * Detect whether are allowed to use the given default parameter or not\n */\n private useGETDefaultParameter(parameter: string): boolean {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n /**\n * Removes a default parameter that is usually send automatically along the request.\n *\n * @param parameter A name such as \"period\", \"date\", \"segment\".\n */\n removeDefaultParameter(parameter: string): void {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n this.defaultParams.splice(i, 1);\n }\n }\n }\n }\n\n /**\n * Send the request\n */\n send(): JQuery.jqXHR {\n if ($(this.errorElement).length) {\n $(this.errorElement).hide();\n }\n\n if (this.loadingElement) {\n $(this.loadingElement).fadeIn();\n }\n\n this.requestHandle = this.buildAjaxCall();\n globalAjaxQueue.push(this.requestHandle);\n\n return this.requestHandle;\n }\n\n /**\n * Aborts the current request if it is (still) running\n */\n abort(): void {\n if (this.requestHandle && typeof this.requestHandle.abort === 'function') {\n this.requestHandle.abort();\n this.requestHandle = null;\n }\n }\n\n /**\n * Builds and sends the ajax requests\n */\n private buildAjaxCall(): JQuery.jqXHR {\n const self = this;\n const parameters = this.mixinDefaultGetParams(this.getParams);\n\n let url = this.getUrl;\n if (url[url.length - 1] !== '?') {\n url += '&';\n }\n\n // we took care of encoding &segment properly already, so we don't use $.param for it ($.param\n // URL encodes the values)\n if (parameters.segment) {\n url = `${url}segment=${parameters.segment}&`;\n delete parameters.segment;\n }\n if (parameters.date) {\n url = `${url}date=${decodeURIComponent(parameters.date.toString())}&`;\n delete parameters.date;\n }\n url += $.param(parameters);\n const ajaxCall = {\n type: 'POST',\n async: true,\n url,\n dataType: this.format || 'json',\n complete: this.completeCallback,\n error: function errorCallback() {\n globalAjaxQueue.active -= 1;\n\n if (self.errorCallback) {\n self.errorCallback.apply(this, arguments); // eslint-disable-line\n }\n },\n success: (response, status, request) => {\n if (this.loadingElement) {\n $(this.loadingElement).hide();\n }\n\n if (response && response.result === 'error' && !this.useRegularCallbackInCaseOfError) {\n let placeAt = null;\n let type = 'toast';\n if ($(this.errorElement).length && response.message) {\n $(this.errorElement).show();\n placeAt = this.errorElement;\n type = null;\n }\n\n if (response.message) {\n const UI = window['require']('piwik/UI'); // eslint-disable-line\n const notification = new UI.Notification();\n notification.show(response.message, {\n placeat: placeAt,\n context: 'error',\n type,\n id: 'ajaxHelper',\n });\n notification.scrollToNotification();\n }\n } else if (this.callback) {\n this.callback(response, status, request);\n }\n\n globalAjaxQueue.active -= 1;\n if (Matomo.ajaxRequestFinished) {\n Matomo.ajaxRequestFinished();\n }\n },\n data: this.mixinDefaultPostParams(this.postParams),\n timeout: this.timeout !== null ? this.timeout : undefined,\n };\n\n return $.ajax(ajaxCall);\n }\n\n private isRequestToApiMethod() {\n return (this.getParams && this.getParams.module === 'API' && this.getParams.method)\n || (this.postParams && this.postParams.module === 'API' && this.postParams.method);\n }\n\n isWidgetizedRequest(): boolean {\n return (broadcast.getValueFromUrl('module') === 'Widgetize');\n }\n\n private getDefaultPostParams() {\n if (this.withToken || this.isRequestToApiMethod() || Matomo.shouldPropagateTokenAuth) {\n return {\n token_auth: Matomo.token_auth,\n // When viewing a widgetized report there won't be any session that can be used, so don't\n // force session usage\n force_api_session: broadcast.isWidgetizeRequestWithoutSession() ? 0 : 1,\n };\n }\n\n return {};\n }\n\n /**\n * Mixin the default parameters to send as POST\n *\n * @param params parameter object\n */\n private mixinDefaultPostParams(params): Parameters {\n const defaultParams = this.getDefaultPostParams();\n\n const mergedParams = {\n ...defaultParams,\n ...params,\n };\n\n return mergedParams;\n }\n\n /**\n * Mixin the default parameters to send as GET\n *\n * @param params parameter object\n */\n private mixinDefaultGetParams(originalParams): Parameters {\n const segment = MatomoUrl.getSearchParam('segment');\n\n const defaultParams = {\n idSite: Matomo.idSite || broadcast.getValueFromUrl('idSite'),\n period: Matomo.period || broadcast.getValueFromUrl('period'),\n segment,\n };\n\n const params = originalParams;\n\n // never append token_auth to url\n if (params.token_auth) {\n params.token_auth = null;\n delete params.token_auth;\n }\n\n Object.keys(defaultParams).forEach((key) => {\n if (this.useGETDefaultParameter(key)\n && !params[key]\n && !this.postParams[key]\n && defaultParams[key]\n ) {\n params[key] = defaultParams[key];\n }\n });\n\n // handle default date & period if not already set\n if (this.useGETDefaultParameter('date') && !params.date && !this.postParams.date) {\n params.date = Matomo.currentDateString;\n }\n\n return params;\n }\n}\n","import AjaxHelper from './AjaxHelper';\n\ndeclare global {\n interface Window {\n ajaxHelper: AjaxHelper;\n }\n}\n\nwindow.ajaxHelper = AjaxHelper;\n\nfunction ajaxQueue() {\n return globalAjaxQueue;\n}\n\nangular.module('piwikApp.service').service('globalAjaxQueue', ajaxQueue);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst PiwikUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default PiwikUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport PiwikUrl from './PiwikUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: PiwikUrl.getSearchParam.bind(PiwikUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport PiwikUrl from '../PiwikUrl/PiwikUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = PiwikUrl.getSearchParam('date');\n const period = PiwikUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Piwik = piwik;\nexport default Piwik;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Piwik from './Piwik';\n\nfunction piwikService() {\n return Piwik;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n<template>\n <slot></slot>\n</template>\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n show: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close'],\n activated() {\n const slotElement = this.element || this.$slots.default()[0].el;\n slotElement.style.display = 'none';\n },\n watch: {\n show(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$slots.default()[0].el;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => { this.$emit('closeEnd'); },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n show: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close'],\n activated() {\n const slotElement = this.element || this.$slots.default()[0].el;\n slotElement.style.display = 'none';\n },\n watch: {\n show(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$slots.default()[0].el;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => { this.$emit('closeEnd'); },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./MatomoDialog.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./MatomoDialog.vue?vue&type=script&lang=ts\"","import { render } from \"./MatomoDialog.vue?vue&type=template&id=42c028e0\"\nimport script from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport {\n createApp,\n defineComponent,\n ref,\n ComponentPublicInstance,\n} from 'vue';\n\ninterface SingleScopeVarInfo {\n vue: string;\n default?: any; // eslint-disable-line\n angularJsBind?: string;\n}\n\ntype ScopeMapping = { [scopeVarName: string]: SingleScopeVarInfo };\n\ntype AdapterFunction<InjectTypes, R = void> = (\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype PostCreateFunction<InjectTypes, R = void> = (\n vm: ComponentPublicInstance,\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype EventMapping<InjectTypes> = { [vueEventName: string]: AdapterFunction<InjectTypes> };\n\ntype ComponentType = ReturnType<typeof defineComponent>;\n\nexport default function createAngularJsAdapter<InjectTypes = []>(options: {\n component: ComponentType,\n scope?: ScopeMapping,\n directiveName: string,\n events?: EventMapping<InjectTypes>,\n $inject?: string[],\n transclude?: boolean,\n mountPointFactory?: AdapterFunction<InjectTypes, HTMLElement>,\n postCreate?: PostCreateFunction<InjectTypes>,\n noScope?: boolean,\n}): ng.IDirectiveFactory {\n const {\n component,\n scope = {},\n events = {},\n $inject,\n directiveName,\n transclude,\n mountPointFactory,\n postCreate,\n noScope,\n } = options;\n\n const angularJsScope = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (info.angularJsBind) {\n angularJsScope[scopeVarName] = info.angularJsBind;\n }\n });\n\n function angularJsAdapter(...injectedServices: InjectTypes) {\n const adapter: ng.IDirective = {\n restrict: 'A',\n scope: noScope ? undefined : angularJsScope,\n compile: function angularJsAdapterCompile() {\n return {\n post: function angularJsAdapterLink(\n ngScope: ng.IScope,\n ngElement: ng.IAugmentedJQuery,\n ngAttrs: ng.IAttributes,\n ) {\n const clone = ngElement.find('[ng-transclude]');\n\n let rootVueTemplate = '<root-component';\n Object.entries(scope).forEach(([, info]) => {\n rootVueTemplate += ` :${info.vue}=\"${info.vue}\"`;\n });\n Object.entries(events).forEach((info) => {\n const [eventName] = info;\n rootVueTemplate += ` @${eventName}=\"onEventHandler('${eventName}')\"`;\n });\n rootVueTemplate += '>';\n if (transclude) {\n rootVueTemplate += '<div ref=\"transcludeTarget\"/>';\n }\n rootVueTemplate += '</root-component>';\n const app = createApp({\n template: rootVueTemplate,\n data() {\n const initialData = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n let value = ngScope[scopeVarName];\n if (typeof value === 'undefined' && typeof info.default !== 'undefined') {\n value = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n }\n initialData[info.vue] = value;\n });\n return initialData;\n },\n setup() {\n if (transclude) {\n const transcludeTarget = ref(null);\n return {\n transcludeTarget,\n };\n }\n\n return undefined;\n },\n methods: {\n onEventHandler(name: string) {\n if (events[name]) {\n events[name](ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n },\n });\n app.config.globalProperties.$sanitize = window.vueSanitize;\n app.component('root-component', component);\n\n const mountPoint = mountPointFactory\n ? mountPointFactory(ngScope, ngElement, ngAttrs, ...injectedServices)\n : ngElement[0];\n const vm = app.mount(mountPoint);\n\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (!info.angularJsBind) {\n return;\n }\n\n ngScope.$watch(scopeVarName, (newValue: any) => { // eslint-disable-line\n if (typeof info.default !== 'undefined' && typeof newValue === 'undefined') {\n vm[scopeVarName] = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n } else {\n vm[scopeVarName] = newValue;\n }\n });\n });\n\n if (transclude) {\n $(vm.transcludeTarget).append(clone);\n }\n\n if (postCreate) {\n postCreate(vm, ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n };\n },\n };\n\n if (transclude) {\n adapter.transclude = true;\n adapter.template = '<div ng-transclude/>';\n }\n\n return adapter;\n }\n\n angularJsAdapter.$inject = $inject || [];\n\n angular.module('piwikApp').directive(directiveName, angularJsAdapter);\n\n return angularJsAdapter;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport { IParseService } from 'angular';\nimport { ComponentPublicInstance } from 'vue';\nimport MatomoDialog from './MatomoDialog.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter<[IParseService]>({\n component: MatomoDialog,\n scope: {\n show: {\n vue: 'show',\n default: false,\n },\n element: {\n vue: 'element',\n default: (scope, element) => element[0],\n },\n },\n events: {\n yes: (scope, element, attrs) => {\n if (attrs.yes) {\n scope.$eval(attrs.yes);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n no: (scope, element, attrs) => {\n if (attrs.no) {\n scope.$eval(attrs.no);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n close: (scope, element, attrs) => {\n if (attrs.close) {\n scope.$eval(attrs.close);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n closeEnd: (scope, element, attrs, $parse: IParseService) => {\n setTimeout(() => {\n scope.$apply($parse(attrs.piwikDialog).assign(scope, false));\n }, 0);\n },\n },\n $inject: ['$parse'],\n directiveName: 'piwikDialog',\n transclude: true,\n mountPointFactory: (scope, element) => {\n const vueRootPlaceholder = $('<div class=\"vue-placeholder\"/>');\n vueRootPlaceholder.appendTo(element);\n return vueRootPlaceholder[0];\n },\n postCreate: (vm: ComponentPublicInstance, scope, element, attrs) => {\n scope.$watch(attrs.piwikDialog, (newValue: boolean) => {\n vm.show = newValue || false;\n });\n },\n noScope: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div v-show=\"loading\" class=\"loadingPiwik\">\n <img src=\"plugins/Morpheus/images/loading-blue.gif\" alt=\"\"/>\n <span>{{ loadingMessage }}</span>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ActivityIndicator.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ActivityIndicator.vue?vue&type=script&lang=ts\"","import { render } from \"./ActivityIndicator.vue?vue&type=template&id=6af4d064\"\nimport script from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nexport * from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport ActivityIndicator from './ActivityIndicator.vue';\nimport translate from '../translate';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: ActivityIndicator,\n scope: {\n loading: {\n vue: 'loading',\n angularJsBind: '<',\n },\n loadingMessage: {\n vue: 'loadingMessage',\n angularJsBind: '<',\n default: () => translate('General_LoadingData'),\n },\n },\n $inject: [],\n directiveName: 'piwikActivityIndicator',\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n class=\"alert\"\n :class=\"{ [`alert-${severity}`]: true }\"\n >\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Alert.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Alert.vue?vue&type=script&lang=ts\"","import { render } from \"./Alert.vue?vue&type=template&id=c3863ae2\"\nimport script from \"./Alert.vue?vue&type=script&lang=ts\"\nexport * from \"./Alert.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Alert from './Alert.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: Alert,\n scope: {\n severity: {\n vue: 'severity',\n angularJsBind: '@piwikAlert',\n },\n },\n directiveName: 'piwikAlert',\n transclude: true,\n});\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport './Periods.adapter';\n\nexport { default as Periods } from './Periods';\nexport { default as Day } from './Day';\nexport { default as Week } from './Week';\nexport { default as Month } from './Month';\nexport { default as Year } from './Year';\nexport { default as Range } from './Range';\nexport * from './utilities';\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport './MatomoUrl/MatomoUrl.adapter';\nimport './Matomo/Matomo.adapter';\nimport './noAdblockFlag';\nimport './Periods/Day';\nimport './Periods/Week';\nimport './Periods/Month';\nimport './Periods/Year';\nimport './Periods/Range';\nimport './Periods/Periods.adapter';\nimport './AjaxHelper/AjaxHelper.adapter';\nimport './PiwikUrl/PiwikUrl.adapter';\nimport './Piwik/Piwik.adapter';\nimport './MatomoDialog/MatomoDialog.adapter';\n\nexport { default as createAngularJsAdapter } from './createAngularJsAdapter';\nexport { default as activityIndicatorAdapter } from './ActivityIndicator/ActivityIndicator.adapter';\nexport { default as ActivityIndicator } from './ActivityIndicator/ActivityIndicator.vue';\nexport { default as translate } from './translate';\nexport { default as alertAdapter } from './Alert/Alert.adapter';\nexport { default as AjaxHelper } from './AjaxHelper/AjaxHelper';\nexport { default as MatomoUrl } from './MatomoUrl/MatomoUrl';\nexport { default as Matomo } from './Matomo/Matomo';\nexport * from './Periods';\nexport { default as MatomoDialog } from './MatomoDialog/MatomoDialog.vue';\n","import './setPublicPath'\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack://CoreHome/webpack/universalModuleDefinition","webpack://CoreHome/webpack/bootstrap","webpack://CoreHome/./plugins/CoreHome/vue/src/noAdblockFlag.ts","webpack://CoreHome/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://CoreHome/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/utilities.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/translate.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Day.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Week.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Month.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Year.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Range.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?c435","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?a576","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?7b62","webpack://CoreHome/./plugins/CoreHome/vue/src/createAngularJsAdapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?7f4f","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?c3b8","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?9cf5","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?4b9f","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?cfa9","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?5539","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?0bf6","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?f42e","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?6f80","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?14a2","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?92a9","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?cc69","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/index.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/index.ts","webpack://CoreHome/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,i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(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"CoreHome\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"CoreHome\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"plugins/CoreHome/vue/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n// see https://github.com/matomo-org/matomo/issues/5094 used to detect an ad blocker\nwindow.hasBlockedContent = false;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst MatomoUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default MatomoUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport MatomoUrl from './MatomoUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: MatomoUrl.getSearchParam.bind(MatomoUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\ninterface Period {\n getPrettyString(): string;\n getDateRange(): Date[];\n containsToday(): boolean;\n}\n\ninterface PeriodClass {\n parse(strDate: string|Date): Period;\n getDisplayText(): string;\n}\n\n/**\n * Matomo period management service for the frontend.\n *\n * Usage:\n *\n * var DayPeriod = matomoPeriods.get('day');\n * var day = new DayPeriod(new Date());\n *\n * or\n *\n * var day = matomoPeriods.parse('day', '2013-04-05');\n *\n * Adding custom periods:\n *\n * To add your own period to the frontend, create a period class for it\n * w/ the following methods:\n *\n * - **getPrettyString()**: returns a human readable display string for the period.\n * - **getDateRange()**: returns an array w/ two elements, the first being the start\n * Date of the period, the second being the end Date. The dates\n * must be Date objects, not strings, and are inclusive.\n * - **containsToday()**: returns true if the date period contains today. False if not.\n * - (_static_) **parse(strDate)**: creates a new instance of this period from the\n * value of the 'date' query parameter.\n * - (_static_) **getDisplayText**: returns translated text for the period, eg, 'month',\n * 'week', etc.\n *\n * Then call Periods.addCustomPeriod w/ your period class:\n *\n * Periods.addCustomPeriod('mycustomperiod', MyCustomPeriod);\n *\n * NOTE: currently only single date periods like day, week, month year can\n * be extended. Other types of periods that require a special UI to\n * view/edit aren't, since there is currently no way to use a\n * custom UI for a custom period.\n */\nclass Periods {\n periods: {[name: string]: PeriodClass} = {};\n\n periodOrder: string[] = [];\n\n addCustomPeriod(name: string, periodClass: PeriodClass) {\n if (this.periods[name]) {\n throw new Error(`The \"${name}\" period already exists! It cannot be overridden.`);\n }\n\n this.periods[name] = periodClass;\n this.periodOrder.push(name);\n }\n\n getAllLabels(): string[] {\n return Array<string>().concat(this.periodOrder);\n }\n\n get(strPeriod: string): PeriodClass {\n const periodClass = this.periods[strPeriod];\n if (!periodClass) {\n throw new Error(`Invalid period label: ${strPeriod}`);\n }\n return periodClass;\n }\n\n parse(strPeriod: string, strDate: string): Period {\n return this.get(strPeriod).parse(strDate);\n }\n\n isRecognizedPeriod(strPeriod: string): boolean {\n return !!this.periods[strPeriod];\n }\n}\n\nexport default new Periods();\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport function format(date: Date): string {\n return $.datepicker.formatDate('yy-mm-dd', date);\n}\n\nexport function getToday(): Date {\n const date = new Date(Date.now());\n\n // undo browser timezone\n date.setTime(date.getTime() + date.getTimezoneOffset() * 60 * 1000);\n\n // apply Matomo site timezone (if it exists)\n date.setHours(date.getHours() + ((window.piwik.timezoneOffset || 0) / 3600));\n\n // get rid of hours/minutes/seconds/etc.\n date.setHours(0);\n date.setMinutes(0);\n date.setSeconds(0);\n date.setMilliseconds(0);\n return date;\n}\n\nexport function parseDate(date: string|Date): Date {\n if (date instanceof Date) {\n return date;\n }\n\n const strDate = decodeURIComponent(date);\n\n if (strDate === 'today'\n || strDate === 'now'\n ) {\n return getToday();\n }\n\n if (strDate === 'yesterday'\n // note: ignoring the 'same time' part since the frontend doesn't care about the time\n || strDate === 'yesterdaySameTime'\n ) {\n const yesterday = getToday();\n yesterday.setDate(yesterday.getDate() - 1);\n return yesterday;\n }\n\n if (strDate.match(/last[ -]?week/i)) {\n const lastWeek = getToday();\n lastWeek.setDate(lastWeek.getDate() - 7);\n return lastWeek;\n }\n\n if (strDate.match(/last[ -]?month/i)) {\n const lastMonth = getToday();\n lastMonth.setDate(1);\n lastMonth.setMonth(lastMonth.getMonth() - 1);\n return lastMonth;\n }\n\n if (strDate.match(/last[ -]?year/i)) {\n const lastYear = getToday();\n lastYear.setFullYear(lastYear.getFullYear() - 1);\n return lastYear;\n }\n\n try {\n return $.datepicker.parseDate('yy-mm-dd', strDate);\n } catch (err) {\n // angular swallows this error, so manual console log here\n console.error(err.message || err);\n throw err;\n }\n}\n\nexport function todayIsInRange(dateRange: Date[]): boolean {\n if (dateRange.length !== 2) {\n return false;\n }\n\n if (getToday() >= dateRange[0] && getToday() <= dateRange[1]) {\n return true;\n }\n\n return false;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = MatomoUrl.getSearchParam('date');\n const period = MatomoUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Matomo = piwik;\nexport default Matomo;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Matomo from './Matomo';\n\nfunction piwikService() {\n return Matomo;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport default function translate(\n translationStringId: string,\n ...values: string[]|string[][]\n): string {\n let pkArgs = values as string[];\n // handle variadic args AND single array of values (to match _pk_translate signature)\n if (values.length === 1 && values[0] && values[0] instanceof Array) {\n [pkArgs] = values as string[][];\n }\n return window._pk_translate(translationStringId, pkArgs); // eslint-disable-line\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class DayPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): DayPeriod {\n return new DayPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodDay');\n }\n\n getPrettyString(): string {\n return format(this.dateInPeriod);\n }\n\n getDateRange(): Date[] {\n return [new Date(this.dateInPeriod.getTime()), new Date(this.dateInPeriod.getTime())];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('day', DayPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class WeekPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): WeekPeriod {\n return new WeekPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodWeek');\n }\n\n getPrettyString(): string {\n const weekDates = this.getDateRange();\n const startWeek = format(weekDates[0]);\n const endWeek = format(weekDates[1]);\n\n return translate('General_DateRangeFromTo', [startWeek, endWeek]);\n }\n\n getDateRange(): Date[] {\n const daysToMonday = (this.dateInPeriod.getDay() + 6) % 7;\n\n const startWeek = new Date(this.dateInPeriod.getTime());\n startWeek.setDate(this.dateInPeriod.getDate() - daysToMonday);\n\n const endWeek = new Date(startWeek.getTime());\n endWeek.setDate(startWeek.getDate() + 6);\n\n return [startWeek, endWeek];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('week', WeekPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class MonthPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): MonthPeriod {\n return new MonthPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodMonth');\n }\n\n getPrettyString(): string {\n const month = translate(`Intl_Month_Long_StandAlone_${this.dateInPeriod.getMonth() + 1}`);\n return `${month} ${this.dateInPeriod.getFullYear()}`;\n }\n\n getDateRange(): Date[] {\n const startMonth = new Date(this.dateInPeriod.getTime());\n startMonth.setDate(1);\n\n const endMonth = new Date(this.dateInPeriod.getTime());\n endMonth.setDate(1);\n endMonth.setMonth(endMonth.getMonth() + 1);\n endMonth.setDate(0);\n\n return [startMonth, endMonth];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('month', MonthPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class YearPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): YearPeriod {\n return new YearPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodYear');\n }\n\n getPrettyString(): string {\n return this.dateInPeriod.getFullYear().toString();\n }\n\n getDateRange(): Date[] {\n const startYear = new Date(this.dateInPeriod.getTime());\n startYear.setMonth(0);\n startYear.setDate(1);\n\n const endYear = new Date(this.dateInPeriod.getTime());\n endYear.setMonth(12);\n endYear.setDate(0);\n\n return [startYear, endYear];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('year', YearPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport {\n parseDate,\n format,\n getToday,\n todayIsInRange,\n} from './utilities';\n\nexport default class RangePeriod {\n constructor(\n public readonly startDate: Date,\n public readonly endDate: Date,\n public readonly childPeriodType: string,\n ) {}\n\n /**\n * Returns a range representing the last N childPeriodType periods, including the current one.\n */\n static getLastNRange(\n childPeriodType: string,\n strAmount: string|number,\n strEndDate?: Date|string,\n ): RangePeriod {\n const nAmount = Math.max(parseInt(strAmount.toString(), 10) - 1, 0);\n if (Number.isNaN(nAmount)) {\n throw new Error('Invalid range strAmount');\n }\n\n let endDate = strEndDate ? parseDate(strEndDate) : getToday();\n\n let startDate = new Date(endDate.getTime());\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - nAmount);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (nAmount * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - nAmount);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - nAmount);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n /**\n * Returns a range representing a specific child date range counted back from the end date\n *\n * @param childPeriodType Type of the period, eg. day, week, year\n * @param rangeEndDate\n * @param countBack Return only the child date range for this specific period number\n * @returns {RangePeriod}\n */\n static getLastNRangeChild(\n childPeriodType: string,\n rangeEndDate: Date|string,\n countBack: number,\n ): RangePeriod {\n const ed = rangeEndDate ? parseDate(rangeEndDate) : getToday();\n let startDate = new Date(ed.getTime());\n let endDate = new Date(ed.getTime());\n\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - countBack);\n endDate.setDate(endDate.getDate() - countBack);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (countBack * 7));\n endDate.setDate(endDate.getDate() - (countBack * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - countBack);\n endDate.setDate(1);\n endDate.setMonth(endDate.getMonth() - countBack);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - countBack);\n endDate.setFullYear(endDate.getFullYear() - countBack);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n static parse(strDate: string, childPeriodType = 'day'): RangePeriod {\n if (/^previous/.test(strDate)) {\n const endDate = RangePeriod.getLastNRange(childPeriodType, '2').startDate;\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(8), endDate);\n }\n\n if (/^last/.test(strDate)) {\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(4));\n }\n\n const parts = decodeURIComponent(strDate).split(',');\n return new RangePeriod(parseDate(parts[0]), parseDate(parts[1]), childPeriodType);\n }\n\n static getDisplayText(): string {\n return translate('General_DateRangeInPeriodList');\n }\n\n getPrettyString(): string {\n const start = format(this.startDate);\n const end = format(this.endDate);\n return translate('General_DateRangeFromTo', [start, end]);\n }\n\n getDateRange(): Date[] {\n return [this.startDate, this.endDate];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('range', RangePeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Periods from './Periods';\nimport RangePeriod from './Range';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nwindow.piwik.addCustomPeriod = Periods.addCustomPeriod.bind(Periods);\n\nfunction piwikPeriods() {\n return {\n getAllLabels: Periods.getAllLabels.bind(Periods),\n isRecognizedPeriod: Periods.isRecognizedPeriod.bind(Periods),\n get: Periods.get.bind(Periods),\n parse: Periods.parse.bind(Periods),\n parseDate,\n format,\n RangePeriod,\n todayIsInRange,\n };\n}\n\nangular.module('piwikApp.service').factory('piwikPeriods', piwikPeriods);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Matomo from '../Matomo/Matomo';\n\nwindow.globalAjaxQueue = [] as GlobalAjaxQueue;\nwindow.globalAjaxQueue.active = 0;\n\nwindow.globalAjaxQueue.clean = function globalAjaxQueueClean() {\n for (let i = this.length; i >= 0; i -= 1) {\n if (!this[i] || this[i].readyState === 4) {\n this.splice(i, 1);\n }\n }\n};\n\nwindow.globalAjaxQueue.push = function globalAjaxQueuePush(...args: (XMLHttpRequest|null)[]) {\n this.active += args.length;\n\n // cleanup ajax queue\n this.clean();\n\n // call original array push\n return Array.prototype.push.call(this, ...args);\n};\n\nwindow.globalAjaxQueue.abort = function globalAjaxQueueAbort() {\n // abort all queued requests if possible\n this.forEach((x) => x && x.abort && x.abort());\n\n // remove all elements from array\n this.splice(0, this.length);\n\n this.active = 0;\n};\n\ntype ParameterValue = string | number | null | undefined | ParameterValue[];\ntype Parameters = {[name: string]: ParameterValue | Parameters};\ntype AnyFunction = (...params:any[]) => any; // eslint-disable-line\n\n/**\n * error callback to use by default\n */\nfunction defaultErrorCallback(deferred: XMLHttpRequest, status: string): void {\n // do not display error message if request was aborted\n if (status === 'abort') {\n return;\n }\n\n const loadingError = $('#loadingError');\n if (Piwik_Popover.isOpen() && deferred && deferred.status === 500) {\n if (deferred && deferred.status === 500) {\n $(document.body).html(piwikHelper.escape(deferred.responseText));\n }\n } else {\n loadingError.show();\n }\n}\n\n/**\n * Global ajax helper to handle requests within Matomo\n */\nexport default class AjaxHelper {\n /**\n * Format of response\n */\n format = 'json';\n\n /**\n * A timeout for the request which will override any global timeout\n */\n timeout = null;\n\n /**\n * Callback function to be executed on success\n */\n callback: AnyFunction = null;\n\n /**\n * Use this.callback if an error is returned\n */\n useRegularCallbackInCaseOfError = false;\n\n /**\n * Callback function to be executed on error\n *\n * @deprecated use the jquery promise API\n */\n errorCallback: AnyFunction;\n\n withToken = false;\n\n /**\n * Callback function to be executed on complete (after error or success)\n *\n * @deprecated use the jquery promise API\n */\n completeCallback: AnyFunction;\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultGetParams\n */\n getParams: Parameters = {};\n\n /**\n * Base URL used in the AJAX request. Can be set by setUrl.\n *\n * It is set to '?' rather than 'index.php?' to increase chances that it works\n * including for users who have an automatic 301 redirection from index.php? to ?\n * POST values are missing when there is such 301 redirection. So by by-passing\n * this 301 redirection, we avoid this issue.\n *\n * @see ajaxHelper.setUrl\n */\n getUrl = '?';\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultPostParams\n */\n postParams: Parameters = {};\n\n /**\n * Element to be displayed while loading\n */\n loadingElement: HTMLElement|null|JQuery|JQLite|string = null;\n\n /**\n * Element to be displayed on error\n */\n errorElement: HTMLElement|JQuery|JQLite|string = '#ajaxError';\n\n /**\n * Handle for current request\n */\n requestHandle: XMLHttpRequest|JQuery.jqXHR|null = null;\n\n defaultParams = ['idSite', 'period', 'date', 'segment'];\n\n // helper method entry point\n static fetch(params: Parameters): JQuery.jqXHR {\n const helper = new AjaxHelper();\n helper.setFormat('json');\n helper.addParams(params, 'get');\n return helper.send();\n }\n\n constructor() {\n this.errorCallback = defaultErrorCallback;\n }\n\n /**\n * Adds params to the request.\n * If params are given more then once, the latest given value is used for the request\n *\n * @param params\n * @param type type of given parameters (POST or GET)\n * @return {void}\n */\n addParams(params: Parameters|string, type: string): void {\n if (typeof params === 'string') {\n // TODO: add global types for broadcast (multiple uses below)\n params = window['broadcast'].getValuesFromUrl(params); // eslint-disable-line\n }\n\n const arrayParams = ['compareSegments', 'comparePeriods', 'compareDates'];\n Object.keys(params).forEach((key) => {\n const value = params[key];\n if (arrayParams.indexOf(key) !== -1\n && !value\n ) {\n return;\n }\n\n if (type.toLowerCase() === 'get') {\n this.getParams[key] = value;\n } else if (type.toLowerCase() === 'post') {\n this.postParams[key] = value;\n }\n });\n }\n\n withTokenInUrl(): void {\n this.withToken = true;\n }\n\n /**\n * Sets the base URL to use in the AJAX request.\n */\n setUrl(url: string): void {\n this.addParams(broadcast.getValuesFromUrl(url), 'GET');\n }\n\n /**\n * Gets this helper instance ready to send a bulk request. Each argument to this\n * function is a single request to use.\n */\n setBulkRequests(...urls: string[]): void {\n const urlsProcessed = urls.map((u) => $.param(u));\n\n this.addParams({\n module: 'API',\n method: 'API.getBulkRequest',\n urls: urlsProcessed,\n format: 'json',\n }, 'post');\n }\n\n /**\n * Set a timeout (in milliseconds) for the request. This will override any global timeout.\n *\n * @param timeout Timeout in milliseconds\n */\n setTimeout(timeout: number): void {\n this.timeout = timeout;\n }\n\n /**\n * Sets the callback called after the request finishes\n *\n * @param callback Callback function\n * @deprecated use the jquery promise API\n */\n setCallback(callback: AnyFunction): void {\n this.callback = callback;\n }\n\n /**\n * Set that the callback passed to setCallback() should be used if an application error (i.e. an\n * Exception in PHP) is returned.\n */\n useCallbackInCaseOfError(): void {\n this.useRegularCallbackInCaseOfError = true;\n }\n\n /**\n * Set callback to redirect on success handler\n * &update=1(+x) will be appended to the current url\n *\n * @param [params] to modify in redirect url\n * @return {void}\n */\n redirectOnSuccess(params: Parameters): void {\n this.setCallback(() => {\n piwikHelper.redirect(params);\n });\n }\n\n /**\n * Sets the callback called in case of an error within the request\n *\n * @deprecated use the jquery promise API\n */\n setErrorCallback(callback: AnyFunction): void {\n this.errorCallback = callback;\n }\n\n /**\n * Sets the complete callback which is called after an error or success callback.\n *\n * @deprecated use the jquery promise API\n */\n setCompleteCallback(callback: AnyFunction): void {\n this.completeCallback = callback;\n }\n\n /**\n * Sets the response format for the request\n *\n * @param format response format (e.g. json, html, ...)\n */\n setFormat(format: string): void {\n this.format = format;\n }\n\n /**\n * Set the div element to show while request is loading\n *\n * @param [element] selector for the loading element\n */\n setLoadingElement(element: string|HTMLElement|JQuery): void {\n this.loadingElement = element || '#ajaxLoadingDiv';\n }\n\n /**\n * Set the div element to show on error\n *\n * @param element selector for the error element\n */\n setErrorElement(element: HTMLElement|JQuery|string): void {\n if (!element) {\n return;\n }\n this.errorElement = element;\n }\n\n /**\n * Detect whether are allowed to use the given default parameter or not\n */\n private useGETDefaultParameter(parameter: string): boolean {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n /**\n * Removes a default parameter that is usually send automatically along the request.\n *\n * @param parameter A name such as \"period\", \"date\", \"segment\".\n */\n removeDefaultParameter(parameter: string): void {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n this.defaultParams.splice(i, 1);\n }\n }\n }\n }\n\n /**\n * Send the request\n */\n send(): JQuery.jqXHR {\n if ($(this.errorElement).length) {\n $(this.errorElement).hide();\n }\n\n if (this.loadingElement) {\n $(this.loadingElement).fadeIn();\n }\n\n this.requestHandle = this.buildAjaxCall();\n globalAjaxQueue.push(this.requestHandle);\n\n return this.requestHandle;\n }\n\n /**\n * Aborts the current request if it is (still) running\n */\n abort(): void {\n if (this.requestHandle && typeof this.requestHandle.abort === 'function') {\n this.requestHandle.abort();\n this.requestHandle = null;\n }\n }\n\n /**\n * Builds and sends the ajax requests\n */\n private buildAjaxCall(): JQuery.jqXHR {\n const self = this;\n const parameters = this.mixinDefaultGetParams(this.getParams);\n\n let url = this.getUrl;\n if (url[url.length - 1] !== '?') {\n url += '&';\n }\n\n // we took care of encoding &segment properly already, so we don't use $.param for it ($.param\n // URL encodes the values)\n if (parameters.segment) {\n url = `${url}segment=${parameters.segment}&`;\n delete parameters.segment;\n }\n if (parameters.date) {\n url = `${url}date=${decodeURIComponent(parameters.date.toString())}&`;\n delete parameters.date;\n }\n url += $.param(parameters);\n const ajaxCall = {\n type: 'POST',\n async: true,\n url,\n dataType: this.format || 'json',\n complete: this.completeCallback,\n error: function errorCallback() {\n globalAjaxQueue.active -= 1;\n\n if (self.errorCallback) {\n self.errorCallback.apply(this, arguments); // eslint-disable-line\n }\n },\n success: (response, status, request) => {\n if (this.loadingElement) {\n $(this.loadingElement).hide();\n }\n\n if (response && response.result === 'error' && !this.useRegularCallbackInCaseOfError) {\n let placeAt = null;\n let type = 'toast';\n if ($(this.errorElement).length && response.message) {\n $(this.errorElement).show();\n placeAt = this.errorElement;\n type = null;\n }\n\n if (response.message) {\n const UI = window['require']('piwik/UI'); // eslint-disable-line\n const notification = new UI.Notification();\n notification.show(response.message, {\n placeat: placeAt,\n context: 'error',\n type,\n id: 'ajaxHelper',\n });\n notification.scrollToNotification();\n }\n } else if (this.callback) {\n this.callback(response, status, request);\n }\n\n globalAjaxQueue.active -= 1;\n if (Matomo.ajaxRequestFinished) {\n Matomo.ajaxRequestFinished();\n }\n },\n data: this.mixinDefaultPostParams(this.postParams),\n timeout: this.timeout !== null ? this.timeout : undefined,\n };\n\n return $.ajax(ajaxCall);\n }\n\n private isRequestToApiMethod() {\n return (this.getParams && this.getParams.module === 'API' && this.getParams.method)\n || (this.postParams && this.postParams.module === 'API' && this.postParams.method);\n }\n\n isWidgetizedRequest(): boolean {\n return (broadcast.getValueFromUrl('module') === 'Widgetize');\n }\n\n private getDefaultPostParams() {\n if (this.withToken || this.isRequestToApiMethod() || Matomo.shouldPropagateTokenAuth) {\n return {\n token_auth: Matomo.token_auth,\n // When viewing a widgetized report there won't be any session that can be used, so don't\n // force session usage\n force_api_session: broadcast.isWidgetizeRequestWithoutSession() ? 0 : 1,\n };\n }\n\n return {};\n }\n\n /**\n * Mixin the default parameters to send as POST\n *\n * @param params parameter object\n */\n private mixinDefaultPostParams(params): Parameters {\n const defaultParams = this.getDefaultPostParams();\n\n const mergedParams = {\n ...defaultParams,\n ...params,\n };\n\n return mergedParams;\n }\n\n /**\n * Mixin the default parameters to send as GET\n *\n * @param params parameter object\n */\n private mixinDefaultGetParams(originalParams): Parameters {\n const segment = MatomoUrl.getSearchParam('segment');\n\n const defaultParams = {\n idSite: Matomo.idSite || broadcast.getValueFromUrl('idSite'),\n period: Matomo.period || broadcast.getValueFromUrl('period'),\n segment,\n };\n\n const params = originalParams;\n\n // never append token_auth to url\n if (params.token_auth) {\n params.token_auth = null;\n delete params.token_auth;\n }\n\n Object.keys(defaultParams).forEach((key) => {\n if (this.useGETDefaultParameter(key)\n && !params[key]\n && !this.postParams[key]\n && defaultParams[key]\n ) {\n params[key] = defaultParams[key];\n }\n });\n\n // handle default date & period if not already set\n if (this.useGETDefaultParameter('date') && !params.date && !this.postParams.date) {\n params.date = Matomo.currentDateString;\n }\n\n return params;\n }\n}\n","import AjaxHelper from './AjaxHelper';\n\ndeclare global {\n interface Window {\n ajaxHelper: AjaxHelper;\n }\n}\n\nwindow.ajaxHelper = AjaxHelper;\n\nfunction ajaxQueue() {\n return globalAjaxQueue;\n}\n\nangular.module('piwikApp.service').service('globalAjaxQueue', ajaxQueue);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst PiwikUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default PiwikUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport PiwikUrl from './PiwikUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: PiwikUrl.getSearchParam.bind(PiwikUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport PiwikUrl from '../PiwikUrl/PiwikUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = PiwikUrl.getSearchParam('date');\n const period = PiwikUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Piwik = piwik;\nexport default Piwik;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Piwik from './Piwik';\n\nfunction piwikService() {\n return Piwik;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n<template>\n <div v-show=\"modelValue\" ref=\"root\">\n <slot></slot>\n </div>\n</template>\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n modelValue: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close', 'update:modelValue'],\n setup() {\n const root = ref(null);\n\n return {\n root,\n };\n },\n activated() {\n this.$emit('update:modelValue', false);\n },\n watch: {\n modelValue(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$refs.root.firstElementChild;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => {\n // materialize removes the child element, so we move it back to the slot\n if (!this.element) {\n this.$refs.root.appendChild(slotElement);\n }\n this.$emit('update:modelValue', false);\n this.$emit('closeEnd');\n },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n</script>\n","\nimport { defineComponent, ref } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n modelValue: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close', 'update:modelValue'],\n setup() {\n const root = ref(null);\n\n return {\n root,\n };\n },\n activated() {\n this.$emit('update:modelValue', false);\n },\n watch: {\n modelValue(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$refs.root.firstElementChild;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => {\n // materialize removes the child element, so we move it back to the slot\n if (!this.element) {\n this.$refs.root.appendChild(slotElement);\n }\n this.$emit('update:modelValue', false);\n this.$emit('closeEnd');\n },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./MatomoDialog.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./MatomoDialog.vue?vue&type=script&lang=ts\"","import { render } from \"./MatomoDialog.vue?vue&type=template&id=50fda6d8\"\nimport script from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport {\n createApp,\n defineComponent,\n ref,\n ComponentPublicInstance,\n} from 'vue';\nimport translate from './translate';\n\ninterface SingleScopeVarInfo {\n vue?: string;\n default?: any; // eslint-disable-line\n angularJsBind?: string;\n}\n\ntype ScopeMapping = { [scopeVarName: string]: SingleScopeVarInfo };\n\ntype AdapterFunction<InjectTypes, R = void> = (\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype EventAdapterFunction<InjectTypes, R = void> = (\n $event: any, // eslint-disable-line\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype PostCreateFunction<InjectTypes, R = void> = (\n vm: ComponentPublicInstance,\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype EventMapping<InjectTypes> = { [vueEventName: string]: EventAdapterFunction<InjectTypes> };\n\ntype ComponentType = ReturnType<typeof defineComponent>;\n\nlet transcludeCounter = 0;\n\nexport default function createAngularJsAdapter<InjectTypes = []>(options: {\n component: ComponentType,\n scope?: ScopeMapping,\n directiveName: string,\n events?: EventMapping<InjectTypes>,\n $inject?: string[],\n transclude?: boolean,\n mountPointFactory?: AdapterFunction<InjectTypes, HTMLElement>,\n postCreate?: PostCreateFunction<InjectTypes>,\n noScope?: boolean,\n}): ng.IDirectiveFactory {\n const {\n component,\n scope = {},\n events = {},\n $inject,\n directiveName,\n transclude,\n mountPointFactory,\n postCreate,\n noScope,\n } = options;\n\n const currentTranscludeCounter = transcludeCounter;\n if (transclude) {\n transcludeCounter += 1;\n }\n\n const angularJsScope = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (!info.vue) {\n info.vue = scopeVarName;\n }\n if (info.angularJsBind) {\n angularJsScope[scopeVarName] = info.angularJsBind;\n }\n });\n\n function angularJsAdapter(...injectedServices: InjectTypes) {\n const adapter: ng.IDirective = {\n restrict: 'A',\n scope: noScope ? undefined : angularJsScope,\n compile: function angularJsAdapterCompile() {\n return {\n post: function angularJsAdapterLink(\n ngScope: ng.IScope,\n ngElement: ng.IAugmentedJQuery,\n ngAttrs: ng.IAttributes,\n ) {\n const clone = transclude ? ngElement.find(`[ng-transclude][counter=${currentTranscludeCounter}]`) : null;\n\n let rootVueTemplate = '<root-component';\n Object.entries(scope).forEach(([, info]) => {\n rootVueTemplate += ` :${info.vue}=\"${info.vue}\"`;\n });\n Object.entries(events).forEach((info) => {\n const [eventName] = info;\n rootVueTemplate += ` @${eventName}=\"onEventHandler('${eventName}', $event)\"`;\n });\n rootVueTemplate += '>';\n if (transclude) {\n rootVueTemplate += '<div ref=\"transcludeTarget\"/>';\n }\n rootVueTemplate += '</root-component>';\n const app = createApp({\n template: rootVueTemplate,\n data() {\n const initialData = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n let value = ngScope[scopeVarName];\n if (typeof value === 'undefined' && typeof info.default !== 'undefined') {\n value = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n }\n initialData[info.vue] = value;\n });\n return initialData;\n },\n setup() {\n if (transclude) {\n const transcludeTarget = ref(null);\n return {\n transcludeTarget,\n };\n }\n\n return undefined;\n },\n methods: {\n onEventHandler(name: string, $event: any) { // eslint-disable-line\n if (events[name]) {\n events[name]($event, ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n },\n });\n app.config.globalProperties.$sanitize = window.vueSanitize;\n app.config.globalProperties.translate = translate;\n app.component('root-component', component);\n\n const mountPoint = mountPointFactory\n ? mountPointFactory(ngScope, ngElement, ngAttrs, ...injectedServices)\n : ngElement[0];\n const vm = app.mount(mountPoint);\n\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (!info.angularJsBind) {\n return;\n }\n\n ngScope.$watch(scopeVarName, (newValue: any) => { // eslint-disable-line\n if (typeof info.default !== 'undefined' && typeof newValue === 'undefined') {\n vm[scopeVarName] = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n } else {\n vm[scopeVarName] = newValue;\n }\n });\n });\n\n if (transclude) {\n $(vm.transcludeTarget).append(clone);\n }\n\n if (postCreate) {\n postCreate(vm, ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n };\n },\n };\n\n if (transclude) {\n adapter.transclude = true;\n adapter.template = `<div ng-transclude counter=\"${currentTranscludeCounter}\"/>`;\n }\n\n return adapter;\n }\n\n angularJsAdapter.$inject = $inject || [];\n\n angular.module('piwikApp').directive(directiveName, angularJsAdapter);\n\n return angularJsAdapter;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport { IParseService } from 'angular';\nimport { ComponentPublicInstance } from 'vue';\nimport MatomoDialog from './MatomoDialog.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter<[IParseService]>({\n component: MatomoDialog,\n scope: {\n show: {\n vue: 'modelValue',\n default: false,\n },\n element: {\n default: (scope, element) => element[0],\n },\n },\n events: {\n yes: ($event, scope, element, attrs) => {\n if (attrs.yes) {\n scope.$eval(attrs.yes);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n no: ($event, scope, element, attrs) => {\n if (attrs.no) {\n scope.$eval(attrs.no);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n close: ($event, scope, element, attrs) => {\n if (attrs.close) {\n scope.$eval(attrs.close);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n 'update:modelValue': (newValue, scope, element, attrs, $parse: IParseService) => {\n setTimeout(() => {\n scope.$apply($parse(attrs.piwikDialog).assign(scope, newValue));\n }, 0);\n },\n },\n $inject: ['$parse'],\n directiveName: 'piwikDialog',\n transclude: true,\n mountPointFactory: (scope, element) => {\n const vueRootPlaceholder = $('<div class=\"vue-placeholder\"/>');\n vueRootPlaceholder.appendTo(element);\n return vueRootPlaceholder[0];\n },\n postCreate: (vm: ComponentPublicInstance, scope, element, attrs) => {\n scope.$watch(attrs.piwikDialog, (newValue: boolean, oldValue: boolean) => {\n if (oldValue !== newValue) {\n vm.modelValue = newValue || false;\n }\n });\n },\n noScope: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n class=\"enrichedHeadline\"\n v-on:mouseenter=\"showIcons = true\"\n v-on:mouseleave=\"showIcons = false\"\n ref=\"root\"\n >\n <div\n v-if=\"!editUrl\"\n class=\"title\"\n tabindex=\"6\"\n >\n <slot />\n </div>\n <a\n v-if=\"editUrl\"\n class=\"title\"\n :href=\"editUrl\"\n :title=\"translate('CoreHome_ClickToEditX', $sanitize(actualFeatureName))\"\n >\n <slot />\n </a>\n <span\n v-show=\"showIcons || showInlineHelp\"\n class=\"iconsBar\"\n >\n <a\n v-if=\"helpUrl && !actualInlineHelp\"\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"helpIcon\"\n :href=\"helpUrl\"\n :title=\"translate('CoreHome_ExternalHelp')\"\n ><span class=\"icon-help\" /></a>\n <a\n v-if=\"actualInlineHelp\"\n v-on:click=\"showInlineHelp = !showInlineHelp\"\n class=\"helpIcon\"\n :class=\"{ 'active': showInlineHelp }\"\n :title=\"translate(reportGenerated ? 'General_HelpReport' : 'General_Help')\"\n ><span class=\"icon-info\" /></a>\n <div class=\"ratingIcons\">\n <RateFeature\n :title=\"actualFeatureName\"\n />\n </div>\n </span>\n <div\n class=\"inlineHelp\"\n v-show=\"showInlineHelp\"\n >\n <div v-html=\"$sanitize(actualInlineHelp)\"/>\n <a\n v-if=\"helpUrl\"\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"readMore\"\n :href=\"helpUrl\"\n >{{ translate('General_MoreDetails') }}</a>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport {\n defineComponent,\n defineAsyncComponent,\n ref,\n} from 'vue';\nimport Matomo from '../Matomo/Matomo';\nimport Periods from '../Periods/Periods';\n\n// working around a cycle in dependencies (CoreHome depends on Feedback, Feedback depends on\n// CoreHome)\n// TODO: may need a generic solution at some point, but it's bad practice to have\n// cyclic dependencies like this. it worked before because it was individual files\n// dependening on each other, not whole plugins.\nconst RateFeature = defineAsyncComponent(() => new Promise((resolve) => {\n window.$(document).ready(() => {\n resolve((window as any).Feedback.RateFeature); // eslint-disable-line\n });\n}));\n\n/**\n * Usage:\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard</h2>\n * -> uses \"All Websites Dashboard\" as featurename\n *\n * <h2 piwik-enriched-headline feature-name=\"All Websites Dashboard\">All Websites Dashboard (Total:\n * 309 Visits)</h2>\n * -> custom featurename\n *\n * <h2 piwik-enriched-headline help-url=\"http://piwik.org/guide\">All Websites Dashboard</h2>\n * -> shows help icon and links to external url\n *\n * <h2 piwik-enriched-headline edit-url=\"index.php?module=Foo&action=bar&id=4\">All Websites\n * Dashboard</h2>\n * -> makes the headline clickable linking to the specified url\n *\n * <h2 piwik-enriched-headline inline-help=\"inlineHelp\">Pages report</h2>\n * -> inlineHelp specified via a attribute shows help icon on headline hover\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard\n * <div class=\"inlineHelp\">My <strong>inline help</strong></div>\n * </h2>\n * -> alternative definition for inline help\n * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url\n *\n * * <h2 piwik-enriched-headline report-generated=\"generated time\">Pages report</h2>\n * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which\n * activated by hover\n * -> the tooltip shows the value of the attribute\n */\nexport default defineComponent({\n props: {\n helpUrl: {\n type: String,\n default: '',\n },\n editUrl: {\n type: String,\n default: '',\n },\n reportGenerated: String,\n featureName: String,\n inlineHelp: String,\n },\n components: {\n RateFeature,\n },\n data() {\n return {\n showIcons: false,\n showInlineHelp: false,\n actualFeatureName: this.featureName,\n actualInlineHelp: this.inlineHelp,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n\n return {\n root,\n };\n },\n watch: {\n inlineHelp(newValue: string) {\n this.actualInlineHelp = newValue;\n },\n featureName(newValue: string) {\n this.actualFeatureName = newValue;\n },\n },\n mounted() {\n const { root } = this.$refs;\n\n if (!this.actualInlineHelp) {\n let helpNode = root.querySelector('.title .inlineHelp');\n if (!helpNode && root.parentElement.nextElementSibling) {\n // hack for reports :(\n helpNode = (root.parentElement.nextElementSibling as HTMLElement)\n .querySelector('.reportDocumentation');\n }\n\n if (helpNode) {\n // hackish solution to get binded html of p tag within the help node\n // at this point the ng-bind-html is not yet converted into html when report is not\n // initially loaded. Using $compile doesn't work. So get and set it manually\n const helpDocs = helpNode.getAttribute('data-content').trim();\n if (helpDocs.length) {\n this.actualInlineHelp = `<p>${helpDocs}</p>`;\n setTimeout(() => helpNode.remove(), 0);\n }\n }\n }\n\n if (!this.actualFeatureName) {\n this.actualFeatureName = root.querySelector('.title').textContent;\n }\n\n if (this.reportGenerated\n && Periods.parse(Matomo.period, Matomo.currentDateString).containsToday()\n ) {\n window.$(root.querySelector('.report-generated')).tooltip({\n track: true,\n content: this.reportGenerated,\n items: 'div',\n show: false,\n hide: false,\n });\n }\n },\n});\n</script>\n","\nimport {\n defineComponent,\n defineAsyncComponent,\n ref,\n} from 'vue';\nimport Matomo from '../Matomo/Matomo';\nimport Periods from '../Periods/Periods';\n\n// working around a cycle in dependencies (CoreHome depends on Feedback, Feedback depends on\n// CoreHome)\n// TODO: may need a generic solution at some point, but it's bad practice to have\n// cyclic dependencies like this. it worked before because it was individual files\n// dependening on each other, not whole plugins.\nconst RateFeature = defineAsyncComponent(() => new Promise((resolve) => {\n window.$(document).ready(() => {\n resolve((window as any).Feedback.RateFeature); // eslint-disable-line\n });\n}));\n\n/**\n * Usage:\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard</h2>\n * -> uses \"All Websites Dashboard\" as featurename\n *\n * <h2 piwik-enriched-headline feature-name=\"All Websites Dashboard\">All Websites Dashboard (Total:\n * 309 Visits)</h2>\n * -> custom featurename\n *\n * <h2 piwik-enriched-headline help-url=\"http://piwik.org/guide\">All Websites Dashboard</h2>\n * -> shows help icon and links to external url\n *\n * <h2 piwik-enriched-headline edit-url=\"index.php?module=Foo&action=bar&id=4\">All Websites\n * Dashboard</h2>\n * -> makes the headline clickable linking to the specified url\n *\n * <h2 piwik-enriched-headline inline-help=\"inlineHelp\">Pages report</h2>\n * -> inlineHelp specified via a attribute shows help icon on headline hover\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard\n * <div class=\"inlineHelp\">My <strong>inline help</strong></div>\n * </h2>\n * -> alternative definition for inline help\n * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url\n *\n * * <h2 piwik-enriched-headline report-generated=\"generated time\">Pages report</h2>\n * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which\n * activated by hover\n * -> the tooltip shows the value of the attribute\n */\nexport default defineComponent({\n props: {\n helpUrl: {\n type: String,\n default: '',\n },\n editUrl: {\n type: String,\n default: '',\n },\n reportGenerated: String,\n featureName: String,\n inlineHelp: String,\n },\n components: {\n RateFeature,\n },\n data() {\n return {\n showIcons: false,\n showInlineHelp: false,\n actualFeatureName: this.featureName,\n actualInlineHelp: this.inlineHelp,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n\n return {\n root,\n };\n },\n watch: {\n inlineHelp(newValue: string) {\n this.actualInlineHelp = newValue;\n },\n featureName(newValue: string) {\n this.actualFeatureName = newValue;\n },\n },\n mounted() {\n const { root } = this.$refs;\n\n if (!this.actualInlineHelp) {\n let helpNode = root.querySelector('.title .inlineHelp');\n if (!helpNode && root.parentElement.nextElementSibling) {\n // hack for reports :(\n helpNode = (root.parentElement.nextElementSibling as HTMLElement)\n .querySelector('.reportDocumentation');\n }\n\n if (helpNode) {\n // hackish solution to get binded html of p tag within the help node\n // at this point the ng-bind-html is not yet converted into html when report is not\n // initially loaded. Using $compile doesn't work. So get and set it manually\n const helpDocs = helpNode.getAttribute('data-content').trim();\n if (helpDocs.length) {\n this.actualInlineHelp = `<p>${helpDocs}</p>`;\n setTimeout(() => helpNode.remove(), 0);\n }\n }\n }\n\n if (!this.actualFeatureName) {\n this.actualFeatureName = root.querySelector('.title').textContent;\n }\n\n if (this.reportGenerated\n && Periods.parse(Matomo.period, Matomo.currentDateString).containsToday()\n ) {\n window.$(root.querySelector('.report-generated')).tooltip({\n track: true,\n content: this.reportGenerated,\n items: 'div',\n show: false,\n hide: false,\n });\n }\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./EnrichedHeadline.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./EnrichedHeadline.vue?vue&type=script&lang=ts\"","import { render } from \"./EnrichedHeadline.vue?vue&type=template&id=678de864\"\nimport script from \"./EnrichedHeadline.vue?vue&type=script&lang=ts\"\nexport * from \"./EnrichedHeadline.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport createAngularJsAdapter from '../createAngularJsAdapter';\nimport EnrichedHeadline from './EnrichedHeadline.vue';\n\nexport default createAngularJsAdapter({\n component: EnrichedHeadline,\n scope: {\n helpUrl: {\n angularJsBind: '@',\n },\n editUrl: {\n angularJsBind: '@',\n },\n reportGenerated: {\n angularJsBind: '@?',\n },\n featureName: {\n angularJsBind: '@',\n },\n inlineHelp: {\n angularJsBind: '@?',\n },\n },\n directiveName: 'piwikEnrichedHeadline',\n transclude: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div class=\"card\" ref=\"root\">\n <div class=\"card-content\">\n <h2\n v-if=\"contentTitle && !actualFeature && !helpUrl && !actualHelpText\"\n class=\"card-title\"\n >{{ contentTitle }}</h2>\n <h2\n v-if=\"contentTitle && (actualFeature || helpUrl || actualHelpText)\"\n class=\"card-title\"\n >\n <EnrichedHeadline\n :feature-name=\"actualFeature\"\n :help-url=\"helpUrl\"\n :inline-help=\"actualHelpText\"\n >\n {{ contentTitle }}\n </EnrichedHeadline>\n </h2>\n <div ref=\"content\">\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue';\nimport EnrichedHeadline from '../EnrichedHeadline/EnrichedHeadline.vue';\n\nlet adminContent: HTMLElement|null = null;\n\nexport default defineComponent({\n props: {\n contentTitle: String,\n feature: String,\n helpUrl: String,\n helpText: String,\n anchor: String,\n },\n components: {\n EnrichedHeadline,\n },\n data() {\n return {\n actualFeature: this.feature,\n actualHelpText: this.helpText,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n const content = ref<HTMLElement>(null);\n\n return {\n root,\n content,\n };\n },\n watch: {\n feature(newValue: string) {\n this.actualFeature = newValue;\n },\n helpText(newValue: string) {\n this.actualHelpText = newValue;\n },\n },\n mounted() {\n const { root, content } = this.$refs;\n\n if (this.anchor) {\n const anchorElement = document.createElement('a');\n anchorElement.id = this.anchor;\n root.parentElement.prepend(anchorElement);\n }\n\n setTimeout(() => {\n const inlineHelp = content.querySelector('.contentHelp');\n if (inlineHelp) {\n this.actualHelpText = inlineHelp.innerHTML;\n inlineHelp.remove();\n }\n }, 0);\n\n if (this.actualFeature && (this.actualFeature === true || this.actualFeature === 'true')) {\n this.actualFeature = this.contentTitle;\n }\n\n if (adminContent === null) {\n // cache admin node for further content blocks\n adminContent = document.querySelector('#content.admin');\n }\n\n let contentTopPosition: number;\n if (adminContent) {\n contentTopPosition = adminContent.offsetTop;\n }\n\n if (contentTopPosition || contentTopPosition === 0) {\n const parents = root.closest('[piwik-widget-loader]');\n\n // when shown within the widget loader, we need to get the offset of that element\n // as the widget loader might be still shown. Would otherwise not position correctly\n // the widgets on the admin home page\n const topThis = parents ? parents.offsetTop : root.offsetTop;\n\n if (topThis - contentTopPosition < 17) {\n // we make sure to display the first card with no margin-top to have it on same as line as\n // navigation\n root.style.marginTop = 0;\n }\n }\n },\n});\n</script>\n","\nimport { defineComponent, ref } from 'vue';\nimport EnrichedHeadline from '../EnrichedHeadline/EnrichedHeadline.vue';\n\nlet adminContent: HTMLElement|null = null;\n\nexport default defineComponent({\n props: {\n contentTitle: String,\n feature: String,\n helpUrl: String,\n helpText: String,\n anchor: String,\n },\n components: {\n EnrichedHeadline,\n },\n data() {\n return {\n actualFeature: this.feature,\n actualHelpText: this.helpText,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n const content = ref<HTMLElement>(null);\n\n return {\n root,\n content,\n };\n },\n watch: {\n feature(newValue: string) {\n this.actualFeature = newValue;\n },\n helpText(newValue: string) {\n this.actualHelpText = newValue;\n },\n },\n mounted() {\n const { root, content } = this.$refs;\n\n if (this.anchor) {\n const anchorElement = document.createElement('a');\n anchorElement.id = this.anchor;\n root.parentElement.prepend(anchorElement);\n }\n\n setTimeout(() => {\n const inlineHelp = content.querySelector('.contentHelp');\n if (inlineHelp) {\n this.actualHelpText = inlineHelp.innerHTML;\n inlineHelp.remove();\n }\n }, 0);\n\n if (this.actualFeature && (this.actualFeature === true || this.actualFeature === 'true')) {\n this.actualFeature = this.contentTitle;\n }\n\n if (adminContent === null) {\n // cache admin node for further content blocks\n adminContent = document.querySelector('#content.admin');\n }\n\n let contentTopPosition: number;\n if (adminContent) {\n contentTopPosition = adminContent.offsetTop;\n }\n\n if (contentTopPosition || contentTopPosition === 0) {\n const parents = root.closest('[piwik-widget-loader]');\n\n // when shown within the widget loader, we need to get the offset of that element\n // as the widget loader might be still shown. Would otherwise not position correctly\n // the widgets on the admin home page\n const topThis = parents ? parents.offsetTop : root.offsetTop;\n\n if (topThis - contentTopPosition < 17) {\n // we make sure to display the first card with no margin-top to have it on same as line as\n // navigation\n root.style.marginTop = 0;\n }\n }\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ContentBlock.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ContentBlock.vue?vue&type=script&lang=ts\"","import { render } from \"./ContentBlock.vue?vue&type=template&id=5f6844c4\"\nimport script from \"./ContentBlock.vue?vue&type=script&lang=ts\"\nexport * from \"./ContentBlock.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport createAngularJsAdapter from '../createAngularJsAdapter';\nimport ContentBlock from './ContentBlock.vue';\n\nexport default createAngularJsAdapter({\n component: ContentBlock,\n scope: {\n contentTitle: {\n angularJsBind: '@',\n },\n feature: {\n angularJsBind: '@',\n },\n helpUrl: {\n angularJsBind: '@',\n },\n helpText: {\n angularJsBind: '@',\n },\n anchor: {\n angularJsBind: '@?',\n },\n },\n directiveName: 'piwikContentBlock',\n transclude: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div v-show=\"loading\" class=\"loadingPiwik\">\n <img src=\"plugins/Morpheus/images/loading-blue.gif\" alt=\"\"/>\n <span>{{ loadingMessage }}</span>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ActivityIndicator.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ActivityIndicator.vue?vue&type=script&lang=ts\"","import { render } from \"./ActivityIndicator.vue?vue&type=template&id=6af4d064\"\nimport script from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nexport * from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport ActivityIndicator from './ActivityIndicator.vue';\nimport translate from '../translate';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: ActivityIndicator,\n scope: {\n loading: {\n vue: 'loading',\n angularJsBind: '<',\n },\n loadingMessage: {\n vue: 'loadingMessage',\n angularJsBind: '<',\n default: () => translate('General_LoadingData'),\n },\n },\n $inject: [],\n directiveName: 'piwikActivityIndicator',\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n class=\"alert\"\n :class=\"{ [`alert-${severity}`]: true }\"\n >\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Alert.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Alert.vue?vue&type=script&lang=ts\"","import { render } from \"./Alert.vue?vue&type=template&id=c3863ae2\"\nimport script from \"./Alert.vue?vue&type=script&lang=ts\"\nexport * from \"./Alert.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Alert from './Alert.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: Alert,\n scope: {\n severity: {\n vue: 'severity',\n angularJsBind: '@piwikAlert',\n },\n },\n directiveName: 'piwikAlert',\n transclude: true,\n});\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport './Periods.adapter';\n\nexport { default as Periods } from './Periods';\nexport { default as Day } from './Day';\nexport { default as Week } from './Week';\nexport { default as Month } from './Month';\nexport { default as Year } from './Year';\nexport { default as Range } from './Range';\nexport * from './utilities';\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport './MatomoUrl/MatomoUrl.adapter';\nimport './Matomo/Matomo.adapter';\nimport './noAdblockFlag';\nimport './Periods/Day';\nimport './Periods/Week';\nimport './Periods/Month';\nimport './Periods/Year';\nimport './Periods/Range';\nimport './Periods/Periods.adapter';\nimport './AjaxHelper/AjaxHelper.adapter';\nimport './PiwikUrl/PiwikUrl.adapter';\nimport './Piwik/Piwik.adapter';\nimport './MatomoDialog/MatomoDialog.adapter';\nimport './EnrichedHeadline/EnrichedHeadline.adapter';\nimport './ContentBlock/ContentBlock.adapter';\n\nexport { default as createAngularJsAdapter } from './createAngularJsAdapter';\nexport { default as activityIndicatorAdapter } from './ActivityIndicator/ActivityIndicator.adapter';\nexport { default as ActivityIndicator } from './ActivityIndicator/ActivityIndicator.vue';\nexport { default as translate } from './translate';\nexport { default as alertAdapter } from './Alert/Alert.adapter';\nexport { default as AjaxHelper } from './AjaxHelper/AjaxHelper';\nexport { default as MatomoUrl } from './MatomoUrl/MatomoUrl';\nexport { default as Matomo } from './Matomo/Matomo';\nexport * from './Periods';\nexport { default as MatomoDialog } from './MatomoDialog/MatomoDialog.vue';\nexport { default as EnrichedHeadline } from './EnrichedHeadline/EnrichedHeadline.vue';\nexport { default as ContentBlock } from './ContentBlock/ContentBlock.vue';\n","import './setPublicPath'\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/CoreHome/vue/dist/CoreHome.umd.min.js b/plugins/CoreHome/vue/dist/CoreHome.umd.min.js index 188d989b97..dd32960c54 100644 --- a/plugins/CoreHome/vue/dist/CoreHome.umd.min.js +++ b/plugins/CoreHome/vue/dist/CoreHome.umd.min.js @@ -1,140 +1,152 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["CoreHome"]=t(require("vue")):e["CoreHome"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="plugins/CoreHome/vue/dist/",r(r.s="fae3")}({2342:function(e,t,r){"use strict"; +(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["CoreHome"]=t(require("vue")):e["CoreHome"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="plugins/CoreHome/vue/dist/",n(n.s="fae3")}({2342:function(e,t,n){"use strict"; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */window.hasBlockedContent=!1},"8bbf":function(t,r){t.exports=e},fae3:function(e,t,r){"use strict";if(r.r(t),r.d(t,"createAngularJsAdapter",(function(){return ne})),r.d(t,"activityIndicatorAdapter",(function(){return ue})),r.d(t,"ActivityIndicator",(function(){return le})),r.d(t,"translate",(function(){return j})),r.d(t,"alertAdapter",(function(){return ge})),r.d(t,"AjaxHelper",(function(){return H})),r.d(t,"MatomoUrl",(function(){return o})),r.d(t,"Matomo",(function(){return D})),r.d(t,"Periods",(function(){return d})),r.d(t,"Day",(function(){return T})),r.d(t,"Week",(function(){return I})),r.d(t,"Month",(function(){return E})),r.d(t,"Year",(function(){return R})),r.d(t,"Range",(function(){return M})),r.d(t,"format",(function(){return c})),r.d(t,"getToday",(function(){return p})),r.d(t,"parseDate",(function(){return g})),r.d(t,"todayIsInRange",(function(){return h})),r.d(t,"MatomoDialog",(function(){return re})),"undefined"!==typeof window){var n=window.document.currentScript,a=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(r.p=a[1])} + */window.hasBlockedContent=!1},"8bbf":function(t,n){t.exports=e},fae3:function(e,t,n){"use strict";if(n.r(t),n.d(t,"createAngularJsAdapter",(function(){return ie})),n.d(t,"activityIndicatorAdapter",(function(){return Ae})),n.d(t,"ActivityIndicator",(function(){return Ne})),n.d(t,"translate",(function(){return k})),n.d(t,"alertAdapter",(function(){return Ve})),n.d(t,"AjaxHelper",(function(){return U})),n.d(t,"MatomoUrl",(function(){return o})),n.d(t,"Matomo",(function(){return P})),n.d(t,"Periods",(function(){return u})),n.d(t,"Day",(function(){return S})),n.d(t,"Week",(function(){return E})),n.d(t,"Month",(function(){return I})),n.d(t,"Year",(function(){return H})),n.d(t,"Range",(function(){return F})),n.d(t,"format",(function(){return d})),n.d(t,"getToday",(function(){return p})),n.d(t,"parseDate",(function(){return h})),n.d(t,"todayIsInRange",(function(){return m})),n.d(t,"MatomoDialog",(function(){return re})),n.d(t,"EnrichedHeadline",(function(){return ve})),n.d(t,"ContentBlock",(function(){return Ie})),"undefined"!==typeof window){var r=window.document.currentScript,a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -const i={getSearchParam(e){const t=window.location.href.split("#"),r=new RegExp(e+"(\\[]|=)");if(t&&t[1]&&r.test(decodeURIComponent(t[1]))){const t=window.broadcast.getValueFromHash(e,window.location.href);if(t||"date"!==e&&"period"!==e&&"idSite"!==e)return t}return window.broadcast.getValueFromUrl(e,window.location.search)}};var o=i; +const i={getSearchParam(e){const t=window.location.href.split("#"),n=new RegExp(e+"(\\[]|=)");if(t&&t[1]&&n.test(decodeURIComponent(t[1]))){const t=window.broadcast.getValueFromHash(e,window.location.href);if(t||"date"!==e&&"period"!==e&&"idSite"!==e)return t}return window.broadcast.getValueFromUrl(e,window.location.search)}};var o=i; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function s(){const e={getSearchParam:o.getSearchParam.bind(o)};return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */function s(){const e={getSearchParam:o.getSearchParam.bind(o)};return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */s.$inject=[],angular.module("piwikApp.service").service("piwikUrl",s);class u{constructor(){l(this,"periods",{}),l(this,"periodOrder",[])}addCustomPeriod(e,t){if(this.periods[e])throw new Error(`The "${e}" period already exists! It cannot be overridden.`);this.periods[e]=t,this.periodOrder.push(e)}getAllLabels(){return Array().concat(this.periodOrder)}get(e){const t=this.periods[e];if(!t)throw new Error("Invalid period label: "+e);return t}parse(e,t){return this.get(e).parse(t)}isRecognizedPeriod(e){return!!this.periods[e]}}var d=new u; + */s.$inject=[],angular.module("piwikApp.service").service("piwikUrl",s);class c{constructor(){l(this,"periods",{}),l(this,"periodOrder",[])}addCustomPeriod(e,t){if(this.periods[e])throw new Error(`The "${e}" period already exists! It cannot be overridden.`);this.periods[e]=t,this.periodOrder.push(e)}getAllLabels(){return Array().concat(this.periodOrder)}get(e){const t=this.periods[e];if(!t)throw new Error("Invalid period label: "+e);return t}parse(e,t){return this.get(e).parse(t)}isRecognizedPeriod(e){return!!this.periods[e]}}var u=new c; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function c(e){return $.datepicker.formatDate("yy-mm-dd",e)}function p(){const e=new Date(Date.now());return e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3),e.setHours(e.getHours()+(window.piwik.timezoneOffset||0)/3600),e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e}function g(e){if(e instanceof Date)return e;const t=decodeURIComponent(e);if("today"===t||"now"===t)return p();if("yesterday"===t||"yesterdaySameTime"===t){const e=p();return e.setDate(e.getDate()-1),e}if(t.match(/last[ -]?week/i)){const e=p();return e.setDate(e.getDate()-7),e}if(t.match(/last[ -]?month/i)){const e=p();return e.setDate(1),e.setMonth(e.getMonth()-1),e}if(t.match(/last[ -]?year/i)){const e=p();return e.setFullYear(e.getFullYear()-1),e}try{return $.datepicker.parseDate("yy-mm-dd",t)}catch(r){throw console.error(r.message||r),r}}function h(e){return 2===e.length&&(p()>=e[0]&&p()<=e[1])} + */function d(e){return $.datepicker.formatDate("yy-mm-dd",e)}function p(){const e=new Date(Date.now());return e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3),e.setHours(e.getHours()+(window.piwik.timezoneOffset||0)/3600),e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e}function h(e){if(e instanceof Date)return e;const t=decodeURIComponent(e);if("today"===t||"now"===t)return p();if("yesterday"===t||"yesterdaySameTime"===t){const e=p();return e.setDate(e.getDate()-1),e}if(t.match(/last[ -]?week/i)){const e=p();return e.setDate(e.getDate()-7),e}if(t.match(/last[ -]?month/i)){const e=p();return e.setDate(1),e.setMonth(e.getMonth()-1),e}if(t.match(/last[ -]?year/i)){const e=p();return e.setFullYear(e.getFullYear()-1),e}try{return $.datepicker.parseDate("yy-mm-dd",t)}catch(n){throw console.error(n.message||n),n}}function m(e){return 2===e.length&&(p()>=e[0]&&p()<=e[1])} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */let m;const{piwik:f,broadcast:w,piwikHelper:b}=window;function P(e,t){try{return d.parse(e,t),!0}catch(r){return!1}}f.helper=b,f.broadcast=w,f.updatePeriodParamsFromUrl=function(){let e=o.getSearchParam("date");const t=o.getSearchParam("period");if(!P(t,e))return;if(f.period===t&&f.currentDateString===e)return;f.period=t;const r=d.parse(t,e).getDateRange();f.startDateString=c(r[0]),f.endDateString=c(r[1]),f.updateDateInTitle(e,t),"range"===f.period&&(e=`${f.startDateString},${f.endDateString}`),f.currentDateString=e},f.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(m=m||document.title,0===m.indexOf(f.siteName))){const r=` - ${d.parse(t,e).getPrettyString()} `;document.title=`${f.siteName}${r}${m.substr(f.siteName.length)}`}},f.hasUserCapability=function(e){return window.angular.isArray(f.userCapabilities)&&-1!==f.userCapabilities.indexOf(e)};const y=f;var D=y; + */let g;const{piwik:f,broadcast:b,piwikHelper:w}=window;function y(e,t){try{return u.parse(e,t),!0}catch(n){return!1}}f.helper=w,f.broadcast=b,f.updatePeriodParamsFromUrl=function(){let e=o.getSearchParam("date");const t=o.getSearchParam("period");if(!y(t,e))return;if(f.period===t&&f.currentDateString===e)return;f.period=t;const n=u.parse(t,e).getDateRange();f.startDateString=d(n[0]),f.endDateString=d(n[1]),f.updateDateInTitle(e,t),"range"===f.period&&(e=`${f.startDateString},${f.endDateString}`),f.currentDateString=e},f.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(g=g||document.title,0===g.indexOf(f.siteName))){const n=` - ${u.parse(t,e).getPrettyString()} `;document.title=`${f.siteName}${n}${g.substr(f.siteName.length)}`}},f.hasUserCapability=function(e){return window.angular.isArray(f.userCapabilities)&&-1!==f.userCapabilities.indexOf(e)};const D=f;var P=D; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function v(){return D}function k(e,t){t.$on("$locationChangeSuccess",e.updatePeriodParamsFromUrl)}angular.module("piwikApp.service").service("piwik",v),k.$inject=["piwik","$rootScope"],angular.module("piwikApp.service").run(k);r("2342"); + */function v(){return P}function j(e,t){t.$on("$locationChangeSuccess",e.updatePeriodParamsFromUrl)}angular.module("piwikApp.service").service("piwik",v),j.$inject=["piwik","$rootScope"],angular.module("piwikApp.service").run(j);n("2342"); /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function j(e,t=[]){return window._pk_translate(e,t)}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */function k(e,...t){let n=t;return 1===t.length&&t[0]&&t[0]instanceof Array&&([n]=t),window._pk_translate(e,n)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */class T{constructor(e){S(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new T(g(e))}static getDisplayText(){return j("Intl_PeriodDay")}getPrettyString(){return c(this.dateInPeriod)}getDateRange(){return[new Date(this.dateInPeriod.getTime()),new Date(this.dateInPeriod.getTime())]}containsToday(){return h(this.getDateRange())}}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */class S{constructor(e){O(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new S(h(e))}static getDisplayText(){return k("Intl_PeriodDay")}getPrettyString(){return d(this.dateInPeriod)}getDateRange(){return[new Date(this.dateInPeriod.getTime()),new Date(this.dateInPeriod.getTime())]}containsToday(){return m(this.getDateRange())}}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */d.addCustomPeriod("day",T);class I{constructor(e){C(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new I(g(e))}static getDisplayText(){return j("Intl_PeriodWeek")}getPrettyString(){const e=this.getDateRange(),t=c(e[0]),r=c(e[1]);return j("General_DateRangeFromTo",[t,r])}getDateRange(){const e=(this.dateInPeriod.getDay()+6)%7,t=new Date(this.dateInPeriod.getTime());t.setDate(this.dateInPeriod.getDate()-e);const r=new Date(t.getTime());return r.setDate(t.getDate()+6),[t,r]}containsToday(){return h(this.getDateRange())}}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */u.addCustomPeriod("day",S);class E{constructor(e){T(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new E(h(e))}static getDisplayText(){return k("Intl_PeriodWeek")}getPrettyString(){const e=this.getDateRange(),t=d(e[0]),n=d(e[1]);return k("General_DateRangeFromTo",[t,n])}getDateRange(){const e=(this.dateInPeriod.getDay()+6)%7,t=new Date(this.dateInPeriod.getTime());t.setDate(this.dateInPeriod.getDate()-e);const n=new Date(t.getTime());return n.setDate(t.getDate()+6),[t,n]}containsToday(){return m(this.getDateRange())}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */d.addCustomPeriod("week",I);class E{constructor(e){O(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new E(g(e))}static getDisplayText(){return j("Intl_PeriodMonth")}getPrettyString(){const e=j("Intl_Month_Long_StandAlone_"+(this.dateInPeriod.getMonth()+1));return`${e} ${this.dateInPeriod.getFullYear()}`}getDateRange(){const e=new Date(this.dateInPeriod.getTime());e.setDate(1);const t=new Date(this.dateInPeriod.getTime());return t.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}containsToday(){return h(this.getDateRange())}}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */u.addCustomPeriod("week",E);class I{constructor(e){C(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new I(h(e))}static getDisplayText(){return k("Intl_PeriodMonth")}getPrettyString(){const e=k("Intl_Month_Long_StandAlone_"+(this.dateInPeriod.getMonth()+1));return`${e} ${this.dateInPeriod.getFullYear()}`}getDateRange(){const e=new Date(this.dateInPeriod.getTime());e.setDate(1);const t=new Date(this.dateInPeriod.getTime());return t.setDate(1),t.setMonth(t.getMonth()+1),t.setDate(0),[e,t]}containsToday(){return m(this.getDateRange())}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */d.addCustomPeriod("month",E);class R{constructor(e){x(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new R(g(e))}static getDisplayText(){return j("Intl_PeriodYear")}getPrettyString(){return this.dateInPeriod.getFullYear().toString()}getDateRange(){const e=new Date(this.dateInPeriod.getTime());e.setMonth(0),e.setDate(1);const t=new Date(this.dateInPeriod.getTime());return t.setMonth(12),t.setDate(0),[e,t]}containsToday(){return h(this.getDateRange())}}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */u.addCustomPeriod("month",I);class H{constructor(e){x(this,"dateInPeriod",void 0),this.dateInPeriod=e}static parse(e){return new H(h(e))}static getDisplayText(){return k("Intl_PeriodYear")}getPrettyString(){return this.dateInPeriod.getFullYear().toString()}getDateRange(){const e=new Date(this.dateInPeriod.getTime());e.setMonth(0),e.setDate(1);const t=new Date(this.dateInPeriod.getTime());return t.setMonth(12),t.setDate(0),[e,t]}containsToday(){return m(this.getDateRange())}}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */d.addCustomPeriod("year",R);class M{constructor(e,t,r){A(this,"startDate",void 0),A(this,"endDate",void 0),A(this,"childPeriodType",void 0),this.startDate=e,this.endDate=t,this.childPeriodType=r}static getLastNRange(e,t,r){const n=Math.max(parseInt(t.toString(),10)-1,0);if(Number.isNaN(n))throw new Error("Invalid range strAmount");let a=r?g(r):p(),i=new Date(a.getTime());if("day"===e)i.setDate(i.getDate()-n);else if("week"===e)i.setDate(i.getDate()-7*n);else if("month"===e)i.setDate(1),i.setMonth(i.getMonth()-n);else{if("year"!==e)throw new Error(`Unknown period type '${e}'.`);i.setFullYear(i.getFullYear()-n)}if("day"!==e){const t=d.periods[e].parse(i),r=d.periods[e].parse(a);[i]=t.getDateRange(),[,a]=r.getDateRange()}const o=new Date(1991,7,6);if(i.getTime()-o.getTime()<0)switch(e){case"year":i=new Date(1992,0,1);break;case"month":i=new Date(1991,8,1);break;case"week":i=new Date(1991,8,12);break;case"day":default:i=o;break}return new M(i,a,e)}static getLastNRangeChild(e,t,r){const n=t?g(t):p();let a=new Date(n.getTime()),i=new Date(n.getTime());if("day"===e)a.setDate(a.getDate()-r),i.setDate(i.getDate()-r);else if("week"===e)a.setDate(a.getDate()-7*r),i.setDate(i.getDate()-7*r);else if("month"===e)a.setDate(1),a.setMonth(a.getMonth()-r),i.setDate(1),i.setMonth(i.getMonth()-r);else{if("year"!==e)throw new Error(`Unknown period type '${e}'.`);a.setFullYear(a.getFullYear()-r),i.setFullYear(i.getFullYear()-r)}if("day"!==e){const t=d.periods[e].parse(a),r=d.periods[e].parse(i);[a]=t.getDateRange(),[,i]=r.getDateRange()}const o=new Date(1991,7,6);if(a.getTime()-o.getTime()<0)switch(e){case"year":a=new Date(1992,0,1);break;case"month":a=new Date(1991,8,1);break;case"week":a=new Date(1991,8,12);break;case"day":default:a=o;break}return new M(a,i,e)}static parse(e,t="day"){if(/^previous/.test(e)){const r=M.getLastNRange(t,"2").startDate;return M.getLastNRange(t,e.substring(8),r)}if(/^last/.test(e))return M.getLastNRange(t,e.substring(4));const r=decodeURIComponent(e).split(",");return new M(g(r[0]),g(r[1]),t)}static getDisplayText(){return j("General_DateRangeInPeriodList")}getPrettyString(){const e=c(this.startDate),t=c(this.endDate);return j("General_DateRangeFromTo",[e,t])}getDateRange(){return[this.startDate,this.endDate]}containsToday(){return h(this.getDateRange())}}function F(){return{getAllLabels:d.getAllLabels.bind(d),isRecognizedPeriod:d.isRecognizedPeriod.bind(d),get:d.get.bind(d),parse:d.parse.bind(d),parseDate:g,format:c,RangePeriod:M,todayIsInRange:h}}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e} + */u.addCustomPeriod("year",H);class F{constructor(e,t,n){R(this,"startDate",void 0),R(this,"endDate",void 0),R(this,"childPeriodType",void 0),this.startDate=e,this.endDate=t,this.childPeriodType=n}static getLastNRange(e,t,n){const r=Math.max(parseInt(t.toString(),10)-1,0);if(Number.isNaN(r))throw new Error("Invalid range strAmount");let a=n?h(n):p(),i=new Date(a.getTime());if("day"===e)i.setDate(i.getDate()-r);else if("week"===e)i.setDate(i.getDate()-7*r);else if("month"===e)i.setDate(1),i.setMonth(i.getMonth()-r);else{if("year"!==e)throw new Error(`Unknown period type '${e}'.`);i.setFullYear(i.getFullYear()-r)}if("day"!==e){const t=u.periods[e].parse(i),n=u.periods[e].parse(a);[i]=t.getDateRange(),[,a]=n.getDateRange()}const o=new Date(1991,7,6);if(i.getTime()-o.getTime()<0)switch(e){case"year":i=new Date(1992,0,1);break;case"month":i=new Date(1991,8,1);break;case"week":i=new Date(1991,8,12);break;case"day":default:i=o;break}return new F(i,a,e)}static getLastNRangeChild(e,t,n){const r=t?h(t):p();let a=new Date(r.getTime()),i=new Date(r.getTime());if("day"===e)a.setDate(a.getDate()-n),i.setDate(i.getDate()-n);else if("week"===e)a.setDate(a.getDate()-7*n),i.setDate(i.getDate()-7*n);else if("month"===e)a.setDate(1),a.setMonth(a.getMonth()-n),i.setDate(1),i.setMonth(i.getMonth()-n);else{if("year"!==e)throw new Error(`Unknown period type '${e}'.`);a.setFullYear(a.getFullYear()-n),i.setFullYear(i.getFullYear()-n)}if("day"!==e){const t=u.periods[e].parse(a),n=u.periods[e].parse(i);[a]=t.getDateRange(),[,i]=n.getDateRange()}const o=new Date(1991,7,6);if(a.getTime()-o.getTime()<0)switch(e){case"year":a=new Date(1992,0,1);break;case"month":a=new Date(1991,8,1);break;case"week":a=new Date(1991,8,12);break;case"day":default:a=o;break}return new F(a,i,e)}static parse(e,t="day"){if(/^previous/.test(e)){const n=F.getLastNRange(t,"2").startDate;return F.getLastNRange(t,e.substring(8),n)}if(/^last/.test(e))return F.getLastNRange(t,e.substring(4));const n=decodeURIComponent(e).split(",");return new F(h(n[0]),h(n[1]),t)}static getDisplayText(){return k("General_DateRangeInPeriodList")}getPrettyString(){const e=d(this.startDate),t=d(this.endDate);return k("General_DateRangeFromTo",[e,t])}getDateRange(){return[this.startDate,this.endDate]}containsToday(){return m(this.getDateRange())}}function N(){return{getAllLabels:u.getAllLabels.bind(u),isRecognizedPeriod:u.isRecognizedPeriod.bind(u),get:u.get.bind(u),parse:u.parse.bind(u),parseDate:h,format:d,RangePeriod:F,todayIsInRange:m}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function U(e,t){if("abort"===t)return;const r=$("#loadingError");Piwik_Popover.isOpen()&&e&&500===e.status?e&&500===e.status&&$(document.body).html(piwikHelper.escape(e.responseText)):r.show()}d.addCustomPeriod("range",M), + */function B(e,t){if("abort"===t)return;const n=$("#loadingError");Piwik_Popover.isOpen()&&e&&500===e.status?e&&500===e.status&&$(document.body).html(piwikHelper.escape(e.responseText)):n.show()}u.addCustomPeriod("range",F), /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -window.piwik.addCustomPeriod=d.addCustomPeriod.bind(d),angular.module("piwikApp.service").factory("piwikPeriods",F),window.globalAjaxQueue=[],window.globalAjaxQueue.active=0,window.globalAjaxQueue.clean=function(){for(let e=this.length;e>=0;e-=1)this[e]&&4!==this[e].readyState||this.splice(e,1)},window.globalAjaxQueue.push=function(...e){return this.active+=e.length,this.clean(),Array.prototype.push.call(this,...e)},window.globalAjaxQueue.abort=function(){this.forEach(e=>e&&e.abort&&e.abort()),this.splice(0,this.length),this.active=0};class H{constructor(){_(this,"format","json"),_(this,"timeout",null),_(this,"callback",null),_(this,"useRegularCallbackInCaseOfError",!1),_(this,"errorCallback",void 0),_(this,"withToken",!1),_(this,"completeCallback",void 0),_(this,"getParams",{}),_(this,"getUrl","?"),_(this,"postParams",{}),_(this,"loadingElement",null),_(this,"errorElement","#ajaxError"),_(this,"requestHandle",null),_(this,"defaultParams",["idSite","period","date","segment"]),this.errorCallback=U}addParams(e,t){"string"===typeof e&&(e=window["broadcast"].getValuesFromUrl(e));const r=["compareSegments","comparePeriods","compareDates"];Object.keys(e).forEach(n=>{const a=e[n];(-1===r.indexOf(n)||a)&&("get"===t.toLowerCase()?this.getParams[n]=a:"post"===t.toLowerCase()&&(this.postParams[n]=a))})}withTokenInUrl(){this.withToken=!0}setUrl(e){this.addParams(broadcast.getValuesFromUrl(e),"GET")}setBulkRequests(...e){const t=e.map(e=>$.param(e));this.addParams({module:"API",method:"API.getBulkRequest",urls:t,format:"json"},"post")}setTimeout(e){this.timeout=e}setCallback(e){this.callback=e}useCallbackInCaseOfError(){this.useRegularCallbackInCaseOfError=!0}redirectOnSuccess(e){this.setCallback(()=>{piwikHelper.redirect(e)})}setErrorCallback(e){this.errorCallback=e}setCompleteCallback(e){this.completeCallback=e}setFormat(e){this.format=e}setLoadingElement(e){this.loadingElement=e||"#ajaxLoadingDiv"}setErrorElement(e){e&&(this.errorElement=e)}useGETDefaultParameter(e){if(e&&this.defaultParams)for(let t=0;t<this.defaultParams.length;t+=1)if(this.defaultParams[t]===e)return!0;return!1}removeDefaultParameter(e){if(e&&this.defaultParams)for(let t=0;t<this.defaultParams.length;t+=1)this.defaultParams[t]===e&&this.defaultParams.splice(t,1)}send(){return $(this.errorElement).length&&$(this.errorElement).hide(),this.loadingElement&&$(this.loadingElement).fadeIn(),this.requestHandle=this.buildAjaxCall(),globalAjaxQueue.push(this.requestHandle),this.requestHandle}abort(){this.requestHandle&&"function"===typeof this.requestHandle.abort&&(this.requestHandle.abort(),this.requestHandle=null)}buildAjaxCall(){const e=this,t=this.mixinDefaultGetParams(this.getParams);let r=this.getUrl;"?"!==r[r.length-1]&&(r+="&"),t.segment&&(r=`${r}segment=${t.segment}&`,delete t.segment),t.date&&(r=`${r}date=${decodeURIComponent(t.date.toString())}&`,delete t.date),r+=$.param(t);const n={type:"POST",async:!0,url:r,dataType:this.format||"json",complete:this.completeCallback,error:function(){globalAjaxQueue.active-=1,e.errorCallback&&e.errorCallback.apply(this,arguments)},success:(e,t,r)=>{if(this.loadingElement&&$(this.loadingElement).hide(),e&&"error"===e.result&&!this.useRegularCallbackInCaseOfError){let t=null,r="toast";if($(this.errorElement).length&&e.message&&($(this.errorElement).show(),t=this.errorElement,r=null),e.message){const n=window["require"]("piwik/UI"),a=new n.Notification;a.show(e.message,{placeat:t,context:"error",type:r,id:"ajaxHelper"}),a.scrollToNotification()}}else this.callback&&this.callback(e,t,r);globalAjaxQueue.active-=1,D.ajaxRequestFinished&&D.ajaxRequestFinished()},data:this.mixinDefaultPostParams(this.postParams),timeout:null!==this.timeout?this.timeout:void 0};return $.ajax(n)}isRequestToApiMethod(){return this.getParams&&"API"===this.getParams.module&&this.getParams.method||this.postParams&&"API"===this.postParams.module&&this.postParams.method}isWidgetizedRequest(){return"Widgetize"===broadcast.getValueFromUrl("module")}getDefaultPostParams(){return this.withToken||this.isRequestToApiMethod()||D.shouldPropagateTokenAuth?{token_auth:D.token_auth,force_api_session:broadcast.isWidgetizeRequestWithoutSession()?0:1}:{}}mixinDefaultPostParams(e){const t=this.getDefaultPostParams(),r={...t,...e};return r}mixinDefaultGetParams(e){const t=o.getSearchParam("segment"),r={idSite:D.idSite||broadcast.getValueFromUrl("idSite"),period:D.period||broadcast.getValueFromUrl("period"),segment:t},n=e;return n.token_auth&&(n.token_auth=null,delete n.token_auth),Object.keys(r).forEach(e=>{this.useGETDefaultParameter(e)&&!n[e]&&!this.postParams[e]&&r[e]&&(n[e]=r[e])}),!this.useGETDefaultParameter("date")||n.date||this.postParams.date||(n.date=D.currentDateString),n}}function q(){return globalAjaxQueue}window.ajaxHelper=H,angular.module("piwikApp.service").service("globalAjaxQueue",q); +window.piwik.addCustomPeriod=u.addCustomPeriod.bind(u),angular.module("piwikApp.service").factory("piwikPeriods",N),window.globalAjaxQueue=[],window.globalAjaxQueue.active=0,window.globalAjaxQueue.clean=function(){for(let e=this.length;e>=0;e-=1)this[e]&&4!==this[e].readyState||this.splice(e,1)},window.globalAjaxQueue.push=function(...e){return this.active+=e.length,this.clean(),Array.prototype.push.call(this,...e)},window.globalAjaxQueue.abort=function(){this.forEach(e=>e&&e.abort&&e.abort()),this.splice(0,this.length),this.active=0};class U{static fetch(e){const t=new U;return t.setFormat("json"),t.addParams(e,"get"),t.send()}constructor(){A(this,"format","json"),A(this,"timeout",null),A(this,"callback",null),A(this,"useRegularCallbackInCaseOfError",!1),A(this,"errorCallback",void 0),A(this,"withToken",!1),A(this,"completeCallback",void 0),A(this,"getParams",{}),A(this,"getUrl","?"),A(this,"postParams",{}),A(this,"loadingElement",null),A(this,"errorElement","#ajaxError"),A(this,"requestHandle",null),A(this,"defaultParams",["idSite","period","date","segment"]),this.errorCallback=B}addParams(e,t){"string"===typeof e&&(e=window["broadcast"].getValuesFromUrl(e));const n=["compareSegments","comparePeriods","compareDates"];Object.keys(e).forEach(r=>{const a=e[r];(-1===n.indexOf(r)||a)&&("get"===t.toLowerCase()?this.getParams[r]=a:"post"===t.toLowerCase()&&(this.postParams[r]=a))})}withTokenInUrl(){this.withToken=!0}setUrl(e){this.addParams(broadcast.getValuesFromUrl(e),"GET")}setBulkRequests(...e){const t=e.map(e=>$.param(e));this.addParams({module:"API",method:"API.getBulkRequest",urls:t,format:"json"},"post")}setTimeout(e){this.timeout=e}setCallback(e){this.callback=e}useCallbackInCaseOfError(){this.useRegularCallbackInCaseOfError=!0}redirectOnSuccess(e){this.setCallback(()=>{piwikHelper.redirect(e)})}setErrorCallback(e){this.errorCallback=e}setCompleteCallback(e){this.completeCallback=e}setFormat(e){this.format=e}setLoadingElement(e){this.loadingElement=e||"#ajaxLoadingDiv"}setErrorElement(e){e&&(this.errorElement=e)}useGETDefaultParameter(e){if(e&&this.defaultParams)for(let t=0;t<this.defaultParams.length;t+=1)if(this.defaultParams[t]===e)return!0;return!1}removeDefaultParameter(e){if(e&&this.defaultParams)for(let t=0;t<this.defaultParams.length;t+=1)this.defaultParams[t]===e&&this.defaultParams.splice(t,1)}send(){return $(this.errorElement).length&&$(this.errorElement).hide(),this.loadingElement&&$(this.loadingElement).fadeIn(),this.requestHandle=this.buildAjaxCall(),globalAjaxQueue.push(this.requestHandle),this.requestHandle}abort(){this.requestHandle&&"function"===typeof this.requestHandle.abort&&(this.requestHandle.abort(),this.requestHandle=null)}buildAjaxCall(){const e=this,t=this.mixinDefaultGetParams(this.getParams);let n=this.getUrl;"?"!==n[n.length-1]&&(n+="&"),t.segment&&(n=`${n}segment=${t.segment}&`,delete t.segment),t.date&&(n=`${n}date=${decodeURIComponent(t.date.toString())}&`,delete t.date),n+=$.param(t);const r={type:"POST",async:!0,url:n,dataType:this.format||"json",complete:this.completeCallback,error:function(){globalAjaxQueue.active-=1,e.errorCallback&&e.errorCallback.apply(this,arguments)},success:(e,t,n)=>{if(this.loadingElement&&$(this.loadingElement).hide(),e&&"error"===e.result&&!this.useRegularCallbackInCaseOfError){let t=null,n="toast";if($(this.errorElement).length&&e.message&&($(this.errorElement).show(),t=this.errorElement,n=null),e.message){const r=window["require"]("piwik/UI"),a=new r.Notification;a.show(e.message,{placeat:t,context:"error",type:n,id:"ajaxHelper"}),a.scrollToNotification()}}else this.callback&&this.callback(e,t,n);globalAjaxQueue.active-=1,P.ajaxRequestFinished&&P.ajaxRequestFinished()},data:this.mixinDefaultPostParams(this.postParams),timeout:null!==this.timeout?this.timeout:void 0};return $.ajax(r)}isRequestToApiMethod(){return this.getParams&&"API"===this.getParams.module&&this.getParams.method||this.postParams&&"API"===this.postParams.module&&this.postParams.method}isWidgetizedRequest(){return"Widgetize"===broadcast.getValueFromUrl("module")}getDefaultPostParams(){return this.withToken||this.isRequestToApiMethod()||P.shouldPropagateTokenAuth?{token_auth:P.token_auth,force_api_session:broadcast.isWidgetizeRequestWithoutSession()?0:1}:{}}mixinDefaultPostParams(e){const t=this.getDefaultPostParams(),n={...t,...e};return n}mixinDefaultGetParams(e){const t=o.getSearchParam("segment"),n={idSite:P.idSite||broadcast.getValueFromUrl("idSite"),period:P.period||broadcast.getValueFromUrl("period"),segment:t},r=e;return r.token_auth&&(r.token_auth=null,delete r.token_auth),Object.keys(n).forEach(e=>{this.useGETDefaultParameter(e)&&!r[e]&&!this.postParams[e]&&n[e]&&(r[e]=n[e])}),!this.useGETDefaultParameter("date")||r.date||this.postParams.date||(r.date=P.currentDateString),r}}function M(){return globalAjaxQueue}window.ajaxHelper=U,angular.module("piwikApp.service").service("globalAjaxQueue",M); /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -const N={getSearchParam(e){const t=window.location.href.split("#"),r=new RegExp(e+"(\\[]|=)");if(t&&t[1]&&r.test(decodeURIComponent(t[1]))){const t=window.broadcast.getValueFromHash(e,window.location.href);if(t||"date"!==e&&"period"!==e&&"idSite"!==e)return t}return window.broadcast.getValueFromUrl(e,window.location.search)}};var L=N; +const V={getSearchParam(e){const t=window.location.href.split("#"),n=new RegExp(e+"(\\[]|=)");if(t&&t[1]&&n.test(decodeURIComponent(t[1]))){const t=window.broadcast.getValueFromHash(e,window.location.href);if(t||"date"!==e&&"period"!==e&&"idSite"!==e)return t}return window.broadcast.getValueFromUrl(e,window.location.search)}};var _=V; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function B(){const e={getSearchParam:L.getSearchParam.bind(L)};return e} + */function q(){const e={getSearchParam:_.getSearchParam.bind(_)};return e} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -let V;B.$inject=[],angular.module("piwikApp.service").service("piwikUrl",B);const{piwik:Y,broadcast:z,piwikHelper:G}=window;function Q(e,t){try{return d.parse(e,t),!0}catch(r){return!1}}Y.helper=G,Y.broadcast=z,Y.updatePeriodParamsFromUrl=function(){let e=L.getSearchParam("date");const t=L.getSearchParam("period");if(!Q(t,e))return;if(Y.period===t&&Y.currentDateString===e)return;Y.period=t;const r=d.parse(t,e).getDateRange();Y.startDateString=c(r[0]),Y.endDateString=c(r[1]),Y.updateDateInTitle(e,t),"range"===Y.period&&(e=`${Y.startDateString},${Y.endDateString}`),Y.currentDateString=e},Y.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(V=V||document.title,0===V.indexOf(Y.siteName))){const r=` - ${d.parse(t,e).getPrettyString()} `;document.title=`${Y.siteName}${r}${V.substr(Y.siteName.length)}`}},Y.hasUserCapability=function(e){return window.angular.isArray(Y.userCapabilities)&&-1!==Y.userCapabilities.indexOf(e)};const J=Y;var W=J; +let L;q.$inject=[],angular.module("piwikApp.service").service("piwikUrl",q);const{piwik:G,broadcast:J,piwikHelper:z}=window;function Y(e,t){try{return u.parse(e,t),!0}catch(n){return!1}}G.helper=z,G.broadcast=J,G.updatePeriodParamsFromUrl=function(){let e=_.getSearchParam("date");const t=_.getSearchParam("period");if(!Y(t,e))return;if(G.period===t&&G.currentDateString===e)return;G.period=t;const n=u.parse(t,e).getDateRange();G.startDateString=d(n[0]),G.endDateString=d(n[1]),G.updateDateInTitle(e,t),"range"===G.period&&(e=`${G.startDateString},${G.endDateString}`),G.currentDateString=e},G.updateDateInTitle=function(e,t){if($(".top_controls #periodString").length&&(L=L||document.title,0===L.indexOf(G.siteName))){const n=` - ${u.parse(t,e).getPrettyString()} `;document.title=`${G.siteName}${n}${L.substr(G.siteName.length)}`}},G.hasUserCapability=function(e){return window.angular.isArray(G.userCapabilities)&&-1!==G.userCapabilities.indexOf(e)};const Q=G;var W=Q; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function K(){return W}function X(e,t){t.$on("$locationChangeSuccess",e.updatePeriodParamsFromUrl)}angular.module("piwikApp.service").service("piwik",K),X.$inject=["piwik","$rootScope"],angular.module("piwikApp.service").run(X);var Z=r("8bbf");function ee(e,t,r,n,a,i){return Object(Z["renderSlot"])(e.$slots,"default")}var te=Object(Z["defineComponent"])({props:{show:{type:Boolean,required:!0},element:{type:HTMLElement,required:!1}},emits:["yes","no","closeEnd","close"],activated(){const e=this.element||this.$slots.default()[0].el;e.style.display="none"},watch:{show(e,t){if(e){const e=this.element||this.$slots.default()[0].el;D.helper.modalConfirm(e,{yes:()=>{this.$emit("yes")},no:()=>{this.$emit("no")}},{onCloseEnd:()=>{this.$emit("closeEnd")}})}else!1===e&&!0===t&&this.$emit("close")}}});te.render=ee;var re=te; + */function X(){return W}function K(e,t){t.$on("$locationChangeSuccess",e.updatePeriodParamsFromUrl)}angular.module("piwikApp.service").service("piwik",X),K.$inject=["piwik","$rootScope"],angular.module("piwikApp.service").run(K);var Z=n("8bbf");const ee={ref:"root"};function te(e,t,n,r,a,i){return Object(Z["withDirectives"])((Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",ee,[Object(Z["renderSlot"])(e.$slots,"default")],512)),[[Z["vShow"],e.modelValue]])}var ne=Object(Z["defineComponent"])({props:{modelValue:{type:Boolean,required:!0},element:{type:HTMLElement,required:!1}},emits:["yes","no","closeEnd","close","update:modelValue"],setup(){const e=Object(Z["ref"])(null);return{root:e}},activated(){this.$emit("update:modelValue",!1)},watch:{modelValue(e,t){if(e){const e=this.element||this.$refs.root.firstElementChild;P.helper.modalConfirm(e,{yes:()=>{this.$emit("yes")},no:()=>{this.$emit("no")}},{onCloseEnd:()=>{this.element||this.$refs.root.appendChild(e),this.$emit("update:modelValue",!1),this.$emit("closeEnd")}})}else!1===e&&!0===t&&this.$emit("close")}}});ne.render=te;var re=ne; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function ne(e){const{component:t,scope:r={},events:n={},$inject:a,directiveName:i,transclude:o,mountPointFactory:s,postCreate:l,noScope:u}=e,d={};function c(...e){const a={restrict:"A",scope:u?void 0:d,compile:function(){return{post:function(a,i,u){const d=i.find("[ng-transclude]");let c="<root-component";Object.entries(r).forEach(([,e])=>{c+=` :${e.vue}="${e.vue}"`}),Object.entries(n).forEach(e=>{const[t]=e;c+=` @${t}="onEventHandler('${t}')"`}),c+=">",o&&(c+='<div ref="transcludeTarget"/>'),c+="</root-component>";const p=Object(Z["createApp"])({template:c,data(){const t={};return Object.entries(r).forEach(([r,n])=>{let o=a[r];"undefined"===typeof o&&"undefined"!==typeof n.default&&(o=n.default instanceof Function?n.default(a,i,u,...e):n.default),t[n.vue]=o}),t},setup(){if(o){const e=Object(Z["ref"])(null);return{transcludeTarget:e}}},methods:{onEventHandler(t){n[t]&&n[t](a,i,u,...e)}}});p.config.globalProperties.$sanitize=window.vueSanitize,p.component("root-component",t);const g=s?s(a,i,u,...e):i[0],h=p.mount(g);Object.entries(r).forEach(([t,r])=>{r.angularJsBind&&a.$watch(t,n=>{"undefined"!==typeof r.default&&"undefined"===typeof n?h[t]=r.default instanceof Function?r.default(a,i,u,...e):r.default:h[t]=n})}),o&&$(h.transcludeTarget).append(d),l&&l(h,a,i,u,...e)}}}};return o&&(a.transclude=!0,a.template="<div ng-transclude/>"),a}return Object.entries(r).forEach(([e,t])=>{t.angularJsBind&&(d[e]=t.angularJsBind)}),c.$inject=a||[],angular.module("piwikApp").directive(i,c),c} + */let ae=0;function ie(e){const{component:t,scope:n={},events:r={},$inject:a,directiveName:i,transclude:o,mountPointFactory:s,postCreate:l,noScope:c}=e,u=ae;o&&(ae+=1);const d={};function p(...e){const a={restrict:"A",scope:c?void 0:d,compile:function(){return{post:function(a,i,c){const d=o?i.find(`[ng-transclude][counter=${u}]`):null;let p="<root-component";Object.entries(n).forEach(([,e])=>{p+=` :${e.vue}="${e.vue}"`}),Object.entries(r).forEach(e=>{const[t]=e;p+=` @${t}="onEventHandler('${t}', $event)"`}),p+=">",o&&(p+='<div ref="transcludeTarget"/>'),p+="</root-component>";const h=Object(Z["createApp"])({template:p,data(){const t={};return Object.entries(n).forEach(([n,r])=>{let o=a[n];"undefined"===typeof o&&"undefined"!==typeof r.default&&(o=r.default instanceof Function?r.default(a,i,c,...e):r.default),t[r.vue]=o}),t},setup(){if(o){const e=Object(Z["ref"])(null);return{transcludeTarget:e}}},methods:{onEventHandler(t,n){r[t]&&r[t](n,a,i,c,...e)}}});h.config.globalProperties.$sanitize=window.vueSanitize,h.config.globalProperties.translate=k,h.component("root-component",t);const m=s?s(a,i,c,...e):i[0],g=h.mount(m);Object.entries(n).forEach(([t,n])=>{n.angularJsBind&&a.$watch(t,r=>{"undefined"!==typeof n.default&&"undefined"===typeof r?g[t]=n.default instanceof Function?n.default(a,i,c,...e):n.default:g[t]=r})}),o&&$(g.transcludeTarget).append(d),l&&l(g,a,i,c,...e)}}}};return o&&(a.transclude=!0,a.template=`<div ng-transclude counter="${u}"/>`),a}return Object.entries(n).forEach(([e,t])=>{t.vue||(t.vue=e),t.angularJsBind&&(d[e]=t.angularJsBind)}),p.$inject=a||[],angular.module("piwikApp").directive(i,p),p} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ne({component:re,scope:{show:{vue:"show",default:!1},element:{vue:"element",default:(e,t)=>t[0]}},events:{yes:(e,t,r)=>{r.yes&&(e.$eval(r.yes),setTimeout(()=>{e.$apply()},0))},no:(e,t,r)=>{r.no&&(e.$eval(r.no),setTimeout(()=>{e.$apply()},0))},close:(e,t,r)=>{r.close&&(e.$eval(r.close),setTimeout(()=>{e.$apply()},0))},closeEnd:(e,t,r,n)=>{setTimeout(()=>{e.$apply(n(r.piwikDialog).assign(e,!1))},0)}},$inject:["$parse"],directiveName:"piwikDialog",transclude:!0,mountPointFactory:(e,t)=>{const r=$('<div class="vue-placeholder"/>');return r.appendTo(t),r[0]},postCreate:(e,t,r,n)=>{t.$watch(n.piwikDialog,t=>{e.show=t||!1})},noScope:!0});const ae={class:"loadingPiwik"},ie=Object(Z["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif",alt:""},null,-1);function oe(e,t,r,n,a,i){return Object(Z["withDirectives"])((Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",ae,[ie,Object(Z["createElementVNode"])("span",null,Object(Z["toDisplayString"])(e.loadingMessage),1)],512)),[[Z["vShow"],e.loading]])}var se=Object(Z["defineComponent"])({props:{loading:{type:Boolean,required:!0,default:!1},loadingMessage:{type:String,required:!1,default:j("General_LoadingData")}}});se.render=oe;var le=se,ue=ne({component:le,scope:{loading:{vue:"loading",angularJsBind:"<"},loadingMessage:{vue:"loadingMessage",angularJsBind:"<",default:()=>j("General_LoadingData")}},$inject:[],directiveName:"piwikActivityIndicator"}); + */ie({component:re,scope:{show:{vue:"modelValue",default:!1},element:{default:(e,t)=>t[0]}},events:{yes:(e,t,n,r)=>{r.yes&&(t.$eval(r.yes),setTimeout(()=>{t.$apply()},0))},no:(e,t,n,r)=>{r.no&&(t.$eval(r.no),setTimeout(()=>{t.$apply()},0))},close:(e,t,n,r)=>{r.close&&(t.$eval(r.close),setTimeout(()=>{t.$apply()},0))},"update:modelValue":(e,t,n,r,a)=>{setTimeout(()=>{t.$apply(a(r.piwikDialog).assign(t,e))},0)}},$inject:["$parse"],directiveName:"piwikDialog",transclude:!0,mountPointFactory:(e,t)=>{const n=$('<div class="vue-placeholder"/>');return n.appendTo(t),n[0]},postCreate:(e,t,n,r)=>{t.$watch(r.piwikDialog,(t,n)=>{n!==t&&(e.modelValue=t||!1)})},noScope:!0});const oe={key:0,class:"title",tabindex:"6"},se=["href","title"],le={class:"iconsBar"},ce=["href","title"],ue=Object(Z["createElementVNode"])("span",{class:"icon-help"},null,-1),de=[ue],pe=["title"],he=Object(Z["createElementVNode"])("span",{class:"icon-info"},null,-1),me=[he],ge={class:"ratingIcons"},fe={class:"inlineHelp"},be=["innerHTML"],we=["href"];function ye(e,t,n,r,a,i){const o=Object(Z["resolveComponent"])("RateFeature");return Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",{class:"enrichedHeadline",onMouseenter:t[1]||(t[1]=t=>e.showIcons=!0),onMouseleave:t[2]||(t[2]=t=>e.showIcons=!1),ref:"root"},[e.editUrl?Object(Z["createCommentVNode"])("",!0):(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",oe,[Object(Z["renderSlot"])(e.$slots,"default")])),e.editUrl?(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("a",{key:1,class:"title",href:e.editUrl,title:e.translate("CoreHome_ClickToEditX",e.$sanitize(e.actualFeatureName))},[Object(Z["renderSlot"])(e.$slots,"default")],8,se)):Object(Z["createCommentVNode"])("",!0),Object(Z["withDirectives"])(Object(Z["createElementVNode"])("span",le,[e.helpUrl&&!e.actualInlineHelp?(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("a",{key:0,rel:"noreferrer noopener",target:"_blank",class:"helpIcon",href:e.helpUrl,title:e.translate("CoreHome_ExternalHelp")},de,8,ce)):Object(Z["createCommentVNode"])("",!0),e.actualInlineHelp?(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("a",{key:1,onClick:t[0]||(t[0]=t=>e.showInlineHelp=!e.showInlineHelp),class:Object(Z["normalizeClass"])(["helpIcon",{active:e.showInlineHelp}]),title:e.translate(e.reportGenerated?"General_HelpReport":"General_Help")},me,10,pe)):Object(Z["createCommentVNode"])("",!0),Object(Z["createElementVNode"])("div",ge,[Object(Z["createVNode"])(o,{title:e.actualFeatureName},null,8,["title"])])],512),[[Z["vShow"],e.showIcons||e.showInlineHelp]]),Object(Z["withDirectives"])(Object(Z["createElementVNode"])("div",fe,[Object(Z["createElementVNode"])("div",{innerHTML:e.$sanitize(e.actualInlineHelp)},null,8,be),e.helpUrl?(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("a",{key:0,rel:"noreferrer noopener",target:"_blank",class:"readMore",href:e.helpUrl},Object(Z["toDisplayString"])(e.translate("General_MoreDetails")),9,we)):Object(Z["createCommentVNode"])("",!0)],512),[[Z["vShow"],e.showInlineHelp]])],544)}const De=Object(Z["defineAsyncComponent"])(()=>new Promise(e=>{window.$(document).ready(()=>{e(window.Feedback.RateFeature)})}));var Pe=Object(Z["defineComponent"])({props:{helpUrl:{type:String,default:""},editUrl:{type:String,default:""},reportGenerated:String,featureName:String,inlineHelp:String},components:{RateFeature:De},data(){return{showIcons:!1,showInlineHelp:!1,actualFeatureName:this.featureName,actualInlineHelp:this.inlineHelp}},setup(){const e=Object(Z["ref"])(null);return{root:e}},watch:{inlineHelp(e){this.actualInlineHelp=e},featureName(e){this.actualFeatureName=e}},mounted(){const{root:e}=this.$refs;if(!this.actualInlineHelp){let t=e.querySelector(".title .inlineHelp");if(!t&&e.parentElement.nextElementSibling&&(t=e.parentElement.nextElementSibling.querySelector(".reportDocumentation")),t){const e=t.getAttribute("data-content").trim();e.length&&(this.actualInlineHelp=`<p>${e}</p>`,setTimeout(()=>t.remove(),0))}}this.actualFeatureName||(this.actualFeatureName=e.querySelector(".title").textContent),this.reportGenerated&&u.parse(P.period,P.currentDateString).containsToday()&&window.$(e.querySelector(".report-generated")).tooltip({track:!0,content:this.reportGenerated,items:"div",show:!1,hide:!1})}});Pe.render=ye;var ve=Pe; /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */function de(e,t,r,n,a,i){return Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",{class:Object(Z["normalizeClass"])(["alert",{["alert-"+e.severity]:!0}])},[Object(Z["renderSlot"])(e.$slots,"default")],2)}var ce=Object(Z["defineComponent"])({props:{severity:{type:String,required:!0}}});ce.render=de;var pe=ce,ge=ne({component:pe,scope:{severity:{vue:"severity",angularJsBind:"@piwikAlert"}},directiveName:"piwikAlert",transclude:!0}); + */ie({component:ve,scope:{helpUrl:{angularJsBind:"@"},editUrl:{angularJsBind:"@"},reportGenerated:{angularJsBind:"@?"},featureName:{angularJsBind:"@"},inlineHelp:{angularJsBind:"@?"}},directiveName:"piwikEnrichedHeadline",transclude:!0});const je={class:"card",ref:"root"},ke={class:"card-content"},Oe={key:0,class:"card-title"},Se={key:1,class:"card-title"},Te={ref:"content"};function $e(e,t,n,r,a,i){const o=Object(Z["resolveComponent"])("EnrichedHeadline");return Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",je,[Object(Z["createElementVNode"])("div",ke,[!e.contentTitle||e.actualFeature||e.helpUrl||e.actualHelpText?Object(Z["createCommentVNode"])("",!0):(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("h2",Oe,Object(Z["toDisplayString"])(e.contentTitle),1)),e.contentTitle&&(e.actualFeature||e.helpUrl||e.actualHelpText)?(Object(Z["openBlock"])(),Object(Z["createElementBlock"])("h2",Se,[Object(Z["createVNode"])(o,{"feature-name":e.actualFeature,"help-url":e.helpUrl,"inline-help":e.actualHelpText},{default:Object(Z["withCtx"])(()=>[Object(Z["createTextVNode"])(Object(Z["toDisplayString"])(e.contentTitle),1)]),_:1},8,["feature-name","help-url","inline-help"])])):Object(Z["createCommentVNode"])("",!0),Object(Z["createElementVNode"])("div",Te,[Object(Z["renderSlot"])(e.$slots,"default")],512)])],512)}let Ee=null;var Ce=Object(Z["defineComponent"])({props:{contentTitle:String,feature:String,helpUrl:String,helpText:String,anchor:String},components:{EnrichedHeadline:ve},data(){return{actualFeature:this.feature,actualHelpText:this.helpText}},setup(){const e=Object(Z["ref"])(null),t=Object(Z["ref"])(null);return{root:e,content:t}},watch:{feature(e){this.actualFeature=e},helpText(e){this.actualHelpText=e}},mounted(){const{root:e,content:t}=this.$refs;if(this.anchor){const t=document.createElement("a");t.id=this.anchor,e.parentElement.prepend(t)}let n;if(setTimeout(()=>{const e=t.querySelector(".contentHelp");e&&(this.actualHelpText=e.innerHTML,e.remove())},0),!this.actualFeature||!0!==this.actualFeature&&"true"!==this.actualFeature||(this.actualFeature=this.contentTitle),null===Ee&&(Ee=document.querySelector("#content.admin")),Ee&&(n=Ee.offsetTop),n||0===n){const t=e.closest("[piwik-widget-loader]"),r=t?t.offsetTop:e.offsetTop;r-n<17&&(e.style.marginTop=0)}}});Ce.render=$e;var Ie=Ce; +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ie({component:Ie,scope:{contentTitle:{angularJsBind:"@"},feature:{angularJsBind:"@"},helpUrl:{angularJsBind:"@"},helpText:{angularJsBind:"@"},anchor:{angularJsBind:"@?"}},directiveName:"piwikContentBlock",transclude:!0});const xe={class:"loadingPiwik"},He=Object(Z["createElementVNode"])("img",{src:"plugins/Morpheus/images/loading-blue.gif",alt:""},null,-1);function Re(e,t,n,r,a,i){return Object(Z["withDirectives"])((Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",xe,[He,Object(Z["createElementVNode"])("span",null,Object(Z["toDisplayString"])(e.loadingMessage),1)],512)),[[Z["vShow"],e.loading]])}var Fe=Object(Z["defineComponent"])({props:{loading:{type:Boolean,required:!0,default:!1},loadingMessage:{type:String,required:!1,default:k("General_LoadingData")}}});Fe.render=Re;var Ne=Fe,Ae=ie({component:Ne,scope:{loading:{vue:"loading",angularJsBind:"<"},loadingMessage:{vue:"loadingMessage",angularJsBind:"<",default:()=>k("General_LoadingData")}},$inject:[],directiveName:"piwikActivityIndicator"}); +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */function Be(e,t,n,r,a,i){return Object(Z["openBlock"])(),Object(Z["createElementBlock"])("div",{class:Object(Z["normalizeClass"])(["alert",{["alert-"+e.severity]:!0}])},[Object(Z["renderSlot"])(e.$slots,"default")],2)}var Ue=Object(Z["defineComponent"])({props:{severity:{type:String,required:!0}}});Ue.render=Be;var Me=Ue,Ve=ie({component:Me,scope:{severity:{vue:"severity",angularJsBind:"@piwikAlert"}},directiveName:"piwikAlert",transclude:!0}); /*! * Matomo - free/libre analytics platform * diff --git a/plugins/CoreHome/vue/dist/CoreHome.umd.min.js.map b/plugins/CoreHome/vue/dist/CoreHome.umd.min.js.map index c853811992..53a0c55611 100644 --- a/plugins/CoreHome/vue/dist/CoreHome.umd.min.js.map +++ b/plugins/CoreHome/vue/dist/CoreHome.umd.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://CoreHome/webpack/universalModuleDefinition","webpack://CoreHome/webpack/bootstrap","webpack://CoreHome/./plugins/CoreHome/vue/src/noAdblockFlag.ts","webpack://CoreHome/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://CoreHome/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/utilities.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/translate.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Day.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Week.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Month.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Year.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Range.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?c435","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?7b62","webpack://CoreHome/./plugins/CoreHome/vue/src/createAngularJsAdapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?0bf6","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?6f80","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?14a2","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?cc69","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.adapter.ts"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","window","hasBlockedContent","currentScript","document","src","match","MatomoUrl","paramName","hash","location","href","split","regex","RegExp","test","decodeURIComponent","valueFromHash","broadcast","getValueFromHash","getValueFromUrl","search","piwikUrl","model","getSearchParam","$inject","angular","service","Periods","periodClass","periods","Error","periodOrder","push","Array","concat","strPeriod","strDate","parse","format","date","$","datepicker","formatDate","getToday","Date","now","setTime","getTime","getTimezoneOffset","setHours","getHours","piwik","timezoneOffset","setMinutes","setSeconds","setMilliseconds","parseDate","yesterday","setDate","getDate","lastWeek","lastMonth","setMonth","getMonth","lastYear","setFullYear","getFullYear","err","console","error","message","todayIsInRange","dateRange","length","originalTitle","piwikHelper","isValidPeriod","periodStr","dateStr","e","helper","updatePeriodParamsFromUrl","period","currentDateString","getDateRange","startDateString","endDateString","updateDateInTitle","title","indexOf","siteName","dateString","getPrettyString","substr","hasUserCapability","capability","isArray","userCapabilities","Matomo","piwikService","initPiwikService","$rootScope","$on","run","translate","translationStringId","values","_pk_translate","dateInPeriod","addCustomPeriod","weekDates","startWeek","endWeek","daysToMonday","getDay","month","startMonth","endMonth","toString","startYear","endYear","startDate","endDate","childPeriodType","strAmount","strEndDate","nAmount","Math","max","parseInt","Number","isNaN","startPeriod","endPeriod","firstWebsiteDate","rangeEndDate","countBack","ed","getLastNRange","substring","parts","start","end","piwikPeriods","getAllLabels","isRecognizedPeriod","RangePeriod","defaultErrorCallback","deferred","status","loadingError","Piwik_Popover","isOpen","body","html","escape","responseText","show","globalAjaxQueue","active","clean","readyState","splice","args","abort","forEach","x","errorCallback","params","type","getValuesFromUrl","arrayParams","keys","toLowerCase","getParams","postParams","withToken","url","addParams","urls","urlsProcessed","map","u","param","method","timeout","callback","useRegularCallbackInCaseOfError","setCallback","redirect","completeCallback","element","loadingElement","errorElement","parameter","defaultParams","hide","fadeIn","requestHandle","buildAjaxCall","parameters","mixinDefaultGetParams","getUrl","segment","ajaxCall","async","dataType","complete","apply","arguments","success","response","request","result","placeAt","UI","notification","Notification","placeat","context","id","scrollToNotification","ajaxRequestFinished","data","mixinDefaultPostParams","undefined","ajax","isRequestToApiMethod","shouldPropagateTokenAuth","token_auth","force_api_session","isWidgetizeRequestWithoutSession","getDefaultPostParams","mergedParams","originalParams","idSite","useGETDefaultParameter","ajaxQueue","ajaxHelper","PiwikUrl","Piwik","props","Boolean","required","HTMLElement","emits","slotElement","$slots","default","el","style","display","watch","newValue","oldValue","modalConfirm","yes","$emit","no","onCloseEnd","render","createAngularJsAdapter","options","component","scope","events","directiveName","transclude","mountPointFactory","postCreate","noScope","angularJsScope","angularJsAdapter","injectedServices","adapter","restrict","compile","post","ngScope","ngElement","ngAttrs","clone","find","rootVueTemplate","entries","info","vue","eventName","app","template","initialData","scopeVarName","Function","transcludeTarget","methods","config","globalProperties","$sanitize","vueSanitize","mountPoint","vm","mount","angularJsBind","$watch","append","directive","MatomoDialog","attrs","$eval","setTimeout","$apply","close","closeEnd","$parse","piwikDialog","assign","vueRootPlaceholder","appendTo","class","alt","loadingMessage","loading","String","ActivityIndicator","severity","Alert"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC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F,oCAAgB,CAC7BnF,MAAO,CACLmF,SAAU,CACR3J,KAAMyJ,OACN/E,UAAU,MCJhB,GAAOiB,OAAS,GAED,UCKA,GAAAC,GAAuB,CACpCE,UAAW8D,GACX7D,MAAO,CACL4D,SAAU,CACRtC,IAAK,WACLgB,cAAe,gBAGnBpC,cAAe,aACfC,YAAY","file":"CoreHome.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"CoreHome\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"CoreHome\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"plugins/CoreHome/vue/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n// see https://github.com/matomo-org/matomo/issues/5094 used to detect an ad blocker\nwindow.hasBlockedContent = false;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst MatomoUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default MatomoUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport MatomoUrl from './MatomoUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: MatomoUrl.getSearchParam.bind(MatomoUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\ninterface Period {\n getPrettyString(): string;\n getDateRange(): Date[];\n containsToday(): boolean;\n}\n\ninterface PeriodClass {\n parse(strDate: string|Date): Period;\n getDisplayText(): string;\n}\n\n/**\n * Matomo period management service for the frontend.\n *\n * Usage:\n *\n * var DayPeriod = matomoPeriods.get('day');\n * var day = new DayPeriod(new Date());\n *\n * or\n *\n * var day = matomoPeriods.parse('day', '2013-04-05');\n *\n * Adding custom periods:\n *\n * To add your own period to the frontend, create a period class for it\n * w/ the following methods:\n *\n * - **getPrettyString()**: returns a human readable display string for the period.\n * - **getDateRange()**: returns an array w/ two elements, the first being the start\n * Date of the period, the second being the end Date. The dates\n * must be Date objects, not strings, and are inclusive.\n * - **containsToday()**: returns true if the date period contains today. False if not.\n * - (_static_) **parse(strDate)**: creates a new instance of this period from the\n * value of the 'date' query parameter.\n * - (_static_) **getDisplayText**: returns translated text for the period, eg, 'month',\n * 'week', etc.\n *\n * Then call Periods.addCustomPeriod w/ your period class:\n *\n * Periods.addCustomPeriod('mycustomperiod', MyCustomPeriod);\n *\n * NOTE: currently only single date periods like day, week, month year can\n * be extended. Other types of periods that require a special UI to\n * view/edit aren't, since there is currently no way to use a\n * custom UI for a custom period.\n */\nclass Periods {\n periods: {[name: string]: PeriodClass} = {};\n\n periodOrder: string[] = [];\n\n addCustomPeriod(name: string, periodClass: PeriodClass) {\n if (this.periods[name]) {\n throw new Error(`The \"${name}\" period already exists! It cannot be overridden.`);\n }\n\n this.periods[name] = periodClass;\n this.periodOrder.push(name);\n }\n\n getAllLabels(): string[] {\n return Array<string>().concat(this.periodOrder);\n }\n\n get(strPeriod: string): PeriodClass {\n const periodClass = this.periods[strPeriod];\n if (!periodClass) {\n throw new Error(`Invalid period label: ${strPeriod}`);\n }\n return periodClass;\n }\n\n parse(strPeriod: string, strDate: string): Period {\n return this.get(strPeriod).parse(strDate);\n }\n\n isRecognizedPeriod(strPeriod: string): boolean {\n return !!this.periods[strPeriod];\n }\n}\n\nexport default new Periods();\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport function format(date: Date): string {\n return $.datepicker.formatDate('yy-mm-dd', date);\n}\n\nexport function getToday(): Date {\n const date = new Date(Date.now());\n\n // undo browser timezone\n date.setTime(date.getTime() + date.getTimezoneOffset() * 60 * 1000);\n\n // apply Matomo site timezone (if it exists)\n date.setHours(date.getHours() + ((window.piwik.timezoneOffset || 0) / 3600));\n\n // get rid of hours/minutes/seconds/etc.\n date.setHours(0);\n date.setMinutes(0);\n date.setSeconds(0);\n date.setMilliseconds(0);\n return date;\n}\n\nexport function parseDate(date: string|Date): Date {\n if (date instanceof Date) {\n return date;\n }\n\n const strDate = decodeURIComponent(date);\n\n if (strDate === 'today'\n || strDate === 'now'\n ) {\n return getToday();\n }\n\n if (strDate === 'yesterday'\n // note: ignoring the 'same time' part since the frontend doesn't care about the time\n || strDate === 'yesterdaySameTime'\n ) {\n const yesterday = getToday();\n yesterday.setDate(yesterday.getDate() - 1);\n return yesterday;\n }\n\n if (strDate.match(/last[ -]?week/i)) {\n const lastWeek = getToday();\n lastWeek.setDate(lastWeek.getDate() - 7);\n return lastWeek;\n }\n\n if (strDate.match(/last[ -]?month/i)) {\n const lastMonth = getToday();\n lastMonth.setDate(1);\n lastMonth.setMonth(lastMonth.getMonth() - 1);\n return lastMonth;\n }\n\n if (strDate.match(/last[ -]?year/i)) {\n const lastYear = getToday();\n lastYear.setFullYear(lastYear.getFullYear() - 1);\n return lastYear;\n }\n\n try {\n return $.datepicker.parseDate('yy-mm-dd', strDate);\n } catch (err) {\n // angular swallows this error, so manual console log here\n console.error(err.message || err);\n throw err;\n }\n}\n\nexport function todayIsInRange(dateRange: Date[]): boolean {\n if (dateRange.length !== 2) {\n return false;\n }\n\n if (getToday() >= dateRange[0] && getToday() <= dateRange[1]) {\n return true;\n }\n\n return false;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = MatomoUrl.getSearchParam('date');\n const period = MatomoUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Matomo = piwik;\nexport default Matomo;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Matomo from './Matomo';\n\nfunction piwikService() {\n return Matomo;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport default function translate(translationStringId: string, values: string[] = []): string {\n return window._pk_translate(translationStringId, values); // eslint-disable-line\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class DayPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): DayPeriod {\n return new DayPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodDay');\n }\n\n getPrettyString(): string {\n return format(this.dateInPeriod);\n }\n\n getDateRange(): Date[] {\n return [new Date(this.dateInPeriod.getTime()), new Date(this.dateInPeriod.getTime())];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('day', DayPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class WeekPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): WeekPeriod {\n return new WeekPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodWeek');\n }\n\n getPrettyString(): string {\n const weekDates = this.getDateRange();\n const startWeek = format(weekDates[0]);\n const endWeek = format(weekDates[1]);\n\n return translate('General_DateRangeFromTo', [startWeek, endWeek]);\n }\n\n getDateRange(): Date[] {\n const daysToMonday = (this.dateInPeriod.getDay() + 6) % 7;\n\n const startWeek = new Date(this.dateInPeriod.getTime());\n startWeek.setDate(this.dateInPeriod.getDate() - daysToMonday);\n\n const endWeek = new Date(startWeek.getTime());\n endWeek.setDate(startWeek.getDate() + 6);\n\n return [startWeek, endWeek];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('week', WeekPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class MonthPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): MonthPeriod {\n return new MonthPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodMonth');\n }\n\n getPrettyString(): string {\n const month = translate(`Intl_Month_Long_StandAlone_${this.dateInPeriod.getMonth() + 1}`);\n return `${month} ${this.dateInPeriod.getFullYear()}`;\n }\n\n getDateRange(): Date[] {\n const startMonth = new Date(this.dateInPeriod.getTime());\n startMonth.setDate(1);\n\n const endMonth = new Date(this.dateInPeriod.getTime());\n endMonth.setDate(1);\n endMonth.setMonth(endMonth.getMonth() + 1);\n endMonth.setDate(0);\n\n return [startMonth, endMonth];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('month', MonthPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class YearPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): YearPeriod {\n return new YearPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodYear');\n }\n\n getPrettyString(): string {\n return this.dateInPeriod.getFullYear().toString();\n }\n\n getDateRange(): Date[] {\n const startYear = new Date(this.dateInPeriod.getTime());\n startYear.setMonth(0);\n startYear.setDate(1);\n\n const endYear = new Date(this.dateInPeriod.getTime());\n endYear.setMonth(12);\n endYear.setDate(0);\n\n return [startYear, endYear];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('year', YearPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport {\n parseDate,\n format,\n getToday,\n todayIsInRange,\n} from './utilities';\n\nexport default class RangePeriod {\n constructor(\n public readonly startDate: Date,\n public readonly endDate: Date,\n public readonly childPeriodType: string,\n ) {}\n\n /**\n * Returns a range representing the last N childPeriodType periods, including the current one.\n */\n static getLastNRange(\n childPeriodType: string,\n strAmount: string|number,\n strEndDate?: Date|string,\n ): RangePeriod {\n const nAmount = Math.max(parseInt(strAmount.toString(), 10) - 1, 0);\n if (Number.isNaN(nAmount)) {\n throw new Error('Invalid range strAmount');\n }\n\n let endDate = strEndDate ? parseDate(strEndDate) : getToday();\n\n let startDate = new Date(endDate.getTime());\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - nAmount);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (nAmount * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - nAmount);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - nAmount);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n /**\n * Returns a range representing a specific child date range counted back from the end date\n *\n * @param childPeriodType Type of the period, eg. day, week, year\n * @param rangeEndDate\n * @param countBack Return only the child date range for this specific period number\n * @returns {RangePeriod}\n */\n static getLastNRangeChild(\n childPeriodType: string,\n rangeEndDate: Date|string,\n countBack: number,\n ): RangePeriod {\n const ed = rangeEndDate ? parseDate(rangeEndDate) : getToday();\n let startDate = new Date(ed.getTime());\n let endDate = new Date(ed.getTime());\n\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - countBack);\n endDate.setDate(endDate.getDate() - countBack);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (countBack * 7));\n endDate.setDate(endDate.getDate() - (countBack * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - countBack);\n endDate.setDate(1);\n endDate.setMonth(endDate.getMonth() - countBack);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - countBack);\n endDate.setFullYear(endDate.getFullYear() - countBack);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n static parse(strDate: string, childPeriodType = 'day'): RangePeriod {\n if (/^previous/.test(strDate)) {\n const endDate = RangePeriod.getLastNRange(childPeriodType, '2').startDate;\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(8), endDate);\n }\n\n if (/^last/.test(strDate)) {\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(4));\n }\n\n const parts = decodeURIComponent(strDate).split(',');\n return new RangePeriod(parseDate(parts[0]), parseDate(parts[1]), childPeriodType);\n }\n\n static getDisplayText(): string {\n return translate('General_DateRangeInPeriodList');\n }\n\n getPrettyString(): string {\n const start = format(this.startDate);\n const end = format(this.endDate);\n return translate('General_DateRangeFromTo', [start, end]);\n }\n\n getDateRange(): Date[] {\n return [this.startDate, this.endDate];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('range', RangePeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Periods from './Periods';\nimport RangePeriod from './Range';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nwindow.piwik.addCustomPeriod = Periods.addCustomPeriod.bind(Periods);\n\nfunction piwikPeriods() {\n return {\n getAllLabels: Periods.getAllLabels.bind(Periods),\n isRecognizedPeriod: Periods.isRecognizedPeriod.bind(Periods),\n get: Periods.get.bind(Periods),\n parse: Periods.parse.bind(Periods),\n parseDate,\n format,\n RangePeriod,\n todayIsInRange,\n };\n}\n\nangular.module('piwikApp.service').factory('piwikPeriods', piwikPeriods);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Matomo from '../Matomo/Matomo';\n\nwindow.globalAjaxQueue = [] as GlobalAjaxQueue;\nwindow.globalAjaxQueue.active = 0;\n\nwindow.globalAjaxQueue.clean = function globalAjaxQueueClean() {\n for (let i = this.length; i >= 0; i -= 1) {\n if (!this[i] || this[i].readyState === 4) {\n this.splice(i, 1);\n }\n }\n};\n\nwindow.globalAjaxQueue.push = function globalAjaxQueuePush(...args: (XMLHttpRequest|null)[]) {\n this.active += args.length;\n\n // cleanup ajax queue\n this.clean();\n\n // call original array push\n return Array.prototype.push.call(this, ...args);\n};\n\nwindow.globalAjaxQueue.abort = function globalAjaxQueueAbort() {\n // abort all queued requests if possible\n this.forEach((x) => x && x.abort && x.abort());\n\n // remove all elements from array\n this.splice(0, this.length);\n\n this.active = 0;\n};\n\ntype ParameterValue = string | number | null | undefined | ParameterValue[];\ntype Parameters = {[name: string]: ParameterValue | Parameters};\ntype AnyFunction = (...params:any[]) => any; // eslint-disable-line\n\n/**\n * error callback to use by default\n */\nfunction defaultErrorCallback(deferred: XMLHttpRequest, status: string): void {\n // do not display error message if request was aborted\n if (status === 'abort') {\n return;\n }\n\n const loadingError = $('#loadingError');\n if (Piwik_Popover.isOpen() && deferred && deferred.status === 500) {\n if (deferred && deferred.status === 500) {\n $(document.body).html(piwikHelper.escape(deferred.responseText));\n }\n } else {\n loadingError.show();\n }\n}\n\n/**\n * Global ajax helper to handle requests within Matomo\n */\nexport default class AjaxHelper {\n /**\n * Format of response\n */\n format = 'json';\n\n /**\n * A timeout for the request which will override any global timeout\n */\n timeout = null;\n\n /**\n * Callback function to be executed on success\n */\n callback: AnyFunction = null;\n\n /**\n * Use this.callback if an error is returned\n */\n useRegularCallbackInCaseOfError = false;\n\n /**\n * Callback function to be executed on error\n *\n * @deprecated use the jquery promise API\n */\n errorCallback: AnyFunction;\n\n withToken = false;\n\n /**\n * Callback function to be executed on complete (after error or success)\n *\n * @deprecated use the jquery promise API\n */\n completeCallback: AnyFunction;\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultGetParams\n */\n getParams: Parameters = {};\n\n /**\n * Base URL used in the AJAX request. Can be set by setUrl.\n *\n * It is set to '?' rather than 'index.php?' to increase chances that it works\n * including for users who have an automatic 301 redirection from index.php? to ?\n * POST values are missing when there is such 301 redirection. So by by-passing\n * this 301 redirection, we avoid this issue.\n *\n * @see ajaxHelper.setUrl\n */\n getUrl = '?';\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultPostParams\n */\n postParams: Parameters = {};\n\n /**\n * Element to be displayed while loading\n */\n loadingElement: HTMLElement|null|JQuery|JQLite|string = null;\n\n /**\n * Element to be displayed on error\n */\n errorElement: HTMLElement|JQuery|JQLite|string = '#ajaxError';\n\n /**\n * Handle for current request\n */\n requestHandle: XMLHttpRequest|JQuery.jqXHR|null = null;\n\n defaultParams = ['idSite', 'period', 'date', 'segment'];\n\n constructor() {\n this.errorCallback = defaultErrorCallback;\n }\n\n /**\n * Adds params to the request.\n * If params are given more then once, the latest given value is used for the request\n *\n * @param params\n * @param type type of given parameters (POST or GET)\n * @return {void}\n */\n addParams(params: Parameters|string, type: string): void {\n if (typeof params === 'string') {\n // TODO: add global types for broadcast (multiple uses below)\n params = window['broadcast'].getValuesFromUrl(params); // eslint-disable-line\n }\n\n const arrayParams = ['compareSegments', 'comparePeriods', 'compareDates'];\n Object.keys(params).forEach((key) => {\n const value = params[key];\n if (arrayParams.indexOf(key) !== -1\n && !value\n ) {\n return;\n }\n\n if (type.toLowerCase() === 'get') {\n this.getParams[key] = value;\n } else if (type.toLowerCase() === 'post') {\n this.postParams[key] = value;\n }\n });\n }\n\n withTokenInUrl(): void {\n this.withToken = true;\n }\n\n /**\n * Sets the base URL to use in the AJAX request.\n */\n setUrl(url: string): void {\n this.addParams(broadcast.getValuesFromUrl(url), 'GET');\n }\n\n /**\n * Gets this helper instance ready to send a bulk request. Each argument to this\n * function is a single request to use.\n */\n setBulkRequests(...urls: string[]): void {\n const urlsProcessed = urls.map((u) => $.param(u));\n\n this.addParams({\n module: 'API',\n method: 'API.getBulkRequest',\n urls: urlsProcessed,\n format: 'json',\n }, 'post');\n }\n\n /**\n * Set a timeout (in milliseconds) for the request. This will override any global timeout.\n *\n * @param timeout Timeout in milliseconds\n */\n setTimeout(timeout: number): void {\n this.timeout = timeout;\n }\n\n /**\n * Sets the callback called after the request finishes\n *\n * @param callback Callback function\n * @deprecated use the jquery promise API\n */\n setCallback(callback: AnyFunction): void {\n this.callback = callback;\n }\n\n /**\n * Set that the callback passed to setCallback() should be used if an application error (i.e. an\n * Exception in PHP) is returned.\n */\n useCallbackInCaseOfError(): void {\n this.useRegularCallbackInCaseOfError = true;\n }\n\n /**\n * Set callback to redirect on success handler\n * &update=1(+x) will be appended to the current url\n *\n * @param [params] to modify in redirect url\n * @return {void}\n */\n redirectOnSuccess(params: Parameters): void {\n this.setCallback(() => {\n piwikHelper.redirect(params);\n });\n }\n\n /**\n * Sets the callback called in case of an error within the request\n *\n * @deprecated use the jquery promise API\n */\n setErrorCallback(callback: AnyFunction): void {\n this.errorCallback = callback;\n }\n\n /**\n * Sets the complete callback which is called after an error or success callback.\n *\n * @deprecated use the jquery promise API\n */\n setCompleteCallback(callback: AnyFunction): void {\n this.completeCallback = callback;\n }\n\n /**\n * Sets the response format for the request\n *\n * @param format response format (e.g. json, html, ...)\n */\n setFormat(format: string): void {\n this.format = format;\n }\n\n /**\n * Set the div element to show while request is loading\n *\n * @param [element] selector for the loading element\n */\n setLoadingElement(element: string|HTMLElement|JQuery): void {\n this.loadingElement = element || '#ajaxLoadingDiv';\n }\n\n /**\n * Set the div element to show on error\n *\n * @param element selector for the error element\n */\n setErrorElement(element: HTMLElement|JQuery|string): void {\n if (!element) {\n return;\n }\n this.errorElement = element;\n }\n\n /**\n * Detect whether are allowed to use the given default parameter or not\n */\n private useGETDefaultParameter(parameter: string): boolean {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n /**\n * Removes a default parameter that is usually send automatically along the request.\n *\n * @param parameter A name such as \"period\", \"date\", \"segment\".\n */\n removeDefaultParameter(parameter: string): void {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n this.defaultParams.splice(i, 1);\n }\n }\n }\n }\n\n /**\n * Send the request\n */\n send(): JQuery.jqXHR {\n if ($(this.errorElement).length) {\n $(this.errorElement).hide();\n }\n\n if (this.loadingElement) {\n $(this.loadingElement).fadeIn();\n }\n\n this.requestHandle = this.buildAjaxCall();\n globalAjaxQueue.push(this.requestHandle);\n\n return this.requestHandle;\n }\n\n /**\n * Aborts the current request if it is (still) running\n */\n abort(): void {\n if (this.requestHandle && typeof this.requestHandle.abort === 'function') {\n this.requestHandle.abort();\n this.requestHandle = null;\n }\n }\n\n /**\n * Builds and sends the ajax requests\n */\n private buildAjaxCall(): JQuery.jqXHR {\n const self = this;\n const parameters = this.mixinDefaultGetParams(this.getParams);\n\n let url = this.getUrl;\n if (url[url.length - 1] !== '?') {\n url += '&';\n }\n\n // we took care of encoding &segment properly already, so we don't use $.param for it ($.param\n // URL encodes the values)\n if (parameters.segment) {\n url = `${url}segment=${parameters.segment}&`;\n delete parameters.segment;\n }\n if (parameters.date) {\n url = `${url}date=${decodeURIComponent(parameters.date.toString())}&`;\n delete parameters.date;\n }\n url += $.param(parameters);\n const ajaxCall = {\n type: 'POST',\n async: true,\n url,\n dataType: this.format || 'json',\n complete: this.completeCallback,\n error: function errorCallback() {\n globalAjaxQueue.active -= 1;\n\n if (self.errorCallback) {\n self.errorCallback.apply(this, arguments); // eslint-disable-line\n }\n },\n success: (response, status, request) => {\n if (this.loadingElement) {\n $(this.loadingElement).hide();\n }\n\n if (response && response.result === 'error' && !this.useRegularCallbackInCaseOfError) {\n let placeAt = null;\n let type = 'toast';\n if ($(this.errorElement).length && response.message) {\n $(this.errorElement).show();\n placeAt = this.errorElement;\n type = null;\n }\n\n if (response.message) {\n const UI = window['require']('piwik/UI'); // eslint-disable-line\n const notification = new UI.Notification();\n notification.show(response.message, {\n placeat: placeAt,\n context: 'error',\n type,\n id: 'ajaxHelper',\n });\n notification.scrollToNotification();\n }\n } else if (this.callback) {\n this.callback(response, status, request);\n }\n\n globalAjaxQueue.active -= 1;\n if (Matomo.ajaxRequestFinished) {\n Matomo.ajaxRequestFinished();\n }\n },\n data: this.mixinDefaultPostParams(this.postParams),\n timeout: this.timeout !== null ? this.timeout : undefined,\n };\n\n return $.ajax(ajaxCall);\n }\n\n private isRequestToApiMethod() {\n return (this.getParams && this.getParams.module === 'API' && this.getParams.method)\n || (this.postParams && this.postParams.module === 'API' && this.postParams.method);\n }\n\n isWidgetizedRequest(): boolean {\n return (broadcast.getValueFromUrl('module') === 'Widgetize');\n }\n\n private getDefaultPostParams() {\n if (this.withToken || this.isRequestToApiMethod() || Matomo.shouldPropagateTokenAuth) {\n return {\n token_auth: Matomo.token_auth,\n // When viewing a widgetized report there won't be any session that can be used, so don't\n // force session usage\n force_api_session: broadcast.isWidgetizeRequestWithoutSession() ? 0 : 1,\n };\n }\n\n return {};\n }\n\n /**\n * Mixin the default parameters to send as POST\n *\n * @param params parameter object\n */\n private mixinDefaultPostParams(params): Parameters {\n const defaultParams = this.getDefaultPostParams();\n\n const mergedParams = {\n ...defaultParams,\n ...params,\n };\n\n return mergedParams;\n }\n\n /**\n * Mixin the default parameters to send as GET\n *\n * @param params parameter object\n */\n private mixinDefaultGetParams(originalParams): Parameters {\n const segment = MatomoUrl.getSearchParam('segment');\n\n const defaultParams = {\n idSite: Matomo.idSite || broadcast.getValueFromUrl('idSite'),\n period: Matomo.period || broadcast.getValueFromUrl('period'),\n segment,\n };\n\n const params = originalParams;\n\n // never append token_auth to url\n if (params.token_auth) {\n params.token_auth = null;\n delete params.token_auth;\n }\n\n Object.keys(defaultParams).forEach((key) => {\n if (this.useGETDefaultParameter(key)\n && !params[key]\n && !this.postParams[key]\n && defaultParams[key]\n ) {\n params[key] = defaultParams[key];\n }\n });\n\n // handle default date & period if not already set\n if (this.useGETDefaultParameter('date') && !params.date && !this.postParams.date) {\n params.date = Matomo.currentDateString;\n }\n\n return params;\n }\n}\n","import AjaxHelper from './AjaxHelper';\n\ndeclare global {\n interface Window {\n ajaxHelper: AjaxHelper;\n }\n}\n\nwindow.ajaxHelper = AjaxHelper;\n\nfunction ajaxQueue() {\n return globalAjaxQueue;\n}\n\nangular.module('piwikApp.service').service('globalAjaxQueue', ajaxQueue);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst PiwikUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default PiwikUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport PiwikUrl from './PiwikUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: PiwikUrl.getSearchParam.bind(PiwikUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport PiwikUrl from '../PiwikUrl/PiwikUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = PiwikUrl.getSearchParam('date');\n const period = PiwikUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Piwik = piwik;\nexport default Piwik;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Piwik from './Piwik';\n\nfunction piwikService() {\n return Piwik;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n<template>\n <slot></slot>\n</template>\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n show: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close'],\n activated() {\n const slotElement = this.element || this.$slots.default()[0].el;\n slotElement.style.display = 'none';\n },\n watch: {\n show(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$slots.default()[0].el;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => { this.$emit('closeEnd'); },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n show: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close'],\n activated() {\n const slotElement = this.element || this.$slots.default()[0].el;\n slotElement.style.display = 'none';\n },\n watch: {\n show(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$slots.default()[0].el;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => { this.$emit('closeEnd'); },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n","import { render } from \"./MatomoDialog.vue?vue&type=template&id=42c028e0\"\nimport script from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport {\n createApp,\n defineComponent,\n ref,\n ComponentPublicInstance,\n} from 'vue';\n\ninterface SingleScopeVarInfo {\n vue: string;\n default?: any; // eslint-disable-line\n angularJsBind?: string;\n}\n\ntype ScopeMapping = { [scopeVarName: string]: SingleScopeVarInfo };\n\ntype AdapterFunction<InjectTypes, R = void> = (\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype PostCreateFunction<InjectTypes, R = void> = (\n vm: ComponentPublicInstance,\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype EventMapping<InjectTypes> = { [vueEventName: string]: AdapterFunction<InjectTypes> };\n\ntype ComponentType = ReturnType<typeof defineComponent>;\n\nexport default function createAngularJsAdapter<InjectTypes = []>(options: {\n component: ComponentType,\n scope?: ScopeMapping,\n directiveName: string,\n events?: EventMapping<InjectTypes>,\n $inject?: string[],\n transclude?: boolean,\n mountPointFactory?: AdapterFunction<InjectTypes, HTMLElement>,\n postCreate?: PostCreateFunction<InjectTypes>,\n noScope?: boolean,\n}): ng.IDirectiveFactory {\n const {\n component,\n scope = {},\n events = {},\n $inject,\n directiveName,\n transclude,\n mountPointFactory,\n postCreate,\n noScope,\n } = options;\n\n const angularJsScope = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (info.angularJsBind) {\n angularJsScope[scopeVarName] = info.angularJsBind;\n }\n });\n\n function angularJsAdapter(...injectedServices: InjectTypes) {\n const adapter: ng.IDirective = {\n restrict: 'A',\n scope: noScope ? undefined : angularJsScope,\n compile: function angularJsAdapterCompile() {\n return {\n post: function angularJsAdapterLink(\n ngScope: ng.IScope,\n ngElement: ng.IAugmentedJQuery,\n ngAttrs: ng.IAttributes,\n ) {\n const clone = ngElement.find('[ng-transclude]');\n\n let rootVueTemplate = '<root-component';\n Object.entries(scope).forEach(([, info]) => {\n rootVueTemplate += ` :${info.vue}=\"${info.vue}\"`;\n });\n Object.entries(events).forEach((info) => {\n const [eventName] = info;\n rootVueTemplate += ` @${eventName}=\"onEventHandler('${eventName}')\"`;\n });\n rootVueTemplate += '>';\n if (transclude) {\n rootVueTemplate += '<div ref=\"transcludeTarget\"/>';\n }\n rootVueTemplate += '</root-component>';\n const app = createApp({\n template: rootVueTemplate,\n data() {\n const initialData = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n let value = ngScope[scopeVarName];\n if (typeof value === 'undefined' && typeof info.default !== 'undefined') {\n value = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n }\n initialData[info.vue] = value;\n });\n return initialData;\n },\n setup() {\n if (transclude) {\n const transcludeTarget = ref(null);\n return {\n transcludeTarget,\n };\n }\n\n return undefined;\n },\n methods: {\n onEventHandler(name: string) {\n if (events[name]) {\n events[name](ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n },\n });\n app.config.globalProperties.$sanitize = window.vueSanitize;\n app.component('root-component', component);\n\n const mountPoint = mountPointFactory\n ? mountPointFactory(ngScope, ngElement, ngAttrs, ...injectedServices)\n : ngElement[0];\n const vm = app.mount(mountPoint);\n\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (!info.angularJsBind) {\n return;\n }\n\n ngScope.$watch(scopeVarName, (newValue: any) => { // eslint-disable-line\n if (typeof info.default !== 'undefined' && typeof newValue === 'undefined') {\n vm[scopeVarName] = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n } else {\n vm[scopeVarName] = newValue;\n }\n });\n });\n\n if (transclude) {\n $(vm.transcludeTarget).append(clone);\n }\n\n if (postCreate) {\n postCreate(vm, ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n };\n },\n };\n\n if (transclude) {\n adapter.transclude = true;\n adapter.template = '<div ng-transclude/>';\n }\n\n return adapter;\n }\n\n angularJsAdapter.$inject = $inject || [];\n\n angular.module('piwikApp').directive(directiveName, angularJsAdapter);\n\n return angularJsAdapter;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport { IParseService } from 'angular';\nimport { ComponentPublicInstance } from 'vue';\nimport MatomoDialog from './MatomoDialog.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter<[IParseService]>({\n component: MatomoDialog,\n scope: {\n show: {\n vue: 'show',\n default: false,\n },\n element: {\n vue: 'element',\n default: (scope, element) => element[0],\n },\n },\n events: {\n yes: (scope, element, attrs) => {\n if (attrs.yes) {\n scope.$eval(attrs.yes);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n no: (scope, element, attrs) => {\n if (attrs.no) {\n scope.$eval(attrs.no);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n close: (scope, element, attrs) => {\n if (attrs.close) {\n scope.$eval(attrs.close);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n closeEnd: (scope, element, attrs, $parse: IParseService) => {\n setTimeout(() => {\n scope.$apply($parse(attrs.piwikDialog).assign(scope, false));\n }, 0);\n },\n },\n $inject: ['$parse'],\n directiveName: 'piwikDialog',\n transclude: true,\n mountPointFactory: (scope, element) => {\n const vueRootPlaceholder = $('<div class=\"vue-placeholder\"/>');\n vueRootPlaceholder.appendTo(element);\n return vueRootPlaceholder[0];\n },\n postCreate: (vm: ComponentPublicInstance, scope, element, attrs) => {\n scope.$watch(attrs.piwikDialog, (newValue: boolean) => {\n vm.show = newValue || false;\n });\n },\n noScope: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div v-show=\"loading\" class=\"loadingPiwik\">\n <img src=\"plugins/Morpheus/images/loading-blue.gif\" alt=\"\"/>\n <span>{{ loadingMessage }}</span>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n","import { render } from \"./ActivityIndicator.vue?vue&type=template&id=6af4d064\"\nimport script from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nexport * from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport ActivityIndicator from './ActivityIndicator.vue';\nimport translate from '../translate';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: ActivityIndicator,\n scope: {\n loading: {\n vue: 'loading',\n angularJsBind: '<',\n },\n loadingMessage: {\n vue: 'loadingMessage',\n angularJsBind: '<',\n default: () => translate('General_LoadingData'),\n },\n },\n $inject: [],\n directiveName: 'piwikActivityIndicator',\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n class=\"alert\"\n :class=\"{ [`alert-${severity}`]: true }\"\n >\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n","import { render } from \"./Alert.vue?vue&type=template&id=c3863ae2\"\nimport script from \"./Alert.vue?vue&type=script&lang=ts\"\nexport * from \"./Alert.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Alert from './Alert.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: Alert,\n scope: {\n severity: {\n vue: 'severity',\n angularJsBind: '@piwikAlert',\n },\n },\n directiveName: 'piwikAlert',\n transclude: true,\n});\n"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack://CoreHome/webpack/universalModuleDefinition","webpack://CoreHome/webpack/bootstrap","webpack://CoreHome/./plugins/CoreHome/vue/src/noAdblockFlag.ts","webpack://CoreHome/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://CoreHome/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoUrl/MatomoUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/utilities.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Matomo/Matomo.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/translate.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Day.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Week.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Month.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Year.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Range.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Periods/Periods.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/PiwikUrl/PiwikUrl.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Piwik/Piwik.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?c435","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue?7b62","webpack://CoreHome/./plugins/CoreHome/vue/src/createAngularJsAdapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?7f4f","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue?9cf5","webpack://CoreHome/./plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?4b9f","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue?5539","webpack://CoreHome/./plugins/CoreHome/vue/src/ContentBlock/ContentBlock.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?0bf6","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.vue?6f80","webpack://CoreHome/./plugins/CoreHome/vue/src/ActivityIndicator/ActivityIndicator.adapter.ts","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?14a2","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.vue?cc69","webpack://CoreHome/./plugins/CoreHome/vue/src/Alert/Alert.adapter.ts"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","window","hasBlockedContent","currentScript","document","src","match","MatomoUrl","paramName","hash","location","href","split","regex","RegExp","test","decodeURIComponent","valueFromHash","broadcast","getValueFromHash","getValueFromUrl","search","piwikUrl","model","getSearchParam","$inject","angular","service","Periods","periodClass","periods","Error","periodOrder","push","Array","concat","strPeriod","strDate","parse","format","date","$","datepicker","formatDate","getToday","Date","now","setTime","getTime","getTimezoneOffset","setHours","getHours","piwik","timezoneOffset","setMinutes","setSeconds","setMilliseconds","parseDate","yesterday","setDate","getDate","lastWeek","lastMonth","setMonth","getMonth","lastYear","setFullYear","getFullYear","err","console","error","message","todayIsInRange","dateRange","length","originalTitle","piwikHelper","isValidPeriod","periodStr","dateStr","e","helper","updatePeriodParamsFromUrl","period","currentDateString","getDateRange","startDateString","endDateString","updateDateInTitle","title","indexOf","siteName","dateString","getPrettyString","substr","hasUserCapability","capability","isArray","userCapabilities","Matomo","piwikService","initPiwikService","$rootScope","$on","run","translate","translationStringId","values","pkArgs","_pk_translate","dateInPeriod","addCustomPeriod","weekDates","startWeek","endWeek","daysToMonday","getDay","month","startMonth","endMonth","toString","startYear","endYear","startDate","endDate","childPeriodType","strAmount","strEndDate","nAmount","Math","max","parseInt","Number","isNaN","startPeriod","endPeriod","firstWebsiteDate","rangeEndDate","countBack","ed","getLastNRange","substring","parts","start","end","piwikPeriods","getAllLabels","isRecognizedPeriod","RangePeriod","defaultErrorCallback","deferred","status","loadingError","Piwik_Popover","isOpen","body","html","escape","responseText","show","globalAjaxQueue","active","clean","readyState","splice","args","abort","forEach","x","params","setFormat","addParams","send","errorCallback","type","getValuesFromUrl","arrayParams","keys","toLowerCase","getParams","postParams","withToken","url","urls","urlsProcessed","map","u","param","method","timeout","callback","useRegularCallbackInCaseOfError","setCallback","redirect","completeCallback","element","loadingElement","errorElement","parameter","defaultParams","hide","fadeIn","requestHandle","buildAjaxCall","parameters","mixinDefaultGetParams","getUrl","segment","ajaxCall","async","dataType","complete","apply","arguments","success","response","request","result","placeAt","UI","notification","Notification","placeat","context","id","scrollToNotification","ajaxRequestFinished","data","mixinDefaultPostParams","undefined","ajax","isRequestToApiMethod","shouldPropagateTokenAuth","token_auth","force_api_session","isWidgetizeRequestWithoutSession","getDefaultPostParams","mergedParams","originalParams","idSite","useGETDefaultParameter","ajaxQueue","ajaxHelper","PiwikUrl","Piwik","ref","modelValue","props","Boolean","required","HTMLElement","emits","$emit","watch","newValue","oldValue","slotElement","$refs","firstElementChild","modalConfirm","yes","no","onCloseEnd","appendChild","render","transcludeCounter","createAngularJsAdapter","options","component","scope","events","directiveName","transclude","mountPointFactory","postCreate","noScope","currentTranscludeCounter","angularJsScope","angularJsAdapter","injectedServices","adapter","restrict","compile","post","ngScope","ngElement","ngAttrs","clone","find","rootVueTemplate","entries","info","vue","eventName","app","template","initialData","scopeVarName","default","Function","transcludeTarget","methods","$event","config","globalProperties","$sanitize","vueSanitize","mountPoint","vm","mount","angularJsBind","$watch","append","directive","MatomoDialog","attrs","$eval","setTimeout","$apply","close","$parse","piwikDialog","assign","vueRootPlaceholder","appendTo","class","tabindex","showIcons","editUrl","actualFeatureName","helpUrl","actualInlineHelp","rel","target","showInlineHelp","reportGenerated","RateFeature","Promise","resolve","ready","Feedback","String","featureName","inlineHelp","components","helpNode","querySelector","parentElement","nextElementSibling","helpDocs","getAttribute","trim","remove","textContent","containsToday","tooltip","track","content","items","EnrichedHeadline","contentTitle","actualFeature","actualHelpText","feature-name","help-url","inline-help","adminContent","feature","helpText","anchor","anchorElement","createElement","prepend","contentTopPosition","innerHTML","offsetTop","parents","closest","topThis","style","marginTop","ContentBlock","alt","loadingMessage","loading","ActivityIndicator","severity","Alert"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIJ,GACe,kBAAZC,QACdA,QAAQ,YAAcD,EAAQG,QAAQ,QAEtCJ,EAAK,YAAcC,EAAQD,EAAK,SARlC,CASoB,qBAATO,KAAuBA,KAAOC,MAAO,SAASC,GACzD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUV,QAGnC,IAAIC,EAASO,EAAiBE,GAAY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,UAAYna,EAAKma,UAE/CG,EAAUL,EAAqB,KAGjCja,EAAKua,MAAMC,UAAY,OC/E/B,GAAOpH,OAAS,GAED;;;;;;GCKAE,GAAuB,CACpCE,UAAWiH,GACXhH,MAAO,CACL2F,aAAc,CACZlD,cAAe,KAEjByD,QAAS,CACPzD,cAAe,KAEjBoB,QAAS,CACPpB,cAAe,KAEjB0D,SAAU,CACR1D,cAAe,KAEjB2D,OAAQ,CACN3D,cAAe,OAGnBvC,cAAe,oBACfC,YAAY,I,UCtBUqD,MAAM,gB,GAC1B,gCAA4D,OAAvDhU,IAAI,2CAA2CyX,IAAI,I,+FAD1D,gCAGM,MAHN,GAGM,CAFJ,GACA,gCAAiC,yCAAxB,EAAAC,gBAAc,I,mBAFZ,EAAAC,WCJA,oCAAgB,CAC7BzI,MAAO,CACLyI,QAAS,CACPlN,KAAM0E,QACNC,UAAU,EACViD,SAAS,GAEXqF,eAAgB,CACdjN,KAAMuK,OACN5F,UAAU,EACViD,QAASjM,EAAU,2BCXzB,GAAO+J,OAAS,GAED,UCMA,GAAAE,GAAuB,CACpCE,UAAWqH,GACXpH,MAAO,CACLmH,QAAS,CACP5F,IAAK,UACLkB,cAAe,KAEjByE,eAAgB,CACd3F,IAAK,iBACLkB,cAAe,IACfZ,QAAS,IAAMjM,EAAU,yBAG7BhF,QAAS,GACTsP,cAAe;;;;;;4DCjBf,gCAKM,OAJJsD,MAAK,6BAAC,QAAO,WACO,EAAA6D,WAAQ,M,CAE5B,wBAAa,qB,GCTF,oCAAgB,CAC7B3I,MAAO,CACL2I,SAAU,CACRpN,KAAMuK,OACN5F,UAAU,MCJhB,GAAOe,OAAS,GAED,UCKA,GAAAE,GAAuB,CACpCE,UAAWuH,GACXtH,MAAO,CACLqH,SAAU,CACR9F,IAAK,WACLkB,cAAe,gBAGnBvC,cAAe,aACfC,YAAY","file":"CoreHome.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"CoreHome\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"CoreHome\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"plugins/CoreHome/vue/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n// see https://github.com/matomo-org/matomo/issues/5094 used to detect an ad blocker\nwindow.hasBlockedContent = false;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst MatomoUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default MatomoUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport MatomoUrl from './MatomoUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: MatomoUrl.getSearchParam.bind(MatomoUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\ninterface Period {\n getPrettyString(): string;\n getDateRange(): Date[];\n containsToday(): boolean;\n}\n\ninterface PeriodClass {\n parse(strDate: string|Date): Period;\n getDisplayText(): string;\n}\n\n/**\n * Matomo period management service for the frontend.\n *\n * Usage:\n *\n * var DayPeriod = matomoPeriods.get('day');\n * var day = new DayPeriod(new Date());\n *\n * or\n *\n * var day = matomoPeriods.parse('day', '2013-04-05');\n *\n * Adding custom periods:\n *\n * To add your own period to the frontend, create a period class for it\n * w/ the following methods:\n *\n * - **getPrettyString()**: returns a human readable display string for the period.\n * - **getDateRange()**: returns an array w/ two elements, the first being the start\n * Date of the period, the second being the end Date. The dates\n * must be Date objects, not strings, and are inclusive.\n * - **containsToday()**: returns true if the date period contains today. False if not.\n * - (_static_) **parse(strDate)**: creates a new instance of this period from the\n * value of the 'date' query parameter.\n * - (_static_) **getDisplayText**: returns translated text for the period, eg, 'month',\n * 'week', etc.\n *\n * Then call Periods.addCustomPeriod w/ your period class:\n *\n * Periods.addCustomPeriod('mycustomperiod', MyCustomPeriod);\n *\n * NOTE: currently only single date periods like day, week, month year can\n * be extended. Other types of periods that require a special UI to\n * view/edit aren't, since there is currently no way to use a\n * custom UI for a custom period.\n */\nclass Periods {\n periods: {[name: string]: PeriodClass} = {};\n\n periodOrder: string[] = [];\n\n addCustomPeriod(name: string, periodClass: PeriodClass) {\n if (this.periods[name]) {\n throw new Error(`The \"${name}\" period already exists! It cannot be overridden.`);\n }\n\n this.periods[name] = periodClass;\n this.periodOrder.push(name);\n }\n\n getAllLabels(): string[] {\n return Array<string>().concat(this.periodOrder);\n }\n\n get(strPeriod: string): PeriodClass {\n const periodClass = this.periods[strPeriod];\n if (!periodClass) {\n throw new Error(`Invalid period label: ${strPeriod}`);\n }\n return periodClass;\n }\n\n parse(strPeriod: string, strDate: string): Period {\n return this.get(strPeriod).parse(strDate);\n }\n\n isRecognizedPeriod(strPeriod: string): boolean {\n return !!this.periods[strPeriod];\n }\n}\n\nexport default new Periods();\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport function format(date: Date): string {\n return $.datepicker.formatDate('yy-mm-dd', date);\n}\n\nexport function getToday(): Date {\n const date = new Date(Date.now());\n\n // undo browser timezone\n date.setTime(date.getTime() + date.getTimezoneOffset() * 60 * 1000);\n\n // apply Matomo site timezone (if it exists)\n date.setHours(date.getHours() + ((window.piwik.timezoneOffset || 0) / 3600));\n\n // get rid of hours/minutes/seconds/etc.\n date.setHours(0);\n date.setMinutes(0);\n date.setSeconds(0);\n date.setMilliseconds(0);\n return date;\n}\n\nexport function parseDate(date: string|Date): Date {\n if (date instanceof Date) {\n return date;\n }\n\n const strDate = decodeURIComponent(date);\n\n if (strDate === 'today'\n || strDate === 'now'\n ) {\n return getToday();\n }\n\n if (strDate === 'yesterday'\n // note: ignoring the 'same time' part since the frontend doesn't care about the time\n || strDate === 'yesterdaySameTime'\n ) {\n const yesterday = getToday();\n yesterday.setDate(yesterday.getDate() - 1);\n return yesterday;\n }\n\n if (strDate.match(/last[ -]?week/i)) {\n const lastWeek = getToday();\n lastWeek.setDate(lastWeek.getDate() - 7);\n return lastWeek;\n }\n\n if (strDate.match(/last[ -]?month/i)) {\n const lastMonth = getToday();\n lastMonth.setDate(1);\n lastMonth.setMonth(lastMonth.getMonth() - 1);\n return lastMonth;\n }\n\n if (strDate.match(/last[ -]?year/i)) {\n const lastYear = getToday();\n lastYear.setFullYear(lastYear.getFullYear() - 1);\n return lastYear;\n }\n\n try {\n return $.datepicker.parseDate('yy-mm-dd', strDate);\n } catch (err) {\n // angular swallows this error, so manual console log here\n console.error(err.message || err);\n throw err;\n }\n}\n\nexport function todayIsInRange(dateRange: Date[]): boolean {\n if (dateRange.length !== 2) {\n return false;\n }\n\n if (getToday() >= dateRange[0] && getToday() <= dateRange[1]) {\n return true;\n }\n\n return false;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = MatomoUrl.getSearchParam('date');\n const period = MatomoUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Matomo = piwik;\nexport default Matomo;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Matomo from './Matomo';\n\nfunction piwikService() {\n return Matomo;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nexport default function translate(\n translationStringId: string,\n ...values: string[]|string[][]\n): string {\n let pkArgs = values as string[];\n // handle variadic args AND single array of values (to match _pk_translate signature)\n if (values.length === 1 && values[0] && values[0] instanceof Array) {\n [pkArgs] = values as string[][];\n }\n return window._pk_translate(translationStringId, pkArgs); // eslint-disable-line\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class DayPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): DayPeriod {\n return new DayPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodDay');\n }\n\n getPrettyString(): string {\n return format(this.dateInPeriod);\n }\n\n getDateRange(): Date[] {\n return [new Date(this.dateInPeriod.getTime()), new Date(this.dateInPeriod.getTime())];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('day', DayPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nexport default class WeekPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): WeekPeriod {\n return new WeekPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodWeek');\n }\n\n getPrettyString(): string {\n const weekDates = this.getDateRange();\n const startWeek = format(weekDates[0]);\n const endWeek = format(weekDates[1]);\n\n return translate('General_DateRangeFromTo', [startWeek, endWeek]);\n }\n\n getDateRange(): Date[] {\n const daysToMonday = (this.dateInPeriod.getDay() + 6) % 7;\n\n const startWeek = new Date(this.dateInPeriod.getTime());\n startWeek.setDate(this.dateInPeriod.getDate() - daysToMonday);\n\n const endWeek = new Date(startWeek.getTime());\n endWeek.setDate(startWeek.getDate() + 6);\n\n return [startWeek, endWeek];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('week', WeekPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class MonthPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): MonthPeriod {\n return new MonthPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodMonth');\n }\n\n getPrettyString(): string {\n const month = translate(`Intl_Month_Long_StandAlone_${this.dateInPeriod.getMonth() + 1}`);\n return `${month} ${this.dateInPeriod.getFullYear()}`;\n }\n\n getDateRange(): Date[] {\n const startMonth = new Date(this.dateInPeriod.getTime());\n startMonth.setDate(1);\n\n const endMonth = new Date(this.dateInPeriod.getTime());\n endMonth.setDate(1);\n endMonth.setMonth(endMonth.getMonth() + 1);\n endMonth.setDate(0);\n\n return [startMonth, endMonth];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('month', MonthPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport { parseDate, todayIsInRange } from './utilities';\n\nexport default class YearPeriod {\n constructor(private dateInPeriod: Date) {}\n\n static parse(strDate: string): YearPeriod {\n return new YearPeriod(parseDate(strDate));\n }\n\n static getDisplayText(): string {\n return translate('Intl_PeriodYear');\n }\n\n getPrettyString(): string {\n return this.dateInPeriod.getFullYear().toString();\n }\n\n getDateRange(): Date[] {\n const startYear = new Date(this.dateInPeriod.getTime());\n startYear.setMonth(0);\n startYear.setDate(1);\n\n const endYear = new Date(this.dateInPeriod.getTime());\n endYear.setMonth(12);\n endYear.setDate(0);\n\n return [startYear, endYear];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('year', YearPeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport translate from '../translate';\nimport Periods from './Periods';\nimport {\n parseDate,\n format,\n getToday,\n todayIsInRange,\n} from './utilities';\n\nexport default class RangePeriod {\n constructor(\n public readonly startDate: Date,\n public readonly endDate: Date,\n public readonly childPeriodType: string,\n ) {}\n\n /**\n * Returns a range representing the last N childPeriodType periods, including the current one.\n */\n static getLastNRange(\n childPeriodType: string,\n strAmount: string|number,\n strEndDate?: Date|string,\n ): RangePeriod {\n const nAmount = Math.max(parseInt(strAmount.toString(), 10) - 1, 0);\n if (Number.isNaN(nAmount)) {\n throw new Error('Invalid range strAmount');\n }\n\n let endDate = strEndDate ? parseDate(strEndDate) : getToday();\n\n let startDate = new Date(endDate.getTime());\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - nAmount);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (nAmount * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - nAmount);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - nAmount);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n /**\n * Returns a range representing a specific child date range counted back from the end date\n *\n * @param childPeriodType Type of the period, eg. day, week, year\n * @param rangeEndDate\n * @param countBack Return only the child date range for this specific period number\n * @returns {RangePeriod}\n */\n static getLastNRangeChild(\n childPeriodType: string,\n rangeEndDate: Date|string,\n countBack: number,\n ): RangePeriod {\n const ed = rangeEndDate ? parseDate(rangeEndDate) : getToday();\n let startDate = new Date(ed.getTime());\n let endDate = new Date(ed.getTime());\n\n if (childPeriodType === 'day') {\n startDate.setDate(startDate.getDate() - countBack);\n endDate.setDate(endDate.getDate() - countBack);\n } else if (childPeriodType === 'week') {\n startDate.setDate(startDate.getDate() - (countBack * 7));\n endDate.setDate(endDate.getDate() - (countBack * 7));\n } else if (childPeriodType === 'month') {\n startDate.setDate(1);\n startDate.setMonth(startDate.getMonth() - countBack);\n endDate.setDate(1);\n endDate.setMonth(endDate.getMonth() - countBack);\n } else if (childPeriodType === 'year') {\n startDate.setFullYear(startDate.getFullYear() - countBack);\n endDate.setFullYear(endDate.getFullYear() - countBack);\n } else {\n throw new Error(`Unknown period type '${childPeriodType}'.`);\n }\n\n if (childPeriodType !== 'day') {\n const startPeriod = Periods.periods[childPeriodType].parse(startDate);\n const endPeriod = Periods.periods[childPeriodType].parse(endDate);\n\n [startDate] = startPeriod.getDateRange();\n [, endDate] = endPeriod.getDateRange();\n }\n\n const firstWebsiteDate = new Date(1991, 7, 6);\n if (startDate.getTime() - firstWebsiteDate.getTime() < 0) {\n switch (childPeriodType) {\n case 'year':\n startDate = new Date(1992, 0, 1);\n break;\n case 'month':\n startDate = new Date(1991, 8, 1);\n break;\n case 'week':\n startDate = new Date(1991, 8, 12);\n break;\n case 'day':\n default:\n startDate = firstWebsiteDate;\n break;\n }\n }\n\n return new RangePeriod(startDate, endDate, childPeriodType);\n }\n\n static parse(strDate: string, childPeriodType = 'day'): RangePeriod {\n if (/^previous/.test(strDate)) {\n const endDate = RangePeriod.getLastNRange(childPeriodType, '2').startDate;\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(8), endDate);\n }\n\n if (/^last/.test(strDate)) {\n return RangePeriod.getLastNRange(childPeriodType, strDate.substring(4));\n }\n\n const parts = decodeURIComponent(strDate).split(',');\n return new RangePeriod(parseDate(parts[0]), parseDate(parts[1]), childPeriodType);\n }\n\n static getDisplayText(): string {\n return translate('General_DateRangeInPeriodList');\n }\n\n getPrettyString(): string {\n const start = format(this.startDate);\n const end = format(this.endDate);\n return translate('General_DateRangeFromTo', [start, end]);\n }\n\n getDateRange(): Date[] {\n return [this.startDate, this.endDate];\n }\n\n containsToday(): boolean {\n return todayIsInRange(this.getDateRange());\n }\n}\n\nPeriods.addCustomPeriod('range', RangePeriod);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Periods from './Periods';\nimport RangePeriod from './Range';\nimport { parseDate, format, todayIsInRange } from './utilities';\n\nwindow.piwik.addCustomPeriod = Periods.addCustomPeriod.bind(Periods);\n\nfunction piwikPeriods() {\n return {\n getAllLabels: Periods.getAllLabels.bind(Periods),\n isRecognizedPeriod: Periods.isRecognizedPeriod.bind(Periods),\n get: Periods.get.bind(Periods),\n parse: Periods.parse.bind(Periods),\n parseDate,\n format,\n RangePeriod,\n todayIsInRange,\n };\n}\n\nangular.module('piwikApp.service').factory('piwikPeriods', piwikPeriods);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport MatomoUrl from '../MatomoUrl/MatomoUrl';\nimport Matomo from '../Matomo/Matomo';\n\nwindow.globalAjaxQueue = [] as GlobalAjaxQueue;\nwindow.globalAjaxQueue.active = 0;\n\nwindow.globalAjaxQueue.clean = function globalAjaxQueueClean() {\n for (let i = this.length; i >= 0; i -= 1) {\n if (!this[i] || this[i].readyState === 4) {\n this.splice(i, 1);\n }\n }\n};\n\nwindow.globalAjaxQueue.push = function globalAjaxQueuePush(...args: (XMLHttpRequest|null)[]) {\n this.active += args.length;\n\n // cleanup ajax queue\n this.clean();\n\n // call original array push\n return Array.prototype.push.call(this, ...args);\n};\n\nwindow.globalAjaxQueue.abort = function globalAjaxQueueAbort() {\n // abort all queued requests if possible\n this.forEach((x) => x && x.abort && x.abort());\n\n // remove all elements from array\n this.splice(0, this.length);\n\n this.active = 0;\n};\n\ntype ParameterValue = string | number | null | undefined | ParameterValue[];\ntype Parameters = {[name: string]: ParameterValue | Parameters};\ntype AnyFunction = (...params:any[]) => any; // eslint-disable-line\n\n/**\n * error callback to use by default\n */\nfunction defaultErrorCallback(deferred: XMLHttpRequest, status: string): void {\n // do not display error message if request was aborted\n if (status === 'abort') {\n return;\n }\n\n const loadingError = $('#loadingError');\n if (Piwik_Popover.isOpen() && deferred && deferred.status === 500) {\n if (deferred && deferred.status === 500) {\n $(document.body).html(piwikHelper.escape(deferred.responseText));\n }\n } else {\n loadingError.show();\n }\n}\n\n/**\n * Global ajax helper to handle requests within Matomo\n */\nexport default class AjaxHelper {\n /**\n * Format of response\n */\n format = 'json';\n\n /**\n * A timeout for the request which will override any global timeout\n */\n timeout = null;\n\n /**\n * Callback function to be executed on success\n */\n callback: AnyFunction = null;\n\n /**\n * Use this.callback if an error is returned\n */\n useRegularCallbackInCaseOfError = false;\n\n /**\n * Callback function to be executed on error\n *\n * @deprecated use the jquery promise API\n */\n errorCallback: AnyFunction;\n\n withToken = false;\n\n /**\n * Callback function to be executed on complete (after error or success)\n *\n * @deprecated use the jquery promise API\n */\n completeCallback: AnyFunction;\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultGetParams\n */\n getParams: Parameters = {};\n\n /**\n * Base URL used in the AJAX request. Can be set by setUrl.\n *\n * It is set to '?' rather than 'index.php?' to increase chances that it works\n * including for users who have an automatic 301 redirection from index.php? to ?\n * POST values are missing when there is such 301 redirection. So by by-passing\n * this 301 redirection, we avoid this issue.\n *\n * @see ajaxHelper.setUrl\n */\n getUrl = '?';\n\n /**\n * Params to be passed as GET params\n * @see ajaxHelper.mixinDefaultPostParams\n */\n postParams: Parameters = {};\n\n /**\n * Element to be displayed while loading\n */\n loadingElement: HTMLElement|null|JQuery|JQLite|string = null;\n\n /**\n * Element to be displayed on error\n */\n errorElement: HTMLElement|JQuery|JQLite|string = '#ajaxError';\n\n /**\n * Handle for current request\n */\n requestHandle: XMLHttpRequest|JQuery.jqXHR|null = null;\n\n defaultParams = ['idSite', 'period', 'date', 'segment'];\n\n // helper method entry point\n static fetch(params: Parameters): JQuery.jqXHR {\n const helper = new AjaxHelper();\n helper.setFormat('json');\n helper.addParams(params, 'get');\n return helper.send();\n }\n\n constructor() {\n this.errorCallback = defaultErrorCallback;\n }\n\n /**\n * Adds params to the request.\n * If params are given more then once, the latest given value is used for the request\n *\n * @param params\n * @param type type of given parameters (POST or GET)\n * @return {void}\n */\n addParams(params: Parameters|string, type: string): void {\n if (typeof params === 'string') {\n // TODO: add global types for broadcast (multiple uses below)\n params = window['broadcast'].getValuesFromUrl(params); // eslint-disable-line\n }\n\n const arrayParams = ['compareSegments', 'comparePeriods', 'compareDates'];\n Object.keys(params).forEach((key) => {\n const value = params[key];\n if (arrayParams.indexOf(key) !== -1\n && !value\n ) {\n return;\n }\n\n if (type.toLowerCase() === 'get') {\n this.getParams[key] = value;\n } else if (type.toLowerCase() === 'post') {\n this.postParams[key] = value;\n }\n });\n }\n\n withTokenInUrl(): void {\n this.withToken = true;\n }\n\n /**\n * Sets the base URL to use in the AJAX request.\n */\n setUrl(url: string): void {\n this.addParams(broadcast.getValuesFromUrl(url), 'GET');\n }\n\n /**\n * Gets this helper instance ready to send a bulk request. Each argument to this\n * function is a single request to use.\n */\n setBulkRequests(...urls: string[]): void {\n const urlsProcessed = urls.map((u) => $.param(u));\n\n this.addParams({\n module: 'API',\n method: 'API.getBulkRequest',\n urls: urlsProcessed,\n format: 'json',\n }, 'post');\n }\n\n /**\n * Set a timeout (in milliseconds) for the request. This will override any global timeout.\n *\n * @param timeout Timeout in milliseconds\n */\n setTimeout(timeout: number): void {\n this.timeout = timeout;\n }\n\n /**\n * Sets the callback called after the request finishes\n *\n * @param callback Callback function\n * @deprecated use the jquery promise API\n */\n setCallback(callback: AnyFunction): void {\n this.callback = callback;\n }\n\n /**\n * Set that the callback passed to setCallback() should be used if an application error (i.e. an\n * Exception in PHP) is returned.\n */\n useCallbackInCaseOfError(): void {\n this.useRegularCallbackInCaseOfError = true;\n }\n\n /**\n * Set callback to redirect on success handler\n * &update=1(+x) will be appended to the current url\n *\n * @param [params] to modify in redirect url\n * @return {void}\n */\n redirectOnSuccess(params: Parameters): void {\n this.setCallback(() => {\n piwikHelper.redirect(params);\n });\n }\n\n /**\n * Sets the callback called in case of an error within the request\n *\n * @deprecated use the jquery promise API\n */\n setErrorCallback(callback: AnyFunction): void {\n this.errorCallback = callback;\n }\n\n /**\n * Sets the complete callback which is called after an error or success callback.\n *\n * @deprecated use the jquery promise API\n */\n setCompleteCallback(callback: AnyFunction): void {\n this.completeCallback = callback;\n }\n\n /**\n * Sets the response format for the request\n *\n * @param format response format (e.g. json, html, ...)\n */\n setFormat(format: string): void {\n this.format = format;\n }\n\n /**\n * Set the div element to show while request is loading\n *\n * @param [element] selector for the loading element\n */\n setLoadingElement(element: string|HTMLElement|JQuery): void {\n this.loadingElement = element || '#ajaxLoadingDiv';\n }\n\n /**\n * Set the div element to show on error\n *\n * @param element selector for the error element\n */\n setErrorElement(element: HTMLElement|JQuery|string): void {\n if (!element) {\n return;\n }\n this.errorElement = element;\n }\n\n /**\n * Detect whether are allowed to use the given default parameter or not\n */\n private useGETDefaultParameter(parameter: string): boolean {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n /**\n * Removes a default parameter that is usually send automatically along the request.\n *\n * @param parameter A name such as \"period\", \"date\", \"segment\".\n */\n removeDefaultParameter(parameter: string): void {\n if (parameter && this.defaultParams) {\n for (let i = 0; i < this.defaultParams.length; i += 1) {\n if (this.defaultParams[i] === parameter) {\n this.defaultParams.splice(i, 1);\n }\n }\n }\n }\n\n /**\n * Send the request\n */\n send(): JQuery.jqXHR {\n if ($(this.errorElement).length) {\n $(this.errorElement).hide();\n }\n\n if (this.loadingElement) {\n $(this.loadingElement).fadeIn();\n }\n\n this.requestHandle = this.buildAjaxCall();\n globalAjaxQueue.push(this.requestHandle);\n\n return this.requestHandle;\n }\n\n /**\n * Aborts the current request if it is (still) running\n */\n abort(): void {\n if (this.requestHandle && typeof this.requestHandle.abort === 'function') {\n this.requestHandle.abort();\n this.requestHandle = null;\n }\n }\n\n /**\n * Builds and sends the ajax requests\n */\n private buildAjaxCall(): JQuery.jqXHR {\n const self = this;\n const parameters = this.mixinDefaultGetParams(this.getParams);\n\n let url = this.getUrl;\n if (url[url.length - 1] !== '?') {\n url += '&';\n }\n\n // we took care of encoding &segment properly already, so we don't use $.param for it ($.param\n // URL encodes the values)\n if (parameters.segment) {\n url = `${url}segment=${parameters.segment}&`;\n delete parameters.segment;\n }\n if (parameters.date) {\n url = `${url}date=${decodeURIComponent(parameters.date.toString())}&`;\n delete parameters.date;\n }\n url += $.param(parameters);\n const ajaxCall = {\n type: 'POST',\n async: true,\n url,\n dataType: this.format || 'json',\n complete: this.completeCallback,\n error: function errorCallback() {\n globalAjaxQueue.active -= 1;\n\n if (self.errorCallback) {\n self.errorCallback.apply(this, arguments); // eslint-disable-line\n }\n },\n success: (response, status, request) => {\n if (this.loadingElement) {\n $(this.loadingElement).hide();\n }\n\n if (response && response.result === 'error' && !this.useRegularCallbackInCaseOfError) {\n let placeAt = null;\n let type = 'toast';\n if ($(this.errorElement).length && response.message) {\n $(this.errorElement).show();\n placeAt = this.errorElement;\n type = null;\n }\n\n if (response.message) {\n const UI = window['require']('piwik/UI'); // eslint-disable-line\n const notification = new UI.Notification();\n notification.show(response.message, {\n placeat: placeAt,\n context: 'error',\n type,\n id: 'ajaxHelper',\n });\n notification.scrollToNotification();\n }\n } else if (this.callback) {\n this.callback(response, status, request);\n }\n\n globalAjaxQueue.active -= 1;\n if (Matomo.ajaxRequestFinished) {\n Matomo.ajaxRequestFinished();\n }\n },\n data: this.mixinDefaultPostParams(this.postParams),\n timeout: this.timeout !== null ? this.timeout : undefined,\n };\n\n return $.ajax(ajaxCall);\n }\n\n private isRequestToApiMethod() {\n return (this.getParams && this.getParams.module === 'API' && this.getParams.method)\n || (this.postParams && this.postParams.module === 'API' && this.postParams.method);\n }\n\n isWidgetizedRequest(): boolean {\n return (broadcast.getValueFromUrl('module') === 'Widgetize');\n }\n\n private getDefaultPostParams() {\n if (this.withToken || this.isRequestToApiMethod() || Matomo.shouldPropagateTokenAuth) {\n return {\n token_auth: Matomo.token_auth,\n // When viewing a widgetized report there won't be any session that can be used, so don't\n // force session usage\n force_api_session: broadcast.isWidgetizeRequestWithoutSession() ? 0 : 1,\n };\n }\n\n return {};\n }\n\n /**\n * Mixin the default parameters to send as POST\n *\n * @param params parameter object\n */\n private mixinDefaultPostParams(params): Parameters {\n const defaultParams = this.getDefaultPostParams();\n\n const mergedParams = {\n ...defaultParams,\n ...params,\n };\n\n return mergedParams;\n }\n\n /**\n * Mixin the default parameters to send as GET\n *\n * @param params parameter object\n */\n private mixinDefaultGetParams(originalParams): Parameters {\n const segment = MatomoUrl.getSearchParam('segment');\n\n const defaultParams = {\n idSite: Matomo.idSite || broadcast.getValueFromUrl('idSite'),\n period: Matomo.period || broadcast.getValueFromUrl('period'),\n segment,\n };\n\n const params = originalParams;\n\n // never append token_auth to url\n if (params.token_auth) {\n params.token_auth = null;\n delete params.token_auth;\n }\n\n Object.keys(defaultParams).forEach((key) => {\n if (this.useGETDefaultParameter(key)\n && !params[key]\n && !this.postParams[key]\n && defaultParams[key]\n ) {\n params[key] = defaultParams[key];\n }\n });\n\n // handle default date & period if not already set\n if (this.useGETDefaultParameter('date') && !params.date && !this.postParams.date) {\n params.date = Matomo.currentDateString;\n }\n\n return params;\n }\n}\n","import AjaxHelper from './AjaxHelper';\n\ndeclare global {\n interface Window {\n ajaxHelper: AjaxHelper;\n }\n}\n\nwindow.ajaxHelper = AjaxHelper;\n\nfunction ajaxQueue() {\n return globalAjaxQueue;\n}\n\nangular.module('piwikApp.service').service('globalAjaxQueue', ajaxQueue);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/**\n * Similar to angulars $location but works around some limitation. Use it if you need to access\n * search params\n */\nconst PiwikUrl = {\n getSearchParam(paramName: string): string {\n const hash = window.location.href.split('#');\n\n const regex = new RegExp(`${paramName}(\\\\[]|=)`);\n if (hash && hash[1] && regex.test(decodeURIComponent(hash[1]))) {\n const valueFromHash = window.broadcast.getValueFromHash(paramName, window.location.href);\n\n // for date, period and idsite fall back to parameter from url, if non in hash was provided\n if (valueFromHash\n || (paramName !== 'date' && paramName !== 'period' && paramName !== 'idSite')\n ) {\n return valueFromHash;\n }\n }\n\n return window.broadcast.getValueFromUrl(paramName, window.location.search);\n },\n};\n\nexport default PiwikUrl;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\nimport PiwikUrl from './PiwikUrl';\n\nfunction piwikUrl() {\n const model = {\n getSearchParam: PiwikUrl.getSearchParam.bind(PiwikUrl),\n };\n\n return model;\n}\n\npiwikUrl.$inject = [];\n\nangular.module('piwikApp.service').service('piwikUrl', piwikUrl);\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport PiwikUrl from '../PiwikUrl/PiwikUrl';\nimport Periods from '../Periods/Periods';\nimport { format } from '../Periods/utilities';\n\nlet originalTitle: string;\n\nconst { piwik, broadcast, piwikHelper } = window;\n\npiwik.helper = piwikHelper;\npiwik.broadcast = broadcast;\n\nfunction isValidPeriod(periodStr: string, dateStr: string) {\n try {\n Periods.parse(periodStr, dateStr);\n return true;\n } catch (e) {\n return false;\n }\n}\n\npiwik.updatePeriodParamsFromUrl = function updatePeriodParamsFromUrl() {\n let date = PiwikUrl.getSearchParam('date');\n const period = PiwikUrl.getSearchParam('period');\n if (!isValidPeriod(period, date)) {\n // invalid data in URL\n return;\n }\n\n if (piwik.period === period && piwik.currentDateString === date) {\n // this period / date is already loaded\n return;\n }\n\n piwik.period = period;\n\n const dateRange = Periods.parse(period, date).getDateRange();\n piwik.startDateString = format(dateRange[0]);\n piwik.endDateString = format(dateRange[1]);\n\n piwik.updateDateInTitle(date, period);\n\n // do not set anything to previousN/lastN, as it's more useful to plugins\n // to have the dates than previousN/lastN.\n if (piwik.period === 'range') {\n date = `${piwik.startDateString},${piwik.endDateString}`;\n }\n\n piwik.currentDateString = date;\n};\n\npiwik.updateDateInTitle = function updateDateInTitle(date: string, period: string) {\n if (!$('.top_controls #periodString').length) {\n return;\n }\n\n // Cache server-rendered page title\n originalTitle = originalTitle || document.title;\n\n if (originalTitle.indexOf(piwik.siteName) === 0) {\n const dateString = ` - ${Periods.parse(period, date).getPrettyString()} `;\n document.title = `${piwik.siteName}${dateString}${originalTitle.substr(piwik.siteName.length)}`;\n }\n};\n\npiwik.hasUserCapability = function hasUserCapability(capability: string) {\n return window.angular.isArray(piwik.userCapabilities)\n && piwik.userCapabilities.indexOf(capability) !== -1;\n};\n\nconst Piwik = piwik;\nexport default Piwik;\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Piwik from './Piwik';\n\nfunction piwikService() {\n return Piwik;\n}\n\nangular.module('piwikApp.service').service('piwik', piwikService);\n\nfunction initPiwikService(piwik, $rootScope) {\n $rootScope.$on('$locationChangeSuccess', piwik.updatePeriodParamsFromUrl);\n}\n\ninitPiwikService.$inject = ['piwik', '$rootScope'];\n\nangular.module('piwikApp.service').run(initPiwikService);\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n<template>\n <div v-show=\"modelValue\" ref=\"root\">\n <slot></slot>\n </div>\n</template>\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n modelValue: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close', 'update:modelValue'],\n setup() {\n const root = ref(null);\n\n return {\n root,\n };\n },\n activated() {\n this.$emit('update:modelValue', false);\n },\n watch: {\n modelValue(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$refs.root.firstElementChild;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => {\n // materialize removes the child element, so we move it back to the slot\n if (!this.element) {\n this.$refs.root.appendChild(slotElement);\n }\n this.$emit('update:modelValue', false);\n this.$emit('closeEnd');\n },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n</script>\n","\nimport { defineComponent, ref } from 'vue';\nimport Matomo from '../Matomo/Matomo';\n\nexport default defineComponent({\n props: {\n /**\n * Whether the modal is displayed or not;\n */\n modelValue: {\n type: Boolean,\n required: true,\n },\n\n /**\n * Only here for backwards compatibility w/ AngularJS. If supplied, we use this\n * element to launch the modal instead of the element in the slot. This should not\n * be used for new Vue code.\n *\n * @deprecated\n */\n element: {\n type: HTMLElement,\n required: false,\n },\n },\n emits: ['yes', 'no', 'closeEnd', 'close', 'update:modelValue'],\n setup() {\n const root = ref(null);\n\n return {\n root,\n };\n },\n activated() {\n this.$emit('update:modelValue', false);\n },\n watch: {\n modelValue(newValue, oldValue) {\n if (newValue) {\n const slotElement = this.element || this.$refs.root.firstElementChild;\n Matomo.helper.modalConfirm(slotElement, {\n yes: () => { this.$emit('yes'); },\n no: () => { this.$emit('no'); },\n }, {\n onCloseEnd: () => {\n // materialize removes the child element, so we move it back to the slot\n if (!this.element) {\n this.$refs.root.appendChild(slotElement);\n }\n this.$emit('update:modelValue', false);\n this.$emit('closeEnd');\n },\n });\n } else if (newValue === false && oldValue === true) {\n // the user closed the dialog, e.g. by pressing Esc or clicking away from it\n this.$emit('close');\n }\n },\n },\n});\n","import { render } from \"./MatomoDialog.vue?vue&type=template&id=50fda6d8\"\nimport script from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nexport * from \"./MatomoDialog.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport {\n createApp,\n defineComponent,\n ref,\n ComponentPublicInstance,\n} from 'vue';\nimport translate from './translate';\n\ninterface SingleScopeVarInfo {\n vue?: string;\n default?: any; // eslint-disable-line\n angularJsBind?: string;\n}\n\ntype ScopeMapping = { [scopeVarName: string]: SingleScopeVarInfo };\n\ntype AdapterFunction<InjectTypes, R = void> = (\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype EventAdapterFunction<InjectTypes, R = void> = (\n $event: any, // eslint-disable-line\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype PostCreateFunction<InjectTypes, R = void> = (\n vm: ComponentPublicInstance,\n scope: ng.IScope,\n element: ng.IAugmentedJQuery,\n attrs: ng.IAttributes,\n ...injected: InjectTypes,\n) => R;\n\ntype EventMapping<InjectTypes> = { [vueEventName: string]: EventAdapterFunction<InjectTypes> };\n\ntype ComponentType = ReturnType<typeof defineComponent>;\n\nlet transcludeCounter = 0;\n\nexport default function createAngularJsAdapter<InjectTypes = []>(options: {\n component: ComponentType,\n scope?: ScopeMapping,\n directiveName: string,\n events?: EventMapping<InjectTypes>,\n $inject?: string[],\n transclude?: boolean,\n mountPointFactory?: AdapterFunction<InjectTypes, HTMLElement>,\n postCreate?: PostCreateFunction<InjectTypes>,\n noScope?: boolean,\n}): ng.IDirectiveFactory {\n const {\n component,\n scope = {},\n events = {},\n $inject,\n directiveName,\n transclude,\n mountPointFactory,\n postCreate,\n noScope,\n } = options;\n\n const currentTranscludeCounter = transcludeCounter;\n if (transclude) {\n transcludeCounter += 1;\n }\n\n const angularJsScope = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (!info.vue) {\n info.vue = scopeVarName;\n }\n if (info.angularJsBind) {\n angularJsScope[scopeVarName] = info.angularJsBind;\n }\n });\n\n function angularJsAdapter(...injectedServices: InjectTypes) {\n const adapter: ng.IDirective = {\n restrict: 'A',\n scope: noScope ? undefined : angularJsScope,\n compile: function angularJsAdapterCompile() {\n return {\n post: function angularJsAdapterLink(\n ngScope: ng.IScope,\n ngElement: ng.IAugmentedJQuery,\n ngAttrs: ng.IAttributes,\n ) {\n const clone = transclude ? ngElement.find(`[ng-transclude][counter=${currentTranscludeCounter}]`) : null;\n\n let rootVueTemplate = '<root-component';\n Object.entries(scope).forEach(([, info]) => {\n rootVueTemplate += ` :${info.vue}=\"${info.vue}\"`;\n });\n Object.entries(events).forEach((info) => {\n const [eventName] = info;\n rootVueTemplate += ` @${eventName}=\"onEventHandler('${eventName}', $event)\"`;\n });\n rootVueTemplate += '>';\n if (transclude) {\n rootVueTemplate += '<div ref=\"transcludeTarget\"/>';\n }\n rootVueTemplate += '</root-component>';\n const app = createApp({\n template: rootVueTemplate,\n data() {\n const initialData = {};\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n let value = ngScope[scopeVarName];\n if (typeof value === 'undefined' && typeof info.default !== 'undefined') {\n value = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n }\n initialData[info.vue] = value;\n });\n return initialData;\n },\n setup() {\n if (transclude) {\n const transcludeTarget = ref(null);\n return {\n transcludeTarget,\n };\n }\n\n return undefined;\n },\n methods: {\n onEventHandler(name: string, $event: any) { // eslint-disable-line\n if (events[name]) {\n events[name]($event, ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n },\n });\n app.config.globalProperties.$sanitize = window.vueSanitize;\n app.config.globalProperties.translate = translate;\n app.component('root-component', component);\n\n const mountPoint = mountPointFactory\n ? mountPointFactory(ngScope, ngElement, ngAttrs, ...injectedServices)\n : ngElement[0];\n const vm = app.mount(mountPoint);\n\n Object.entries(scope).forEach(([scopeVarName, info]) => {\n if (!info.angularJsBind) {\n return;\n }\n\n ngScope.$watch(scopeVarName, (newValue: any) => { // eslint-disable-line\n if (typeof info.default !== 'undefined' && typeof newValue === 'undefined') {\n vm[scopeVarName] = info.default instanceof Function\n ? info.default(ngScope, ngElement, ngAttrs, ...injectedServices)\n : info.default;\n } else {\n vm[scopeVarName] = newValue;\n }\n });\n });\n\n if (transclude) {\n $(vm.transcludeTarget).append(clone);\n }\n\n if (postCreate) {\n postCreate(vm, ngScope, ngElement, ngAttrs, ...injectedServices);\n }\n },\n };\n },\n };\n\n if (transclude) {\n adapter.transclude = true;\n adapter.template = `<div ng-transclude counter=\"${currentTranscludeCounter}\"/>`;\n }\n\n return adapter;\n }\n\n angularJsAdapter.$inject = $inject || [];\n\n angular.module('piwikApp').directive(directiveName, angularJsAdapter);\n\n return angularJsAdapter;\n}\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport { IParseService } from 'angular';\nimport { ComponentPublicInstance } from 'vue';\nimport MatomoDialog from './MatomoDialog.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter<[IParseService]>({\n component: MatomoDialog,\n scope: {\n show: {\n vue: 'modelValue',\n default: false,\n },\n element: {\n default: (scope, element) => element[0],\n },\n },\n events: {\n yes: ($event, scope, element, attrs) => {\n if (attrs.yes) {\n scope.$eval(attrs.yes);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n no: ($event, scope, element, attrs) => {\n if (attrs.no) {\n scope.$eval(attrs.no);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n close: ($event, scope, element, attrs) => {\n if (attrs.close) {\n scope.$eval(attrs.close);\n setTimeout(() => { scope.$apply(); }, 0);\n }\n },\n 'update:modelValue': (newValue, scope, element, attrs, $parse: IParseService) => {\n setTimeout(() => {\n scope.$apply($parse(attrs.piwikDialog).assign(scope, newValue));\n }, 0);\n },\n },\n $inject: ['$parse'],\n directiveName: 'piwikDialog',\n transclude: true,\n mountPointFactory: (scope, element) => {\n const vueRootPlaceholder = $('<div class=\"vue-placeholder\"/>');\n vueRootPlaceholder.appendTo(element);\n return vueRootPlaceholder[0];\n },\n postCreate: (vm: ComponentPublicInstance, scope, element, attrs) => {\n scope.$watch(attrs.piwikDialog, (newValue: boolean, oldValue: boolean) => {\n if (oldValue !== newValue) {\n vm.modelValue = newValue || false;\n }\n });\n },\n noScope: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n class=\"enrichedHeadline\"\n v-on:mouseenter=\"showIcons = true\"\n v-on:mouseleave=\"showIcons = false\"\n ref=\"root\"\n >\n <div\n v-if=\"!editUrl\"\n class=\"title\"\n tabindex=\"6\"\n >\n <slot />\n </div>\n <a\n v-if=\"editUrl\"\n class=\"title\"\n :href=\"editUrl\"\n :title=\"translate('CoreHome_ClickToEditX', $sanitize(actualFeatureName))\"\n >\n <slot />\n </a>\n <span\n v-show=\"showIcons || showInlineHelp\"\n class=\"iconsBar\"\n >\n <a\n v-if=\"helpUrl && !actualInlineHelp\"\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"helpIcon\"\n :href=\"helpUrl\"\n :title=\"translate('CoreHome_ExternalHelp')\"\n ><span class=\"icon-help\" /></a>\n <a\n v-if=\"actualInlineHelp\"\n v-on:click=\"showInlineHelp = !showInlineHelp\"\n class=\"helpIcon\"\n :class=\"{ 'active': showInlineHelp }\"\n :title=\"translate(reportGenerated ? 'General_HelpReport' : 'General_Help')\"\n ><span class=\"icon-info\" /></a>\n <div class=\"ratingIcons\">\n <RateFeature\n :title=\"actualFeatureName\"\n />\n </div>\n </span>\n <div\n class=\"inlineHelp\"\n v-show=\"showInlineHelp\"\n >\n <div v-html=\"$sanitize(actualInlineHelp)\"/>\n <a\n v-if=\"helpUrl\"\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"readMore\"\n :href=\"helpUrl\"\n >{{ translate('General_MoreDetails') }}</a>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport {\n defineComponent,\n defineAsyncComponent,\n ref,\n} from 'vue';\nimport Matomo from '../Matomo/Matomo';\nimport Periods from '../Periods/Periods';\n\n// working around a cycle in dependencies (CoreHome depends on Feedback, Feedback depends on\n// CoreHome)\n// TODO: may need a generic solution at some point, but it's bad practice to have\n// cyclic dependencies like this. it worked before because it was individual files\n// dependening on each other, not whole plugins.\nconst RateFeature = defineAsyncComponent(() => new Promise((resolve) => {\n window.$(document).ready(() => {\n resolve((window as any).Feedback.RateFeature); // eslint-disable-line\n });\n}));\n\n/**\n * Usage:\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard</h2>\n * -> uses \"All Websites Dashboard\" as featurename\n *\n * <h2 piwik-enriched-headline feature-name=\"All Websites Dashboard\">All Websites Dashboard (Total:\n * 309 Visits)</h2>\n * -> custom featurename\n *\n * <h2 piwik-enriched-headline help-url=\"http://piwik.org/guide\">All Websites Dashboard</h2>\n * -> shows help icon and links to external url\n *\n * <h2 piwik-enriched-headline edit-url=\"index.php?module=Foo&action=bar&id=4\">All Websites\n * Dashboard</h2>\n * -> makes the headline clickable linking to the specified url\n *\n * <h2 piwik-enriched-headline inline-help=\"inlineHelp\">Pages report</h2>\n * -> inlineHelp specified via a attribute shows help icon on headline hover\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard\n * <div class=\"inlineHelp\">My <strong>inline help</strong></div>\n * </h2>\n * -> alternative definition for inline help\n * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url\n *\n * * <h2 piwik-enriched-headline report-generated=\"generated time\">Pages report</h2>\n * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which\n * activated by hover\n * -> the tooltip shows the value of the attribute\n */\nexport default defineComponent({\n props: {\n helpUrl: {\n type: String,\n default: '',\n },\n editUrl: {\n type: String,\n default: '',\n },\n reportGenerated: String,\n featureName: String,\n inlineHelp: String,\n },\n components: {\n RateFeature,\n },\n data() {\n return {\n showIcons: false,\n showInlineHelp: false,\n actualFeatureName: this.featureName,\n actualInlineHelp: this.inlineHelp,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n\n return {\n root,\n };\n },\n watch: {\n inlineHelp(newValue: string) {\n this.actualInlineHelp = newValue;\n },\n featureName(newValue: string) {\n this.actualFeatureName = newValue;\n },\n },\n mounted() {\n const { root } = this.$refs;\n\n if (!this.actualInlineHelp) {\n let helpNode = root.querySelector('.title .inlineHelp');\n if (!helpNode && root.parentElement.nextElementSibling) {\n // hack for reports :(\n helpNode = (root.parentElement.nextElementSibling as HTMLElement)\n .querySelector('.reportDocumentation');\n }\n\n if (helpNode) {\n // hackish solution to get binded html of p tag within the help node\n // at this point the ng-bind-html is not yet converted into html when report is not\n // initially loaded. Using $compile doesn't work. So get and set it manually\n const helpDocs = helpNode.getAttribute('data-content').trim();\n if (helpDocs.length) {\n this.actualInlineHelp = `<p>${helpDocs}</p>`;\n setTimeout(() => helpNode.remove(), 0);\n }\n }\n }\n\n if (!this.actualFeatureName) {\n this.actualFeatureName = root.querySelector('.title').textContent;\n }\n\n if (this.reportGenerated\n && Periods.parse(Matomo.period, Matomo.currentDateString).containsToday()\n ) {\n window.$(root.querySelector('.report-generated')).tooltip({\n track: true,\n content: this.reportGenerated,\n items: 'div',\n show: false,\n hide: false,\n });\n }\n },\n});\n</script>\n","\nimport {\n defineComponent,\n defineAsyncComponent,\n ref,\n} from 'vue';\nimport Matomo from '../Matomo/Matomo';\nimport Periods from '../Periods/Periods';\n\n// working around a cycle in dependencies (CoreHome depends on Feedback, Feedback depends on\n// CoreHome)\n// TODO: may need a generic solution at some point, but it's bad practice to have\n// cyclic dependencies like this. it worked before because it was individual files\n// dependening on each other, not whole plugins.\nconst RateFeature = defineAsyncComponent(() => new Promise((resolve) => {\n window.$(document).ready(() => {\n resolve((window as any).Feedback.RateFeature); // eslint-disable-line\n });\n}));\n\n/**\n * Usage:\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard</h2>\n * -> uses \"All Websites Dashboard\" as featurename\n *\n * <h2 piwik-enriched-headline feature-name=\"All Websites Dashboard\">All Websites Dashboard (Total:\n * 309 Visits)</h2>\n * -> custom featurename\n *\n * <h2 piwik-enriched-headline help-url=\"http://piwik.org/guide\">All Websites Dashboard</h2>\n * -> shows help icon and links to external url\n *\n * <h2 piwik-enriched-headline edit-url=\"index.php?module=Foo&action=bar&id=4\">All Websites\n * Dashboard</h2>\n * -> makes the headline clickable linking to the specified url\n *\n * <h2 piwik-enriched-headline inline-help=\"inlineHelp\">Pages report</h2>\n * -> inlineHelp specified via a attribute shows help icon on headline hover\n *\n * <h2 piwik-enriched-headline>All Websites Dashboard\n * <div class=\"inlineHelp\">My <strong>inline help</strong></div>\n * </h2>\n * -> alternative definition for inline help\n * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url\n *\n * * <h2 piwik-enriched-headline report-generated=\"generated time\">Pages report</h2>\n * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which\n * activated by hover\n * -> the tooltip shows the value of the attribute\n */\nexport default defineComponent({\n props: {\n helpUrl: {\n type: String,\n default: '',\n },\n editUrl: {\n type: String,\n default: '',\n },\n reportGenerated: String,\n featureName: String,\n inlineHelp: String,\n },\n components: {\n RateFeature,\n },\n data() {\n return {\n showIcons: false,\n showInlineHelp: false,\n actualFeatureName: this.featureName,\n actualInlineHelp: this.inlineHelp,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n\n return {\n root,\n };\n },\n watch: {\n inlineHelp(newValue: string) {\n this.actualInlineHelp = newValue;\n },\n featureName(newValue: string) {\n this.actualFeatureName = newValue;\n },\n },\n mounted() {\n const { root } = this.$refs;\n\n if (!this.actualInlineHelp) {\n let helpNode = root.querySelector('.title .inlineHelp');\n if (!helpNode && root.parentElement.nextElementSibling) {\n // hack for reports :(\n helpNode = (root.parentElement.nextElementSibling as HTMLElement)\n .querySelector('.reportDocumentation');\n }\n\n if (helpNode) {\n // hackish solution to get binded html of p tag within the help node\n // at this point the ng-bind-html is not yet converted into html when report is not\n // initially loaded. Using $compile doesn't work. So get and set it manually\n const helpDocs = helpNode.getAttribute('data-content').trim();\n if (helpDocs.length) {\n this.actualInlineHelp = `<p>${helpDocs}</p>`;\n setTimeout(() => helpNode.remove(), 0);\n }\n }\n }\n\n if (!this.actualFeatureName) {\n this.actualFeatureName = root.querySelector('.title').textContent;\n }\n\n if (this.reportGenerated\n && Periods.parse(Matomo.period, Matomo.currentDateString).containsToday()\n ) {\n window.$(root.querySelector('.report-generated')).tooltip({\n track: true,\n content: this.reportGenerated,\n items: 'div',\n show: false,\n hide: false,\n });\n }\n },\n});\n","import { render } from \"./EnrichedHeadline.vue?vue&type=template&id=678de864\"\nimport script from \"./EnrichedHeadline.vue?vue&type=script&lang=ts\"\nexport * from \"./EnrichedHeadline.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport createAngularJsAdapter from '../createAngularJsAdapter';\nimport EnrichedHeadline from './EnrichedHeadline.vue';\n\nexport default createAngularJsAdapter({\n component: EnrichedHeadline,\n scope: {\n helpUrl: {\n angularJsBind: '@',\n },\n editUrl: {\n angularJsBind: '@',\n },\n reportGenerated: {\n angularJsBind: '@?',\n },\n featureName: {\n angularJsBind: '@',\n },\n inlineHelp: {\n angularJsBind: '@?',\n },\n },\n directiveName: 'piwikEnrichedHeadline',\n transclude: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div class=\"card\" ref=\"root\">\n <div class=\"card-content\">\n <h2\n v-if=\"contentTitle && !actualFeature && !helpUrl && !actualHelpText\"\n class=\"card-title\"\n >{{ contentTitle }}</h2>\n <h2\n v-if=\"contentTitle && (actualFeature || helpUrl || actualHelpText)\"\n class=\"card-title\"\n >\n <EnrichedHeadline\n :feature-name=\"actualFeature\"\n :help-url=\"helpUrl\"\n :inline-help=\"actualHelpText\"\n >\n {{ contentTitle }}\n </EnrichedHeadline>\n </h2>\n <div ref=\"content\">\n <slot />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref } from 'vue';\nimport EnrichedHeadline from '../EnrichedHeadline/EnrichedHeadline.vue';\n\nlet adminContent: HTMLElement|null = null;\n\nexport default defineComponent({\n props: {\n contentTitle: String,\n feature: String,\n helpUrl: String,\n helpText: String,\n anchor: String,\n },\n components: {\n EnrichedHeadline,\n },\n data() {\n return {\n actualFeature: this.feature,\n actualHelpText: this.helpText,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n const content = ref<HTMLElement>(null);\n\n return {\n root,\n content,\n };\n },\n watch: {\n feature(newValue: string) {\n this.actualFeature = newValue;\n },\n helpText(newValue: string) {\n this.actualHelpText = newValue;\n },\n },\n mounted() {\n const { root, content } = this.$refs;\n\n if (this.anchor) {\n const anchorElement = document.createElement('a');\n anchorElement.id = this.anchor;\n root.parentElement.prepend(anchorElement);\n }\n\n setTimeout(() => {\n const inlineHelp = content.querySelector('.contentHelp');\n if (inlineHelp) {\n this.actualHelpText = inlineHelp.innerHTML;\n inlineHelp.remove();\n }\n }, 0);\n\n if (this.actualFeature && (this.actualFeature === true || this.actualFeature === 'true')) {\n this.actualFeature = this.contentTitle;\n }\n\n if (adminContent === null) {\n // cache admin node for further content blocks\n adminContent = document.querySelector('#content.admin');\n }\n\n let contentTopPosition: number;\n if (adminContent) {\n contentTopPosition = adminContent.offsetTop;\n }\n\n if (contentTopPosition || contentTopPosition === 0) {\n const parents = root.closest('[piwik-widget-loader]');\n\n // when shown within the widget loader, we need to get the offset of that element\n // as the widget loader might be still shown. Would otherwise not position correctly\n // the widgets on the admin home page\n const topThis = parents ? parents.offsetTop : root.offsetTop;\n\n if (topThis - contentTopPosition < 17) {\n // we make sure to display the first card with no margin-top to have it on same as line as\n // navigation\n root.style.marginTop = 0;\n }\n }\n },\n});\n</script>\n","\nimport { defineComponent, ref } from 'vue';\nimport EnrichedHeadline from '../EnrichedHeadline/EnrichedHeadline.vue';\n\nlet adminContent: HTMLElement|null = null;\n\nexport default defineComponent({\n props: {\n contentTitle: String,\n feature: String,\n helpUrl: String,\n helpText: String,\n anchor: String,\n },\n components: {\n EnrichedHeadline,\n },\n data() {\n return {\n actualFeature: this.feature,\n actualHelpText: this.helpText,\n };\n },\n setup() {\n const root = ref<HTMLElement>(null);\n const content = ref<HTMLElement>(null);\n\n return {\n root,\n content,\n };\n },\n watch: {\n feature(newValue: string) {\n this.actualFeature = newValue;\n },\n helpText(newValue: string) {\n this.actualHelpText = newValue;\n },\n },\n mounted() {\n const { root, content } = this.$refs;\n\n if (this.anchor) {\n const anchorElement = document.createElement('a');\n anchorElement.id = this.anchor;\n root.parentElement.prepend(anchorElement);\n }\n\n setTimeout(() => {\n const inlineHelp = content.querySelector('.contentHelp');\n if (inlineHelp) {\n this.actualHelpText = inlineHelp.innerHTML;\n inlineHelp.remove();\n }\n }, 0);\n\n if (this.actualFeature && (this.actualFeature === true || this.actualFeature === 'true')) {\n this.actualFeature = this.contentTitle;\n }\n\n if (adminContent === null) {\n // cache admin node for further content blocks\n adminContent = document.querySelector('#content.admin');\n }\n\n let contentTopPosition: number;\n if (adminContent) {\n contentTopPosition = adminContent.offsetTop;\n }\n\n if (contentTopPosition || contentTopPosition === 0) {\n const parents = root.closest('[piwik-widget-loader]');\n\n // when shown within the widget loader, we need to get the offset of that element\n // as the widget loader might be still shown. Would otherwise not position correctly\n // the widgets on the admin home page\n const topThis = parents ? parents.offsetTop : root.offsetTop;\n\n if (topThis - contentTopPosition < 17) {\n // we make sure to display the first card with no margin-top to have it on same as line as\n // navigation\n root.style.marginTop = 0;\n }\n }\n },\n});\n","import { render } from \"./ContentBlock.vue?vue&type=template&id=5f6844c4\"\nimport script from \"./ContentBlock.vue?vue&type=script&lang=ts\"\nexport * from \"./ContentBlock.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport createAngularJsAdapter from '../createAngularJsAdapter';\nimport ContentBlock from './ContentBlock.vue';\n\nexport default createAngularJsAdapter({\n component: ContentBlock,\n scope: {\n contentTitle: {\n angularJsBind: '@',\n },\n feature: {\n angularJsBind: '@',\n },\n helpUrl: {\n angularJsBind: '@',\n },\n helpText: {\n angularJsBind: '@',\n },\n anchor: {\n angularJsBind: '@?',\n },\n },\n directiveName: 'piwikContentBlock',\n transclude: true,\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div v-show=\"loading\" class=\"loadingPiwik\">\n <img src=\"plugins/Morpheus/images/loading-blue.gif\" alt=\"\"/>\n <span>{{ loadingMessage }}</span>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport translate from '../translate';\n\nexport default defineComponent({\n props: {\n loading: {\n type: Boolean,\n required: true,\n default: false,\n },\n loadingMessage: {\n type: String,\n required: false,\n default: translate('General_LoadingData'),\n },\n },\n});\n","import { render } from \"./ActivityIndicator.vue?vue&type=template&id=6af4d064\"\nimport script from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nexport * from \"./ActivityIndicator.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport ActivityIndicator from './ActivityIndicator.vue';\nimport translate from '../translate';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: ActivityIndicator,\n scope: {\n loading: {\n vue: 'loading',\n angularJsBind: '<',\n },\n loadingMessage: {\n vue: 'loadingMessage',\n angularJsBind: '<',\n default: () => translate('General_LoadingData'),\n },\n },\n $inject: [],\n directiveName: 'piwikActivityIndicator',\n});\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n class=\"alert\"\n :class=\"{ [`alert-${severity}`]: true }\"\n >\n <slot></slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({\n props: {\n severity: {\n type: String,\n required: true,\n },\n },\n});\n","import { render } from \"./Alert.vue?vue&type=template&id=c3863ae2\"\nimport script from \"./Alert.vue?vue&type=script&lang=ts\"\nexport * from \"./Alert.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport Alert from './Alert.vue';\nimport createAngularJsAdapter from '../createAngularJsAdapter';\n\nexport default createAngularJsAdapter({\n component: Alert,\n scope: {\n severity: {\n vue: 'severity',\n angularJsBind: '@piwikAlert',\n },\n },\n directiveName: 'piwikAlert',\n transclude: true,\n});\n"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts b/plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts index c4e61b2ad5..15088322d7 100644 --- a/plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts +++ b/plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts @@ -143,6 +143,14 @@ export default class AjaxHelper { defaultParams = ['idSite', 'period', 'date', 'segment']; + // helper method entry point + static fetch(params: Parameters): JQuery.jqXHR { + const helper = new AjaxHelper(); + helper.setFormat('json'); + helper.addParams(params, 'get'); + return helper.send(); + } + constructor() { this.errorCallback = defaultErrorCallback; } diff --git a/plugins/CoreHome/vue/src/ContentBlock/ContentBlock.adapter.ts b/plugins/CoreHome/vue/src/ContentBlock/ContentBlock.adapter.ts new file mode 100644 index 0000000000..8bdbf2e300 --- /dev/null +++ b/plugins/CoreHome/vue/src/ContentBlock/ContentBlock.adapter.ts @@ -0,0 +1,32 @@ +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +import createAngularJsAdapter from '../createAngularJsAdapter'; +import ContentBlock from './ContentBlock.vue'; + +export default createAngularJsAdapter({ + component: ContentBlock, + scope: { + contentTitle: { + angularJsBind: '@', + }, + feature: { + angularJsBind: '@', + }, + helpUrl: { + angularJsBind: '@', + }, + helpText: { + angularJsBind: '@', + }, + anchor: { + angularJsBind: '@?', + }, + }, + directiveName: 'piwikContentBlock', + transclude: true, +}); diff --git a/plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue b/plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue new file mode 100644 index 0000000000..47774a4f39 --- /dev/null +++ b/plugins/CoreHome/vue/src/ContentBlock/ContentBlock.vue @@ -0,0 +1,120 @@ +<!-- + Matomo - free/libre analytics platform + @link https://matomo.org + @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later +--> + +<template> + <div class="card" ref="root"> + <div class="card-content"> + <h2 + v-if="contentTitle && !actualFeature && !helpUrl && !actualHelpText" + class="card-title" + >{{ contentTitle }}</h2> + <h2 + v-if="contentTitle && (actualFeature || helpUrl || actualHelpText)" + class="card-title" + > + <EnrichedHeadline + :feature-name="actualFeature" + :help-url="helpUrl" + :inline-help="actualHelpText" + > + {{ contentTitle }} + </EnrichedHeadline> + </h2> + <div ref="content"> + <slot /> + </div> + </div> + </div> +</template> + +<script lang="ts"> +import { defineComponent, ref } from 'vue'; +import EnrichedHeadline from '../EnrichedHeadline/EnrichedHeadline.vue'; + +let adminContent: HTMLElement|null = null; + +export default defineComponent({ + props: { + contentTitle: String, + feature: String, + helpUrl: String, + helpText: String, + anchor: String, + }, + components: { + EnrichedHeadline, + }, + data() { + return { + actualFeature: this.feature, + actualHelpText: this.helpText, + }; + }, + setup() { + const root = ref<HTMLElement>(null); + const content = ref<HTMLElement>(null); + + return { + root, + content, + }; + }, + watch: { + feature(newValue: string) { + this.actualFeature = newValue; + }, + helpText(newValue: string) { + this.actualHelpText = newValue; + }, + }, + mounted() { + const { root, content } = this.$refs; + + if (this.anchor) { + const anchorElement = document.createElement('a'); + anchorElement.id = this.anchor; + root.parentElement.prepend(anchorElement); + } + + setTimeout(() => { + const inlineHelp = content.querySelector('.contentHelp'); + if (inlineHelp) { + this.actualHelpText = inlineHelp.innerHTML; + inlineHelp.remove(); + } + }, 0); + + if (this.actualFeature && (this.actualFeature === true || this.actualFeature === 'true')) { + this.actualFeature = this.contentTitle; + } + + if (adminContent === null) { + // cache admin node for further content blocks + adminContent = document.querySelector('#content.admin'); + } + + let contentTopPosition: number; + if (adminContent) { + contentTopPosition = adminContent.offsetTop; + } + + if (contentTopPosition || contentTopPosition === 0) { + const parents = root.closest('[piwik-widget-loader]'); + + // when shown within the widget loader, we need to get the offset of that element + // as the widget loader might be still shown. Would otherwise not position correctly + // the widgets on the admin home page + const topThis = parents ? parents.offsetTop : root.offsetTop; + + if (topThis - contentTopPosition < 17) { + // we make sure to display the first card with no margin-top to have it on same as line as + // navigation + root.style.marginTop = 0; + } + } + }, +}); +</script> diff --git a/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.adapter.ts b/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.adapter.ts new file mode 100644 index 0000000000..e730605e59 --- /dev/null +++ b/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.adapter.ts @@ -0,0 +1,32 @@ +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +import createAngularJsAdapter from '../createAngularJsAdapter'; +import EnrichedHeadline from './EnrichedHeadline.vue'; + +export default createAngularJsAdapter({ + component: EnrichedHeadline, + scope: { + helpUrl: { + angularJsBind: '@', + }, + editUrl: { + angularJsBind: '@', + }, + reportGenerated: { + angularJsBind: '@?', + }, + featureName: { + angularJsBind: '@', + }, + inlineHelp: { + angularJsBind: '@?', + }, + }, + directiveName: 'piwikEnrichedHeadline', + transclude: true, +}); diff --git a/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.less b/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.less index 878372c857..e2ee9dd5d9 100644 --- a/plugins/CoreHome/angularjs/enrichedheadline/enrichedheadline.directive.less +++ b/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.less @@ -48,12 +48,14 @@ .ratingIcons { display: inline-block; vertical-align: middle; + margin-left: 6px; } .helpIcon { cursor: pointer; display: inline-block; - margin: 0 0 -1px 4px; + margin-bottom: -1px; + margin-left: 8px; opacity: 0.4; font-size: 16px; color: @theme-color-text-light !important; diff --git a/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue b/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue new file mode 100644 index 0000000000..f9452ac24f --- /dev/null +++ b/plugins/CoreHome/vue/src/EnrichedHeadline/EnrichedHeadline.vue @@ -0,0 +1,201 @@ +<!-- + Matomo - free/libre analytics platform + @link https://matomo.org + @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later +--> + +<template> + <div + class="enrichedHeadline" + v-on:mouseenter="showIcons = true" + v-on:mouseleave="showIcons = false" + ref="root" + > + <div + v-if="!editUrl" + class="title" + tabindex="6" + > + <slot /> + </div> + <a + v-if="editUrl" + class="title" + :href="editUrl" + :title="translate('CoreHome_ClickToEditX', $sanitize(actualFeatureName))" + > + <slot /> + </a> + <span + v-show="showIcons || showInlineHelp" + class="iconsBar" + > + <a + v-if="helpUrl && !actualInlineHelp" + rel="noreferrer noopener" + target="_blank" + class="helpIcon" + :href="helpUrl" + :title="translate('CoreHome_ExternalHelp')" + ><span class="icon-help" /></a> + <a + v-if="actualInlineHelp" + v-on:click="showInlineHelp = !showInlineHelp" + class="helpIcon" + :class="{ 'active': showInlineHelp }" + :title="translate(reportGenerated ? 'General_HelpReport' : 'General_Help')" + ><span class="icon-info" /></a> + <div class="ratingIcons"> + <RateFeature + :title="actualFeatureName" + /> + </div> + </span> + <div + class="inlineHelp" + v-show="showInlineHelp" + > + <div v-html="$sanitize(actualInlineHelp)"/> + <a + v-if="helpUrl" + rel="noreferrer noopener" + target="_blank" + class="readMore" + :href="helpUrl" + >{{ translate('General_MoreDetails') }}</a> + </div> + </div> +</template> + +<script lang="ts"> +import { + defineComponent, + defineAsyncComponent, + ref, +} from 'vue'; +import Matomo from '../Matomo/Matomo'; +import Periods from '../Periods/Periods'; + +// working around a cycle in dependencies (CoreHome depends on Feedback, Feedback depends on +// CoreHome) +// TODO: may need a generic solution at some point, but it's bad practice to have +// cyclic dependencies like this. it worked before because it was individual files +// dependening on each other, not whole plugins. +const RateFeature = defineAsyncComponent(() => new Promise((resolve) => { + window.$(document).ready(() => { + resolve((window as any).Feedback.RateFeature); // eslint-disable-line + }); +})); + +/** + * Usage: + * + * <h2 piwik-enriched-headline>All Websites Dashboard</h2> + * -> uses "All Websites Dashboard" as featurename + * + * <h2 piwik-enriched-headline feature-name="All Websites Dashboard">All Websites Dashboard (Total: + * 309 Visits)</h2> + * -> custom featurename + * + * <h2 piwik-enriched-headline help-url="http://piwik.org/guide">All Websites Dashboard</h2> + * -> shows help icon and links to external url + * + * <h2 piwik-enriched-headline edit-url="index.php?module=Foo&action=bar&id=4">All Websites + * Dashboard</h2> + * -> makes the headline clickable linking to the specified url + * + * <h2 piwik-enriched-headline inline-help="inlineHelp">Pages report</h2> + * -> inlineHelp specified via a attribute shows help icon on headline hover + * + * <h2 piwik-enriched-headline>All Websites Dashboard + * <div class="inlineHelp">My <strong>inline help</strong></div> + * </h2> + * -> alternative definition for inline help + * -> shows help icon to display inline help on click. Note: You can combine inlinehelp and help-url + * + * * <h2 piwik-enriched-headline report-generated="generated time">Pages report</h2> + * -> reportGenerated specified via this attribute shows a clock icon with a tooltip which + * activated by hover + * -> the tooltip shows the value of the attribute + */ +export default defineComponent({ + props: { + helpUrl: { + type: String, + default: '', + }, + editUrl: { + type: String, + default: '', + }, + reportGenerated: String, + featureName: String, + inlineHelp: String, + }, + components: { + RateFeature, + }, + data() { + return { + showIcons: false, + showInlineHelp: false, + actualFeatureName: this.featureName, + actualInlineHelp: this.inlineHelp, + }; + }, + setup() { + const root = ref<HTMLElement>(null); + + return { + root, + }; + }, + watch: { + inlineHelp(newValue: string) { + this.actualInlineHelp = newValue; + }, + featureName(newValue: string) { + this.actualFeatureName = newValue; + }, + }, + mounted() { + const { root } = this.$refs; + + if (!this.actualInlineHelp) { + let helpNode = root.querySelector('.title .inlineHelp'); + if (!helpNode && root.parentElement.nextElementSibling) { + // hack for reports :( + helpNode = (root.parentElement.nextElementSibling as HTMLElement) + .querySelector('.reportDocumentation'); + } + + if (helpNode) { + // hackish solution to get binded html of p tag within the help node + // at this point the ng-bind-html is not yet converted into html when report is not + // initially loaded. Using $compile doesn't work. So get and set it manually + const helpDocs = helpNode.getAttribute('data-content').trim(); + if (helpDocs.length) { + this.actualInlineHelp = `<p>${helpDocs}</p>`; + setTimeout(() => helpNode.remove(), 0); + } + } + } + + if (!this.actualFeatureName) { + this.actualFeatureName = root.querySelector('.title').textContent; + } + + if (this.reportGenerated + && Periods.parse(Matomo.period, Matomo.currentDateString).containsToday() + ) { + window.$(root.querySelector('.report-generated')).tooltip({ + track: true, + content: this.reportGenerated, + items: 'div', + show: false, + hide: false, + }); + } + }, +}); +</script> diff --git a/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts b/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts index 0b318173e7..659bcaa97e 100644 --- a/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts +++ b/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.adapter.ts @@ -14,36 +14,35 @@ export default createAngularJsAdapter<[IParseService]>({ component: MatomoDialog, scope: { show: { - vue: 'show', + vue: 'modelValue', default: false, }, element: { - vue: 'element', default: (scope, element) => element[0], }, }, events: { - yes: (scope, element, attrs) => { + yes: ($event, scope, element, attrs) => { if (attrs.yes) { scope.$eval(attrs.yes); setTimeout(() => { scope.$apply(); }, 0); } }, - no: (scope, element, attrs) => { + no: ($event, scope, element, attrs) => { if (attrs.no) { scope.$eval(attrs.no); setTimeout(() => { scope.$apply(); }, 0); } }, - close: (scope, element, attrs) => { + close: ($event, scope, element, attrs) => { if (attrs.close) { scope.$eval(attrs.close); setTimeout(() => { scope.$apply(); }, 0); } }, - closeEnd: (scope, element, attrs, $parse: IParseService) => { + 'update:modelValue': (newValue, scope, element, attrs, $parse: IParseService) => { setTimeout(() => { - scope.$apply($parse(attrs.piwikDialog).assign(scope, false)); + scope.$apply($parse(attrs.piwikDialog).assign(scope, newValue)); }, 0); }, }, @@ -56,8 +55,10 @@ export default createAngularJsAdapter<[IParseService]>({ return vueRootPlaceholder[0]; }, postCreate: (vm: ComponentPublicInstance, scope, element, attrs) => { - scope.$watch(attrs.piwikDialog, (newValue: boolean) => { - vm.show = newValue || false; + scope.$watch(attrs.piwikDialog, (newValue: boolean, oldValue: boolean) => { + if (oldValue !== newValue) { + vm.modelValue = newValue || false; + } }); }, noScope: true, diff --git a/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue b/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue index 5a46841cbf..779b0c155c 100644 --- a/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue +++ b/plugins/CoreHome/vue/src/MatomoDialog/MatomoDialog.vue @@ -5,10 +5,12 @@ @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later --> <template> - <slot></slot> + <div v-show="modelValue" ref="root"> + <slot></slot> + </div> </template> <script lang="ts"> -import { defineComponent } from 'vue'; +import { defineComponent, ref } from 'vue'; import Matomo from '../Matomo/Matomo'; export default defineComponent({ @@ -16,7 +18,7 @@ export default defineComponent({ /** * Whether the modal is displayed or not; */ - show: { + modelValue: { type: Boolean, required: true, }, @@ -33,20 +35,33 @@ export default defineComponent({ required: false, }, }, - emits: ['yes', 'no', 'closeEnd', 'close'], + emits: ['yes', 'no', 'closeEnd', 'close', 'update:modelValue'], + setup() { + const root = ref(null); + + return { + root, + }; + }, activated() { - const slotElement = this.element || this.$slots.default()[0].el; - slotElement.style.display = 'none'; + this.$emit('update:modelValue', false); }, watch: { - show(newValue, oldValue) { + modelValue(newValue, oldValue) { if (newValue) { - const slotElement = this.element || this.$slots.default()[0].el; + const slotElement = this.element || this.$refs.root.firstElementChild; Matomo.helper.modalConfirm(slotElement, { yes: () => { this.$emit('yes'); }, no: () => { this.$emit('no'); }, }, { - onCloseEnd: () => { this.$emit('closeEnd'); }, + onCloseEnd: () => { + // materialize removes the child element, so we move it back to the slot + if (!this.element) { + this.$refs.root.appendChild(slotElement); + } + this.$emit('update:modelValue', false); + this.$emit('closeEnd'); + }, }); } else if (newValue === false && oldValue === true) { // the user closed the dialog, e.g. by pressing Esc or clicking away from it diff --git a/plugins/CoreHome/vue/src/createAngularJsAdapter.ts b/plugins/CoreHome/vue/src/createAngularJsAdapter.ts index 9d7ba86cea..f15822bfbc 100644 --- a/plugins/CoreHome/vue/src/createAngularJsAdapter.ts +++ b/plugins/CoreHome/vue/src/createAngularJsAdapter.ts @@ -11,9 +11,10 @@ import { ref, ComponentPublicInstance, } from 'vue'; +import translate from './translate'; interface SingleScopeVarInfo { - vue: string; + vue?: string; default?: any; // eslint-disable-line angularJsBind?: string; } @@ -27,6 +28,14 @@ type AdapterFunction<InjectTypes, R = void> = ( ...injected: InjectTypes, ) => R; +type EventAdapterFunction<InjectTypes, R = void> = ( + $event: any, // eslint-disable-line + scope: ng.IScope, + element: ng.IAugmentedJQuery, + attrs: ng.IAttributes, + ...injected: InjectTypes, +) => R; + type PostCreateFunction<InjectTypes, R = void> = ( vm: ComponentPublicInstance, scope: ng.IScope, @@ -35,10 +44,12 @@ type PostCreateFunction<InjectTypes, R = void> = ( ...injected: InjectTypes, ) => R; -type EventMapping<InjectTypes> = { [vueEventName: string]: AdapterFunction<InjectTypes> }; +type EventMapping<InjectTypes> = { [vueEventName: string]: EventAdapterFunction<InjectTypes> }; type ComponentType = ReturnType<typeof defineComponent>; +let transcludeCounter = 0; + export default function createAngularJsAdapter<InjectTypes = []>(options: { component: ComponentType, scope?: ScopeMapping, @@ -62,8 +73,16 @@ export default function createAngularJsAdapter<InjectTypes = []>(options: { noScope, } = options; + const currentTranscludeCounter = transcludeCounter; + if (transclude) { + transcludeCounter += 1; + } + const angularJsScope = {}; Object.entries(scope).forEach(([scopeVarName, info]) => { + if (!info.vue) { + info.vue = scopeVarName; + } if (info.angularJsBind) { angularJsScope[scopeVarName] = info.angularJsBind; } @@ -80,7 +99,7 @@ export default function createAngularJsAdapter<InjectTypes = []>(options: { ngElement: ng.IAugmentedJQuery, ngAttrs: ng.IAttributes, ) { - const clone = ngElement.find('[ng-transclude]'); + const clone = transclude ? ngElement.find(`[ng-transclude][counter=${currentTranscludeCounter}]`) : null; let rootVueTemplate = '<root-component'; Object.entries(scope).forEach(([, info]) => { @@ -88,7 +107,7 @@ export default function createAngularJsAdapter<InjectTypes = []>(options: { }); Object.entries(events).forEach((info) => { const [eventName] = info; - rootVueTemplate += ` @${eventName}="onEventHandler('${eventName}')"`; + rootVueTemplate += ` @${eventName}="onEventHandler('${eventName}', $event)"`; }); rootVueTemplate += '>'; if (transclude) { @@ -121,14 +140,15 @@ export default function createAngularJsAdapter<InjectTypes = []>(options: { return undefined; }, methods: { - onEventHandler(name: string) { + onEventHandler(name: string, $event: any) { // eslint-disable-line if (events[name]) { - events[name](ngScope, ngElement, ngAttrs, ...injectedServices); + events[name]($event, ngScope, ngElement, ngAttrs, ...injectedServices); } }, }, }); app.config.globalProperties.$sanitize = window.vueSanitize; + app.config.globalProperties.translate = translate; app.component('root-component', component); const mountPoint = mountPointFactory @@ -166,7 +186,7 @@ export default function createAngularJsAdapter<InjectTypes = []>(options: { if (transclude) { adapter.transclude = true; - adapter.template = '<div ng-transclude/>'; + adapter.template = `<div ng-transclude counter="${currentTranscludeCounter}"/>`; } return adapter; diff --git a/plugins/CoreHome/vue/src/index.ts b/plugins/CoreHome/vue/src/index.ts index 388204a6bd..fdc9743f57 100644 --- a/plugins/CoreHome/vue/src/index.ts +++ b/plugins/CoreHome/vue/src/index.ts @@ -18,6 +18,8 @@ import './AjaxHelper/AjaxHelper.adapter'; import './PiwikUrl/PiwikUrl.adapter'; import './Piwik/Piwik.adapter'; import './MatomoDialog/MatomoDialog.adapter'; +import './EnrichedHeadline/EnrichedHeadline.adapter'; +import './ContentBlock/ContentBlock.adapter'; export { default as createAngularJsAdapter } from './createAngularJsAdapter'; export { default as activityIndicatorAdapter } from './ActivityIndicator/ActivityIndicator.adapter'; @@ -29,3 +31,5 @@ export { default as MatomoUrl } from './MatomoUrl/MatomoUrl'; export { default as Matomo } from './Matomo/Matomo'; export * from './Periods'; export { default as MatomoDialog } from './MatomoDialog/MatomoDialog.vue'; +export { default as EnrichedHeadline } from './EnrichedHeadline/EnrichedHeadline.vue'; +export { default as ContentBlock } from './ContentBlock/ContentBlock.vue'; diff --git a/plugins/CoreHome/vue/src/translate.ts b/plugins/CoreHome/vue/src/translate.ts index 0f543432de..317b5a8751 100644 --- a/plugins/CoreHome/vue/src/translate.ts +++ b/plugins/CoreHome/vue/src/translate.ts @@ -5,6 +5,14 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -export default function translate(translationStringId: string, values: string[] = []): string { - return window._pk_translate(translationStringId, values); // eslint-disable-line +export default function translate( + translationStringId: string, + ...values: string[]|string[][] +): string { + let pkArgs = values as string[]; + // handle variadic args AND single array of values (to match _pk_translate signature) + if (values.length === 1 && values[0] && values[0] instanceof Array) { + [pkArgs] = values as string[][]; + } + return window._pk_translate(translationStringId, pkArgs); // eslint-disable-line } diff --git a/plugins/CoreVue/polyfills/dist/MatomoPolyfills.js b/plugins/CoreVue/polyfills/dist/MatomoPolyfills.js index 7715b0b9ca..b4601d80ad 100644 --- a/plugins/CoreVue/polyfills/dist/MatomoPolyfills.js +++ b/plugins/CoreVue/polyfills/dist/MatomoPolyfills.js @@ -81,43 +81,43 @@ /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ return __webpack_require__(__webpack_require__.s = "./plugins/CoreVue/polyfills/src/index.ts"); /******/ }) /************************************************************************/ /******/ ({ -/***/ "../../../node_modules/dompurify/dist/purify.js": -/*!*************************************************************************!*\ - !*** /home/dizzy/Projects/matomo/node_modules/dompurify/dist/purify.js ***! - \*************************************************************************/ +/***/ "./node_modules/dompurify/dist/purify.js": +/*!***********************************************!*\ + !*** ./node_modules/dompurify/dist/purify.js ***! + \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -eval("/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */\n\n(function (global, factory) {\n true ? module.exports = factory() :\n undefined;\n}(this, function () { 'use strict';\n\n function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n\n var regExpTest = unapply(RegExp.prototype.test);\n\n var typeErrorCreate = unconstruct(TypeError);\n\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n\n /* Add properties to a lookup table */\n function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n while (l--) {\n var element = array[l];\n if (typeof element === 'string') {\n var lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n\n /* Shallow clone an object */\n function clone(object) {\n var newObject = create(null);\n\n var property = void 0;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n var svg = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'feimage', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n\n var mathMl = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n\n var text = freeze(['#text']);\n\n var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n\n var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n\n var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n var MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n var ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html$$1) {\n return html$$1;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '2.3.3';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n Text = window.Text,\n Comment = window.Comment,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n\n\n var ElementPrototype = Element.prototype;\n\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';\n\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n\n\n var documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n\n var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,\n ERB_EXPR$$1 = ERB_EXPR,\n DATA_ATTR$$1 = DATA_ATTR,\n ARIA_ATTR$$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));\n\n /* Allowed attribute names */\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n var FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n var FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n var ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n var ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n var SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n var WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n var SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n var FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n var RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n var RETURN_DOM_FRAGMENT = false;\n\n /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM\n * `Node` is imported into the current `Document`. If this flag is not enabled the\n * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by\n * DOMPurify.\n *\n * This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`\n * might cause XSS from attacks hidden in closed shadowroots in case the browser\n * supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/\n */\n var RETURN_DOM_IMPORT = true;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n var RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n var SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n var KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n var IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n var USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n\n /* Parsing of strict XHTML documents */\n var PARSER_MEDIA_TYPE = void 0;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc = void 0;\n\n /* Keep a reference to config to pass to hooks */\n var CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT !== false; // Default true\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {\n return x;\n } : stringToLowerCase;\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html);\n addToSet(ALLOWED_ATTR, html$1);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl);\n addToSet(ALLOWED_ATTR, mathMl$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n var ALL_SVG_TAGS = addToSet({}, svg);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n\n var ALL_MATHML_TAGS = addToSet({}, mathMl);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erronously deleted from\n // HTML namespace.\n var commonSvgAndHTMLElements = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc = void 0;\n var leadingWhitespace = void 0;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n var _isClobbered = function _isClobbered(elm) {\n if (elm instanceof Text || elm instanceof Comment) {\n return false;\n }\n\n if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function') {\n return true;\n }\n\n return false;\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n var _isNode = function _isNode(object) {\n return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content = void 0;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (stringMatch(currentNode.nodeName, /[\\u0080-\\uFFFF]/)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n var tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');\n content = stringReplace(content, ERB_EXPR$$1, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n return false;\n\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr = void 0;\n var value = void 0;\n var lcName = void 0;\n var l = void 0;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n\n value = stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');\n value = stringReplace(value, ERB_EXPR$$1, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n var lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode = void 0;\n var shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg) {\n var body = void 0;\n var importedNode = void 0;\n var currentNode = void 0;\n var oldNode = void 0;\n var returnNode = void 0;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) ; else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : emptyHTML;\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (RETURN_DOM_IMPORT) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n\n\n//# sourceURL=webpack:////home/dizzy/Projects/matomo/node_modules/dompurify/dist/purify.js?"); +eval("/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */\n\n(function (global, factory) {\n true ? module.exports = factory() :\n undefined;\n}(this, function () { 'use strict';\n\n function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n\n var regExpTest = unapply(RegExp.prototype.test);\n\n var typeErrorCreate = unconstruct(TypeError);\n\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n\n /* Add properties to a lookup table */\n function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n while (l--) {\n var element = array[l];\n if (typeof element === 'string') {\n var lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n\n /* Shallow clone an object */\n function clone(object) {\n var newObject = create(null);\n\n var property = void 0;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n var svg = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'feimage', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n\n var mathMl = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n\n var text = freeze(['#text']);\n\n var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n\n var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n\n var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n var MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n var ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html$$1) {\n return html$$1;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '2.3.3';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n Text = window.Text,\n Comment = window.Comment,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n\n\n var ElementPrototype = Element.prototype;\n\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';\n\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n\n\n var documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n\n var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,\n ERB_EXPR$$1 = ERB_EXPR,\n DATA_ATTR$$1 = DATA_ATTR,\n ARIA_ATTR$$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));\n\n /* Allowed attribute names */\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n var FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n var FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n var ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n var ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n var SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n var WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n var SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n var FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n var RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n var RETURN_DOM_FRAGMENT = false;\n\n /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM\n * `Node` is imported into the current `Document`. If this flag is not enabled the\n * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by\n * DOMPurify.\n *\n * This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`\n * might cause XSS from attacks hidden in closed shadowroots in case the browser\n * supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/\n */\n var RETURN_DOM_IMPORT = true;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n var RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n var SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n var KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n var IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n var USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n\n /* Parsing of strict XHTML documents */\n var PARSER_MEDIA_TYPE = void 0;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc = void 0;\n\n /* Keep a reference to config to pass to hooks */\n var CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT !== false; // Default true\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {\n return x;\n } : stringToLowerCase;\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html);\n addToSet(ALLOWED_ATTR, html$1);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl);\n addToSet(ALLOWED_ATTR, mathMl$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n var ALL_SVG_TAGS = addToSet({}, svg);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n\n var ALL_MATHML_TAGS = addToSet({}, mathMl);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erronously deleted from\n // HTML namespace.\n var commonSvgAndHTMLElements = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc = void 0;\n var leadingWhitespace = void 0;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n var _isClobbered = function _isClobbered(elm) {\n if (elm instanceof Text || elm instanceof Comment) {\n return false;\n }\n\n if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function') {\n return true;\n }\n\n return false;\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n var _isNode = function _isNode(object) {\n return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content = void 0;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (stringMatch(currentNode.nodeName, /[\\u0080-\\uFFFF]/)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n var tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');\n content = stringReplace(content, ERB_EXPR$$1, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n return false;\n\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr = void 0;\n var value = void 0;\n var lcName = void 0;\n var l = void 0;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n\n value = stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');\n value = stringReplace(value, ERB_EXPR$$1, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n var lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode = void 0;\n var shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg) {\n var body = void 0;\n var importedNode = void 0;\n var currentNode = void 0;\n var oldNode = void 0;\n var returnNode = void 0;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) ; else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : emptyHTML;\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (RETURN_DOM_IMPORT) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n\n\n//# sourceURL=webpack:///node_modules/dompurify/dist/purify.js"); /***/ }), -/***/ "../../../node_modules/tslib/tslib.es6.js": -/*!*******************************************************************!*\ - !*** /home/dizzy/Projects/matomo/node_modules/tslib/tslib.es6.js ***! - \*******************************************************************/ +/***/ "./node_modules/tslib/tslib.es6.js": +/*!*****************************************!*\ + !*** ./node_modules/tslib/tslib.es6.js ***! + \*****************************************/ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__extends\", function() { return __extends; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__assign\", function() { return __assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__rest\", function() { return __rest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__decorate\", function() { return __decorate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__param\", function() { return __param; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__metadata\", function() { return __metadata; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__awaiter\", function() { return __awaiter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__generator\", function() { return __generator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__createBinding\", function() { return __createBinding; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__exportStar\", function() { return __exportStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__values\", function() { return __values; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__read\", function() { return __read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spread\", function() { return __spread; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spreadArrays\", function() { return __spreadArrays; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__await\", function() { return __await; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncGenerator\", function() { return __asyncGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncDelegator\", function() { return __asyncDelegator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncValues\", function() { return __asyncValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__makeTemplateObject\", function() { return __makeTemplateObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importStar\", function() { return __importStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importDefault\", function() { return __importDefault; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__classPrivateFieldGet\", function() { return __classPrivateFieldGet; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__classPrivateFieldSet\", function() { return __classPrivateFieldSet; });\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nfunction __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nfunction __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nfunction __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nfunction __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nfunction __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nfunction __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n\n\n//# sourceURL=webpack:////home/dizzy/Projects/matomo/node_modules/tslib/tslib.es6.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__extends\", function() { return __extends; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__assign\", function() { return __assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__rest\", function() { return __rest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__decorate\", function() { return __decorate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__param\", function() { return __param; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__metadata\", function() { return __metadata; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__awaiter\", function() { return __awaiter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__generator\", function() { return __generator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__createBinding\", function() { return __createBinding; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__exportStar\", function() { return __exportStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__values\", function() { return __values; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__read\", function() { return __read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spread\", function() { return __spread; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spreadArrays\", function() { return __spreadArrays; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__await\", function() { return __await; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncGenerator\", function() { return __asyncGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncDelegator\", function() { return __asyncDelegator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncValues\", function() { return __asyncValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__makeTemplateObject\", function() { return __makeTemplateObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importStar\", function() { return __importStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importDefault\", function() { return __importDefault; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__classPrivateFieldGet\", function() { return __classPrivateFieldGet; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__classPrivateFieldSet\", function() { return __classPrivateFieldSet; });\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nfunction __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nfunction __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nfunction __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nfunction __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nfunction __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nfunction __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n\n\n//# sourceURL=webpack:///node_modules/tslib/tslib.es6.js"); /***/ }), -/***/ "./src/index.ts": -/*!**********************!*\ - !*** ./src/index.ts ***! - \**********************/ +/***/ "./plugins/CoreVue/polyfills/src/index.ts": +/*!************************************************!*\ + !*** ./plugins/CoreVue/polyfills/src/index.ts ***! + \************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dompurify */ \"../../../node_modules/dompurify/dist/purify.js\");\n/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ \"../../../node_modules/tslib/tslib.es6.js\");\n/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/* eslint-disable */\n// this is a dummy file used to compile core-js polyfills so we don't have to include them in any\n// other file.\n\n\nwindow['tslib'] = tslib__WEBPACK_IMPORTED_MODULE_1__;\nwindow.vueSanitize = dompurify__WEBPACK_IMPORTED_MODULE_0___default.a.sanitize.bind(dompurify__WEBPACK_IMPORTED_MODULE_0___default.a);\n\n//# sourceURL=webpack:///./src/index.ts?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dompurify */ \"./node_modules/dompurify/dist/purify.js\");\n/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ \"./node_modules/tslib/tslib.es6.js\");\n/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/* eslint-disable */\n// this is a dummy file used to compile core-js polyfills so we don't have to include them in any\n// other file.\n\n\nwindow['tslib'] = tslib__WEBPACK_IMPORTED_MODULE_1__;\nwindow.vueSanitize = dompurify__WEBPACK_IMPORTED_MODULE_0___default.a.sanitize.bind(dompurify__WEBPACK_IMPORTED_MODULE_0___default.a);\n\n//# sourceURL=webpack:///plugins/CoreVue/polyfills/src/index.ts"); /***/ }) diff --git a/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js b/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js index 4e903b88cf..2791e00da3 100644 --- a/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js +++ b/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js @@ -1,10 +1,10 @@ -(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s="ffb4")})({"8ecb":function(e,t,n){ -/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */ -(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,c=Object.create,u="undefined"!==typeof Reflect&&Reflect,f=u.apply,s=u.construct;f||(f=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),l||(l=function(e){return e}),s||(s=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var p=T(Array.prototype.forEach),d=T(Array.prototype.pop),m=T(Array.prototype.push),y=T(String.prototype.toLowerCase),h=T(String.prototype.match),g=T(String.prototype.replace),v=T(String.prototype.indexOf),b=T(String.prototype.trim),_=T(RegExp.prototype.test),w=x(TypeError);function T(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function x(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,n)}}function S(e,t){n&&n(e,null);var o=t.length;while(o--){var i=t[o];if("string"===typeof i){var a=y(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function A(e){var n=c(null),r=void 0;for(r in e)f(t,e,[r])&&(n[r]=e[r]);return n}function O(e,t){while(null!==e){var n=i(e,t);if(n){if(n.get)return T(n.get);if("function"===typeof n.value)return T(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=a(["#text"]),P=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),C=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),z=l(/<%[\s\S]*|[\s\S]*%>/gm),H=l(/^data-[\-\w.\u00B7-\uFFFF]/),U=l(/^aria-[\-\w]+$/),B=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=l(/^(?:\w+script|data):/i),W=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Y=function(){return"undefined"===typeof window?null:window},K=function(e,t){if("object"!==("undefined"===typeof e?"undefined":q(e))||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),t=function(e){return X(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,f=e.NamedNodeMap,s=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,T=e.Text,x=e.Comment,$=e.DOMParser,Z=e.trustedTypes,J=c.prototype,Q=O(J,"cloneNode"),ee=O(J,"nextSibling"),te=O(J,"childNodes"),ne=O(J,"parentNode");if("function"===typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=K(Z,n),ie=oe&&Fe?oe.createHTML(""):"",ae=r,le=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,fe=ae.getElementsByTagName,se=n.importNode,pe={};try{pe=A(r).documentMode?r.documentMode:{}}catch(Tt){}var de={};t.isSupported="function"===typeof ne&&le&&"undefined"!==typeof le.createHTMLDocument&&9!==pe;var me=C,ye=z,he=H,ge=U,ve=G,be=W,_e=B,we=null,Te=S({},[].concat(V(E),V(R),V(k),V(N),V(L))),xe=null,Se=S({},[].concat(V(P),V(I),V(j),V(F))),Ae=null,Oe=null,Ee=!0,Re=!0,ke=!1,De=!1,Ne=!1,Me=!1,Le=!1,Pe=!1,Ie=!1,je=!0,Fe=!1,Ce=!0,ze=!0,He=!1,Ue={},Be=null,Ge=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,qe=S({},["audio","video","img","source","image","track"]),Ve=null,Ye=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml",Ze=$e,Je=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){rt&&rt===e||(e&&"object"===("undefined"===typeof e?"undefined":q(e))||(e={}),e=A(e),we="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):Te,xe="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Se,Ve="ADD_URI_SAFE_ATTR"in e?S(A(Ye),e.ADD_URI_SAFE_ATTR):Ye,We="ADD_DATA_URI_TAGS"in e?S(A(qe),e.ADD_DATA_URI_TAGS):qe,Be="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):Ge,Ae="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},Oe="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Ne=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,je=!1!==e.RETURN_DOM_IMPORT,Fe=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,ze=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||_e,Ze=e.NAMESPACE||$e,Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:y,De&&(Re=!1),Ie&&(Pe=!0),Ue&&(we=S({},[].concat(V(L))),xe=[],!0===Ue.html&&(S(we,E),S(xe,P)),!0===Ue.svg&&(S(we,R),S(xe,I),S(xe,F)),!0===Ue.svgFilters&&(S(we,k),S(xe,I),S(xe,F)),!0===Ue.mathMl&&(S(we,N),S(xe,j),S(xe,F))),e.ADD_TAGS&&(we===Te&&(we=A(we)),S(we,e.ADD_TAGS)),e.ADD_ATTR&&(xe===Se&&(xe=A(xe)),S(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(Ve,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===Ge&&(Be=A(Be)),S(Be,e.FORBID_CONTENTS)),ze&&(we["#text"]=!0),Ne&&S(we,["html","head","body"]),we.table&&(S(we,["tbody"]),delete Ae.tbody),a&&a(e),rt=e)},at=S({},["mi","mo","mn","ms","mtext"]),lt=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},R);S(ct,k),S(ct,D);var ut=S({},N);S(ut,M);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});var n=y(e.tagName),r=y(t.tagName);if(e.namespaceURI===Xe)return t.namespaceURI===$e?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(ct[n]);if(e.namespaceURI===Ke)return t.namespaceURI===$e?"math"===n:t.namespaceURI===Xe?"math"===n&<[r]:Boolean(ut[n]);if(e.namespaceURI===$e){if(t.namespaceURI===Xe&&!lt[r])return!1;if(t.namespaceURI===Ke&&!at[r])return!1;var o=S({},["title","style","font","a","script"]);return!ut[n]&&(o[n]||!ct[n])}return!1},st=function(e){m(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Tt){try{e.outerHTML=ie}catch(Tt){e.remove()}}},pt=function(e,n){try{m(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(Tt){m(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!xe[e])if(Pe||Ie)try{st(n)}catch(Tt){}else try{n.setAttribute(e,"")}catch(Tt){}},dt=function(e){var t=void 0,n=void 0;if(Le)e="<remove></remove>"+e;else{var o=h(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Ze===$e)try{t=(new $).parseFromString(i,Qe)}catch(Tt){}if(!t||!t.documentElement){t=le.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(Tt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Ze===$e?fe.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},yt=function(e){return!(e instanceof T||e instanceof x)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof s&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},ht=function(e){return"object"===("undefined"===typeof l?"undefined":q(l))?e instanceof l:e&&"object"===("undefined"===typeof e?"undefined":q(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},gt=function(e,n,r){de[e]&&p(de[e],(function(e){e.call(t,n,r,rt)}))},vt=function(e){var n=void 0;if(gt("beforeSanitizeElements",e,null),yt(e))return st(e),!0;if(h(e.nodeName,/[\u0080-\uFFFF]/))return st(e),!0;var r=nt(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return st(e),!0;if("select"===r&&_(/<template/i,e.innerHTML))return st(e),!0;if(!we[r]||Ae[r]){if(ze&&!Be[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length,l=a-1;l>=0;--l)o.insertBefore(Q(i[l],!0),ee(e))}return st(e),!0}return e instanceof c&&!ft(e)?(st(e),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(n=e.textContent,n=g(n,me," "),n=g(n,ye," "),e.textContent!==n&&(m(t.removed,{element:e.cloneNode()}),e.textContent=n)),gt("afterSanitizeElements",e,null),!1):(st(e),!0)},bt=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Re&&!Oe[t]&&_(he,t));else if(Ee&&_(ge,t));else{if(!xe[t]||Oe[t])return!1;if(Ve[t]);else if(_(_e,g(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e]){if(ke&&!_(ve,g(n,be,"")));else if(n)return!1}else;}return!0},_t=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;gt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};i=a.length;while(i--){n=a[i];var c=n,u=c.name,f=c.namespaceURI;if(r=b(n.value),o=nt(u),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(pt(u,e),l.keepAttr))if(_(/\/>/i,r))pt(u,e);else{De&&(r=g(r,me," "),r=g(r,ye," "));var s=nt(e.nodeName);if(bt(s,o,r))try{f?e.setAttributeNS(f,u,r):e.setAttribute(u,r),d(t.removed)}catch(Tt){}}}gt("afterSanitizeAttributes",e,null)}},wt=function e(t){var n=void 0,r=mt(t);gt("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())gt("uponSanitizeShadowNode",n,null),vt(n)||(n.content instanceof o&&e(n.content),_t(n));gt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,u=void 0,f=void 0,s=void 0;if(Je=!r,Je&&(r="\x3c!--\x3e"),"string"!==typeof r&&!ht(r)){if("function"!==typeof r.toString)throw w("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw w("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(ht(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||it(i),t.removed=[],"string"===typeof r&&(He=!1),He);else if(r instanceof l)a=dt("\x3c!----\x3e"),c=a.ownerDocument.importNode(r,!0),1===c.nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Pe&&!De&&!Ne&&-1===r.indexOf("<"))return oe&&Fe?oe.createHTML(r):r;if(a=dt(r),!a)return Pe?null:ie}a&&Le&&st(a.firstChild);var p=mt(He?r:a);while(u=p.nextNode())3===u.nodeType&&u===f||vt(u)||(u.content instanceof o&&wt(u.content),_t(u),f=u);if(f=null,He)return r;if(Pe){if(Ie){s=ue.call(a.ownerDocument);while(a.firstChild)s.appendChild(a.firstChild)}else s=a;return je&&(s=se.call(n,s,!0)),s}var d=Ne?a.outerHTML:a.innerHTML;return De&&(d=g(d,me," "),d=g(d,ye," ")),oe&&Fe?oe.createHTML(d):d},t.setConfig=function(e){it(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||it({});var r=nt(e),o=nt(t);return bt(r,o,n)},t.addHook=function(e,t){"function"===typeof t&&(de[e]=de[e]||[],m(de[e],t))},t.removeHook=function(e){de[e]&&d(de[e])},t.removeHooks=function(e){de[e]&&(de[e]=[])},t.removeAllHooks=function(){de={}},t}var $=X();return $}))},ffb4:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"__extends",(function(){return l})),n.d(r,"__assign",(function(){return c})),n.d(r,"__rest",(function(){return u})),n.d(r,"__decorate",(function(){return f})),n.d(r,"__param",(function(){return s})),n.d(r,"__metadata",(function(){return p})),n.d(r,"__awaiter",(function(){return d})),n.d(r,"__generator",(function(){return m})),n.d(r,"__createBinding",(function(){return y})),n.d(r,"__exportStar",(function(){return h})),n.d(r,"__values",(function(){return g})),n.d(r,"__read",(function(){return v})),n.d(r,"__spread",(function(){return b})),n.d(r,"__spreadArrays",(function(){return _})),n.d(r,"__await",(function(){return w})),n.d(r,"__asyncGenerator",(function(){return T})),n.d(r,"__asyncDelegator",(function(){return x})),n.d(r,"__asyncValues",(function(){return S})),n.d(r,"__makeTemplateObject",(function(){return A})),n.d(r,"__importStar",(function(){return O})),n.d(r,"__importDefault",(function(){return E})),n.d(r,"__classPrivateFieldGet",(function(){return R})),n.d(r,"__classPrivateFieldSet",(function(){return k}));var o=n("8ecb"),i=n.n(o),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function l(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function f(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function p(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function l(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){e.done?n(e.value):o(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))}function m(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return c([e,t])}}function c(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(l){i=[6,l],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function y(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function g(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function _(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function T(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{c(o[e](t))}catch(n){s(i[0][3],n)}}function c(e){e.value instanceof w?Promise.resolve(e.value.v).then(u,f):s(i[0][2],e)}function u(e){l("next",e)}function f(e){l("throw",e)}function s(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof g?g(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){t=e[n](t),o(r,i,t.done,t.value)}))}}function o(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function R(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n} +(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s="452c")})({"452c":function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"__extends",(function(){return l})),n.d(r,"__assign",(function(){return c})),n.d(r,"__rest",(function(){return u})),n.d(r,"__decorate",(function(){return f})),n.d(r,"__param",(function(){return s})),n.d(r,"__metadata",(function(){return p})),n.d(r,"__awaiter",(function(){return d})),n.d(r,"__generator",(function(){return m})),n.d(r,"__createBinding",(function(){return y})),n.d(r,"__exportStar",(function(){return h})),n.d(r,"__values",(function(){return g})),n.d(r,"__read",(function(){return v})),n.d(r,"__spread",(function(){return b})),n.d(r,"__spreadArrays",(function(){return _})),n.d(r,"__await",(function(){return w})),n.d(r,"__asyncGenerator",(function(){return T})),n.d(r,"__asyncDelegator",(function(){return x})),n.d(r,"__asyncValues",(function(){return S})),n.d(r,"__makeTemplateObject",(function(){return A})),n.d(r,"__importStar",(function(){return O})),n.d(r,"__importDefault",(function(){return E})),n.d(r,"__classPrivateFieldGet",(function(){return R})),n.d(r,"__classPrivateFieldSet",(function(){return k}));var o=n("c0c4"),i=n.n(o),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function l(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function f(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function p(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function l(e){try{c(r["throw"](e))}catch(t){i(t)}}function c(e){e.done?n(e.value):o(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))}function m(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return c([e,t])}}function c(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(l){i=[6,l],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function y(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function g(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function _(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function T(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{c(o[e](t))}catch(n){s(i[0][3],n)}}function c(e){e.value instanceof w?Promise.resolve(e.value.v).then(u,f):s(i[0][2],e)}function u(e){l("next",e)}function f(e){l("throw",e)}function s(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof g?g(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){t=e[n](t),o(r,i,t.done,t.value)}))}}function o(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function R(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n} /*! * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */window["tslib"]=r,window.vueSanitize=i.a.sanitize.bind(i.a)}}); + */window["tslib"]=r,window.vueSanitize=i.a.sanitize.bind(i.a)},c0c4:function(e,t,n){ +/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */ +(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var t=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,c=Object.create,u="undefined"!==typeof Reflect&&Reflect,f=u.apply,s=u.construct;f||(f=function(e,t,n){return e.apply(t,n)}),a||(a=function(e){return e}),l||(l=function(e){return e}),s||(s=function(t,n){return new(Function.prototype.bind.apply(t,[null].concat(e(n))))});var p=T(Array.prototype.forEach),d=T(Array.prototype.pop),m=T(Array.prototype.push),y=T(String.prototype.toLowerCase),h=T(String.prototype.match),g=T(String.prototype.replace),v=T(String.prototype.indexOf),b=T(String.prototype.trim),_=T(RegExp.prototype.test),w=x(TypeError);function T(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function x(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(e,n)}}function S(e,t){n&&n(e,null);var o=t.length;while(o--){var i=t[o];if("string"===typeof i){var a=y(i);a!==i&&(r(t)||(t[o]=a),i=a)}e[i]=!0}return e}function A(e){var n=c(null),r=void 0;for(r in e)f(t,e,[r])&&(n[r]=e[r]);return n}function O(e,t){while(null!==e){var n=i(e,t);if(n){if(n.get)return T(n.get);if("function"===typeof n.value)return T(n.value)}e=o(e)}function r(e){return console.warn("fallback value for",e),null}return r}var E=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=a(["#text"]),P=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),C=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),z=l(/<%[\s\S]*|[\s\S]*%>/gm),H=l(/^data-[\-\w.\u00B7-\uFFFF]/),U=l(/^aria-[\-\w]+$/),B=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=l(/^(?:\w+script|data):/i),W=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Y=function(){return"undefined"===typeof window?null:window},K=function(e,t){if("object"!==("undefined"===typeof e?"undefined":q(e))||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),t=function(e){return X(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,f=e.NamedNodeMap,s=void 0===f?e.NamedNodeMap||e.MozNamedAttrMap:f,T=e.Text,x=e.Comment,$=e.DOMParser,Z=e.trustedTypes,J=c.prototype,Q=O(J,"cloneNode"),ee=O(J,"nextSibling"),te=O(J,"childNodes"),ne=O(J,"parentNode");if("function"===typeof i){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var oe=K(Z,n),ie=oe&&Fe?oe.createHTML(""):"",ae=r,le=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,fe=ae.getElementsByTagName,se=n.importNode,pe={};try{pe=A(r).documentMode?r.documentMode:{}}catch(Tt){}var de={};t.isSupported="function"===typeof ne&&le&&"undefined"!==typeof le.createHTMLDocument&&9!==pe;var me=C,ye=z,he=H,ge=U,ve=G,be=W,_e=B,we=null,Te=S({},[].concat(V(E),V(R),V(k),V(N),V(L))),xe=null,Se=S({},[].concat(V(P),V(I),V(j),V(F))),Ae=null,Oe=null,Ee=!0,Re=!0,ke=!1,De=!1,Ne=!1,Me=!1,Le=!1,Pe=!1,Ie=!1,je=!0,Fe=!1,Ce=!0,ze=!0,He=!1,Ue={},Be=null,Ge=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,qe=S({},["audio","video","img","source","image","track"]),Ve=null,Ye=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml",Ze=$e,Je=!1,Qe=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,ot=r.createElement("form"),it=function(e){rt&&rt===e||(e&&"object"===("undefined"===typeof e?"undefined":q(e))||(e={}),e=A(e),we="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS):Te,xe="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR):Se,Ve="ADD_URI_SAFE_ATTR"in e?S(A(Ye),e.ADD_URI_SAFE_ATTR):Ye,We="ADD_DATA_URI_TAGS"in e?S(A(qe),e.ADD_DATA_URI_TAGS):qe,Be="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS):Ge,Ae="FORBID_TAGS"in e?S({},e.FORBID_TAGS):{},Oe="FORBID_ATTR"in e?S({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Ne=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,je=!1!==e.RETURN_DOM_IMPORT,Fe=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ce=!1!==e.SANITIZE_DOM,ze=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||_e,Ze=e.NAMESPACE||$e,Qe=Qe=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Qe?function(e){return e}:y,De&&(Re=!1),Ie&&(Pe=!0),Ue&&(we=S({},[].concat(V(L))),xe=[],!0===Ue.html&&(S(we,E),S(xe,P)),!0===Ue.svg&&(S(we,R),S(xe,I),S(xe,F)),!0===Ue.svgFilters&&(S(we,k),S(xe,I),S(xe,F)),!0===Ue.mathMl&&(S(we,N),S(xe,j),S(xe,F))),e.ADD_TAGS&&(we===Te&&(we=A(we)),S(we,e.ADD_TAGS)),e.ADD_ATTR&&(xe===Se&&(xe=A(xe)),S(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&S(Ve,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Be===Ge&&(Be=A(Be)),S(Be,e.FORBID_CONTENTS)),ze&&(we["#text"]=!0),Ne&&S(we,["html","head","body"]),we.table&&(S(we,["tbody"]),delete Ae.tbody),a&&a(e),rt=e)},at=S({},["mi","mo","mn","ms","mtext"]),lt=S({},["foreignobject","desc","title","annotation-xml"]),ct=S({},R);S(ct,k),S(ct,D);var ut=S({},N);S(ut,M);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});var n=y(e.tagName),r=y(t.tagName);if(e.namespaceURI===Xe)return t.namespaceURI===$e?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(ct[n]);if(e.namespaceURI===Ke)return t.namespaceURI===$e?"math"===n:t.namespaceURI===Xe?"math"===n&<[r]:Boolean(ut[n]);if(e.namespaceURI===$e){if(t.namespaceURI===Xe&&!lt[r])return!1;if(t.namespaceURI===Ke&&!at[r])return!1;var o=S({},["title","style","font","a","script"]);return!ut[n]&&(o[n]||!ct[n])}return!1},st=function(e){m(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Tt){try{e.outerHTML=ie}catch(Tt){e.remove()}}},pt=function(e,n){try{m(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(Tt){m(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!xe[e])if(Pe||Ie)try{st(n)}catch(Tt){}else try{n.setAttribute(e,"")}catch(Tt){}},dt=function(e){var t=void 0,n=void 0;if(Le)e="<remove></remove>"+e;else{var o=h(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=oe?oe.createHTML(e):e;if(Ze===$e)try{t=(new $).parseFromString(i,Qe)}catch(Tt){}if(!t||!t.documentElement){t=le.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Je?"":i}catch(Tt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Ze===$e?fe.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:a},mt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},yt=function(e){return!(e instanceof T||e instanceof x)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof s&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},ht=function(e){return"object"===("undefined"===typeof l?"undefined":q(l))?e instanceof l:e&&"object"===("undefined"===typeof e?"undefined":q(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},gt=function(e,n,r){de[e]&&p(de[e],(function(e){e.call(t,n,r,rt)}))},vt=function(e){var n=void 0;if(gt("beforeSanitizeElements",e,null),yt(e))return st(e),!0;if(h(e.nodeName,/[\u0080-\uFFFF]/))return st(e),!0;var r=nt(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return st(e),!0;if("select"===r&&_(/<template/i,e.innerHTML))return st(e),!0;if(!we[r]||Ae[r]){if(ze&&!Be[r]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length,l=a-1;l>=0;--l)o.insertBefore(Q(i[l],!0),ee(e))}return st(e),!0}return e instanceof c&&!ft(e)?(st(e),!0):"noscript"!==r&&"noembed"!==r||!_(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(n=e.textContent,n=g(n,me," "),n=g(n,ye," "),e.textContent!==n&&(m(t.removed,{element:e.cloneNode()}),e.textContent=n)),gt("afterSanitizeElements",e,null),!1):(st(e),!0)},bt=function(e,t,n){if(Ce&&("id"===t||"name"===t)&&(n in r||n in ot))return!1;if(Re&&!Oe[t]&&_(he,t));else if(Ee&&_(ge,t));else{if(!xe[t]||Oe[t])return!1;if(Ve[t]);else if(_(_e,g(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e]){if(ke&&!_(ve,g(n,be,"")));else if(n)return!1}else;}return!0},_t=function(e){var n=void 0,r=void 0,o=void 0,i=void 0;gt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};i=a.length;while(i--){n=a[i];var c=n,u=c.name,f=c.namespaceURI;if(r=b(n.value),o=nt(u),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(pt(u,e),l.keepAttr))if(_(/\/>/i,r))pt(u,e);else{De&&(r=g(r,me," "),r=g(r,ye," "));var s=nt(e.nodeName);if(bt(s,o,r))try{f?e.setAttributeNS(f,u,r):e.setAttribute(u,r),d(t.removed)}catch(Tt){}}}gt("afterSanitizeAttributes",e,null)}},wt=function e(t){var n=void 0,r=mt(t);gt("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())gt("uponSanitizeShadowNode",n,null),vt(n)||(n.content instanceof o&&e(n.content),_t(n));gt("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,i){var a=void 0,c=void 0,u=void 0,f=void 0,s=void 0;if(Je=!r,Je&&(r="\x3c!--\x3e"),"string"!==typeof r&&!ht(r)){if("function"!==typeof r.toString)throw w("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw w("dirty is not a string, aborting")}if(!t.isSupported){if("object"===q(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(ht(r))return e.toStaticHTML(r.outerHTML)}return r}if(Me||it(i),t.removed=[],"string"===typeof r&&(He=!1),He);else if(r instanceof l)a=dt("\x3c!----\x3e"),c=a.ownerDocument.importNode(r,!0),1===c.nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Pe&&!De&&!Ne&&-1===r.indexOf("<"))return oe&&Fe?oe.createHTML(r):r;if(a=dt(r),!a)return Pe?null:ie}a&&Le&&st(a.firstChild);var p=mt(He?r:a);while(u=p.nextNode())3===u.nodeType&&u===f||vt(u)||(u.content instanceof o&&wt(u.content),_t(u),f=u);if(f=null,He)return r;if(Pe){if(Ie){s=ue.call(a.ownerDocument);while(a.firstChild)s.appendChild(a.firstChild)}else s=a;return je&&(s=se.call(n,s,!0)),s}var d=Ne?a.outerHTML:a.innerHTML;return De&&(d=g(d,me," "),d=g(d,ye," ")),oe&&Fe?oe.createHTML(d):d},t.setConfig=function(e){it(e),Me=!0},t.clearConfig=function(){rt=null,Me=!1},t.isValidAttribute=function(e,t,n){rt||it({});var r=nt(e),o=nt(t);return bt(r,o,n)},t.addHook=function(e,t){"function"===typeof t&&(de[e]=de[e]||[],m(de[e],t))},t.removeHook=function(e){de[e]&&d(de[e])},t.removeHooks=function(e){de[e]&&(de[e]=[])},t.removeAllHooks=function(){de={}},t}var $=X();return $}))}}); //# sourceMappingURL=MatomoPolyfills.min.js.map
\ No newline at end of file diff --git a/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js.map b/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js.map index 1a2dbf4b7f..7d23583328 100644 --- a/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js.map +++ b/plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:////home/dizzy/Projects/matomo/node_modules/dompurify/dist/purify.js","webpack:////home/dizzy/Projects/matomo/node_modules/tslib/tslib.es6.js","webpack:///./src/index.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","factory","this","_toConsumableArray","arr","Array","isArray","arr2","length","from","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","freeze","seal","_ref","Reflect","apply","construct","fun","thisValue","args","x","Func","Function","concat","arrayForEach","unapply","forEach","arrayPop","pop","arrayPush","push","stringToLowerCase","String","toLowerCase","stringMatch","match","stringReplace","replace","stringIndexOf","indexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","TypeError","func","thisArg","_len","arguments","_key","_len2","_key2","addToSet","set","array","element","lcElement","clone","newObject","lookupGetter","prop","desc","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","html$1","svg$1","mathMl$1","xml","MUSTACHE_EXPR","ERB_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","_typeof","iterator","obj","constructor","_toConsumableArray$1","getGlobal","window","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","html$$1","_","createDOMPurify","undefined","DOMPurify","root","version","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","_window$NamedNodeMap","NamedNodeMap","MozNamedAttrMap","Text","Comment","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","RETURN_TRUSTED_TYPE","_document","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","documentMode","hooks","createHTMLDocument","MUSTACHE_EXPR$$1","ERB_EXPR$$1","DATA_ATTR$$1","ARIA_ATTR$$1","IS_SCRIPT_OR_DATA$$1","ATTR_WHITESPACE$$1","IS_ALLOWED_URI$$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_DOM_IMPORT","SANITIZE_DOM","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","transformCaseFunc","CONFIG","formElement","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","commonSvgAndHTMLElements","_forceRemove","node","parentNode","removeChild","outerHTML","remove","_removeAttribute","attribute","getAttributeNode","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","body","insertBefore","createTextNode","childNodes","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","childCount","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","_attr","forceKeepAttr","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","oldNode","returnNode","toString","toStaticHTML","appendChild","firstChild","nodeIterator","serializedHTML","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks","purify","extendStatics","b","__proto__","__extends","__","__assign","assign","__rest","e","getOwnPropertySymbols","propertyIsEnumerable","__decorate","decorators","target","decorate","__param","paramIndex","decorator","__metadata","metadataKey","metadataValue","metadata","__awaiter","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","rejected","result","done","then","__generator","f","y","g","label","sent","trys","ops","verb","v","op","__createBinding","k","k2","__exportStar","__values","__read","ar","error","__spread","__spreadArrays","il","a","j","jl","__await","__asyncGenerator","asyncIterator","q","resume","settle","fulfill","shift","__asyncDelegator","__asyncValues","__makeTemplateObject","cooked","raw","__importStar","mod","default","__importDefault","__classPrivateFieldGet","receiver","privateMap","has","__classPrivateFieldSet","vueSanitize"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,O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GAC9M,SAASqX,EAAK5V,GAAKzB,EAAEyB,GAAKhB,EAAEgB,IAAM,SAAU6V,GAAK,OAAO,IAAIlB,SAAQ,SAAUD,EAASE,GAAUiB,EAAI7W,EAAEgB,GAAG6V,GAAIqB,EAAOxC,EAASE,EAAQiB,EAAEX,KAAMW,EAAErW,WAChJ,SAAS0X,EAAOxC,EAASE,EAAQ/V,EAAGgX,GAAKlB,QAAQD,QAAQmB,GAAGV,MAAK,SAASU,GAAKnB,EAAQ,CAAElV,MAAOqW,EAAGX,KAAMrW,MAAS+V,IAG/G,SAAS2C,EAAqBC,EAAQC,GAEzC,OADIxY,OAAOC,eAAkBD,OAAOC,eAAesY,EAAQ,MAAO,CAAEhY,MAAOiY,IAAiBD,EAAOC,IAAMA,EAClGD,EAGJ,SAASE,EAAaC,GACzB,GAAIA,GAAOA,EAAIhY,WAAY,OAAOgY,EAClC,IAAI1C,EAAS,GACb,GAAW,MAAP0C,EAAa,IAAK,IAAI3B,KAAK2B,EAAS1Y,OAAOmB,eAAe1B,KAAKiZ,EAAK3B,KAAIf,EAAOe,GAAK2B,EAAI3B,IAE5F,OADAf,EAAO2C,QAAUD,EACV1C,EAGJ,SAAS4C,EAAgBF,GAC5B,OAAQA,GAAOA,EAAIhY,WAAcgY,EAAM,CAAEC,QAASD,GAG/C,SAASG,EAAuBC,EAAUC,GAC7C,IAAKA,EAAWC,IAAIF,GAChB,MAAM,IAAItU,UAAU,kDAExB,OAAOuU,EAAW5Y,IAAI2Y,GAGnB,SAASG,EAAuBH,EAAUC,EAAYxY,GACzD,IAAKwY,EAAWC,IAAIF,GAChB,MAAM,IAAItU,UAAU,kDAGxB,OADAuU,EAAW9T,IAAI6T,EAAUvY,GAClBA;;;;;;GC1MX8G,OAAO,SAAW,EAElBA,OAAO6R,YAAc,IAAUxG,SAAS5R,KAAK","file":"MatomoPolyfills.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"ffb4\");\n","/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.DOMPurify = factory());\n}(this, function () { 'use strict';\n\n function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n\n var regExpTest = unapply(RegExp.prototype.test);\n\n var typeErrorCreate = unconstruct(TypeError);\n\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n\n /* Add properties to a lookup table */\n function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n while (l--) {\n var element = array[l];\n if (typeof element === 'string') {\n var lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n\n /* Shallow clone an object */\n function clone(object) {\n var newObject = create(null);\n\n var property = void 0;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n var svg = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'feimage', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n\n var mathMl = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n\n var text = freeze(['#text']);\n\n var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n\n var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n\n var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n var MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n var ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html$$1) {\n return html$$1;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '2.3.3';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n Text = window.Text,\n Comment = window.Comment,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n\n\n var ElementPrototype = Element.prototype;\n\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';\n\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n\n\n var documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n\n var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,\n ERB_EXPR$$1 = ERB_EXPR,\n DATA_ATTR$$1 = DATA_ATTR,\n ARIA_ATTR$$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));\n\n /* Allowed attribute names */\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n var FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n var FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n var ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n var ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n var SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n var WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n var SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n var FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n var RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n var RETURN_DOM_FRAGMENT = false;\n\n /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM\n * `Node` is imported into the current `Document`. If this flag is not enabled the\n * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by\n * DOMPurify.\n *\n * This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`\n * might cause XSS from attacks hidden in closed shadowroots in case the browser\n * supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/\n */\n var RETURN_DOM_IMPORT = true;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n var RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n var SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n var KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n var IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n var USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n\n /* Parsing of strict XHTML documents */\n var PARSER_MEDIA_TYPE = void 0;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc = void 0;\n\n /* Keep a reference to config to pass to hooks */\n var CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT !== false; // Default true\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {\n return x;\n } : stringToLowerCase;\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html);\n addToSet(ALLOWED_ATTR, html$1);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl);\n addToSet(ALLOWED_ATTR, mathMl$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n var ALL_SVG_TAGS = addToSet({}, svg);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n\n var ALL_MATHML_TAGS = addToSet({}, mathMl);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erronously deleted from\n // HTML namespace.\n var commonSvgAndHTMLElements = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc = void 0;\n var leadingWhitespace = void 0;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n var _isClobbered = function _isClobbered(elm) {\n if (elm instanceof Text || elm instanceof Comment) {\n return false;\n }\n\n if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function') {\n return true;\n }\n\n return false;\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n var _isNode = function _isNode(object) {\n return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content = void 0;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (stringMatch(currentNode.nodeName, /[\\u0080-\\uFFFF]/)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n var tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');\n content = stringReplace(content, ERB_EXPR$$1, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n return false;\n\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr = void 0;\n var value = void 0;\n var lcName = void 0;\n var l = void 0;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n\n value = stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');\n value = stringReplace(value, ERB_EXPR$$1, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n var lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode = void 0;\n var shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg) {\n var body = void 0;\n var importedNode = void 0;\n var currentNode = void 0;\n var oldNode = void 0;\n var returnNode = void 0;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) ; else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : emptyHTML;\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (RETURN_DOM_IMPORT) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/* eslint-disable */\n\n// this is a dummy file used to compile core-js polyfills so we don't have to include them in any\n// other file.\n\nimport DOMPurify from 'dompurify';\nimport * as tslib from 'tslib';\nwindow['tslib'] = tslib;\n\nwindow.vueSanitize = DOMPurify.sanitize.bind(DOMPurify);\n"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack:///plugins/CoreVue/polyfills/webpack/bootstrap","webpack:///node_modules/tslib/tslib.es6.js","webpack:///plugins/CoreVue/polyfills/src/index.ts","webpack:///node_modules/dompurify/dist/purify.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","extendStatics","b","setPrototypeOf","__proto__","Array","__extends","__","this","constructor","__assign","assign","arguments","length","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__decorate","decorators","target","desc","getOwnPropertyDescriptor","Reflect","decorate","__param","paramIndex","decorator","__metadata","metadataKey","metadataValue","metadata","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","rejected","result","done","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","iterator","v","op","TypeError","pop","push","__createBinding","k","k2","undefined","__exportStar","__values","__read","ar","error","__spread","concat","__spreadArrays","il","a","j","jl","__await","__asyncGenerator","asyncIterator","q","resume","settle","fulfill","shift","__asyncDelegator","__asyncValues","__makeTemplateObject","cooked","raw","__importStar","mod","default","__importDefault","__classPrivateFieldGet","receiver","privateMap","has","__classPrivateFieldSet","set","window","vueSanitize","sanitize","global","factory","_toConsumableArray","arr","isArray","arr2","from","isFrozen","getPrototypeOf","freeze","seal","_ref","construct","fun","thisValue","args","x","Func","Function","arrayForEach","unapply","forEach","arrayPop","arrayPush","stringToLowerCase","String","toLowerCase","stringMatch","match","stringReplace","replace","stringIndexOf","stringTrim","trim","regExpTest","RegExp","test","typeErrorCreate","unconstruct","func","_len","_key","_len2","_key2","addToSet","array","element","lcElement","clone","newObject","lookupGetter","prop","fallbackValue","console","warn","html","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","text","html$1","svg$1","mathMl$1","xml","MUSTACHE_EXPR","ERB_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","_typeof","obj","_toConsumableArray$1","getGlobal","_createTrustedTypesPolicy","trustedTypes","document","createPolicy","suffix","ATTR_NAME","currentScript","hasAttribute","getAttribute","policyName","createHTML","html$$1","createDOMPurify","DOMPurify","root","version","removed","nodeType","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","_window$NamedNodeMap","NamedNodeMap","MozNamedAttrMap","Text","Comment","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","createElement","content","ownerDocument","trustedTypesPolicy","emptyHTML","RETURN_TRUSTED_TYPE","_document","implementation","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","documentMode","hooks","createHTMLDocument","MUSTACHE_EXPR$$1","ERB_EXPR$$1","DATA_ATTR$$1","ARIA_ATTR$$1","IS_SCRIPT_OR_DATA$$1","ATTR_WHITESPACE$$1","IS_ALLOWED_URI$$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_DOM_IMPORT","SANITIZE_DOM","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","DEFAULT_PARSER_MEDIA_TYPE","transformCaseFunc","CONFIG","formElement","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","parent","tagName","namespaceURI","parentTagName","Boolean","commonSvgAndHTMLElements","_forceRemove","node","parentNode","removeChild","outerHTML","remove","_removeAttribute","attribute","getAttributeNode","removeAttribute","setAttribute","_initDocument","dirty","doc","leadingWhitespace","matches","dirtyPayload","parseFromString","documentElement","createDocument","innerHTML","insertBefore","createTextNode","childNodes","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","nodeName","textContent","attributes","_isNode","_executeHook","entryPoint","currentNode","data","hook","_sanitizeElements","allowedTags","firstElementChild","childCount","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","_attr","forceKeepAttr","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","importedNode","oldNode","returnNode","toString","toStaticHTML","appendChild","firstChild","nodeIterator","serializedHTML","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks","purify"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAo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iBpH,GAAiB5M,EAAK+P,UAAY/P,EAAK+Q,UAQ5D,OALIpE,KACFqH,EAAiBzO,EAAcyO,EAAgBrI,GAAkB,KACjEqI,EAAiBzO,EAAcyO,EAAgBpI,GAAa,MAGvDb,IAAsBE,GAAsBF,GAAmB9B,WAAW+K,GAAkBA,GASrG5K,EAAU6K,UAAY,SAAUzF,GAC9BD,GAAaC,GACb3B,IAAa,GAQfzD,EAAU8K,YAAc,WACtB7F,GAAS,KACTxB,IAAa,GAafzD,EAAU+K,iBAAmB,SAAUC,EAAK1B,EAAM3W,GAE3CsS,IACHE,GAAa,IAGf,IAAIgE,EAAQnE,GAAkBgG,GAC1B5B,EAASpE,GAAkBsE,GAC/B,OAAOJ,GAAkBC,EAAOC,EAAQzW,IAU1CqN,EAAUiL,QAAU,SAAUvC,EAAYwC,GACZ,oBAAjBA,IAIX7I,GAAMqG,GAAcrG,GAAMqG,IAAe,GACzC7M,EAAUwG,GAAMqG,GAAawC,KAU/BlL,EAAUmL,WAAa,SAAUzC,GAC3BrG,GAAMqG,IACR9M,EAASyG,GAAMqG,KAUnB1I,EAAUoL,YAAc,SAAU1C,GAC5BrG,GAAMqG,KACRrG,GAAMqG,GAAc,KASxB1I,EAAUqL,eAAiB,WACzBhJ,GAAQ,IAGHrC,EAGT,IAAIsL,EAASvL,IAEb,OAAOuL","file":"MatomoPolyfills.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"452c\");\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\n/* eslint-disable */\n\n// this is a dummy file used to compile core-js polyfills so we don't have to include them in any\n// other file.\n\nimport DOMPurify from 'dompurify';\nimport * as tslib from 'tslib';\nwindow['tslib'] = tslib;\n\nwindow.vueSanitize = DOMPurify.sanitize.bind(DOMPurify);\n","/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.DOMPurify = factory());\n}(this, function () { 'use strict';\n\n function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n\n var regExpTest = unapply(RegExp.prototype.test);\n\n var typeErrorCreate = unconstruct(TypeError);\n\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n\n /* Add properties to a lookup table */\n function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n while (l--) {\n var element = array[l];\n if (typeof element === 'string') {\n var lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n\n /* Shallow clone an object */\n function clone(object) {\n var newObject = create(null);\n\n var property = void 0;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n var svg = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'feimage', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n\n var mathMl = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n\n var text = freeze(['#text']);\n\n var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n\n var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n\n var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n var MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n var ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html$$1) {\n return html$$1;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '2.3.3';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n Text = window.Text,\n Comment = window.Comment,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n\n\n var ElementPrototype = Element.prototype;\n\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';\n\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n\n\n var documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n\n var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,\n ERB_EXPR$$1 = ERB_EXPR,\n DATA_ATTR$$1 = DATA_ATTR,\n ARIA_ATTR$$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));\n\n /* Allowed attribute names */\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n var FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n var FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n var ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n var ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n var SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n var WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n var SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n var FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n var RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n var RETURN_DOM_FRAGMENT = false;\n\n /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM\n * `Node` is imported into the current `Document`. If this flag is not enabled the\n * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by\n * DOMPurify.\n *\n * This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`\n * might cause XSS from attacks hidden in closed shadowroots in case the browser\n * supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/\n */\n var RETURN_DOM_IMPORT = true;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n var RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n var SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n var KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n var IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n var USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n\n /* Parsing of strict XHTML documents */\n var PARSER_MEDIA_TYPE = void 0;\n var SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n var DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n var transformCaseFunc = void 0;\n\n /* Keep a reference to config to pass to hooks */\n var CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT !== false; // Default true\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? function (x) {\n return x;\n } : stringToLowerCase;\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html);\n addToSet(ALLOWED_ATTR, html$1);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl);\n addToSet(ALLOWED_ATTR, mathMl$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n var ALL_SVG_TAGS = addToSet({}, svg);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n\n var ALL_MATHML_TAGS = addToSet({}, mathMl);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erronously deleted from\n // HTML namespace.\n var commonSvgAndHTMLElements = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc = void 0;\n var leadingWhitespace = void 0;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>' + dirty + '</body></html>';\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n var _isClobbered = function _isClobbered(elm) {\n if (elm instanceof Text || elm instanceof Comment) {\n return false;\n }\n\n if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function') {\n return true;\n }\n\n return false;\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n var _isNode = function _isNode(object) {\n return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content = void 0;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (stringMatch(currentNode.nodeName, /[\\u0080-\\uFFFF]/)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n var tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');\n content = stringReplace(content, ERB_EXPR$$1, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n return false;\n\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr = void 0;\n var value = void 0;\n var lcName = void 0;\n var l = void 0;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n\n value = stringTrim(attr.value);\n lcName = transformCaseFunc(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');\n value = stringReplace(value, ERB_EXPR$$1, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n var lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode = void 0;\n var shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg) {\n var body = void 0;\n var importedNode = void 0;\n var currentNode = void 0;\n var oldNode = void 0;\n var returnNode = void 0;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) ; else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : emptyHTML;\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (RETURN_DOM_IMPORT) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = transformCaseFunc(tag);\n var lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/CoreVue/polyfills/vue.config.js b/plugins/CoreVue/polyfills/vue.config.js index 4c37be16bd..f722a0337d 100644 --- a/plugins/CoreVue/polyfills/vue.config.js +++ b/plugins/CoreVue/polyfills/vue.config.js @@ -1,7 +1,17 @@ +const path = require('path'); + +const context = path.join(__dirname, '..', '..', '..'); + module.exports = { filenameHashing: false, chainWebpack: config => { + config.context(context); config.optimization.delete('splitChunks') config.output.filename(process.env.NODE_ENV === 'production' ? 'MatomoPolyfills.min.js' : 'MatomoPolyfills.js'); + // see https://github.com/webpack/webpack/issues/3603#issuecomment-357664819 for this workaround + config.output.devtoolModuleFilenameTemplate(function (info) { + const rel = path.relative(context, info.absoluteResourcePath) + return `webpack:///${rel}` + }); } }; diff --git a/plugins/CustomDimensions/tests/UI/expected-screenshots/CustomDimensions_report_action_subtable_segmented_visitor_log.png b/plugins/CustomDimensions/tests/UI/expected-screenshots/CustomDimensions_report_action_subtable_segmented_visitor_log.png index 82e5e940f7..04dfd9fea4 100644 --- a/plugins/CustomDimensions/tests/UI/expected-screenshots/CustomDimensions_report_action_subtable_segmented_visitor_log.png +++ b/plugins/CustomDimensions/tests/UI/expected-screenshots/CustomDimensions_report_action_subtable_segmented_visitor_log.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e80673f1b62256a6760afd19ac8eb13c07413c4fff615a49d9259fa7a2be9546 -size 83644 +oid sha256:83651e12fe20ce784071120d14f6304aca59db76e2d0d71b7814dea2f5ce80d5 +size 83629 diff --git a/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js b/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js index 7b66b55450..ecb7245575 100644 --- a/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js +++ b/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js @@ -10,7 +10,7 @@ __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); -// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?vue&type=template&id=9a0bba80 +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?vue&type=template&id=2b8ee5bc const _hoisted_1 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { @@ -29,13 +29,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) { }, "-"), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.count) + " ", 1), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("button", { onClick: _cache[1] || (_cache[1] = (...args) => _ctx.increment && _ctx.increment(...args)) }, "+"), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MatomoDialog, { - show: _ctx.showDialog + modelValue: _ctx.showDialog, + "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.showDialog = $event) }, { default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [_hoisted_1]), _: 1 - }, 8, ["show"])]); + }, 8, ["modelValue"])]); } -// CONCATENATED MODULE: ./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?vue&type=template&id=9a0bba80 +// CONCATENATED MODULE: ./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?vue&type=template&id=2b8ee5bc // EXTERNAL MODULE: external "CoreHome" var external_CoreHome_ = __webpack_require__("19dc"); @@ -47,16 +48,11 @@ var external_CoreHome_ = __webpack_require__("19dc"); components: { MatomoDialog: external_CoreHome_["MatomoDialog"] }, - computed: { - showDialog() { - return this.count > 15; - } - - }, data() { return { - count: 12 + count: 12, + showDialog: false }; }, @@ -64,10 +60,12 @@ var external_CoreHome_ = __webpack_require__("19dc"); return { increment() { this.count += 1; + this.showDialog = this.count > 15; }, decrement() { this.count -= 1; + this.showDialog = this.count > 15; } }; diff --git a/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js.map b/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js.map index daa8cbbf88..7c9bc49df7 100644 --- a/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js.map +++ b/plugins/ExampleVue/vue/dist/ExampleVue.umd.1.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d4ac","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?748c","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d496"],"names":[],"mappings":";;;;;;;;;;;;;;;gCAcM,4EAOM,KAPN,EAOM;AAPD,OAAK,EAAC;AAOL,CAPN,EAAqC,C,aACnC,4EAAc,IAAd,EAAc,IAAd,EAAI,OAAJ,CADmC,E,aAEnC,4EAEI,GAFJ,EAEI,IAFJ,EAAG,0CAAH,CAFmC,E,aAMnC,4EAA4C,OAA5C,EAA4C;AAArC,MAAI,EAAC,QAAgC;AAAvB,OAAK,EAAC,IAAiB;AAAZ,MAAI,EAAC;AAAO,CAA5C,CANmC,CAArC,E,EAAA,C;;;;;+EANJ,4EAeM,KAfN,EAeM,IAfN,EAeM,CAdJ,4EAAyC,QAAzC,EAAyC;AAA5B,WAAK,yCAAE,yCAAF;AAAuB,GAAzC,EAA+B,GAA/B,CAcI,E,yEAdqC,MACzC,yEAAG,UAAH,CADyC,GAC9B,G,EACX,C,CAYI,EAZJ,4EAAyC,QAAzC,EAAyC;AAA5B,WAAK,yCAAE,yCAAF;AAAuB,GAAzC,EAA+B,GAA/B,CAYI,EAVJ,qEASe,uBATf,EASe;AATA,QAAI,EAAE;AASN,GATf,EAA+B;8EAC7B,MAOM,CAPN,UAOM,C,CARuB;;AAAA,GAA/B,E,CAAA,E,QAAA,CAUI,CAfN,C;;;;;;;;ACPF;AACA;AAEe,oJAAe,CAAC;AAC7B,YAAU,EAAE;AACV,oDAAY;AADF,GADiB;AAI7B,UAAQ,EAAE;AACR,cAAU;AACR,aAAO,KAAK,KAAL,GAAa,EAApB;AACD;;AAHO,GAJmB;;AAS7B,MAAI;AACF,WAAO;AACL,WAAK,EAAE;AADF,KAAP;AAGD,GAb4B;;AAe7B,OAAK;AACH,WAAO;AACL,eAAS;AACP,aAAK,KAAL,IAAc,CAAd;AACD,OAHI;;AAIL,eAAS;AACP,aAAK,KAAL,IAAc,CAAd;AACD;;AANI,KAAP;AAQD;;AAxB4B,CAAD,CAA9B,E;;ACJumB,C;;ACA1hB;AACV;AACL;AAC9D,uCAAM,UAAU,MAAM;;AAEP,6H","file":"ExampleVue.umd.1.js","sourcesContent":["<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div>\n <button v-on:click=\"decrement\">-</button>\n {{ count }}\n <button v-on:click=\"increment\">+</button>\n\n <MatomoDialog :show=\"showDialog\">\n <div class=\"ui-confirm exampleDialog\">\n <h2>Alert</h2>\n <p>\n The count is greater than 1 right now!\n </p>\n\n <input type=\"button\" value=\"OK\" role=\"yes\"/>\n </div>\n </MatomoDialog>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n computed: {\n showDialog() {\n return this.count > 15;\n },\n },\n data() {\n return {\n count: 12,\n };\n },\n\n setup() {\n return {\n increment() {\n this.count += 1;\n },\n decrement() {\n this.count -= 1;\n },\n };\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n computed: {\n showDialog() {\n return this.count > 15;\n },\n },\n data() {\n return {\n count: 12,\n };\n },\n\n setup() {\n return {\n increment() {\n this.count += 1;\n },\n decrement() {\n this.count -= 1;\n },\n };\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ExampleComponent.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ExampleComponent.vue?vue&type=script&lang=ts\"","import { render } from \"./ExampleComponent.vue?vue&type=template&id=9a0bba80\"\nimport script from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d4ac","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?748c","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d496"],"names":[],"mappings":";;;;;;;;;;;;;;;gCAcM,4EAOM,KAPN,EAOM;AAPD,OAAK,EAAC;AAOL,CAPN,EAAqC,C,aACnC,4EAAc,IAAd,EAAc,IAAd,EAAI,OAAJ,CADmC,E,aAEnC,4EAEI,GAFJ,EAEI,IAFJ,EAAG,0CAAH,CAFmC,E,aAMnC,4EAA4C,OAA5C,EAA4C;AAArC,MAAI,EAAC,QAAgC;AAAvB,OAAK,EAAC,IAAiB;AAAZ,MAAI,EAAC;AAAO,CAA5C,CANmC,CAArC,E,EAAA,C;;;;;+EANJ,4EAeM,KAfN,EAeM,IAfN,EAeM,CAdJ,4EAAyC,QAAzC,EAAyC;AAA5B,WAAK,yCAAE,yCAAF;AAAuB,GAAzC,EAA+B,GAA/B,CAcI,E,yEAdqC,MACzC,yEAAG,UAAH,CADyC,GAC9B,G,EACX,C,CAYI,EAZJ,4EAAyC,QAAzC,EAAyC;AAA5B,WAAK,yCAAE,yCAAF;AAAuB,GAAzC,EAA+B,GAA/B,CAYI,EAVJ,qEASe,uBATf,EASe;gBATQ,eASR;+DATQ,kBAAU,M;AASlB,GATf,E;8EACE,MAOM,CAPN,UAOM,C;;GARR,E,CAAA,E,cAAA,CAUI,CAfN,C;;;;;;;;ACPF;AACA;AAEe,oJAAe,CAAC;AAC7B,YAAU,EAAE;AACV,oDAAY;AADF,GADiB;;AAI7B,MAAI;AACF,WAAO;AACL,WAAK,EAAE,EADF;AAEL,gBAAU,EAAE;AAFP,KAAP;AAID,GAT4B;;AAU7B,OAAK;AACH,WAAO;AACL,eAAS;AACP,aAAK,KAAL,IAAc,CAAd;AACA,aAAK,UAAL,GAAkB,KAAK,KAAL,GAAa,EAA/B;AACD,OAJI;;AAKL,eAAS;AACP,aAAK,KAAL,IAAc,CAAd;AACA,aAAK,UAAL,GAAkB,KAAK,KAAL,GAAa,EAA/B;AACD;;AARI,KAAP;AAUD;;AArB4B,CAAD,CAA9B,E;;ACJumB,C;;ACA1hB;AACV;AACL;AAC9D,uCAAM,UAAU,MAAM;;AAEP,6H","file":"ExampleVue.umd.1.js","sourcesContent":["<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div>\n <button v-on:click=\"decrement\">-</button>\n {{ count }}\n <button v-on:click=\"increment\">+</button>\n\n <MatomoDialog v-model=\"showDialog\">\n <div class=\"ui-confirm exampleDialog\">\n <h2>Alert</h2>\n <p>\n The count is greater than 1 right now!\n </p>\n\n <input type=\"button\" value=\"OK\" role=\"yes\"/>\n </div>\n </MatomoDialog>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n data() {\n return {\n count: 12,\n showDialog: false,\n };\n },\n setup() {\n return {\n increment() {\n this.count += 1;\n this.showDialog = this.count > 15;\n },\n decrement() {\n this.count -= 1;\n this.showDialog = this.count > 15;\n },\n };\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n data() {\n return {\n count: 12,\n showDialog: false,\n };\n },\n setup() {\n return {\n increment() {\n this.count += 1;\n this.showDialog = this.count > 15;\n },\n decrement() {\n this.count -= 1;\n this.showDialog = this.count > 15;\n },\n };\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ExampleComponent.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ExampleComponent.vue?vue&type=script&lang=ts\"","import { render } from \"./ExampleComponent.vue?vue&type=template&id=2b8ee5bc\"\nimport script from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js b/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js index 9db9ab48d2..4117b4c54a 100644 --- a/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js +++ b/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js @@ -1,2 +1,2 @@ -(("undefined"!==typeof self?self:this)["webpackJsonpExampleVue"]=("undefined"!==typeof self?self:this)["webpackJsonpExampleVue"]||[]).push([[1],{"2d21":function(e,t,n){"use strict";n.r(t);var o=n("8bbf");const c=Object(o["createElementVNode"])("div",{class:"ui-confirm exampleDialog"},[Object(o["createElementVNode"])("h2",null,"Alert"),Object(o["createElementVNode"])("p",null," The count is greater than 1 right now! "),Object(o["createElementVNode"])("input",{type:"button",value:"OK",role:"yes"})],-1);function l(e,t,n,l,r,a){const i=Object(o["resolveComponent"])("MatomoDialog");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",null,[Object(o["createElementVNode"])("button",{onClick:t[0]||(t[0]=(...t)=>e.decrement&&e.decrement(...t))},"-"),Object(o["createTextVNode"])(" "+Object(o["toDisplayString"])(e.count)+" ",1),Object(o["createElementVNode"])("button",{onClick:t[1]||(t[1]=(...t)=>e.increment&&e.increment(...t))},"+"),Object(o["createVNode"])(i,{show:e.showDialog},{default:Object(o["withCtx"])(()=>[c]),_:1},8,["show"])])}var r=n("19dc"),a=Object(o["defineComponent"])({components:{MatomoDialog:r["MatomoDialog"]},computed:{showDialog(){return this.count>15}},data(){return{count:12}},setup(){return{increment(){this.count+=1},decrement(){this.count-=1}}}});a.render=l;t["default"]=a}}]); +(("undefined"!==typeof self?self:this)["webpackJsonpExampleVue"]=("undefined"!==typeof self?self:this)["webpackJsonpExampleVue"]||[]).push([[1],{"2d21":function(e,t,o){"use strict";o.r(t);var n=o("8bbf");const c=Object(n["createElementVNode"])("div",{class:"ui-confirm exampleDialog"},[Object(n["createElementVNode"])("h2",null,"Alert"),Object(n["createElementVNode"])("p",null," The count is greater than 1 right now! "),Object(n["createElementVNode"])("input",{type:"button",value:"OK",role:"yes"})],-1);function l(e,t,o,l,a,i){const r=Object(n["resolveComponent"])("MatomoDialog");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createElementVNode"])("button",{onClick:t[0]||(t[0]=(...t)=>e.decrement&&e.decrement(...t))},"-"),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.count)+" ",1),Object(n["createElementVNode"])("button",{onClick:t[1]||(t[1]=(...t)=>e.increment&&e.increment(...t))},"+"),Object(n["createVNode"])(r,{modelValue:e.showDialog,"onUpdate:modelValue":t[2]||(t[2]=t=>e.showDialog=t)},{default:Object(n["withCtx"])(()=>[c]),_:1},8,["modelValue"])])}var a=o("19dc"),i=Object(n["defineComponent"])({components:{MatomoDialog:a["MatomoDialog"]},data(){return{count:12,showDialog:!1}},setup(){return{increment(){this.count+=1,this.showDialog=this.count>15},decrement(){this.count-=1,this.showDialog=this.count>15}}}});i.render=l;t["default"]=i}}]); //# sourceMappingURL=ExampleVue.umd.min.1.js.map
\ No newline at end of file diff --git a/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js.map b/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js.map index 3728ba9ac7..6cfa793492 100644 --- a/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js.map +++ b/plugins/ExampleVue/vue/dist/ExampleVue.umd.min.1.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d4ac","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d496"],"names":["class","type","value","role","decrement","count","increment","show","showDialog","components","MatomoDialog","computed","this","render"],"mappings":"oNAcM,gCAOM,OAPDA,MAAM,4BAA0B,CACnC,gCAAc,UAAV,SACJ,gCAEI,SAFD,4CAIH,gCAA4C,SAArCC,KAAK,SAASC,MAAM,KAAKC,KAAK,U,iHAZ3C,gCAeM,YAdJ,gCAAyC,UAA5B,QAAK,oBAAE,EAAAC,WAAA,EAAAA,aAAA,KAAW,K,6BAAU,IACzC,6BAAG,EAAAC,OAAQ,IACX,mCAAyC,UAA5B,QAAK,oBAAE,EAAAC,WAAA,EAAAA,aAAA,KAAW,KAE/B,yBASe,GATAC,KAAM,EAAAC,YAAU,C,6BAC7B,IAOM,CAPN,I,mCCVS,+BAAgB,CAC7BC,WAAY,CACVC,aAAA,mBAEFC,SAAU,CACR,aACE,OAAOC,KAAKP,MAAQ,KAGxB,OACE,MAAO,CACLA,MAAO,KAIX,QACE,MAAO,CACL,YACEO,KAAKP,OAAS,GAEhB,YACEO,KAAKP,OAAS,OCtBtB,EAAOQ,OAASA,EAED","file":"ExampleVue.umd.min.1.js","sourcesContent":["<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div>\n <button v-on:click=\"decrement\">-</button>\n {{ count }}\n <button v-on:click=\"increment\">+</button>\n\n <MatomoDialog :show=\"showDialog\">\n <div class=\"ui-confirm exampleDialog\">\n <h2>Alert</h2>\n <p>\n The count is greater than 1 right now!\n </p>\n\n <input type=\"button\" value=\"OK\" role=\"yes\"/>\n </div>\n </MatomoDialog>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n computed: {\n showDialog() {\n return this.count > 15;\n },\n },\n data() {\n return {\n count: 12,\n };\n },\n\n setup() {\n return {\n increment() {\n this.count += 1;\n },\n decrement() {\n this.count -= 1;\n },\n };\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n computed: {\n showDialog() {\n return this.count > 15;\n },\n },\n data() {\n return {\n count: 12,\n };\n },\n\n setup() {\n return {\n increment() {\n this.count += 1;\n },\n decrement() {\n this.count -= 1;\n },\n };\n },\n});\n","import { render } from \"./ExampleComponent.vue?vue&type=template&id=9a0bba80\"\nimport script from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script"],"sourceRoot":""}
\ No newline at end of file +{"version":3,"sources":["webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d4ac","webpack://ExampleVue/./plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue?d496"],"names":["class","type","value","role","decrement","count","increment","showDialog","components","MatomoDialog","this","render"],"mappings":"oNAcM,gCAOM,OAPDA,MAAM,4BAA0B,CACnC,gCAAc,UAAV,SACJ,gCAEI,SAFD,4CAIH,gCAA4C,SAArCC,KAAK,SAASC,MAAM,KAAKC,KAAK,U,iHAZ3C,gCAeM,YAdJ,gCAAyC,UAA5B,QAAK,oBAAE,EAAAC,WAAA,EAAAA,aAAA,KAAW,K,6BAAU,IACzC,6BAAG,EAAAC,OAAQ,IACX,mCAAyC,UAA5B,QAAK,oBAAE,EAAAC,WAAA,EAAAA,aAAA,KAAW,KAE/B,yBASe,G,WATQ,EAAAC,W,qCAAA,EAAAA,WAAU,I,8BAC/B,IAOM,CAPN,I,yCCVS,+BAAgB,CAC7BC,WAAY,CACVC,aAAA,mBAEF,OACE,MAAO,CACLJ,MAAO,GACPE,YAAY,IAGhB,QACE,MAAO,CACL,YACEG,KAAKL,OAAS,EACdK,KAAKH,WAAaG,KAAKL,MAAQ,IAEjC,YACEK,KAAKL,OAAS,EACdK,KAAKH,WAAaG,KAAKL,MAAQ,QCnBvC,EAAOM,OAASA,EAED","file":"ExampleVue.umd.min.1.js","sourcesContent":["<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div>\n <button v-on:click=\"decrement\">-</button>\n {{ count }}\n <button v-on:click=\"increment\">+</button>\n\n <MatomoDialog v-model=\"showDialog\">\n <div class=\"ui-confirm exampleDialog\">\n <h2>Alert</h2>\n <p>\n The count is greater than 1 right now!\n </p>\n\n <input type=\"button\" value=\"OK\" role=\"yes\"/>\n </div>\n </MatomoDialog>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n data() {\n return {\n count: 12,\n showDialog: false,\n };\n },\n setup() {\n return {\n increment() {\n this.count += 1;\n this.showDialog = this.count > 15;\n },\n decrement() {\n this.count -= 1;\n this.showDialog = this.count > 15;\n },\n };\n },\n});\n</script>\n","\nimport { defineComponent } from 'vue';\nimport { MatomoDialog } from 'CoreHome';\n\nexport default defineComponent({\n components: {\n MatomoDialog,\n },\n data() {\n return {\n count: 12,\n showDialog: false,\n };\n },\n setup() {\n return {\n increment() {\n this.count += 1;\n this.showDialog = this.count > 15;\n },\n decrement() {\n this.count -= 1;\n this.showDialog = this.count > 15;\n },\n };\n },\n});\n","import { render } from \"./ExampleComponent.vue?vue&type=template&id=2b8ee5bc\"\nimport script from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nexport * from \"./ExampleComponent.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue b/plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue index 42388dacf4..546cf1458e 100644 --- a/plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue +++ b/plugins/ExampleVue/vue/src/ExampleComponent/ExampleComponent.vue @@ -11,7 +11,7 @@ {{ count }} <button v-on:click="increment">+</button> - <MatomoDialog :show="showDialog"> + <MatomoDialog v-model="showDialog"> <div class="ui-confirm exampleDialog"> <h2>Alert</h2> <p> @@ -32,24 +32,21 @@ export default defineComponent({ components: { MatomoDialog, }, - computed: { - showDialog() { - return this.count > 15; - }, - }, data() { return { count: 12, + showDialog: false, }; }, - setup() { return { increment() { this.count += 1; + this.showDialog = this.count > 15; }, decrement() { this.count -= 1; + this.showDialog = this.count > 15; }, }; }, diff --git a/plugins/Feedback/Feedback.php b/plugins/Feedback/Feedback.php index 9ba74d2dac..8e6531b7af 100644 --- a/plugins/Feedback/Feedback.php +++ b/plugins/Feedback/Feedback.php @@ -38,16 +38,13 @@ class Feedback extends \Piwik\Plugin public function getStylesheetFiles(&$stylesheets) { $stylesheets[] = "plugins/Feedback/stylesheets/feedback.less"; - $stylesheets[] = "plugins/Feedback/angularjs/ratefeature/ratefeature.directive.less"; + $stylesheets[] = "plugins/Feedback/vue/src/RateFeature/RateFeature.less"; $stylesheets[] = "plugins/Feedback/angularjs/feedback-popup/feedback-popup.directive.less"; $stylesheets[] = "plugins/Feedback/angularjs/refer-banner/refer-banner.directive.less"; } public function getJsFiles(&$jsFiles) { - $jsFiles[] = "plugins/Feedback/angularjs/ratefeature/ratefeature-model.service.js"; - $jsFiles[] = "plugins/Feedback/angularjs/ratefeature/ratefeature.controller.js"; - $jsFiles[] = "plugins/Feedback/angularjs/ratefeature/ratefeature.directive.js"; $jsFiles[] = "plugins/Feedback/angularjs/feedback-popup/feedback-popup.controller.js"; $jsFiles[] = "plugins/Feedback/angularjs/feedback-popup/feedback-popup.directive.js"; $jsFiles[] = "plugins/Feedback/angularjs/refer-banner/refer-banner.directive.js"; diff --git a/plugins/Feedback/angularjs/ratefeature/ratefeature-model.service.js b/plugins/Feedback/angularjs/ratefeature/ratefeature-model.service.js deleted file mode 100644 index 6483282f4f..0000000000 --- a/plugins/Feedback/angularjs/ratefeature/ratefeature-model.service.js +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -(function () { - angular.module('piwikApp').factory('rateFeatureModel', rateFeatureModel); - - rateFeatureModel.$inject = ['piwikApi']; - - function rateFeatureModel(piwikApi) { - - return { - sendFeedbackForFeature: sendFeedbackForFeature - }; - - function sendFeedbackForFeature (featureName, like, message) { - return piwikApi.fetch({ - method: 'Feedback.sendFeedbackForFeature', - featureName: featureName, - like: like ? '1' : '0', - message: message + '' - }); - } - - } -})(); diff --git a/plugins/Feedback/angularjs/ratefeature/ratefeature.controller.js b/plugins/Feedback/angularjs/ratefeature/ratefeature.controller.js deleted file mode 100644 index 15b6988a49..0000000000 --- a/plugins/Feedback/angularjs/ratefeature/ratefeature.controller.js +++ /dev/null @@ -1,33 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ -(function () { - angular.module('piwikApp').controller('RateFeatureController', RateFeatureController); - - RateFeatureController.$inject = ['$scope', 'rateFeatureModel']; - - function RateFeatureController($scope, model){ - - var vm = this; - vm.title = $scope.title; - vm.dislikeFeature = dislikeFeature; - vm.likeFeature = likeFeature; - vm.sendFeedback = sendFeedback; - - function dislikeFeature () { - vm.like = false; - } - - function likeFeature () { - vm.like = true; - } - - function sendFeedback (message) { - model.sendFeedbackForFeature(vm.title, vm.like, message); - vm.ratingDone = true; - } - } -})(); diff --git a/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.html b/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.html deleted file mode 100644 index 31ded8cf07..0000000000 --- a/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.html +++ /dev/null @@ -1,41 +0,0 @@ -<div title="{{ 'Feedback_RateFeatureTitle'|translate:(rateFeature.title|escape) }}" class="ratefeature"> - - <div class="iconContainer" - ng-mouseenter="view.expanded=true;" - ng-mouseleave="view.expanded=false"> - - <img ng-click="rateFeature.likeFeature();view.showFeedbackForm=true;" - class="like-icon" - src="plugins/Feedback/angularjs/ratefeature/thumbs-up.png"/> - - <img ng-click="rateFeature.dislikeFeature();view.showFeedbackForm=true;" - class="dislike-icon" - ng-show="view.expanded" - src="plugins/Feedback/angularjs/ratefeature/thumbs-down.png"/> - </div> - - <div class="ui-confirm ratefeatureDialog" piwik-dialog="view.showFeedbackForm" yes="rateFeature.sendFeedback(view.feedbackMessage)"> - <h2>{{ 'Feedback_RateFeatureThankYouTitle'|translate:title }}</h2> - <p ng-if="rateFeature.like">{{ 'Feedback_RateFeatureLeaveMessageLike'|translate }}</p> - <p ng-if="!rateFeature.like">{{ 'Feedback_RateFeatureLeaveMessageDislike'|translate }}</p> - <br /> - - <div class="messageContainer"> - <textarea ng-model="view.feedbackMessage"></textarea> - </div> - - <input type="button" - title="{{ 'Feedback_RateFeatureSendFeedbackInformation'|translate }}" - value="{{ 'Feedback_SendFeedback'|translate }}" role="yes"/> - <input type="button" role="cancel" value="{{ 'General_Cancel'|translate }}"/> - </div> - - <div class="ui-confirm ratefeatureDialog" piwik-dialog="rateFeature.ratingDone" yes=""> - <h2>{{ 'Feedback_ThankYou'|translate:rateFeature.title }}</h2> - - <div ng-if="rateFeature.like" ng-include src="'plugins/Feedback/angularjs/feedback-popup/review-links.directive.html'"></div> - - <input type="button" value="{{ 'General_Ok'|translate }}" role="yes"/> - </div> - -</div>
\ No newline at end of file diff --git a/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.js b/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.js deleted file mode 100644 index 8b4e5316fe..0000000000 --- a/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.js +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Matomo - free/libre analytics platform - * - * @link https://matomo.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - */ - -/** - * Usage: - * <div piwik-rate-feature title="My Feature Name"> - */ -(function () { - angular.module('piwikApp').directive('piwikRateFeature', piwikRateFeature); - - piwikRateFeature.$inject = ['piwik']; - - function piwikRateFeature(piwik){ - - return { - restrict: 'A', - scope: { - title: '@' - }, - templateUrl: 'plugins/Feedback/angularjs/ratefeature/ratefeature.directive.html?cb=' + piwik.cacheBuster, - controller: 'RateFeatureController', - controllerAs: 'rateFeature', - }; - } -})();
\ No newline at end of file diff --git a/plugins/Feedback/vue/dist/Feedback.umd.js b/plugins/Feedback/vue/dist/Feedback.umd.js new file mode 100644 index 0000000000..10d20f2a7f --- /dev/null +++ b/plugins/Feedback/vue/dist/Feedback.umd.js @@ -0,0 +1,348 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(require("CoreHome"), require("vue")); + else if(typeof define === 'function' && define.amd) + define(["CoreHome", ], factory); + else if(typeof exports === 'object') + exports["Feedback"] = factory(require("CoreHome"), require("vue")); + else + root["Feedback"] = factory(root["CoreHome"], root["Vue"]); +})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__19dc__, __WEBPACK_EXTERNAL_MODULE__8bbf__) { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = "plugins/Feedback/vue/dist/"; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "fae3"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "19dc": +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__19dc__; + +/***/ }), + +/***/ "8bbf": +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__; + +/***/ }), + +/***/ "fae3": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, "ReviewLinks", function() { return /* reexport */ ReviewLinks; }); +__webpack_require__.d(__webpack_exports__, "RateFeature", function() { return /* reexport */ RateFeature; }); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js +// This file is imported into lib/wc client bundles. + +if (typeof window !== 'undefined') { + var currentScript = window.document.currentScript + if (false) { var getCurrentScript; } + + var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/) + if (src) { + __webpack_require__.p = src[1] // eslint-disable-line + } +} + +// Indicate to webpack that this file can be concatenated +/* harmony default export */ var setPublicPath = (null); + +// EXTERNAL MODULE: external "CoreHome" +var external_CoreHome_ = __webpack_require__("19dc"); + +// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} +var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); + +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?vue&type=template&id=65bd066a + +const _hoisted_1 = ["title"]; +const _hoisted_2 = { + class: "ui-confirm ratefeatureDialog" +}; +const _hoisted_3 = { + key: 0 +}; +const _hoisted_4 = { + key: 1 +}; + +const _hoisted_5 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("br", null, null, -1); + +const _hoisted_6 = { + class: "messageContainer" +}; +const _hoisted_7 = ["title", "value"]; +const _hoisted_8 = ["value"]; +const _hoisted_9 = { + class: "ui-confirm ratefeatureDialog" +}; +const _hoisted_10 = { + key: 0 +}; +const _hoisted_11 = ["value"]; +function render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_MatomoDialog = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("MatomoDialog"); + + const _component_ReviewLinks = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ReviewLinks"); + + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", { + title: _ctx.translate('Feedback_RateFeatureTitle', _ctx.$sanitize(_ctx.title)), + class: "ratefeature" + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", { + class: "iconContainer", + onMouseenter: _cache[2] || (_cache[2] = $event => _ctx.expanded = true), + onMouseleave: _cache[3] || (_cache[3] = $event => _ctx.expanded = false) + }, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { + onClick: _cache[0] || (_cache[0] = $event => { + _ctx.likeFeature(); + + _ctx.showFeedbackForm = true; + }), + class: "like-icon", + src: "plugins/Feedback/vue/src/RateFeature/thumbs-up.png" + }), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("img", { + onClick: _cache[1] || (_cache[1] = $event => { + _ctx.dislikeFeature(); + + _ctx.showFeedbackForm = true; + }), + class: "dislike-icon", + src: "plugins/Feedback/vue/src/RateFeature/thumbs-down.png" + }, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.expanded]])], 32), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MatomoDialog, { + modelValue: _ctx.showFeedbackForm, + "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.showFeedbackForm = $event), + onYes: _cache[6] || (_cache[6] = $event => _ctx.sendFeedback()) + }, { + default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Feedback_RateFeatureThankYouTitle', _ctx.title)), 1), _ctx.like ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", _hoisted_3, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Feedback_RateFeatureLeaveMessageLike')), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), !_ctx.like ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("p", _hoisted_4, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Feedback_RateFeatureLeaveMessageDislike')), 1)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _hoisted_5, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_6, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("textarea", { + "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.feedbackMessage = $event) + }, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vModelText"], _ctx.feedbackMessage]])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + type: "button", + title: _ctx.translate('Feedback_RateFeatureSendFeedbackInformation'), + value: _ctx.translate('Feedback_SendFeedback'), + role: "yes" + }, null, 8, _hoisted_7), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + type: "button", + role: "cancel", + value: _ctx.translate('General_Cancel') + }, null, 8, _hoisted_8)])]), + _: 1 + }, 8, ["modelValue"]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_MatomoDialog, { + modelValue: _ctx.ratingDone, + "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.ratingDone = $event) + }, { + default: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(() => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("div", _hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("h2", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Feedback_ThankYou', _ctx.title)), 1), _ctx.like ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ReviewLinks)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("input", { + type: "button", + value: _ctx.translate('General_Ok'), + role: "yes" + }, null, 8, _hoisted_11)])]), + _: 1 + }, 8, ["modelValue"])], 8, _hoisted_1); +} +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?vue&type=template&id=65bd066a + +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?vue&type=template&id=4471fc41 + +const ReviewLinksvue_type_template_id_4471fc41_hoisted_1 = { + class: "requestReview" +}; + +const ReviewLinksvue_type_template_id_4471fc41_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createStaticVNode"])("<br><br><div class=\"review-links\"><div class=\"review-link\"><a href=\"https://www.capterra.com/p/182627/Matomo-Analytics/\" target=\"_blank\"><div class=\"image\"><img loading=\"lazy\" src=\"plugins/Feedback/images/capterra.svg\"></div><div class=\"link\">Capterra</div></a></div><div class=\"review-link\"><a href=\"https://www.g2crowd.com/products/matomo-formerly-piwik/details\" target=\"_blank\"><div class=\"image\"><img loading=\"lazy\" src=\"plugins/Feedback/images/g2crowd.svg\"></div><div class=\"link\">G2 Crowd</div></a></div><div class=\"review-link\"><a href=\"https://www.producthunt.com/posts/matomo-2\" target=\"_blank\"><div class=\"image\"><img loading=\"lazy\" src=\"plugins/Feedback/images/producthunt.svg\"></div><div class=\"link\">Product Hunt</div></a></div><div class=\"review-link\"><a href=\"https://www.saasworthy.com/product/matomo\" target=\"_blank\"><div class=\"image\"><img loading=\"lazy\" src=\"plugins/Feedback/images/saasworthy.png\"></div><div class=\"link\">SaaSworthy</div></a></div><div class=\"review-link\"><a href=\"https://www.trustradius.com/products/matomo/reviews\" target=\"_blank\"><div class=\"image\"><img loading=\"lazy\" src=\"plugins/Feedback/images/trustradius.svg\"></div><div class=\"link\">TrustRadius</div></a></div></div>", 3); + +function ReviewLinksvue_type_template_id_4471fc41_render(_ctx, _cache, $props, $setup, $data, $options) { + return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", ReviewLinksvue_type_template_id_4471fc41_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementVNode"])("p", null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.translate('Feedback_PleaseLeaveExternalReviewForMatomo')), 1), ReviewLinksvue_type_template_id_4471fc41_hoisted_2]); +} +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?vue&type=template&id=4471fc41 + +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-3!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?vue&type=script&lang=ts + +/* harmony default export */ var ReviewLinksvue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({})); +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?vue&type=script&lang=ts + +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue + + + +ReviewLinksvue_type_script_lang_ts.render = ReviewLinksvue_type_template_id_4471fc41_render + +/* harmony default export */ var ReviewLinks = (ReviewLinksvue_type_script_lang_ts); +// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader??ref--14-3!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?vue&type=script&lang=ts + + + +/* harmony default export */ var RateFeaturevue_type_script_lang_ts = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({ + props: { + title: String + }, + components: { + MatomoDialog: external_CoreHome_["MatomoDialog"], + ReviewLinks: ReviewLinks + }, + + data() { + return { + like: false, + ratingDone: false, + expanded: false, + showFeedbackForm: false, + feedbackMessage: '' + }; + }, + + methods: { + dislikeFeature() { + this.like = false; + }, + + likeFeature() { + this.like = true; + }, + + sendFeedback() { + external_CoreHome_["AjaxHelper"].fetch({ + method: 'Feedback.sendFeedbackForFeature', + featureName: this.title, + like: this.like ? '1' : '0', + message: this.feedbackMessage + }); + this.ratingDone = true; + } + + } +})); +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?vue&type=script&lang=ts + +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/RateFeature/RateFeature.vue + + + +RateFeaturevue_type_script_lang_ts.render = render + +/* harmony default export */ var RateFeature = (RateFeaturevue_type_script_lang_ts); +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/RateFeature/RateFeature.adapter.ts +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + + +/* harmony default export */ var RateFeature_adapter = (Object(external_CoreHome_["createAngularJsAdapter"])({ + component: RateFeature, + scope: { + title: { + angularJsBind: '@' + } + }, + directiveName: 'piwikRateFeature' +})); +// CONCATENATED MODULE: ./plugins/Feedback/vue/src/index.ts +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + + + +// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js + + + + +/***/ }) + +/******/ }); +}); +//# sourceMappingURL=Feedback.umd.js.map
\ No newline at end of file diff --git a/plugins/Feedback/vue/dist/Feedback.umd.js.map b/plugins/Feedback/vue/dist/Feedback.umd.js.map new file mode 100644 index 0000000000..a9475a0398 --- /dev/null +++ b/plugins/Feedback/vue/dist/Feedback.umd.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://Feedback/webpack/universalModuleDefinition","webpack://Feedback/webpack/bootstrap","webpack://Feedback/external \"CoreHome\"","webpack://Feedback/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://Feedback/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?afec","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?8b81","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?1770","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?7d7b","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?09a5","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?c2c1","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.adapter.ts","webpack://Feedback/./plugins/Feedback/vue/src/index.ts","webpack://Feedback/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,mD;;;;;;;ACAA,mD;;;;;;;;;;;;;;;;ACAA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,E;;ACVA;;;;;AAKG;AAEH;AAEA;;;ACTwB;AACF","file":"Feedback.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"CoreHome\"), require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"CoreHome\", ], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Feedback\"] = factory(require(\"CoreHome\"), require(\"vue\"));\n\telse\n\t\troot[\"Feedback\"] = factory(root[\"CoreHome\"], root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__19dc__, __WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"plugins/Feedback/vue/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","module.exports = __WEBPACK_EXTERNAL_MODULE__19dc__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","<!--\n Matomo - free/libre analytics platform\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n :title=\"translate('Feedback_RateFeatureTitle', $sanitize(title))\"\n class=\"ratefeature\"\n >\n <div\n class=\"iconContainer\"\n v-on:mouseenter=\"expanded = true\"\n v-on:mouseleave=\"expanded = false\"\n >\n <img\n v-on:click=\"likeFeature();showFeedbackForm=true\"\n class=\"like-icon\"\n src=\"plugins/Feedback/vue/src/RateFeature/thumbs-up.png\"\n />\n <img\n v-on:click=\"dislikeFeature();showFeedbackForm=true\"\n class=\"dislike-icon\"\n v-show=\"expanded\"\n src=\"plugins/Feedback/vue/src/RateFeature/thumbs-down.png\"\n />\n </div>\n <MatomoDialog\n v-model=\"showFeedbackForm\"\n @yes=\"sendFeedback()\"\n >\n <div\n class=\"ui-confirm ratefeatureDialog\"\n >\n <h2>{{ translate('Feedback_RateFeatureThankYouTitle', title) }}</h2>\n <p v-if=\"like\">{{ translate('Feedback_RateFeatureLeaveMessageLike') }}</p>\n <p v-if=\"!like\">{{ translate('Feedback_RateFeatureLeaveMessageDislike') }}</p>\n <br />\n <div class=\"messageContainer\">\n <textarea v-model=\"feedbackMessage\" />\n </div>\n <input\n type=\"button\"\n :title=\"translate('Feedback_RateFeatureSendFeedbackInformation')\"\n :value=\"translate('Feedback_SendFeedback')\"\n role=\"yes\"\n />\n <input\n type=\"button\"\n role=\"cancel\"\n :value=\"translate('General_Cancel')\"\n />\n </div>\n </MatomoDialog>\n <MatomoDialog\n v-model=\"ratingDone\"\n >\n <div\n class=\"ui-confirm ratefeatureDialog\"\n >\n <h2>{{ translate('Feedback_ThankYou', title) }}</h2>\n <div\n v-if=\"like\"\n >\n <ReviewLinks />\n </div>\n <input\n type=\"button\"\n :value=\"translate('General_Ok')\"\n role=\"yes\"\n />\n </div>\n </MatomoDialog>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport { MatomoDialog, AjaxHelper } from 'CoreHome';\nimport ReviewLinks from '../ReviewLinks/ReviewLinks.vue';\n\nexport default defineComponent({\n props: {\n title: String,\n },\n components: {\n MatomoDialog,\n ReviewLinks,\n },\n data() {\n return {\n like: false,\n ratingDone: false,\n expanded: false,\n showFeedbackForm: false,\n feedbackMessage: '',\n };\n },\n methods: {\n dislikeFeature() {\n this.like = false;\n },\n likeFeature() {\n this.like = true;\n },\n sendFeedback() {\n AjaxHelper.fetch({\n method: 'Feedback.sendFeedbackForFeature',\n featureName: this.title,\n like: this.like ? '1' : '0',\n message: this.feedbackMessage,\n });\n this.ratingDone = true;\n },\n },\n});\n</script>\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div class=\"requestReview\">\n <p>{{ translate('Feedback_PleaseLeaveExternalReviewForMatomo') }}</p><br><br>\n <div class=\"review-links\">\n <div class=\"review-link\">\n <a\n href=\"https://www.capterra.com/p/182627/Matomo-Analytics/\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/capterra.svg\"\n />\n </div>\n <div class=\"link\">Capterra</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.g2crowd.com/products/matomo-formerly-piwik/details\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/g2crowd.svg\"\n />\n </div>\n <div class=\"link\">G2 Crowd</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.producthunt.com/posts/matomo-2\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/producthunt.svg\"\n />\n </div>\n <div class=\"link\">Product Hunt</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.saasworthy.com/product/matomo\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/saasworthy.png\"\n />\n </div>\n <div class=\"link\">SaaSworthy</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.trustradius.com/products/matomo/reviews\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/trustradius.svg\"\n />\n </div>\n <div class=\"link\">TrustRadius</div>\n </a>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({});\n</script>\n","\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ReviewLinks.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ReviewLinks.vue?vue&type=script&lang=ts\"","import { render } from \"./ReviewLinks.vue?vue&type=template&id=4471fc41\"\nimport script from \"./ReviewLinks.vue?vue&type=script&lang=ts\"\nexport * from \"./ReviewLinks.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","\nimport { defineComponent } from 'vue';\nimport { MatomoDialog, AjaxHelper } from 'CoreHome';\nimport ReviewLinks from '../ReviewLinks/ReviewLinks.vue';\n\nexport default defineComponent({\n props: {\n title: String,\n },\n components: {\n MatomoDialog,\n ReviewLinks,\n },\n data() {\n return {\n like: false,\n ratingDone: false,\n expanded: false,\n showFeedbackForm: false,\n feedbackMessage: '',\n };\n },\n methods: {\n dislikeFeature() {\n this.like = false;\n },\n likeFeature() {\n this.like = true;\n },\n sendFeedback() {\n AjaxHelper.fetch({\n method: 'Feedback.sendFeedbackForFeature',\n featureName: this.title,\n like: this.like ? '1' : '0',\n message: this.feedbackMessage,\n });\n this.ratingDone = true;\n },\n },\n});\n","export { default } from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./RateFeature.vue?vue&type=script&lang=ts\"; export * from \"-!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./RateFeature.vue?vue&type=script&lang=ts\"","import { render } from \"./RateFeature.vue?vue&type=template&id=65bd066a\"\nimport script from \"./RateFeature.vue?vue&type=script&lang=ts\"\nexport * from \"./RateFeature.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport { createAngularJsAdapter } from 'CoreHome';\nimport RateFeature from './RateFeature.vue';\n\nexport default createAngularJsAdapter({\n component: RateFeature,\n scope: {\n title: {\n angularJsBind: '@',\n },\n },\n directiveName: 'piwikRateFeature',\n});\n","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport './RateFeature/RateFeature.adapter';\n\nexport { default as ReviewLinks } from './ReviewLinks/ReviewLinks.vue';\nexport { default as RateFeature } from './RateFeature/RateFeature.vue';\n","import './setPublicPath'\nexport * from '~entry'\n"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/Feedback/vue/dist/Feedback.umd.min.js b/plugins/Feedback/vue/dist/Feedback.umd.min.js new file mode 100644 index 0000000000..2c4e753504 --- /dev/null +++ b/plugins/Feedback/vue/dist/Feedback.umd.min.js @@ -0,0 +1,8 @@ +(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("CoreHome"),require("vue")):"function"===typeof define&&define.amd?define(["CoreHome"],t):"object"===typeof exports?exports["Feedback"]=t(require("CoreHome"),require("vue")):e["Feedback"]=t(e["CoreHome"],e["Vue"])})("undefined"!==typeof self?self:this,(function(e,t){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="plugins/Feedback/vue/dist/",a(a.s="fae3")}({"19dc":function(t,a){t.exports=e},"8bbf":function(e,a){e.exports=t},fae3:function(e,t,a){"use strict";if(a.r(t),a.d(t,"ReviewLinks",(function(){return h})),a.d(t,"RateFeature",(function(){return V})),"undefined"!==typeof window){var n=window.document.currentScript,r=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(a.p=r[1])}var i=a("19dc"),o=a("8bbf");const c=["title"],l={class:"ui-confirm ratefeatureDialog"},s={key:0},d={key:1},u=Object(o["createElementVNode"])("br",null,null,-1),b={class:"messageContainer"},m=["title","value"],p=["value"],v={class:"ui-confirm ratefeatureDialog"},k={key:0},f=["value"];function g(e,t,a,n,r,i){const g=Object(o["resolveComponent"])("MatomoDialog"),j=Object(o["resolveComponent"])("ReviewLinks");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{title:e.translate("Feedback_RateFeatureTitle",e.$sanitize(e.title)),class:"ratefeature"},[Object(o["createElementVNode"])("div",{class:"iconContainer",onMouseenter:t[2]||(t[2]=t=>e.expanded=!0),onMouseleave:t[3]||(t[3]=t=>e.expanded=!1)},[Object(o["createElementVNode"])("img",{onClick:t[0]||(t[0]=t=>{e.likeFeature(),e.showFeedbackForm=!0}),class:"like-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-up.png"}),Object(o["withDirectives"])(Object(o["createElementVNode"])("img",{onClick:t[1]||(t[1]=t=>{e.dislikeFeature(),e.showFeedbackForm=!0}),class:"dislike-icon",src:"plugins/Feedback/vue/src/RateFeature/thumbs-down.png"},null,512),[[o["vShow"],e.expanded]])],32),Object(o["createVNode"])(g,{modelValue:e.showFeedbackForm,"onUpdate:modelValue":t[5]||(t[5]=t=>e.showFeedbackForm=t),onYes:t[6]||(t[6]=t=>e.sendFeedback())},{default:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("div",l,[Object(o["createElementVNode"])("h2",null,Object(o["toDisplayString"])(e.translate("Feedback_RateFeatureThankYouTitle",e.title)),1),e.like?(Object(o["openBlock"])(),Object(o["createElementBlock"])("p",s,Object(o["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageLike")),1)):Object(o["createCommentVNode"])("",!0),e.like?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createElementBlock"])("p",d,Object(o["toDisplayString"])(e.translate("Feedback_RateFeatureLeaveMessageDislike")),1)),u,Object(o["createElementVNode"])("div",b,[Object(o["withDirectives"])(Object(o["createElementVNode"])("textarea",{"onUpdate:modelValue":t[4]||(t[4]=t=>e.feedbackMessage=t)},null,512),[[o["vModelText"],e.feedbackMessage]])]),Object(o["createElementVNode"])("input",{type:"button",title:e.translate("Feedback_RateFeatureSendFeedbackInformation"),value:e.translate("Feedback_SendFeedback"),role:"yes"},null,8,m),Object(o["createElementVNode"])("input",{type:"button",role:"cancel",value:e.translate("General_Cancel")},null,8,p)])]),_:1},8,["modelValue"]),Object(o["createVNode"])(g,{modelValue:e.ratingDone,"onUpdate:modelValue":t[7]||(t[7]=t=>e.ratingDone=t)},{default:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("div",v,[Object(o["createElementVNode"])("h2",null,Object(o["toDisplayString"])(e.translate("Feedback_ThankYou",e.title)),1),e.like?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",k,[Object(o["createVNode"])(j)])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("input",{type:"button",value:e.translate("General_Ok"),role:"yes"},null,8,f)])]),_:1},8,["modelValue"])],8,c)}const j={class:"requestReview"},O=Object(o["createStaticVNode"])('<br><br><div class="review-links"><div class="review-link"><a href="https://www.capterra.com/p/182627/Matomo-Analytics/" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/capterra.svg"></div><div class="link">Capterra</div></a></div><div class="review-link"><a href="https://www.g2crowd.com/products/matomo-formerly-piwik/details" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/g2crowd.svg"></div><div class="link">G2 Crowd</div></a></div><div class="review-link"><a href="https://www.producthunt.com/posts/matomo-2" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/producthunt.svg"></div><div class="link">Product Hunt</div></a></div><div class="review-link"><a href="https://www.saasworthy.com/product/matomo" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/saasworthy.png"></div><div class="link">SaaSworthy</div></a></div><div class="review-link"><a href="https://www.trustradius.com/products/matomo/reviews" target="_blank"><div class="image"><img loading="lazy" src="plugins/Feedback/images/trustradius.svg"></div><div class="link">TrustRadius</div></a></div></div>',3);function w(e,t,a,n,r,i){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",j,[Object(o["createElementVNode"])("p",null,Object(o["toDisplayString"])(e.translate("Feedback_PleaseLeaveExternalReviewForMatomo")),1),O])}var F=Object(o["defineComponent"])({});F.render=w;var h=F,y=Object(o["defineComponent"])({props:{title:String},components:{MatomoDialog:i["MatomoDialog"],ReviewLinks:h},data(){return{like:!1,ratingDone:!1,expanded:!1,showFeedbackForm:!1,feedbackMessage:""}},methods:{dislikeFeature(){this.like=!1},likeFeature(){this.like=!0},sendFeedback(){i["AjaxHelper"].fetch({method:"Feedback.sendFeedbackForFeature",featureName:this.title,like:this.like?"1":"0",message:this.feedbackMessage}),this.ratingDone=!0}}});y.render=g;var V=y; +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */Object(i["createAngularJsAdapter"])({component:V,scope:{title:{angularJsBind:"@"}},directiveName:"piwikRateFeature"})}})})); +//# sourceMappingURL=Feedback.umd.min.js.map
\ No newline at end of file diff --git a/plugins/Feedback/vue/dist/Feedback.umd.min.js.map b/plugins/Feedback/vue/dist/Feedback.umd.min.js.map new file mode 100644 index 0000000000..c84386e2fe --- /dev/null +++ b/plugins/Feedback/vue/dist/Feedback.umd.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://Feedback/webpack/universalModuleDefinition","webpack://Feedback/webpack/bootstrap","webpack://Feedback/external \"CoreHome\"","webpack://Feedback/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://Feedback/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?afec","webpack://Feedback/./plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue?1770","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?7d7b","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.vue?c2c1","webpack://Feedback/./plugins/Feedback/vue/src/RateFeature/RateFeature.adapter.ts"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__19dc__","__WEBPACK_EXTERNAL_MODULE__8bbf__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","window","currentScript","document","src","match","class","title","translate","$sanitize","expanded","likeFeature","showFeedbackForm","dislikeFeature","sendFeedback","like","feedbackMessage","type","role","ratingDone","render","props","String","components","MatomoDialog","ReviewLinks","methods","fetch","method","featureName","message","component","RateFeature","scope","angularJ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,kCACRC,YAAalE,KAAK4C,MAClBQ,KAAMpD,KAAKoD,KAAO,IAAM,IACxBe,QAASnE,KAAKqD,kBAEhBrD,KAAKwD,YAAa,MCjCxB,EAAOC,OAASA,EAED;;;;;;GCKA,oCAAuB,CACpCW,UAAWC,EACXC,MAAO,CACL1B,MAAO,CACL2B,cAAe,MAGnBC,cAAe","file":"Feedback.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"CoreHome\"), require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"CoreHome\", ], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Feedback\"] = factory(require(\"CoreHome\"), require(\"vue\"));\n\telse\n\t\troot[\"Feedback\"] = factory(root[\"CoreHome\"], root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__19dc__, __WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"plugins/Feedback/vue/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","module.exports = __WEBPACK_EXTERNAL_MODULE__19dc__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","<!--\n Matomo - free/libre analytics platform\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div\n :title=\"translate('Feedback_RateFeatureTitle', $sanitize(title))\"\n class=\"ratefeature\"\n >\n <div\n class=\"iconContainer\"\n v-on:mouseenter=\"expanded = true\"\n v-on:mouseleave=\"expanded = false\"\n >\n <img\n v-on:click=\"likeFeature();showFeedbackForm=true\"\n class=\"like-icon\"\n src=\"plugins/Feedback/vue/src/RateFeature/thumbs-up.png\"\n />\n <img\n v-on:click=\"dislikeFeature();showFeedbackForm=true\"\n class=\"dislike-icon\"\n v-show=\"expanded\"\n src=\"plugins/Feedback/vue/src/RateFeature/thumbs-down.png\"\n />\n </div>\n <MatomoDialog\n v-model=\"showFeedbackForm\"\n @yes=\"sendFeedback()\"\n >\n <div\n class=\"ui-confirm ratefeatureDialog\"\n >\n <h2>{{ translate('Feedback_RateFeatureThankYouTitle', title) }}</h2>\n <p v-if=\"like\">{{ translate('Feedback_RateFeatureLeaveMessageLike') }}</p>\n <p v-if=\"!like\">{{ translate('Feedback_RateFeatureLeaveMessageDislike') }}</p>\n <br />\n <div class=\"messageContainer\">\n <textarea v-model=\"feedbackMessage\" />\n </div>\n <input\n type=\"button\"\n :title=\"translate('Feedback_RateFeatureSendFeedbackInformation')\"\n :value=\"translate('Feedback_SendFeedback')\"\n role=\"yes\"\n />\n <input\n type=\"button\"\n role=\"cancel\"\n :value=\"translate('General_Cancel')\"\n />\n </div>\n </MatomoDialog>\n <MatomoDialog\n v-model=\"ratingDone\"\n >\n <div\n class=\"ui-confirm ratefeatureDialog\"\n >\n <h2>{{ translate('Feedback_ThankYou', title) }}</h2>\n <div\n v-if=\"like\"\n >\n <ReviewLinks />\n </div>\n <input\n type=\"button\"\n :value=\"translate('General_Ok')\"\n role=\"yes\"\n />\n </div>\n </MatomoDialog>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\nimport { MatomoDialog, AjaxHelper } from 'CoreHome';\nimport ReviewLinks from '../ReviewLinks/ReviewLinks.vue';\n\nexport default defineComponent({\n props: {\n title: String,\n },\n components: {\n MatomoDialog,\n ReviewLinks,\n },\n data() {\n return {\n like: false,\n ratingDone: false,\n expanded: false,\n showFeedbackForm: false,\n feedbackMessage: '',\n };\n },\n methods: {\n dislikeFeature() {\n this.like = false;\n },\n likeFeature() {\n this.like = true;\n },\n sendFeedback() {\n AjaxHelper.fetch({\n method: 'Feedback.sendFeedbackForFeature',\n featureName: this.title,\n like: this.like ? '1' : '0',\n message: this.feedbackMessage,\n });\n this.ratingDone = true;\n },\n },\n});\n</script>\n","<!--\n Matomo - free/libre analytics platform\n\n @link https://matomo.org\n @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n-->\n\n<template>\n <div class=\"requestReview\">\n <p>{{ translate('Feedback_PleaseLeaveExternalReviewForMatomo') }}</p><br><br>\n <div class=\"review-links\">\n <div class=\"review-link\">\n <a\n href=\"https://www.capterra.com/p/182627/Matomo-Analytics/\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/capterra.svg\"\n />\n </div>\n <div class=\"link\">Capterra</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.g2crowd.com/products/matomo-formerly-piwik/details\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/g2crowd.svg\"\n />\n </div>\n <div class=\"link\">G2 Crowd</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.producthunt.com/posts/matomo-2\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/producthunt.svg\"\n />\n </div>\n <div class=\"link\">Product Hunt</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.saasworthy.com/product/matomo\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/saasworthy.png\"\n />\n </div>\n <div class=\"link\">SaaSworthy</div>\n </a>\n </div>\n <div class=\"review-link\">\n <a\n href=\"https://www.trustradius.com/products/matomo/reviews\"\n target=\"_blank\"\n >\n <div class=\"image\">\n <img\n loading=\"lazy\"\n src=\"plugins/Feedback/images/trustradius.svg\"\n />\n </div>\n <div class=\"link\">TrustRadius</div>\n </a>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({});\n</script>\n","\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({});\n","import { render } from \"./ReviewLinks.vue?vue&type=template&id=4471fc41\"\nimport script from \"./ReviewLinks.vue?vue&type=script&lang=ts\"\nexport * from \"./ReviewLinks.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","\nimport { defineComponent } from 'vue';\nimport { MatomoDialog, AjaxHelper } from 'CoreHome';\nimport ReviewLinks from '../ReviewLinks/ReviewLinks.vue';\n\nexport default defineComponent({\n props: {\n title: String,\n },\n components: {\n MatomoDialog,\n ReviewLinks,\n },\n data() {\n return {\n like: false,\n ratingDone: false,\n expanded: false,\n showFeedbackForm: false,\n feedbackMessage: '',\n };\n },\n methods: {\n dislikeFeature() {\n this.like = false;\n },\n likeFeature() {\n this.like = true;\n },\n sendFeedback() {\n AjaxHelper.fetch({\n method: 'Feedback.sendFeedbackForFeature',\n featureName: this.title,\n like: this.like ? '1' : '0',\n message: this.feedbackMessage,\n });\n this.ratingDone = true;\n },\n },\n});\n","import { render } from \"./RateFeature.vue?vue&type=template&id=65bd066a\"\nimport script from \"./RateFeature.vue?vue&type=script&lang=ts\"\nexport * from \"./RateFeature.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","/*!\n * Matomo - free/libre analytics platform\n *\n * @link https://matomo.org\n * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later\n */\n\nimport { createAngularJsAdapter } from 'CoreHome';\nimport RateFeature from './RateFeature.vue';\n\nexport default createAngularJsAdapter({\n component: RateFeature,\n scope: {\n title: {\n angularJsBind: '@',\n },\n },\n directiveName: 'piwikRateFeature',\n});\n"],"sourceRoot":""}
\ No newline at end of file diff --git a/plugins/Feedback/vue/src/RateFeature/RateFeature.adapter.ts b/plugins/Feedback/vue/src/RateFeature/RateFeature.adapter.ts new file mode 100644 index 0000000000..2af13ffc21 --- /dev/null +++ b/plugins/Feedback/vue/src/RateFeature/RateFeature.adapter.ts @@ -0,0 +1,19 @@ +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +import { createAngularJsAdapter } from 'CoreHome'; +import RateFeature from './RateFeature.vue'; + +export default createAngularJsAdapter({ + component: RateFeature, + scope: { + title: { + angularJsBind: '@', + }, + }, + directiveName: 'piwikRateFeature', +}); diff --git a/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.less b/plugins/Feedback/vue/src/RateFeature/RateFeature.less index 83abd8970b..83abd8970b 100644 --- a/plugins/Feedback/angularjs/ratefeature/ratefeature.directive.less +++ b/plugins/Feedback/vue/src/RateFeature/RateFeature.less diff --git a/plugins/Feedback/vue/src/RateFeature/RateFeature.vue b/plugins/Feedback/vue/src/RateFeature/RateFeature.vue new file mode 100644 index 0000000000..324142273f --- /dev/null +++ b/plugins/Feedback/vue/src/RateFeature/RateFeature.vue @@ -0,0 +1,118 @@ +<!-- + Matomo - free/libre analytics platform + @link https://matomo.org + @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later +--> + +<template> + <div + :title="translate('Feedback_RateFeatureTitle', $sanitize(title))" + class="ratefeature" + > + <div + class="iconContainer" + v-on:mouseenter="expanded = true" + v-on:mouseleave="expanded = false" + > + <img + v-on:click="likeFeature();showFeedbackForm=true" + class="like-icon" + src="plugins/Feedback/vue/src/RateFeature/thumbs-up.png" + /> + <img + v-on:click="dislikeFeature();showFeedbackForm=true" + class="dislike-icon" + v-show="expanded" + src="plugins/Feedback/vue/src/RateFeature/thumbs-down.png" + /> + </div> + <MatomoDialog + v-model="showFeedbackForm" + @yes="sendFeedback()" + > + <div + class="ui-confirm ratefeatureDialog" + > + <h2>{{ translate('Feedback_RateFeatureThankYouTitle', title) }}</h2> + <p v-if="like">{{ translate('Feedback_RateFeatureLeaveMessageLike') }}</p> + <p v-if="!like">{{ translate('Feedback_RateFeatureLeaveMessageDislike') }}</p> + <br /> + <div class="messageContainer"> + <textarea v-model="feedbackMessage" /> + </div> + <input + type="button" + :title="translate('Feedback_RateFeatureSendFeedbackInformation')" + :value="translate('Feedback_SendFeedback')" + role="yes" + /> + <input + type="button" + role="cancel" + :value="translate('General_Cancel')" + /> + </div> + </MatomoDialog> + <MatomoDialog + v-model="ratingDone" + > + <div + class="ui-confirm ratefeatureDialog" + > + <h2>{{ translate('Feedback_ThankYou', title) }}</h2> + <div + v-if="like" + > + <ReviewLinks /> + </div> + <input + type="button" + :value="translate('General_Ok')" + role="yes" + /> + </div> + </MatomoDialog> + </div> +</template> + +<script lang="ts"> +import { defineComponent } from 'vue'; +import { MatomoDialog, AjaxHelper } from 'CoreHome'; +import ReviewLinks from '../ReviewLinks/ReviewLinks.vue'; + +export default defineComponent({ + props: { + title: String, + }, + components: { + MatomoDialog, + ReviewLinks, + }, + data() { + return { + like: false, + ratingDone: false, + expanded: false, + showFeedbackForm: false, + feedbackMessage: '', + }; + }, + methods: { + dislikeFeature() { + this.like = false; + }, + likeFeature() { + this.like = true; + }, + sendFeedback() { + AjaxHelper.fetch({ + method: 'Feedback.sendFeedbackForFeature', + featureName: this.title, + like: this.like ? '1' : '0', + message: this.feedbackMessage, + }); + this.ratingDone = true; + }, + }, +}); +</script> diff --git a/plugins/Feedback/angularjs/ratefeature/icon_license b/plugins/Feedback/vue/src/RateFeature/icon_license index 78a631917a..78a631917a 100644 --- a/plugins/Feedback/angularjs/ratefeature/icon_license +++ b/plugins/Feedback/vue/src/RateFeature/icon_license diff --git a/plugins/Feedback/angularjs/ratefeature/thumbs-down.png b/plugins/Feedback/vue/src/RateFeature/thumbs-down.png Binary files differindex c9ce204822..c9ce204822 100644 --- a/plugins/Feedback/angularjs/ratefeature/thumbs-down.png +++ b/plugins/Feedback/vue/src/RateFeature/thumbs-down.png diff --git a/plugins/Feedback/angularjs/ratefeature/thumbs-up.png b/plugins/Feedback/vue/src/RateFeature/thumbs-up.png Binary files differindex a94421bafe..a94421bafe 100644 --- a/plugins/Feedback/angularjs/ratefeature/thumbs-up.png +++ b/plugins/Feedback/vue/src/RateFeature/thumbs-up.png diff --git a/plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue b/plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue new file mode 100644 index 0000000000..fa65f8569f --- /dev/null +++ b/plugins/Feedback/vue/src/ReviewLinks/ReviewLinks.vue @@ -0,0 +1,90 @@ +<!-- + Matomo - free/libre analytics platform + + @link https://matomo.org + @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later +--> + +<template> + <div class="requestReview"> + <p>{{ translate('Feedback_PleaseLeaveExternalReviewForMatomo') }}</p><br><br> + <div class="review-links"> + <div class="review-link"> + <a + href="https://www.capterra.com/p/182627/Matomo-Analytics/" + target="_blank" + > + <div class="image"> + <img + loading="lazy" + src="plugins/Feedback/images/capterra.svg" + /> + </div> + <div class="link">Capterra</div> + </a> + </div> + <div class="review-link"> + <a + href="https://www.g2crowd.com/products/matomo-formerly-piwik/details" + target="_blank" + > + <div class="image"> + <img + loading="lazy" + src="plugins/Feedback/images/g2crowd.svg" + /> + </div> + <div class="link">G2 Crowd</div> + </a> + </div> + <div class="review-link"> + <a + href="https://www.producthunt.com/posts/matomo-2" + target="_blank" + > + <div class="image"> + <img + loading="lazy" + src="plugins/Feedback/images/producthunt.svg" + /> + </div> + <div class="link">Product Hunt</div> + </a> + </div> + <div class="review-link"> + <a + href="https://www.saasworthy.com/product/matomo" + target="_blank" + > + <div class="image"> + <img + loading="lazy" + src="plugins/Feedback/images/saasworthy.png" + /> + </div> + <div class="link">SaaSworthy</div> + </a> + </div> + <div class="review-link"> + <a + href="https://www.trustradius.com/products/matomo/reviews" + target="_blank" + > + <div class="image"> + <img + loading="lazy" + src="plugins/Feedback/images/trustradius.svg" + /> + </div> + <div class="link">TrustRadius</div> + </a> + </div> + </div> + </div> +</template> + +<script lang="ts"> +import { defineComponent } from 'vue'; + +export default defineComponent({}); +</script> diff --git a/plugins/Feedback/vue/src/index.ts b/plugins/Feedback/vue/src/index.ts new file mode 100644 index 0000000000..5f37c3b890 --- /dev/null +++ b/plugins/Feedback/vue/src/index.ts @@ -0,0 +1,11 @@ +/*! + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +import './RateFeature/RateFeature.adapter'; + +export { default as ReviewLinks } from './ReviewLinks/ReviewLinks.vue'; +export { default as RateFeature } from './RateFeature/RateFeature.vue'; diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_actions_outlinks_vlog.png b/tests/UI/expected-screenshots/UIIntegrationTest_actions_outlinks_vlog.png index 08cb157123..9a8b129fad 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_actions_outlinks_vlog.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_actions_outlinks_vlog.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:740baa83d2f40d82914391ff8987aa936213a4dd4b89d7a38003b030224e950b -size 76833 +oid sha256:538571f7e610df012df69361973ed9aa801f9e66d8c6c59f540b149e30ee7357 +size 76840 diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_actions_pages_tooltip_help.png b/tests/UI/expected-screenshots/UIIntegrationTest_actions_pages_tooltip_help.png index 452169e06e..34b6ae9274 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_actions_pages_tooltip_help.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_actions_pages_tooltip_help.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4c82d43a781dce5f27ed5a376153614263aae0d5382f4419edef5c88f2cf8cd8 -size 372472 +oid sha256:654fc8f11c18d98e9062b06c2b4204f69377440befed7d640cef16bef2e4df5e +size 372465 diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_email_reports_editor.png b/tests/UI/expected-screenshots/UIIntegrationTest_email_reports_editor.png index c98a162cb4..64b57438f6 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_email_reports_editor.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_email_reports_editor.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c1c639dd769c48a8d394a37a23fae273b1433c758a61961739103541a70e9943 -size 477139 +oid sha256:cd32eb0a526a62a4fd85c637f0a35f159f42b638cdf9997206d217f30c8c5cfb +size 477041 diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_goals_manage.png b/tests/UI/expected-screenshots/UIIntegrationTest_goals_manage.png index cdf5e4713d..34fedec0a5 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_goals_manage.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_goals_manage.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a11641d14ffbae6d186fed6c931a37ea512988b46341ea5f01bf7bc0632b05b6 -size 57139 +oid sha256:f8a6404773acb97da31345604564f560c805e2235a4aed7a1e8abf795182c785 +size 66748 |