From ba4db8824e25d8badf04a673e8ba7cabec68de62 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Fri, 2 Feb 2024 11:54:30 +0200 Subject: [PATCH 01/11] UHF-5527: Add search role attribute for a generic form template to be used on other templates --- templates/form/form--unit-search.twig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 templates/form/form--unit-search.twig diff --git a/templates/form/form--unit-search.twig b/templates/form/form--unit-search.twig new file mode 100644 index 000000000..b70cb1c60 --- /dev/null +++ b/templates/form/form--unit-search.twig @@ -0,0 +1,15 @@ +{# +/** + * @file + * Theme override for a 'form' element. + * + * Available variables + * - attributes: A list of HTML attributes for the wrapper element. + * - children: The child elements of the form. + * + * @see template_preprocess_form() + */ +#} + + {{ children }} + From 3999de3b54189c1df386a9b8f58987d671fda431 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Fri, 2 Feb 2024 12:31:16 +0200 Subject: [PATCH 02/11] UHF-5527: Add template suggestion to target all unit searches, even the ones used from reusable components, with the same template --- hdbt.theme | 4 ++++ .../{form--unit-search.twig => form--unit-search.html.twig} | 0 2 files changed, 4 insertions(+) rename templates/form/{form--unit-search.twig => form--unit-search.html.twig} (100%) diff --git a/hdbt.theme b/hdbt.theme index b0476dc81..0f70ce6c6 100644 --- a/hdbt.theme +++ b/hdbt.theme @@ -411,6 +411,10 @@ function hdbt_theme_suggestions_form_element_alter(array &$suggestions, array $v */ function hdbt_theme_suggestions_form_alter(array &$suggestions, array $variables): void { $suggestions[] = 'form__' . str_replace('-', '_', $variables['element']['#id']); + + if ($variables['element']['unit_search']) { + $suggestions[] = 'form__unit_search'; + } } /** diff --git a/templates/form/form--unit-search.twig b/templates/form/form--unit-search.html.twig similarity index 100% rename from templates/form/form--unit-search.twig rename to templates/form/form--unit-search.html.twig From c7050207d686bdbd0a12d014dd6f904a219e5d23 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Fri, 2 Feb 2024 12:36:53 +0200 Subject: [PATCH 03/11] UHF-5527: Add check to avoid undefined array key error --- hdbt.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdbt.theme b/hdbt.theme index 0f70ce6c6..d2af40b92 100644 --- a/hdbt.theme +++ b/hdbt.theme @@ -412,7 +412,7 @@ function hdbt_theme_suggestions_form_element_alter(array &$suggestions, array $v function hdbt_theme_suggestions_form_alter(array &$suggestions, array $variables): void { $suggestions[] = 'form__' . str_replace('-', '_', $variables['element']['#id']); - if ($variables['element']['unit_search']) { + if (isset($variables['element']['unit_search']) && $variables['element']['unit_search']) { $suggestions[] = 'form__unit_search'; } } From 8e7ed02a1d9610e0313fbacebf0be5a42d07bb6e Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Fri, 2 Feb 2024 14:58:51 +0200 Subject: [PATCH 04/11] UHF-5527: Add search role attribute to all react searches --- dist/js/district-and-project-search.min.js | 2 +- dist/js/health-station-search.min.js | 2 +- dist/js/job-search.min.js | 2 +- dist/js/linkedevents.min.js | 2 +- dist/js/maternity-and-child-health-clinic-search.min.js | 2 +- dist/js/news-archive.min.js | 2 +- dist/js/ploughing-schedule.min.js | 2 +- dist/js/school-search.min.js | 2 +- package-lock.json | 6 +++--- .../containers/FormContainer.tsx | 2 +- .../apps/health-station-search/containers/FormContainer.tsx | 2 +- src/js/react/apps/job-search/containers/FormContainer.tsx | 2 +- src/js/react/apps/linkedevents/containers/FormContainer.tsx | 2 +- .../containers/FormContainer.tsx | 2 +- src/js/react/apps/news-archive/containers/FormContainer.tsx | 2 +- .../apps/ploughing-schedule/containers/FormContainer.tsx | 2 +- .../apps/school-search/containers/FeatureFormContainer.tsx | 2 +- .../school-search/containers/ProximityFormContainer.tsx | 2 +- 18 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/js/district-and-project-search.min.js b/dist/js/district-and-project-search.min.js index 489c938ab..74ccbc0c3 100644 --- a/dist/js/district-and-project-search.min.js +++ b/dist/js/district-and-project-search.min.js @@ -1 +1 @@ -!function(){var e={8518:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{S:function(){return o},n:function(){return r}})},1422:function(e,t,n){"use strict";n.d(t,{KV:function(){return o},l$:function(){return i}});var r=n(8518);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}e=n.hmd(e)},1170:function(e,t,n){"use strict";n.d(t,{ph:function(){return u},yW:function(){return c}});var r=n(1422),o=n(1235);e=n.hmd(e);const i=(0,o.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const l=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=i;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===l?a:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},c=a.nowSeconds.bind(a),u=s.nowSeconds.bind(s);let d;(()=>{const{performance:e}=i;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=o=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(i,o),i=o=null),l};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(l=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},9960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},7915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),a=n(7790);o(n(7790),t);var l=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===i.ElementType.Text)t?n.data=(n.data+e).replace(l," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(l," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(i.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},7790:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return o(t,e),t}(f);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o,r)||this;return i.name=t,i.attribs=n,i}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function _(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function y(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(_(e)){var r=t?k(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?k(e.children):[];var l=new f(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=l})),n=l}else if(x(e)){r=t?k(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map((function(e){return w(e,!0)})),n=1;n/i,l=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var h=c(e);if(!a.test(e))null===(t=null==(_=h.querySelector(r))?void 0:_.parentNode)||void 0===t||t.removeChild(_);if(!l.test(e))null===(u=null==(_=h.querySelector(o))?void 0:_.parentNode)||void 0===u||u.removeChild(_);return h.querySelectorAll(n);case r:case o:var m=s(e).querySelectorAll(p);return l.test(e)&&a.test(e)?m[0].parentNode.childNodes:m;default:return f?f(e):(_=s(e,o).querySelector(o)).childNodes;var _}}},4152:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(8276)),i=n(1507),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},1507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(7915),o=n(885);function i(e){for(var t={},n=0,r=e.length;n1&&(g=d(g,{key:g.key||m})),r.push(c(g,_,m));continue}}if("text"!==_.type){var v=_,b={};s(v)?((0,a.setStyleProp)(v.attribs.style,v.attribs),b=v.attribs):v.attribs&&(b=(0,i.default)(v.attribs,v.name));var y=void 0;switch(_.type){case"script":case"style":_.children[0]&&(b.dangerouslySetInnerHTML={__html:_.children[0].data});break;case"tag":"textarea"===_.name&&_.children[0]?b.defaultValue=_.children[0].data:_.children&&_.children.length&&(y=e(_.children,n));break;default:continue}h>1&&(b.key=m),r.push(c(p(_.name,b,y),_,m))}else{var x=!_.data.trim().length;if(x&&_.parent&&!(0,a.canTextBeChildOfNode)(_.parent))continue;if((null==n?void 0:n.trim)&&x)continue;r.push(c(_.data,_,m))}}return 1===r.length?r[0]:r}},3426:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(4152));t.htmlToDOM=o.default;var i=r(n(484));t.attributesToProps=i.default;var a=r(n(3670));t.domToReact=a.default;var l=n(7915);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4606:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(7294),i=r(n(1476)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var l={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};t.returnFirstArg=function(e){return e}},8139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=s.source}m.prototype.content=e;var _=[];function g(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;_.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=v(o);if(n){if(x(),!v(i))return g("property missing ':'");var r=v(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(l),s}}return b(),function(){var e,t=[];for(y(t);e=w();)!1!==e&&(t.push(e),y(t));return t}()}},2307:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",l="[object Boolean]",s="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",h="[object Promise]",m="[object RegExp]",_="[object Set]",g="[object String]",v="[object Symbol]",b="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",w=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[i]=E[a]=E[y]=E[l]=E[x]=E[s]=E[c]=E[u]=E[d]=E[p]=E[f]=E[m]=E[_]=E[g]=E[b]=!1;var S="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,C=S||I||Function("return this")(),T=t&&!t.nodeType&&t,O=T&&e&&!e.nodeType&&e,j=O&&O.exports===T,N=j&&S.process,D=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),L=D&&D.isTypedArray;function R(e,t){for(var n=-1,r=null==e?0:e.length;++nl))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++u-1},ve.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(ie||ve),string:new ge}},be.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Ne(this,e).get(e)},be.prototype.has=function(e){return Ne(this,e).has(e)},be.prototype.set=function(e,t){var n=Ne(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,r),this},ye.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ve,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Le=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=o}function He(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var We=L?function(e){return function(t){return e(t)}}(L):function(e){return Ve(e)&&Ue(e.length)&&!!E[Ee(e)]};function Ke(e){return null!=(t=e)&&Ue(t.length)&&!$e(t)?we(e):Te(e);var t}e.exports=function(e,t){return Ie(e,t)}},4461:function(e,t,n){var r="[object Symbol]",o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")(),l=Object.prototype,s=0,c=l.toString,u=a.Symbol,d=u?u.prototype:void 0,p=d?d.toString:void 0;function f(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&c.call(e)==r}(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}e.exports=function(e){var t,n=++s;return(null==(t=e)?"":f(t))+n}},7418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,s=o(e),c=1;c