From 331ddd8b67c05b7135e54278fc9833ccdb88a726 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 8 Dec 2022 10:48:34 +0100 Subject: [PATCH] Update handlebars-loader to 1.7.3 + others Signed-off-by: Vincent Petry Signed-off-by: nextcloud-command --- core/js/dist/login.js | 2 +- core/js/dist/login.js.map | 2 +- package-lock.json | 100 ++++++-------------------------------- 3 files changed, 16 insertions(+), 88 deletions(-) diff --git a/core/js/dist/login.js b/core/js/dist/login.js index ae036be7456ee..2007dc542d5de 100644 --- a/core/js/dist/login.js +++ b/core/js/dist/login.js @@ -583,7 +583,7 @@ e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月 //! moment.js locale configuration e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(2))},,,,,,,,,,,,,,,,,,function(e,n,r){"use strict";(function(e){var a=r(0),i=r.n(a),o=r(111),s=r(14),u=o.Model.extend({defaults:{fullName:"",lastMessage:"",actions:[],hasOneAction:!1,hasTwoActions:!1,hasManyActions:!1},initialize:function(){0===this.get("actions").length?this.set("hasOneAction",!0):1===this.get("actions").length?(this.set("hasTwoActions",!0),this.set("secondAction",this.get("actions")[0])):this.set("hasManyActions",!0)}}),l=o.Collection.extend({model:u}),c=o.View.extend({_collection:void 0,_subViews:[],initialize:function(e){this._collection=e.collection},render:function(){var e=this;return e.$el.html(""),e._subViews=[],e._collection.forEach((function(t){var n=new d({model:t});n.render(),e.$el.append(n.$el),n.on("toggle:actionmenu",e._onChildActionMenuToggle,e),e._subViews.push(n)})),e},_onChildActionMenuToggle:function(e){this._subViews.forEach((function(t){t.trigger("parent:toggle:actionmenu",e)}))}}),d=o.View.extend({className:"contact",_template:void 0,_model:void 0,_actionMenuShown:!1,events:{"click .icon-more":"_onToggleActionsMenu"},contactTemplate:r(579),template:function(e){return this.contactTemplate(e)},initialize:function(e){this._model=e.model,this.on("parent:toggle:actionmenu",this._onOtherActionMenuOpened,this)},render:function(){return this.$el.html(this.template({contact:this._model.toJSON()})),this.delegateEvents(),this.$("div.avatar").imageplaceholder(this._model.get("fullName")),this.$(".top-action").tooltip({placement:"left"}),this.$(".second-action").tooltip({placement:"left"}),this},_onToggleActionsMenu:function(){this._actionMenuShown=!this._actionMenuShown,this._actionMenuShown?this.$(".menu").show():this.$(".menu").hide(),this.trigger("toggle:actionmenu",this.$el)},_onOtherActionMenuOpened:function(e){this.$el.is(e)||(this._actionMenuShown=!1,this.$(".menu").hide())}}),f=o.View.extend({_loadingTemplate:void 0,_errorTemplate:void 0,_contentTemplate:void 0,_contactsTemplate:void 0,_contacts:void 0,_searchTerm:"",events:{"input #contactsmenu-search":"_onSearch"},templates:{loading:r(594),error:r(595),menu:r(596),list:r(597)},_onSearch:e.debounce((function(e){var t=this.$("#contactsmenu-search").val();t!==this._searchTerm&&(this.trigger("search",this.$("#contactsmenu-search").val()),this._searchTerm=t)}),700),loadingTemplate:function(e){return this.templates.loading(e)},errorTemplate:function(n){return this.templates.error(e.extend({couldNotLoadText:t("core","Could not load your contacts")},n))},contentTemplate:function(n){return this.templates.menu(e.extend({searchContactsText:t("core","Search contacts …")},n))},contactsTemplate:function(n){return this.templates.list(e.extend({noContactsFoundText:t("core","No contacts found"),showAllContactsText:t("core","Show all contacts …"),contactsAppMgmtText:t("core","Install the Contacts app")},n))},initialize:function(e){this.options=e},showLoading:function(e){this.render(),this._contacts=void 0,this.$(".content").html(this.loadingTemplate({loadingText:e}))},showError:function(){this.render(),this._contacts=void 0,this.$(".content").html(this.errorTemplate())},showContacts:function(e,t){this._contacts=e.contacts,this.render({contacts:e.contacts});var n=new c({collection:e.contacts});n.render(),this.$(".content").html(this.contactsTemplate({contacts:e.contacts,searchTerm:t,contactsAppEnabled:e.contactsAppEnabled,contactsAppURL:s.a.generateUrl("/apps/contacts"),canInstallApp:s.a.isUserAdmin(),contactsAppMgmtURL:s.a.generateUrl("/settings/apps/social/contacts")})),this.$("#contactsmenu-contacts").html(n.$el)},render:function(e){var t=this.$("#contactsmenu-search").val();return this.$el.html(this.contentTemplate(e)),this.$("#contactsmenu-search").val(t),this.$("#contactsmenu-search").focus(),this}}),p=function(e){this.initialize(e)};p.prototype={$el:void 0,_$trigger:void 0,_view:void 0,_contactsPromise:void 0,initialize:function(e){this.$el=e.el,this._$trigger=e.trigger,this._view=new f({el:this.$el}),this._view.on("search",(function(e){this._loadContacts(e)}),this),s.a.registerMenu(this._$trigger,this.$el,function(){this._toggleVisibility(!0)}.bind(this),!0),this.$el.on("beforeHide",function(){this._toggleVisibility(!1)}.bind(this))},_toggleVisibility:function(e){return e?this._loadContacts():(this.$el.html(""),Promise.resolve())},_getContacts:function(e){var t=s.a.generateUrl("/contactsmenu/contacts");return Promise.resolve(i.a.ajax(t,{method:"POST",data:{filter:e}}))},_loadContacts:function(n){var r=this;return r._contactsPromise||(r._contactsPromise=r._getContacts(n)),e.isUndefined(n)||""===n?r._view.showLoading(t("core","Loading your contacts …")):r._view.showLoading(t("core","Looking for {term} …",{term:n})),r._contactsPromise.then((function(e){e.contacts=new l(e.contacts),r._view.showContacts(e,n)}),(function(e){r._view.showError(),console.error("There was an error loading your contacts",e)})).then((function(){delete r._contactsPromise})).catch(console.error.bind(this))}},n.a=p}).call(this,r(8))},function(e,t,n){ /*! @license DOMPurify 2.3.10 | (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.10/LICENSE */ -e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,a,i){return(r=n()?Reflect.construct:function(e,n,r){var a=[null];a.push.apply(a,n);var i=new(Function.bind.apply(e,a));return r&&t(i,r.prototype),i}).apply(null,arguments)}function a(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),a=1;a/gm),B=f(/^data-[\-\w.\u00B7-\uFFFF]/),G=f(/^aria-[\-\w]+$/),q=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=f(/^(?:\w+script|data):/i),J=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=f(/^html$/i),X=function(){return"undefined"==typeof window?null:window},Z=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.3.10",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,o=n.document,s=n.DocumentFragment,u=n.HTMLTemplateElement,l=n.Node,c=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,m=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,h=n.HTMLFormElement,_=n.DOMParser,y=n.trustedTypes,D=c.prototype,Q=j(D,"cloneNode"),ee=j(D,"nextSibling"),te=j(D,"childNodes"),ne=j(D,"parentNode");if("function"==typeof u){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var ae=Z(y,i),ie=ae?ae.createHTML(""):"",oe=o,se=oe.implementation,ue=oe.createNodeIterator,le=oe.createDocumentFragment,ce=oe.getElementsByTagName,de=i.importNode,fe={};try{fe=E(o).documentMode?o.documentMode:{}}catch(e){}var pe={};r.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==fe;var me,he,_e=z,ye=$,ge=B,ve=G,Me=V,be=J,Le=q,we=null,Te=S({},[].concat(a(O),a(A),a(P),a(H),a(I))),xe=null,ke=S({},[].concat(a(F),a(R),a(U),a(W))),Ye=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Se=null,Ee=!0,je=!0,Oe=!1,Ae=!1,Pe=!1,Ce=!1,He=!1,Ne=!1,Ie=!1,Fe=!1,Re=!0,Ue=!0,We=!1,ze={},$e=null,Be=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"]),Ge=null,qe=S({},["audio","video","img","source","image","track"]),Ve=null,Je=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",Ze="http://www.w3.org/1999/xhtml",Qe=Ze,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,at=o.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},ot=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=E(t),me=me=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===me?function(e){return e}:b,we="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS,he):Te,xe="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR,he):ke,Ve="ADD_URI_SAFE_ATTR"in t?S(E(Je),t.ADD_URI_SAFE_ATTR,he):Je,Ge="ADD_DATA_URI_TAGS"in t?S(E(qe),t.ADD_DATA_URI_TAGS,he):qe,$e="FORBID_CONTENTS"in t?S({},t.FORBID_CONTENTS,he):Be,De="FORBID_TAGS"in t?S({},t.FORBID_TAGS,he):{},Se="FORBID_ATTR"in t?S({},t.FORBID_ATTR,he):{},ze="USE_PROFILES"in t&&t.USE_PROFILES,Ee=!1!==t.ALLOW_ARIA_ATTR,je=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,Ne=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,Re=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Le=t.ALLOWED_URI_REGEXP||Le,Qe=t.NAMESPACE||Ze,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ye.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ye.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ye.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(je=!1),Ie&&(Ne=!0),ze&&(we=S({},a(I)),xe=[],!0===ze.html&&(S(we,O),S(xe,F)),!0===ze.svg&&(S(we,A),S(xe,R),S(xe,W)),!0===ze.svgFilters&&(S(we,P),S(xe,R),S(xe,W)),!0===ze.mathMl&&(S(we,H),S(xe,U),S(xe,W))),t.ADD_TAGS&&(we===Te&&(we=E(we)),S(we,t.ADD_TAGS,he)),t.ADD_ATTR&&(xe===ke&&(xe=E(xe)),S(xe,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&S(Ve,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&($e===Be&&($e=E($e)),S($e,t.FORBID_CONTENTS,he)),Ue&&(we["#text"]=!0),Pe&&S(we,["html","head","body"]),we.table&&(S(we,["tbody"]),delete De.tbody),d&&d(t),rt=t)},st=S({},["mi","mo","mn","ms","mtext"]),ut=S({},["foreignobject","desc","title","annotation-xml"]),lt=S({},["title","style","font","a","script"]),ct=S({},A);S(ct,P),S(ct,C);var dt=S({},H);S(dt,N);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=b(e.tagName),r=b(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(ct[n]):e.namespaceURI===Ke?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Xe?"math"===n&&ut[r]:Boolean(dt[n]):e.namespaceURI===Ze&&!(t.namespaceURI===Xe&&!ut[r])&&!(t.namespaceURI===Ke&&!st[r])&&!dt[n]&&(lt[n]||!ct[n])},pt=function(e){M(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},mt=function(e,t){try{M(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){M(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Ne||Ie)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t,n;if(He)e=""+e;else{var r=L(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&(e=''+e+"");var a=ae?ae.createHTML(e):e;if(Qe===Ze)try{t=(new _).parseFromString(a,me)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":a}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Qe===Ze?ce.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:i},_t=function(e){return ue.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof m)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},gt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},vt=function(e,t,n){pe[e]&&g(pe[e],(function(e){e.call(r,t,n,rt)}))},Mt=function(e){var t;if(vt("beforeSanitizeElements",e,null),yt(e))return pt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return pt(e),!0;var n=he(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===n&&k(/