@yext/answers-search-ui
Version:
Javascript Search Programming Interface
174 lines • 624 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).ANSWERS=t()}(this,(function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t,n){return t=l(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n){if(h())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&v(i,n.prototype),i}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function s(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=m(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(null,arguments)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}function y(e,t,n,r){var i=c(l(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function _(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||w(t)||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 b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function k(e){return(k="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})(e)}function w(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function S(e){var t="function"==typeof Map?new Map:void 0;return(S=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return r(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)})(e)}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e,t){return e(t={exports:{}},t.exports),t.exports}var E=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SearchCore=void 0;t.SearchCore=class{constructor(e,t,n,r){this.searchService=e,this.questionSubmissionService=t,this.autoCompleteService=n,this.generativeDirectAnswerService=r}universalSearch(e){return this.searchService.universalSearch(e)}verticalSearch(e){return this.searchService.verticalSearch(e)}submitQuestion(e){return this.questionSubmissionService.submitQuestion(e)}universalAutocomplete(e){return this.autoCompleteService.universalAutocomplete(e)}verticalAutocomplete(e){return this.autoCompleteService.verticalAutocomplete(e)}filterSearch(e){return this.autoCompleteService.filterSearch(e)}generativeDirectAnswer(e){return this.generativeDirectAnswerService.generateAnswer(e)}}}));x(E),E.SearchCore;var O=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectAnswerType=void 0,function(e){e.FeaturedSnippet="FEATURED_SNIPPET",e.FieldValue="FIELD_VALUE"}(t.DirectAnswerType||(t.DirectAnswerType={}))}));x(O),O.DirectAnswerType;var M=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,function(e){e.KnowledgeManager="KNOWLEDGE_MANAGER",e.Google="GOOGLE_CSE",e.Custom="CUSTOM_SEARCHER",e.DocumentVertical="DOCUMENT_VERTICAL",e.FunctionVertical="FUNCTION_VERTICAL"}(t.Source||(t.Source={}))}));x(M),M.Source;var T=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ResultsFactory=void 0;t.ResultsFactory=class{static create(e,t){return e?e.map((e,n)=>{const r=n+1;switch(t){case M.Source.KnowledgeManager:return this.fromKnowledgeManager(e,r);case M.Source.Google:return this.fromGoogleCustomSearchEngine(e,r);case M.Source.DocumentVertical:return this.fromDocumentVertical(e,r);case M.Source.FunctionVertical:return this.fromFunctionVertical(e,r);default:return this.fromCustomSource(e,r)}}):[]}static fromKnowledgeManager(e,t){var n;const r=null!==(n=e.data)&&void 0!==n?n:e;return{rawData:r,source:M.Source.KnowledgeManager,index:t,name:r.name,description:r.description,link:r.website,id:r.id,distance:e.distance,distanceFromFilter:e.distanceFromFilter,highlightedFields:e.highlightedFields,entityType:r.type}}static fromDocumentVertical(e,t){var n;const r=null!==(n=e.data)&&void 0!==n?n:e;return{rawData:r,source:M.Source.DocumentVertical,name:r.name,description:r.description,link:r.website,id:r.id,index:t,segment:e.segment,document:e.document,documents:e.documents}}static fromGoogleCustomSearchEngine(e,t){var n;const r=null!==(n=e.data)&&void 0!==n?n:e;return{rawData:r,source:M.Source.Google,index:t,name:r.htmlTitle.replace(/(<([^>]+)>)/gi,""),description:r.htmlSnippet,link:r.link}}static fromCustomSource(e,t){return this.fromCustomDataHelper(e,t,M.Source.Custom)}static fromFunctionVertical(e,t){return this.fromCustomDataHelper(e,t,M.Source.FunctionVertical)}static fromCustomDataHelper(e,t,n){var r;const i=null!==(r=e.data)&&void 0!==r?r:e;return{rawData:i,source:n,index:t,name:i.name,description:i.description,link:i.website,id:i.id}}static fromDirectAnswer(e){var t;const n=null!==(t=e.fieldValues)&&void 0!==t?t:{};return{rawData:n,source:M.Source.KnowledgeManager,name:n.name,description:n.description,link:e.website,id:e.id,entityType:e.type}}}}));x(T),T.ResultsFactory;var L=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BuiltInFieldType=void 0,function(e){e.URL="url",e.ComplexURL="complex_url",e.IOSAppURL="ios_app_url",e.AndroidAppURL="android_app_url",e.FacebookURL="facebook_url",e.Email="email",e.InstagramHandle="instagram_handle",e.TwitterHandle="twitter_handle",e.Phone="phone",e.Address="address",e.Hours="hours",e.Decimal="decimal",e.Integer="integer",e.SingleLineText="single_line_text",e.RichText="rich_text",e.MultiLineText="multi_line_text",e.RichText_v2="rich_text_v2",e.Html="html",e.Markdown="markdown"}(t.BuiltInFieldType||(t.BuiltInFieldType={}))}));x(L),L.BuiltInFieldType;var F=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createDirectAnswer=void 0;const n=[L.BuiltInFieldType.MultiLineText,L.BuiltInFieldType.RichText,L.BuiltInFieldType.RichText_v2,L.BuiltInFieldType.Markdown,L.BuiltInFieldType.Html];t.createDirectAnswer=function(e){const t=(null==e?void 0:e.type)===O.DirectAnswerType.FieldValue,r=(null==e?void 0:e.type)===O.DirectAnswerType.FeaturedSnippet,i={value:e.answer.value,relatedResult:T.ResultsFactory.fromDirectAnswer(e.relatedItem.data),verticalKey:e.relatedItem.verticalConfigId,fieldType:Object.values(L.BuiltInFieldType).includes(e.answer.fieldType)?e.answer.fieldType:"unknown"};if(t)return Object.assign(Object.assign({type:O.DirectAnswerType.FieldValue},i),{entityName:e.answer.entityName,fieldName:e.answer.fieldName,fieldApiName:e.answer.fieldApiName});if(r){const t=i.fieldType;return n.includes(t)?Object.assign(Object.assign({type:O.DirectAnswerType.FeaturedSnippet},i),{snippet:e.answer.snippet}):void console.warn("Unexpected fieldType for featured snippet direct answer: "+t)}throw new Error("The Search API returned an unknown direct answer type: "+(null==e?void 0:e.type))}}));x(F),F.createDirectAnswer;var I=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Matcher=void 0,function(e){e.Equals="$eq",e.NotEquals="!$eq",e.LessThan="$lt",e.LessThanOrEqualTo="$le",e.GreaterThan="$gt",e.GreaterThanOrEqualTo="$ge",e.Near="$near",e.Between="$between",e.OpenAt="$openAt"}(t.Matcher||(t.Matcher={}))}));x(I),I.Matcher;var R=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createFieldValueFilter=void 0,t.createFieldValueFilter=function(e){const t=e.filter,n=Object.keys(t)[0],r=Object.keys(t[n])[0];let i;return i=r===I.Matcher.Between?function(e){const t={};return Object.keys(e).forEach(n=>{n===I.Matcher.GreaterThan||n===I.Matcher.GreaterThanOrEqualTo?t.start={matcher:n,value:e[n]}:n!==I.Matcher.LessThan&&n!==I.Matcher.LessThanOrEqualTo||(t.end={matcher:n,value:e[n]})}),t}(t[n][r]):r===I.Matcher.Near?Object.assign(Object.assign({},t[n][r]),{name:e.value}):t[n][r],{fieldId:n,matcher:r,value:i}}}));x(R),R.createFieldValueFilter;var j=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createFacets=void 0,t.createFacets=function(e){return e?e.map(e=>{return{fieldId:e.fieldId,displayName:e.displayName,options:(t=e.options,t.map(e=>{const t=(0,R.createFieldValueFilter)(e);return{displayName:e.displayName,count:e.count,selected:e.selected,matcher:t.matcher,value:t.value}}))};var t}):[]}}));x(j),j.createFacets;var P=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createLocationBias=void 0,t.createLocationBias=function(e){return{latitude:e.latitude,longitude:e.longitude,displayName:e.locationDisplayName,method:e.accuracy}}}));x(P),P.createLocationBias;var N=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createSpellCheck=void 0,t.createSpellCheck=function(e){return{originalQuery:e.originalQuery,correctedQuery:e.correctedQuery.value,type:e.type,matchedSubstrings:e.correctedQuery.matchedSubstrings}}}));x(N),N.createSpellCheck;var D=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createAppliedQueryFilter=void 0,t.createAppliedQueryFilter=function(e){return Object.assign({displayKey:e.displayKey,displayValue:e.displayValue,filter:(0,R.createFieldValueFilter)(e),type:e.type},e.details&&{details:e.details})}}));x(D),D.createAppliedQueryFilter;var B=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createVerticalResults=void 0,t.createVerticalResults=function(e){return{appliedQueryFilters:e.appliedQueryFilters?e.appliedQueryFilters.map(D.createAppliedQueryFilter):[],queryDurationMillis:e.queryDurationMillis,results:T.ResultsFactory.create(e.results,e.source),resultsCount:e.resultsCount,source:e.source,verticalKey:e.verticalConfigId}}}));x(B),B.createVerticalResults;var q=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createVerticalSearchResponse=void 0,t.createVerticalSearchResponse=function e(t){var n,r,i;return{verticalResults:(0,B.createVerticalResults)(t.response),queryId:t.response.queryId,directAnswer:t.response.directAnswer&&(0,F.createDirectAnswer)(t.response.directAnswer),searchIntents:t.response.searchIntents,facets:(0,j.createFacets)(t.response.facets),spellCheck:t.response.spellCheck&&(0,N.createSpellCheck)(t.response.spellCheck),locationBias:t.response.locationBias&&(0,P.createLocationBias)(t.response.locationBias),allResultsForVertical:t.response.allResultsForVertical&&e({response:t.response.allResultsForVertical}),alternativeVerticals:null===(r=null===(n=t.response.alternativeVerticals)||void 0===n?void 0:n.modules)||void 0===r?void 0:r.map(B.createVerticalResults),uuid:null===(i=t.meta)||void 0===i?void 0:i.uuid,queryRulesActionsData:t.response.queryRulesActionsData}}}));x(q),q.createVerticalSearchResponse;var U=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0,function(e){e.PROD="prod",e.SANDBOX="sbx",e.QA="qa",e.DEV="dev"}(t.Environment||(t.Environment={}))}));x(U),U.Environment;var V=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CloudRegion=void 0,function(e){e.US="us",e.EU="eu"}(t.CloudRegion||(t.CloudRegion={}))}));x(V),V.CloudRegion;var z=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CloudChoice=void 0,function(e){e.GLOBAL_MULTI="GLOBAL-MULTI",e.GLOBAL_GCP="GLOBAL-GCP"}(t.CloudChoice||(t.CloudChoice={}))}));x(z),z.CloudChoice;var H=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SandboxEndpoints=t.EndpointsFactory=t.defaultApiVersion=void 0,t.defaultApiVersion=20220511;class n{constructor(e){this.environment=(null==e?void 0:e.environment)||U.Environment.PROD,this.cloudRegion=(null==e?void 0:e.cloudRegion)||V.CloudRegion.US,this.cloudChoice=(null==e?void 0:e.cloudChoice)||z.CloudChoice.GLOBAL_MULTI}getDomain(){if(this.isInternalTestEnvironment()&&this.cloudRegion===V.CloudRegion.US)return`https://liveapi-${this.environment}.yext.com`;switch(this.cloudChoice){case z.CloudChoice.GLOBAL_GCP:return`https://${this.environment}-cdn-gcp.${this.cloudRegion}.yextapis.com`;case z.CloudChoice.GLOBAL_MULTI:default:return`https://${this.environment}-cdn.${this.cloudRegion}.yextapis.com`}}getCachedDomain(){if(this.isInternalTestEnvironment()&&this.cloudRegion===V.CloudRegion.US)return`https://liveapi-${this.environment}.yext.com`;switch(this.cloudChoice){case z.CloudChoice.GLOBAL_GCP:return`https://${this.environment}-cdn-cached-gcp.${this.cloudRegion}.yextapis.com`;case z.CloudChoice.GLOBAL_MULTI:default:return`https://${this.environment}-cdn-cached.${this.cloudRegion}.yextapis.com`}}getEndpoints(){return{universalSearch:this.getDomain()+"/v2/accounts/me/search/query",verticalSearch:this.getDomain()+"/v2/accounts/me/search/vertical/query",questionSubmission:this.getDomain()+"/v2/accounts/me/createQuestion",status:"https://answersstatus.pagescdn.com",universalAutocomplete:this.getCachedDomain()+"/v2/accounts/me/search/autocomplete",verticalAutocomplete:this.getCachedDomain()+"/v2/accounts/me/search/vertical/autocomplete",filterSearch:this.getDomain()+"/v2/accounts/me/search/filtersearch",generativeDirectAnswer:this.getDomain()+"/v2/accounts/me/search/generateAnswer"}}isInternalTestEnvironment(){return this.environment===U.Environment.DEV||this.environment===U.Environment.QA}}t.EndpointsFactory=n,t.SandboxEndpoints=new n({environment:U.Environment.SANDBOX,cloudRegion:V.CloudRegion.US,cloudChoice:z.CloudChoice.GLOBAL_MULTI}).getEndpoints()}));x(H),H.SandboxEndpoints,H.EndpointsFactory,H.defaultApiVersion;var K=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySource=void 0,function(e){e.Standard="STANDARD",e.Overlay="OVERLAY",e.Autocomplete="AUTOCOMPLETE"}(t.QuerySource||(t.QuerySource={}))}));x(K),K.QuerySource;var G=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createFailedVertical=void 0,t.createFailedVertical=function(e){return{verticalKey:e.verticalConfigId,errorType:e.errorType,queryDurationMillis:e.queryDurationMillis,details:e.details}}}));x(G),G.createFailedVertical;var Z=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createUniversalSearchResponse=void 0,t.createUniversalSearchResponse=function(e){var t;return{verticalResults:Array.isArray(e.response.modules)?e.response.modules.map(B.createVerticalResults):[],queryId:e.response.queryId,directAnswer:e.response.directAnswer&&(0,F.createDirectAnswer)(e.response.directAnswer),searchIntents:e.response.searchIntents,spellCheck:e.response.spellCheck&&(0,N.createSpellCheck)(e.response.spellCheck),locationBias:e.response.locationBias&&(0,P.createLocationBias)(e.response.locationBias),uuid:e.meta.uuid,queryRulesActionsData:e.response.queryRulesActionsData,failedVerticals:null===(t=e.response.failedVerticals)||void 0===t?void 0:t.map(G.createFailedVertical)}}}));x(Z),Z.createUniversalSearchResponse;var Q=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNumberRangeValue=void 0,t.isNumberRangeValue=function(e){return"object"==typeof e&&!!e&&("start"in e||"end"in e)}}));x(Q),Q.isNumberRangeValue;var W=A((function(e,t){function n(e){let t={};return(0,Q.isNumberRangeValue)(e.value)?(e.value.start&&(t[e.value.start.matcher]=e.value.start.value),e.value.end&&(t[e.value.end.matcher]=e.value.end.value)):t={[e.matcher]:e.value},{[e.fieldId]:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.shapeFieldValueFilterForApi=t.serializeStaticFilters=void 0,t.serializeStaticFilters=function(e){if("fieldValue"!==e.kind){const t=function e(t,r){const i=[];for(const t of r)if("fieldValue"!==t.kind){const n=e(t.combinator,t.filters);n&&i.push(n)}else i.push(n(t));return 0===i.length?void 0:1===i.length?i[0]:{[t]:i}}(e.combinator,e.filters);return t&&JSON.stringify(t)}return JSON.stringify(n(e))},t.shapeFieldValueFilterForApi=n}));x(W),W.shapeFieldValueFilterForApi,W.serializeStaticFilters;var $=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeFacets=void 0,t.serializeFacets=function(e){return JSON.stringify(e.reduce((e,t)=>{const n=t.fieldId,r=function(e,t){return e.map(e=>(0,W.shapeFieldValueFilterForApi)(Object.assign(Object.assign({},e),{fieldId:t})))}(t.options,n);return e[n]=r,e},{}))}}));x($),$.serializeFacets;var Y,J="@yext/search-core",X="Typescript Networking Library for the Yext Search API",ee="./dist/commonjs/src/index.js",te="./dist/esm/src/index.js",ne="./dist/bundle.d.ts",re=["networking","search api","search","browser","nodejs","typescript","commonjs","es6","yext"],ie=["dist","legacy","lib","src","THIRD-PARTY-NOTICES"],oe={node:">=12"},ae={test:"npm run lint && jest",lint:"eslint . --max-warnings=0","tsc-cjs":"tsc -p tsconfig.cjs.json","tsc-esm":"tsc -p tsconfig.esm.json",tsc:"npm run tsc-cjs && npm run tsc-esm","build-legacy-bundle":"npx webpack",build:"rm -rf dist/** && npm run tsc && npm run build-legacy-bundle && npm run api-extractor && npm run generate-docs","build-ci":"npm run tsc-cjs && npm run api-extractor && npm run generate-docs",dev:"npm run tsc-esm -- --watch",prepublishOnly:"npm run build","api-extractor":"api-extractor run --local --verbose","generate-docs":"api-documenter markdown --input-folder temp --output-folder docs && rm -rf temp && npm run generate-notices","generate-notices":"generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite"},se={type:"git",url:"https://github.com/yext/search-core.git"},ce={url:"https://github.com/yext/search-core/issues"},le="https://github.com/yext/search-core#readme",ue={"@babel/core":"^7.12.3","@babel/plugin-transform-runtime":"^7.23.2","@babel/preset-env":"^7.23.2","@babel/preset-typescript":"^7.12.1","@microsoft/api-documenter":"^7.13.76","@microsoft/api-extractor":"^7.19.2","@types/jest":"^28.1.1","@typescript-eslint/eslint-plugin":"^5.16.0","@typescript-eslint/parser":"^5.16.0","@yext/eslint-config-slapshot":"^0.4.0","@yext/eslint-plugin-export-star":"^1.0.2","babel-jest":"^28.1.0","babel-loader":"^8.3.0",eslint:"^8.11.0","eslint-config-react-app":"^7.0.1","eslint-plugin-tsdoc":"^0.2.14","generate-license-file":"^4.1.0",jest:"^28.1.0","jest-environment-jsdom":"^28.1.0","ts-loader":"^8.4.0",typescript:"^4.0.3",webpack:"^5.90.0","webpack-cli":"^4.4.0"},he={"@babel/runtime-corejs3":"^7.12.5","cross-fetch":"^3.1.5"},de={bail:0,collectCoverage:!0,collectCoverageFrom:["src/**","!src/models/**/*.ts"],verbose:!0,moduleFileExtensions:["js","ts"],moduleDirectories:["node_modules","<rootDir>"],testEnvironment:"jsdom",testPathIgnorePatterns:["./tests/mocks/*"],testMatch:["<rootDir>/tests/**/*.[jt]s"]},fe={name:J,version:"2.8.0",description:X,main:ee,module:te,types:ne,sideEffects:!1,keywords:re,files:ie,engines:oe,scripts:ae,repository:se,author:"slapshot@yext.com",license:"BSD-3-Clause",bugs:ce,homepage:le,devDependencies:ue,dependencies:he,jest:de},pe=(Y=Object.freeze({__proto__:null,name:J,version:"2.8.0",description:X,main:ee,module:te,types:ne,sideEffects:!1,keywords:re,files:ie,engines:oe,scripts:ae,repository:se,author:"slapshot@yext.com",license:"BSD-3-Clause",bugs:ce,homepage:le,devDependencies:ue,dependencies:he,jest:de,default:fe}))&&Y.default||Y,ve=A((function(e,t){var n=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getClientSdk=void 0;const r=n(pe),{version:i}=r.default;t.getClientSdk=function(e){var t;const n={ANSWERS_CORE:i};if(!e)return n;const r=null!==(t=e["Client-SDK"])&&void 0!==t?t:{};return Object.entries(r).reduce((e,[t,n])=>n?Object.assign(Object.assign({},e),{[t]:n}):e,n)}}));x(ve),ve.getClientSdk;var ge=A((function(e,t){var n=C&&C.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchServiceImpl=void 0;t.SearchServiceImpl=class{constructor(e,t,n){this.config=e,this.httpService=t,this.apiResponseValidator=n,this.universalSearchEndpoint=e.endpoints.universalSearch,this.verticalSearchEndpoint=e.endpoints.verticalSearch}universalSearch(e){var t,r,i,o;return n(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({input:e.query,experienceKey:this.config.experienceKey},"apiKey"in this.config&&{api_key:this.config.apiKey}),{v:H.defaultApiVersion,version:this.config.experienceVersion,limit:JSON.stringify(e.limit),location:this.stringifyLatLong(e.location),locale:this.config.locale,skipSpellCheck:e.skipSpellCheck,session_id:e.sessionId,sessionTrackingEnabled:e.sessionTrackingEnabled,queryTrigger:e.queryTrigger,context:JSON.stringify(e.context),referrerPageUrl:e.referrerPageUrl,source:e.querySource||K.QuerySource.Standard,visitorId:null===(t=this.config.visitor)||void 0===t?void 0:t.id,visitorIdMethod:null===(r=this.config.visitor)||void 0===r?void 0:r.idMethod,restrictVerticals:null===(i=e.restrictVerticals)||void 0===i?void 0:i.join(",")}),null===(o=this.config)||void 0===o?void 0:o.additionalQueryParams),a="token"in this.config?yield this.httpService.get(this.universalSearchEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.get(this.universalSearchEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders)),s=this.apiResponseValidator.validate(a);return s instanceof Error?Promise.reject(s):(0,Z.createUniversalSearchResponse)(a)}))}verticalSearch(e){var t,r,i,o,a;return n(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({experienceKey:this.config.experienceKey},"apiKey"in this.config&&{api_key:this.config.apiKey}),{v:H.defaultApiVersion,version:this.config.experienceVersion,locale:this.config.locale,input:e.query,location:this.stringifyLatLong(e.location),verticalKey:e.verticalKey,filters:e.staticFilter&&(0,W.serializeStaticFilters)(e.staticFilter),limit:e.limit,offset:e.offset,retrieveFacets:e.retrieveFacets,facetFilters:e.facets&&(0,$.serializeFacets)(e.facets),skipSpellCheck:e.skipSpellCheck,queryTrigger:e.queryTrigger,session_id:e.sessionId,sessionTrackingEnabled:e.sessionTrackingEnabled,sortBys:JSON.stringify(e.sortBys||[]),context:JSON.stringify(e.context),referrerPageUrl:e.referrerPageUrl,source:e.querySource||K.QuerySource.Standard,locationRadius:null===(t=e.locationRadius)||void 0===t?void 0:t.toString(),queryId:e.queryId,visitorId:null===(r=this.config.visitor)||void 0===r?void 0:r.id,visitorIdMethod:null===(i=this.config.visitor)||void 0===i?void 0:i.idMethod,facetAllowlist:null===(o=e.facetAllowlist)||void 0===o?void 0:o.join(",")}),null===(a=this.config)||void 0===a?void 0:a.additionalQueryParams),s="token"in this.config?yield this.httpService.get(this.verticalSearchEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.get(this.verticalSearchEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders)),c=this.apiResponseValidator.validate(s);return c instanceof Error?Promise.reject(c):(0,q.createVerticalSearchResponse)(s)}))}stringifyLatLong(e){if(e)return`${e.latitude},${e.longitude}`}}}));x(ge),ge.SearchServiceImpl;var me=A((function(e,t){var n=C&&C.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.QuestionSubmissionServiceImpl=void 0;t.QuestionSubmissionServiceImpl=class{constructor(e,t,n){this.config=e,this.httpService=t,this.apiResponseValidator=n,this.endpoint=this.config.endpoints.questionSubmission}submitQuestion(e){var t;return n(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({v:H.defaultApiVersion},"apiKey"in this.config&&{api_key:this.config.apiKey}),{sessionTrackingEnabled:e.sessionTrackingEnabled}),null===(t=this.config)||void 0===t?void 0:t.additionalQueryParams),r={email:e.email,entityId:e.entityId,name:e.name,questionDescription:e.questionDescription,questionLanguage:this.config.locale,questionText:e.questionText,site:"FIRSTPARTY"},i="token"in this.config?yield this.httpService.post(this.endpoint,n,r,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.post(this.endpoint,n,r,(0,ve.getClientSdk)(e.additionalHttpHeaders)),o=this.apiResponseValidator.validate(i);return o instanceof Error?Promise.reject(o):{uuid:i.meta.uuid}}))}}}));x(me),me.QuestionSubmissionServiceImpl;var ye=A((function(e,t){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==C&&C,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==C&&C||{},r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function v(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=p(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=v(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=h(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=h(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},i&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=t.method||this.method||"GET",i=r.toUpperCase(),_.indexOf(i)>-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];w.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,r){return new Promise((function(i,a){var c=new b(e,r);if(c.signal&&c.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function d(){l.abort()}if(l.onload=function(){var e,t,n={statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};0===c.url.indexOf("file://")&&(l.status<200||l.status>599)?n.status=200:n.status=l.status,n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){i(new w(r,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(c.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(o?l.responseType="blob":s&&(l.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof f||n.Headers&&r.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(r.headers).forEach((function(e){p.push(u(e)),l.setRequestHeader(e,h(r.headers[e]))})),c.headers.forEach((function(e,t){-1===p.indexOf(t)&&l.setRequestHeader(t,e)}))}else c.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));c.signal&&(c.signal.addEventListener("abort",d),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",d)}),l.send(void 0===c._bodyInit?null:c._bodyInit)}))}x.polyfill=!0,n.fetch||(n.fetch=x,n.Headers=f,n.Request=b,n.Response=w),t.Headers=f,t.Request=b,t.Response=w,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}));x(ye);var _e=ye.fetch;ye.Headers,ye.Request,ye.Response;var be=A((function(e,t){function n(e){return Object.keys(e).forEach(t=>{void 0!==e[t]&&null!==e[t]||delete e[t]}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeQueryParams=t.addParamsToURL=void 0,t.addParamsToURL=function(e,t){const r=new URL(e),i=new URLSearchParams(r.search.substring(1)),o=n(t);for(const e in o)i.append(e,o[e].toString());let a=r.origin+r.pathname;const s=i.toString();return s&&(a+="?"+s),a},t.sanitizeQueryParams=n}));x(be),be.sanitizeQueryParams,be.addParamsToURL;var ke=A((function(e,t){var n=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HttpServiceImpl=void 0;const r=n(ye);var i;!function(e){e.GET="get",e.POST="post"}(i||(i={}));function o(e,t,n){const i=(0,be.addParamsToURL)(e,t);return"undefined"!=typeof window&&window.fetch?window.fetch(i,n):(0,r.default)(i,n)}function a(e){return Object.keys(e).reduce((t,n)=>{const r=`${n}=${e[n]}`;return t?`${t}, ${r}`:r},"")}t.HttpServiceImpl=class{get(e,t,n,r){return o(e,t,{method:i.GET,mode:"cors",credentials:"include",headers:Object.assign({"Client-SDK":a(n)},r&&{Authorization:"Bearer "+r})}).then(e=>e.json())}post(e,t,n,r,s){const c=(0,be.sanitizeQueryParams)(n);return o(e,t,Object.assign(Object.assign({method:i.POST,body:JSON.stringify(c),mode:"cors"},s&&{credentials:"include"}),{headers:Object.assign({"Client-SDK":a(r),"Content-Type":"application/json"},s&&{Authorization:"Bearer "+s})})).then(e=>e.json())}}}));x(ke),ke.HttpServiceImpl;var we=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SearchError=void 0;class n extends Error{constructor(e,t,r){super(e),this.message=e,this.code=t,this.type=r,Object.setPrototypeOf(this,n.prototype)}}t.SearchError=n}));x(we),we.SearchError;var Se=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createAutocompleteResult=void 0,t.createAutocompleteResult=function(e){var t;const n=e.relatedItem?T.ResultsFactory.create([e.relatedItem],M.Source.KnowledgeManager)[0]:e.relatedItem;return{filter:e.filter&&(0,R.createFieldValueFilter)(e),key:e.key,matchedSubstrings:e.matchedSubstrings||[],value:e.value,relatedItem:n,verticalKeys:e.verticalKeys,inputIntents:null!==(t=e.queryIntents)&&void 0!==t?t:[]}}}));x(Se),Se.createAutocompleteResult;var Ce=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createFilterSearchResponse=t.createAutocompleteResponse=void 0,t.createAutocompleteResponse=function(e){var t,n;if(!e.response)throw new Error("The autocomplete data does not contain a response property");if(!Object.keys(e.response).length)throw new Error("The autocomplete response is empty");const r=e.response,i=r.results.map(Se.createAutocompleteResult),o=null!==(n=null===(t=r.input)||void 0===t?void 0:t.queryIntents)&&void 0!==n?n:[];return{results:i,queryId:r.queryId,inputIntents:o||[],uuid:e.meta.uuid}},t.createFilterSearchResponse=function(e){if(!e.response)throw new Error("The autocomplete data does not contain a response property");if(!Object.keys(e.response).length)throw new Error("The autocomplete response is empty");const t=e.response;if(t.failedVerticals&&0!=t.failedVerticals.length){const e=t.failedVerticals[0];throw new we.SearchError(e.details.description,e.details.responseCode,e.errorType)}return{sections:t.sections.map(e=>({label:e.label,results:e.results.map(Se.createAutocompleteResult)})),queryId:t.queryId,businessId:t.businessId,uuid:e.meta.uuid}}}));x(Ce),Ce.createFilterSearchResponse,Ce.createAutocompleteResponse;var xe=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.serializeExcludedFields=t.serializeSearchParameterFields=void 0,t.serializeSearchParameterFields=function(e){return e.map(({fieldApiName:e,entityType:t,fetchEntities:n})=>({fieldId:e,entityTypeId:t,shouldFetchEntities:n}))},t.serializeExcludedFields=function(e){return null==e?void 0:e.map(({fieldId:e,matcher:t,value:n})=>({[e]:{[t]:n}}))}}));x(xe),xe.serializeExcludedFields,xe.serializeSearchParameterFields;var Ae=A((function(e,t){var n=C&&C.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AutocompleteServiceImpl=void 0;t.AutocompleteServiceImpl=class{constructor(e,t,n){this.config=e,this.httpService=t,this.apiResponseValidator=n,this.universalEndpoint=this.config.endpoints.universalAutocomplete,this.verticalEndpoint=this.config.endpoints.verticalAutocomplete,this.filterEndpoint=this.config.endpoints.filterSearch}universalAutocomplete(e){var t,r,i;return n(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({input:e.input,experienceKey:this.config.experienceKey},"apiKey"in this.config&&{api_key:this.config.apiKey}),{v:H.defaultApiVersion,version:this.config.experienceVersion,locale:this.config.locale,sessionTrackingEnabled:e.sessionTrackingEnabled,visitorId:null===(t=this.config.visitor)||void 0===t?void 0:t.id,visitorIdMethod:null===(r=this.config.visitor)||void 0===r?void 0:r.idMethod,limit:e.limit}),null===(i=this.config)||void 0===i?void 0:i.additionalQueryParams),o="token"in this.config?yield this.httpService.get(this.universalEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.get(this.universalEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders)),a=this.apiResponseValidator.validate(o);return a instanceof Error?Promise.reject(a):(0,Ce.createAutocompleteResponse)(o)}))}verticalAutocomplete(e){var t,r,i;return n(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({input:e.input,experienceKey:this.config.experienceKey},"apiKey"in this.config&&{api_key:this.config.apiKey}),{v:H.defaultApiVersion,version:this.config.experienceVersion,locale:this.config.locale,verticalKey:e.verticalKey,sessionTrackingEnabled:e.sessionTrackingEnabled,visitorId:null===(t=this.config.visitor)||void 0===t?void 0:t.id,visitorIdMethod:null===(r=this.config.visitor)||void 0===r?void 0:r.idMethod,limit:e.limit}),null===(i=this.config)||void 0===i?void 0:i.additionalQueryParams),o="token"in this.config?yield this.httpService.get(this.verticalEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.get(this.verticalEndpoint,n,(0,ve.getClientSdk)(e.additionalHttpHeaders)),a=this.apiResponseValidator.validate(o);return a instanceof Error?Promise.reject(a):(0,Ce.createAutocompleteResponse)(o)}))}filterSearch(e){var t,r,i;return n(this,void 0,void 0,(function*(){const n={sectioned:e.sectioned,fields:(0,xe.serializeSearchParameterFields)(e.fields)},o=Object.assign(Object.assign(Object.assign({input:e.input,experienceKey:this.config.experienceKey},"apiKey"in this.config&&{api_key:this.config.apiKey}),{v:H.defaultApiVersion,version:this.config.experienceVersion,locale:this.config.locale,search_parameters:JSON.stringify(n),verticalKey:e.verticalKey,sessionTrackingEnabled:e.sessionTrackingEnabled,visitorId:null===(t=this.config.visitor)||void 0===t?void 0:t.id,visitorIdMethod:null===(r=this.config.visitor)||void 0===r?void 0:r.idMethod,excluded:JSON.stringify((0,xe.serializeExcludedFields)(e.excluded))}),null===(i=this.config)||void 0===i?void 0:i.additionalQueryParams),a="token"in this.config?yield this.httpService.get(this.filterEndpoint,o,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.get(this.filterEndpoint,o,(0,ve.getClientSdk)(e.additionalHttpHeaders)),s=this.apiResponseValidator.validate(a);return s instanceof Error?Promise.reject(s):(0,Ce.createFilterSearchResponse)(a)}))}}}));x(Ae),Ae.AutocompleteServiceImpl;var Ee=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ApiResponseValidator=void 0;t.ApiResponseValidator=class{validate(e){return[this.validateResponseProp,this.validateMetaProp,this.checkForApiErrors].map(t=>t(e)).find(e=>e)}validateResponseProp(e){if(!e.response)return new we.SearchError("Malformed Search API response: missing response property.")}validateMetaProp(e){if(!e.meta)return new we.SearchError("Malformed Search API response: missing meta property.")}checkForApiErrors(e){var t,n;if((null===(n=null===(t=e.meta)||void 0===t?void 0:t.errors)||void 0===n?void 0:n.length)>=1){const t=e.meta.errors[0];return new we.SearchError(t.message,t.code,t.type)}}}}));x(Ee),Ee.ApiResponseValidator;var Oe=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createGenerativeDirectAnswerResponse=void 0,t.createGenerativeDirectAnswerResponse=function(e){return{directAnswer:e.response.directAnswer,resultStatus:e.response.resultStatus,citations:e.response.citations}}}));x(Oe),Oe.createGenerativeDirectAnswerResponse;var Me=A((function(e,t){var n=C&&C.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.GenerativeDirectAnswerServiceImpl=void 0;t.GenerativeDirectAnswerServiceImpl=class{constructor(e,t,n){this.config=e,this.httpService=t,this.apiResponseValidator=n,this.endpoint=this.config.endpoints.generativeDirectAnswer}generateAnswer(e){var t,r,i;return n(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign(Object.assign({experienceKey:this.config.experienceKey},"apiKey"in this.config&&{api_key:this.config.apiKey}),{v:H.defaultApiVersion,version:this.config.experienceVersion,locale:this.config.locale,visitorId:null===(t=this.config.visitor)||void 0===t?void 0:t.id,visitorIdMethod:null===(r=this.config.visitor)||void 0===r?void 0:r.idMethod}),null===(i=this.config)||void 0===i?void 0:i.additionalQueryParams);let o={};1===e.results.length?o=e.results[0]:e.results.length>1&&(o={verticals:e.results});const a={searchId:e.searchId,searchTerm:e.searchTerm,results:o},s="token"in this.config?yield this.httpService.post(this.endpoint,n,a,(0,ve.getClientSdk)(e.additionalHttpHeaders),this.config.token):yield this.httpService.post(this.endpoint,n,a,(0,ve.getClientSdk)(e.additionalHttpHeaders)),c=this.apiResponseValidator.validate(s);return c instanceof Error?Promise.reject(c):(0,Oe.createGenerativeDirectAnswerResponse)(s)}))}}}));x(Me),Me.GenerativeDirectAnswerServiceImpl;var Te=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.provideCore=void 0,t.provideCore=function(e){if("apiKey"in e&&"token"in e)throw new Error("Both apiKey and token are present. Only one authentication method should be provided");const t=Object.assign(Object.assign({},e),{endpoints:Object.assign(Object.assign({},new H.EndpointsFactory(e).getEndpoints()),e.endpoints)}),n=new ke.HttpServiceImpl,r=new Ee.ApiResponseValidator,i=new ge.SearchServiceImpl(t,n,r),o=new me.QuestionSubmissionServiceImpl(t,n,r),a=new Ae.AutocompleteServiceImpl(t,n,r),s=new Me.GenerativeDirectAnswerServiceImpl(t,n,r);return new E.SearchCore(i,o,a,s)}}));x(Te),Te.provideCore;var Le=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}));x(Le);var Fe=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}));x(Fe);var Ie=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FilterCombinator=void 0,function(e){e.AND="$and",e.OR="$or"}(t.FilterCombinator||(t.FilterCombinator={}))}));x(Ie),Ie.FilterCombinator;var Re=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.QueryTrigger=void 0,function(e){e.Initialize="initialize",e.Suggest="suggest"}(t.QueryTrigger||(t.QueryTrigger={}))}));x(Re),Re.QueryTrigger;var je=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SortType=void 0,function(e){e.Field="FIELD",e.EntityDistance="ENTITY_DISTANCE",e.Relevance="RELEVANCE"}(t.SortType||(t.SortType={}))}));x(je),je.SortType;var Pe=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Direction=void 0,function(e){e.Ascending="ASC",e.Descending="DESC"}(t.Direction||(t.Direction={}))}));x(Pe),Pe.Direction;var Ne=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AppliedQueryFilterType=void 0,function(e){e.FieldValue="FIELD_VALUE",e.Place="PLACE",e.Intent="INTENT"}(t.AppliedQueryFilterType||(t.AppliedQueryFilterType={}))}));x(Ne),Ne.AppliedQueryFilterType;var De=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}));x(De);var Be=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}));x(Be);var qe=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LocationBiasMethod=void 0,function(e){e.Ip="IP",e.Device="DEVICE",e.Unknown="UNKNOWN"}(t.LocationBiasMethod||(t.LocationBiasMethod={}))}));x(qe),qe.LocationBiasMethod;var Ue=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SearchIntent=void 0,function(e){e.NearMe="NEAR_ME"}(t.SearchIntent||(t.SearchIntent={}))}));x(Ue),Ue.SearchIntent;var Ve=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SpellCheckType=void 0,function(e){e.Suggest="SUGGEST",e.AutoCorrect="AUTOCORRECT",e.Combine="COMBINE"}(t.SpellCheckType||(t.SpellCheckType={}))}));x(Ve),Ve.SpellCheckType;var ze=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorType=void 0,function(e){e.Timeout="TIMEOUT",e.BackendError="BACKEND_ERROR",e.InvalidConfig="INVALID_CONFIG",e.InvalidQuery="INVALID_QUERY"}(t.ErrorType||(t.ErrorType={}))}));x(ze),ze.ErrorType;var He=A((function(e,t){var n=C&&C.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=C&&C.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Matcher=t.ErrorType=t.SpellCheckType=t.Source=t.SearchIntent=t.LocationBiasMethod=t.BuiltInFieldType=t.DirectAnswerType=t.AppliedQueryFilterType=t.Direction=t.SortType=t.QueryTrigger=t.QuerySource=t.FilterCombinator=t.CloudChoice=t.CloudRegion=t.Environment=t.SearchError=void 0,Object.defineProperty(t,"SearchError",{enumerable:!0,get:function(){return we.SearchError}}),Object.defineProperty(t,"Environment",{enumerable:!0,get:function(){return U.Environment}}),Object.defineProperty(t,"CloudRegion",{enumerable:!0,get:function(){return V.CloudRegion}}),Object.defineProperty(t,"CloudChoice",{enumerable:!0,get:function(){return z.CloudChoice}}),r(Le,t),r(Fe,t),Object.defineProperty(t,"FilterCombinator",{enumerable:!0,get:function(){return Ie.FilterCombinator}}),Object.defineProperty(t,"QuerySource",{enumerable:!0,get:function(){return K.QuerySource}}),Object.defineProperty(t,"QueryTrigger",{enumerable:!0,get:function(){return Re.QueryTrigger}}),Object.defineProperty(t,"SortType",{enumerable:!0,get:function(){return je.SortType}}),Object.defineProperty(t,"Direction",{enumerable:!0,get:function(){return Pe.Direction}}),Object.defineProperty(t,"AppliedQueryFilterType",{enumerable:!0,get:function(){return Ne.AppliedQueryFilterType}}),Object.defineProperty(t,"DirectAnswerType",{enumerable:!0,get:function(){return O.DirectAnswerType}}),Object.defineProperty(t,"BuiltInFieldType",{enumerable:!0,get:function(){return L.BuiltInFieldType}}),r(De,t),r(Be,t),Object.defineProperty(t,"LocationBiasMethod",{enumerable:!0,get:function(){return qe.LocationBiasMethod}}),Object.defineProperty(t,"SearchIntent",{enumerable:!0,get:function(){return Ue.SearchIntent}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return M.Source}}),Object.defineProperty(t,"SpellCheckType",{enumerable:!0,get:function(){return Ve.SpellCheckType}}),Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return ze.ErrorType}}),Object.defineProperty(t,"Matcher",{enumerable:!0,get:function(){return I.Matcher}})}));x(He),He.Matcher,He.ErrorType,He.SpellCheckType,He.Source,He.SearchIntent,He.LocationBiasMethod,He.BuiltInFieldType,He.DirectAnswerType,He.AppliedQueryFilterType,He.Direction,He.SortType,He.QueryTrigger,He.QuerySource,He.FilterCombinator,He.CloudChoice,He.CloudRegion,He.Environment,He.SearchError;var Ke=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}));x(Ke);var Ge=A((function(e,t){var n=C&&C.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=C&&C.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.SandboxEndpoints=t.provideCore=t.SearchCore=void 0,Object.defineProperty(t,"SearchCore",{enumerable:!0,get:function(){return E.SearchCore}}),Object.defineProperty(t,"provideCore",{enumerable:!0,get:function(){return Te.provideCore}}),Object.defineProperty(t,"SandboxEndpoints",{enumerable:!0,get:function(){return H.SandboxEndpoints}}),r(He,t),r(Ke,t)}));x(Ge),Ge.SandboxEndpoints;var Ze,Qe,We,$e=Ge.provideCore;Ge.SearchCore,function(e){e.FeaturedSnippet="FEATURED_SNIPPET",e.FieldValue="FIELD_VALUE"}(Ze||(Ze={})),function(e){e.KnowledgeManager="KNOWLEDGE_MANAGER",e.Google="GOOGLE_CSE",e.Custom="CUSTOM_SEARCHER",e.DocumentVertical="DOCUMENT_VERTICAL",e.FunctionVertical="FUNCTION_VERTICAL"}(Qe||(Qe={})),function(e){e.URL="url",e.ComplexURL="complex_url",e.IOSAppURL="ios_app_url",e.AndroidAppURL="android_app_url",e.FacebookURL="facebook_url",e.Email="email",e.InstagramHandle="instagram_handle",e.TwitterHandle="twitter_handle",e.Phone="phone",e.Address="address",e.Hours="hours",e.Decimal="decimal",e.Integer="integer",e.SingleLineText="single_line_text",e.RichText="rich_text",e.MultiLineText="multi_line_text",e.RichText_v2="rich_text_v2",e.Html="html",e.Markdown="markdown"}(We||(We={}));var Ye;We.MultiLineText,We.RichText,We.RichText_v2,We.Markdown,We.Html,function(e){e.Equals="$eq",e.NotEquals="!$eq",e.LessThan="$lt",e.LessThanOrEqualTo="$le",e.GreaterThan="$gt",e.GreaterThanOrEqualTo="$ge",e.Near="$near",e.Between="$between",e.OpenAt="$openAt"}(Ye||(Ye={}));var Je,Xe,et,tt;!function(e){e.PROD="prod",e.SANDBOX="sbx",e.QA="qa",e.DEV="dev"}(Je||(Je={})),function(e){e.US="us",e.EU="eu"}(Xe||(Xe={})),function(e){e.GLOBAL_MULTI="GLOBAL-MULTI",e.GLOBAL_GCP="GLOBAL-GCP"}(et||(et={})),new(function(){function e(e){this.environment=(null==e?void 0:e.environment)||Je.PROD,this.cloudRegion=(null==e?void 0:e.cloudRegion)||Xe.US,this.cloudChoice=(null==e?void 0:e.cloudChoice)||et.GLOBAL_MULTI}return e.prototype.getDomain=function(){if(this.isInternalTestEnvironment()&&this.cloudRegion===Xe.US)return"https://liveapi-".concat(this.environment,".yext.com");switch(this.cloudChoice){case et.GLOBAL_GCP:return"https://".concat(this.environment,"-cdn-gcp.").concat(this.cloudRegion,".yextapis.com");case et.GLOBAL_MULTI:default:return"https://".concat(this.environment,"-cdn.").concat(this.cloudRegion,".yextapis.com")}},e.prototype.getCachedDomain=function(){if(this.isInternalTestEnvironment()&&this.cloudRegion===Xe.US)return"https://liveapi-".concat(this.environment,".yext.com");switch(this.cloudChoice){case et.GLOBAL_GCP:return"https://".concat(this.environment,"-cdn-cached-gcp.").concat(this.cloudRegion,".yextapis.com");case et.GLOBAL_MULTI:default:return"https://".concat(this.environment,"-cdn-cached.").concat(this.cloudRegion,".yextapis.com")}},e.prototype.getEndpoints=function(){return{universalSearch:"".concat(this.getDomain(),"/v2/accounts/me/search/query"),verticalSearch:"".concat(this.getDomain(),"/v2/accounts/me/search/vertical/query"),questionSubmission:"".concat(this.getDomain(),"/v2/accounts/me/createQuestion"),status:"https://answersstatus.pagescdn.com",universalAutocomplete:"".concat(this.getCachedDomain(),"/v2/accounts/me/search/autocomplete"),verticalAutocomplete:"".concat(this.getCachedDomain(),"/v2/accounts/me/search/vertical/autocomplete"),filterSearch:"".concat(this.getDomain(),"/v2/accounts/me/search/filtersearch"),generativeDirectAnswer:"".concat(this.getDomain(),"/v2/accounts/me/search/generateAnswer")}},e.prototype.isInternalTestEnvironment=function(){return this.environment===Je.DEV||this.environment===Je.QA},e}())({environment:Je.SANDBOX,cloudRegion:Xe.US,cloudChoice:et.GLOBAL_MULTI}).getEndpoints(),function(e){e.Standard="STANDARD",e.Overlay="OVERLAY",e.Autocomplete="AUTOCOMPLETE"}(tt||(tt={}));var nt;!function(e){e.GET="get",e.POST="post"}(nt||(nt={}));var rt,it=(rt=function(e,t){return(rt=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])})(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}rt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){function t(n,r,i){var o=e.call(this,n)||this;return o.message=n,o.code=r,o.type=i,Object.setPrototypeOf(o,t.prototype),o}it(t,e)}(Error);var ot,at,st,ct,lt,ut,ht,dt,ft,pt;!function(e){e.AND="$and",e.OR="$or"}(ot||(ot={})),function(e){e.Initialize="initialize",e.Suggest="suggest"}(at||(at={})),function(e){e.Field="FIELD",e.EntityDistance="ENTITY_DISTANCE",e.Relevance="RELEVANCE"}(st||(st={})),function(e){e.Ascending="ASC",e.Descending="DESC"}(ct||(ct={})),function(e){e.FieldValue="FIELD_VALUE",e.Place="PLACE",e.Intent="INTENT"}(lt||(lt={})),function(e){e.Ip="IP",e.Device="DEVICE",e.Unknown="UNKNOWN"}(ut||(ut={})),function(e){e.NearMe="NEAR_ME"}(ht||(ht={})),function(e){e.Suggest="SUGGEST",e.AutoCorrect="AUTOCORRECT",e.Combine="COMBINE"}(dt||(dt={})),function(e){e.Timeout="TIMEOUT",e.BackendError="BACKEND_ERROR",e.InvalidConfig="INVALID_CONFIG",e.InvalidQuery="INVALID_QUERY"}(ft||(ft={}));var vt=new Uint8Array(16);function gt(){if(!pt&&!(pt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pt(vt)}var mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yt(e){return"string"==typeof e&&mt.test(e)}for(var _t=[],bt=0;bt<256;++bt)_t.push((bt+256).toString(16).substr(1));function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(_t[e[t+0]]+_t[e[t+1]]+_t[e[t+2]]+_t[e[t+3]]+"-"+_t[e[t+4]]+_t[e[t+5]]+"-"+_t[e[t+6]]+_t[e[t+7]]+"-"+_t[e[t+8]]+_t[e[t+9]]+"-"+_t[e[t+10]]+_t[e[t+11]]+_t[e[t+12]]+_t[e[t+13]]+_t[e[t+14]]+_t[e[t+15]]).toLowerCase();if(!yt(n))throw TypeError("Stringified UUID is invalid");return n}function wt(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=function(e){if(!yt(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return kt(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function St(e){return 14+(e+64>>>9<<4)+1}function Ct(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function xt(e,t,n,r,i,o){return Ct((a=Ct(Ct(t,e),Ct(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function At(e,t,n,r,i,o,a){return xt(t&n|~t&r,e,t,i,o,a)}function Et(e,t,n,r,i,o,a){return xt(t&r|n&~r,e,t,i,o,a)}function Ot(e,t,n,r,i,o,a){return xt(t^n^r,e,t,i,o,a)}function Mt(e,t,n,r,i,o,a){return xt(n^(t|~r),e,t,i,o,a)}function Tt(e,t,n){var r=(e=e||{}).random||(e.rng||gt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return kt(r)}function Lt(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Ft(e,t){return e<<t|e>>>32-t}function It(){return Tt()}wt("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var i=e[r>>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[St(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,l=i,u=o;n=At(n,r,i,o,e[a],7,-680876936),o=At(o,n,r,i,e[a+1],12,-389564586),i=At(i,o,n,r,e[a+2],17,606105819),r=At(r,i,o,n,e[a+3],22,-1044525330),n=At(n,r,i,o,e[a+4],7,-176418897),o=At(o,n,r,i,e[a+5],12,1200080426),i=At(i,o,n,r,e[a+6],17,-1473231341),r=At(r,i,o,n,e[a+7],22,-45705983),n=At(n,r,i,o,e[a+8],7,1770035416),o=At(o,n,r,i,e[a+9],12,-1958414417),i=At(i,o,n,r,e[a+10],17,-42063),r=At(r,i,o,n,e[a+11],22,-1990404162),n=At(n,r,i,o,e[a+12],7,1804603682),o=At(o,n,r,i,e[a+13],12,-40341101),i=At(i,o,n,r,e[a+14],17,-1502002290),r=At(r,i,o,n,e[a+15],22,1236535329),n=Et(n,r,i,o,e[a+1],5,-165796510),o=Et(o,n,r,i,e[a+6],9,-1069501632),i=Et(i,o,n,r,e[a+11],14,643717713),r=Et(r,i,o,n,e[a],20,-373897302),n=Et(n,r,i,o,e[a+5],5,-701558691),o=Et(o,n,r,i,e[a+10],9,38016083),i=Et(i,o,n,r,e[a+15],14,-660478335),r=Et(r,i,o,n,e[a+4],20,-405537848),n=Et(n,r,i,o,e[a+9],5,568446438),o=Et(o,n,r,i,e[a+14],9,-1019803690),i=Et(i,o,n,r,e[a+3],14,-187363961),r=Et(r,i,o,n,e[a+8],20,1163531501),n=Et(n,r,i,o,e[a+13],5,-1444681467),o=Et(o,n,r,i,e[a+2],9,-51403784),i=Et(i,o,n,r,e[a+7],14,1735328473),r=Et(r,i,o,n,e[a+12],20,-1926607734),n=Ot(n,r,i,o,e[a+5],4,-378558),o=Ot(o,n,r,i,e[a+8],11,-2022574463),i=Ot(i,o,n,r,e[a+11],16,1839030562),r=Ot(r,i,o,n,e[a+14],23,-35309556),n=Ot(n,r,i,o,e[a+1],4,-1530992060),o=Ot(o,n,r,i,e[a+4],11,1272893353),i=Ot(i,o,n,r,e[a+7],16,-155497632),r=Ot(r,i,o,n,e[a+10],23,-1094730640),n=Ot(n,r,i,o,e[a+13],4,681279174),o=Ot(o,n,r,i,e[a],11,-358537222),i=Ot(i,o,n,r,e[a+3],16,-722521979),r=Ot(r,i,o,n,e[a+6],23,76029189),n=Ot(n,r,i,o,e[a+9],4,-640364487),o=Ot(o,n,r,i,e[a+12],11,-421815835),i=Ot(i,o,n,r,e[a+15],16,530742520),r=Ot(r,i,o,n,e[a+2],23,-995338651),n=Mt(n,r,i,o,e[a],6,-198630844),o=Mt(o,n,r,i,e[a+7],10,1126891415),i=Mt(i,o,n,r,e[a+14],15,-1416354905),r=Mt(r,i,o,n,e[a+5],21,-57434055),n=Mt(n,r,i,o,e[a+12],6,1700485571),o=Mt(o,n,r,i,e[a+3],10,-1894986606),i=Mt(i,o,n,r,e[a+10],15,-1051523),r=Mt(r,i,o,n,e[a+1],21,-2054922799),n=Mt(n,r,i,o,e[a+8],6,1873313359),o=Mt(o,n,r,i,e[a+15],10,-30611744),i=Mt(i,o,n,r,e[a+6],15,-1560198380),r=Mt(r,i,o,n,e[a+13],21,1309151649),n=Mt(n,r,i,o,e[a+4],6,-145523070),o=Mt(o,n,r,i,e[a+11],10,-1120210379),i=Mt(i,o,n,r,e[a+2],15,718787259),r=Mt(r,i,o,n,e[a+9],21,-343485551),n=Ct(n,s),r=Ct(r,c),i=Ct(i,l),o=Ct(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(St(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),wt("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<a;++h){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=s[h][f];for(var p=16;p<80;++p)d[p]=Ft(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var v=n[0],g=n[1],m=n[2],y=n[3],_=n[4],b=0;b<80;++b){var k=Math.floor(b/20),w=Ft(v,5)+Lt(k,g,m,y)+_+t[k]+d[b]>>>0;_=y,y=m,m=Ft(g,30)>>>0,g=v,v=w}n[0]=n[0]+v>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+_>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Rt={PRE_SEARCH:"pre-search",SEARCH_LOADING:"search-loading",SEARCH_COMPLETE:"search-complete"},jt=function(e){function r(e,i){var o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unknown",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return n(this,r),(o=t(this,r,[i])).errorCode=e,o.errorMessage=i,o.boundary=a,o.reported=!1,s&&(o.causedBy=s instanceof r?s:r.from(s),o.stack="".concat(o.stack,"\nCaused By: ").concat(o.causedBy.stack)),o}return u(r,e),o(r,[{key:"toJson",value:function(){return JSON.stringify(this)}},{key:"toString",value:function(){var e="".concat(this.errorMessage," (").concat(this.boundary,")");return this.causedBy&&(e+="\n Caused By: ".concat(this.causedBy.toString())),e}}],[{key:"from",value:function(e,t){var n=new Pt(e.message,t);return n.stack=e.stack,n}}])}(S(Error)),Pt=function(e){function r(e,i,o){return n(this,r),t(this,r,[100,e,i,o])}return u(r,e),o(r)}(jt),Nt=function(e){function r(e,i,o){return n(this,r),t(this,r,[101,e,i,o])}return u(r,e),o(r)}(jt),Dt=function(e){function r(e,i,o){return n(this,r),t(this,r,[201,e,i,o])}return u(r,e),o(r)}(jt),Bt=function(e){function r(e,i,o){return n(this,r),t(this,r,[400,e,i,o])}return u(r,e),o(r)}(jt),qt=function(e){function r(e,i,o,a){var s;return n(this,r),(s=t(this,r,[401,e,"Storage",a])).storageKey=i,s.data=o,s}return u(r,e),o(r)}(jt),Ut=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n(this,e),this.searchState=Rt.SEARCH_COMPLETE,this.verticalConfigId=t.verticalConfigId||null,this.resultsCount=t.resultsCount||0,this.encodedState=t.encodedState||"",this.appliedQueryFilters=t.appliedQueryFilters,this.facets=t.facets||null,this.results=t.results,this.map=e.parseMap(t.results),this.verticalURL=r||null,this.resultsContext=i,this.searchCoreDocument=t.searchCoreDocument||null}),null,[{key:"parseMap",value:function(e){if(!e)return{};for(var t=[],n={},r=0;r<e.length;r++){var i=e[r]._raw;i&&i.yextDisplayCoordinate&&(n.latitude||(n={latitude:i.yextDisplayCoordinate.latitude,longitude:i.yextDisplayCoordinate.longitude}),t.push({item:i,label:r+1,latitude:i.yextDisplayCoordinate.latitude,longitude:i.yextDisplayCoordinate.longitude}))}return{mapCenter:n,mapMarkers:t}}}])}(),Vt="$and",zt="$or",Ht="$eq",Kt="$lt",Gt="$le",Zt="$gt",Qt="$ge",Wt="$near",$t=new Set([Zt,Qt,Gt,Kt]),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t),Object.freeze(this)}return o(e,[{key:"getFilterKey",value:function(){if(Object.keys(this).length>0)return Object.keys(this)[0]}},{key:"isRangeFilter",value:function(){var e=this.getFilterKey();return!!e&&Object.keys(this[e]).every((function(e){return $t.has(e)}))}}],[{key:"empty",value:function(){return new e}},{key:"from",value:function(t){return new e(t)}},{key:"fromCoreSimpleFilter",value:function(t){return t?new e(s({},t.fieldId,s({},t.matcher,t.value))):this.empty()}},{key:"fromResponse",value:function(t){return new e(JSON.parse(t))}},{key:"or",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e(s({},zt,n))}},{key:"and",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e(s({},Vt,n))}},{key:"range",value:function(t,n,r,i){var o=null==n||""===n,a=null==r||""===r;return o&&a?e.empty():a?i?e.greaterThan(t,n):e.greaterThanEqual(t,n):o?i?e.lessThan(t,r):e.lessThanEqual(t,r):n===r?i?e.empty():e.equal(t,n):i?e.exclusiveRange(t,n,r):e.inclusiveRange(t,n,r)}},{key:"equal",value:function(t,n){return e._fromMatcher(t,Ht,n)}},{key:"lessThan",value:function(t,n){return e._fromMatcher(t,Kt,n)}},{key:"lessThanEqual",value:function(t,n){return e._fromMatcher(t,Gt,n)}},{key:"greaterThan",value:function(t,n){return e._fromMatcher(t,Zt,n)}},{key:"greaterThanEqual",value:function(t,n){return e._fromMatcher(t,Qt,n)}},{key:"inclusiveRange",value:function(t,n,r){return new e(s({},t,s(s({},Qt,n),Gt,r)))}},{key:"exclusiveRange",value:function(t,n,r){return new e(s({},t,s(s({},Zt,n),Kt,r)))}},{key:"position",value:function(t,n,r){return e._fromMatcher("builtin.location",Wt,{lat:t,lng:n,radius:r})}},{key:"_fromMatcher",value:function(t,n,r){return new e(s({},t,s({},n,r)))}}])}(),Jt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.key=t.key,this.value=t.value,this.filter=t.filter,this.fieldId=t.fieldId}return o(e,null,[{key:"fromCore",value:function(t){return t?new e({key:t.displayKey,value:t.displayValue,filter:Yt.fromCoreSimpleFilter(t.filter),fieldId:t.filter.fieldId}):new e}}])}(),Xt=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.value=t.value||t.shortValue||"",this.matchedSubstrings=t.matchedSubstrings||[]}),[{key:"get",value:function(){return this._sortMatchedSubstrings(),this.buildHighlightedValue(this.value,this.matchedSubstrings)}},{key:"getElements",value:function(){return this._sortMatchedSubstrings(),this._buildHighlightedElements(this.value,this.matchedSubstrings)}},{key:"getWithTransformFunction",value:function(e){return this._sortMatchedSubstrings(),this.buildHighlightedValue(this.value,this.matchedSubstrings,e)}},{key:"getInverted",value:function(){this._sortMatchedSubstrings();var e=this._getInvertedSubstrings(this.matchedSubstrings,this.value.length);return this.buildHighlightedValue(this.value,e)}},{key:"getInvertedWithTransformFunction",value:function(e){this._sortMatchedSubstrings();var t=this._getInvertedSubstrings(this.matchedSubstrings,this.value.length);return this.buildHighlightedValue(this.value,t,e)}},{key:"buildHighlightedValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r="",i=0;if(0===t.length)return n(e);for(var o=0;o<t.length;o++){var a=Number(t[o].offset),s=a+t[o].length;r+=[n(e.slice(i,a)),"<strong>",n(e.slice(a,s)),"</strong>"].join(""),o===t.length-1&&s<e.length&&(r+=n(e.slice(s))),i=s}return r}},{key:"_buildHighlightedElements",value:function(e,t){for(var n=[],r=0,i=0;i<t.length;i++){var o=Number(t[i].offset),a=o+t[i].length;if(r<o&&n.push(e.slice(r,o)),o<a){var s=document.createElement("strong");s.textContent=e.slice(o,a),n.push(s)}i===t.length-1&&a<e.length&&n.push(e.slice(a)),r=a}return n}},{key:"_sortMatchedSubstrings",value:function(){this.matchedSubstrings.sort((function(e,t){return e.offset<t.offset?-1:e.offset>t.offset?1:0}))}},{key:"_getInvertedSubstrings",value:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.offset+i.length;0===r&&0!==i.offset&&n.push({offset:0,length:i.offset}),t>o&&n.push({offset:o,length:r<e.length-1?e[r+1].offset-o:t-o})}return n}}])}(),en=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t)}return o(e,null,[{key:"fromCore",value:function(t){return t&&"object"===k(t)?new e(this.computeHighlightedDataRecursively(t)):{}}},{key:"computeHighlightedDataRecursively",value:function(e){var t=this;if(this.isHighlightedFieldLeafNode(e)){var n=e.value,r=e.matchedSubstrings;return(new Xt).buildHighlightedValue(n,r)}return Array.isArray(e)?e.map((function(e){return t.computeHighlightedDataRecursively(e)})):Object.entries(e).reduce((function(e,n){var r=g(n,2),i=r[0],o=r[1];return e[i]=t.computeHighlightedDataRecursively(o),e}),{})}},{key:"isHighlightedFieldLeafNode",value:function(e){var t=e.matchedSubstrings,n=e.value;return void 0!==t&&void 0!==n}}])}(),tn=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t)}));var nn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._raw=t.raw||null,this._formatted=t.formatted,this._highlighted=t.highlighted,this.highlightedFields=t.highlightedFields,this.ordinal=t.ordinal||null,this.title=t.title||null,this.details=t.details||null,this.link=t.link||null,this.id=t.id||null,this.subtitle=t.subtitle||null,this.modifier=t.modifier||null,this.bigDate=t.bigDate||null,this.image=t.image||null,this.callsToAction=t.callsToAction||[],this.collapsed=void 0===t.collapsed||t.collapsed,this.distance=t.distance||null,this.distanceFromFilter=t.distanceFromFilter||null,this.segment=t.segment||null}return o(e,null,[{key:"fromCore",value:function(t,n,r){var i=new tn(t.highlightedFields),o=en.fromCore(t.highlightedFields),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ";if(!e||e.length<=t)return e;for(var i=e.split(r),o=t-n.length,a="",s=0;s<i.length;s++){var c=i[s];if(a.length+c.length>o||0!==s&&a.length+c.length+r.length>o){a+=n;break}a+=0===s?c:r+c}return a}(o.description||t.description),s={raw:t.rawData,ordinal:t.index,title:t.name,details:a,link:t.link,id:t.id,distance:t.distance,distanceFromFilter:t.distanceFromFilter,highlighted:o,highlightedFields:i,segment:t.segment};if("KNOWLEDGE_MANAGER"!==t.source&&"DOCUMENT_VERTICAL"!==t.source)return new e(s);var c=this._getFormattedData(s,n,r);return s.formatted=c,void 0!==c.description&&(s.details=c.description),new e(s)}},{key:"_getFormattedData",value:function(e,t,n){var r={};return t&&e.raw?(0===Object.keys(t).length||Object.entries(e.raw).forEach((function(i){var o=g(i,2),a=o[0],s=o[1];if(void 0!==t[a]){if("function"!=typeof t[a])throw new Bt("Field formatter is not of expected type function","Result");var c=null;e.highlighted&&e.highlighted[a]&&(c=e.highlighted[a]),r[a]=t[a]({entityProfileData:e.raw,entityFieldValue:s,highlightedEntityFieldValue:c,verticalId:n,isDirectAnswer:!1})}})),r):r}}])}(),rn="normal",on="no-results",an=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,{searchState:Rt.SEARCH_COMPLETE},t),this.resultsContext=t.resultsContext}return o(e,[{key:"append",value:function(t){if(t.resultsContext!==this.resultsContext)throw new Bt("Cannot merge results with different contexts","VerticalResults");var n=f({},this);return n.resultsContext=this.resultsContext,n.results=this.results.concat(t.results),n.map.mapMarkers=this.map.mapMarkers.concat(t.map.mapMarkers),new e(n)}}],[{key:"fromCore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rn,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(!e)return new Ut;var o=e.verticalKey||i;return new Ut({verticalConfigId:o,resultsCount:e.resultsCount,appliedQueryFilters:e.appliedQueryFilters.map(Jt.fromCore),results:e.results.map((function(e){return nn.fromCore(e,n,o)})),searchCoreDocument:e},t[o],r)}},{key:"searchLoading",value:function(){return new e({searchState:Rt.SEARCH_LOADING})}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(),sn=function(){function e(t){n(this,e),this.queryId=t.queryId||null,this.sections=t.sections||[],this.searchState=t.searchState||Rt.SEARCH_COMPLETE}return o(e,null,[{key:"searchLoading",value:function(){return new e({searchState:Rt.SEARCH_LOADING})}},{key:"fromCore",value:function(t,n,r){return t?new e({queryId:t.queryId,sections:t.verticalResults.map((function(e){return an.fromCore(e,n,r)}))}):new e}}])}(),cn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,{searchState:Rt.SEARCH_COMPLETE},t)}return o(e,null,[{key:"fromCore",value:function(t,n,r){if(!t)return new e;var i=t.relatedResult||{},o={answer:{snippet:t.snippet,entityName:t.entityName,fieldName:t.fieldName,fieldApiName:t.fieldApiName,value:t.value,fieldType:t.fieldType},relatedItem:{data:{fieldValues:i.rawData,id:i.id,type:i.type,website:i.link},verticalConfigId:t.verticalKey},type:t.type,searcher:r},a=o.answer.fieldApiName;if(n&&a in n){var s=this._getFormattedValue(o,n[a]);o.answer.value=s||o.answer.value}return new e(o)}},{key:"_getFormattedValue",value:function(e,t){return e.answer&&e.relatedItem?t(e.answer.value,e.relatedItem.data.fieldValues,e.relatedItem.verticalConfigId,!0):null}},{key:"searchLoading",value:function(){return new e({searchState:Rt.SEARCH_LOADING})}}])}(),ln=function(){function e(t){n(this,e),this.tabOrder=t||[],Object.freeze(this)}return o(e,null,[{key:"from",value:function(t){var n=[];if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++)n.push(t[r].verticalConfigId);return new e(n)}},{key:"fromCore",value:function(t){return new e(t.map((function(e){return e.verticalKey})))}}])}(),un=function(){function e(t){n(this,e),this.query=t.query||null,this.correctedQuery=t.correctedQuery||null,this.type=t.type||null,this.shouldShow=null!==this.correctedQuery}return o(e,null,[{key:"fromCore",value:function(t){return t?new e({query:t.originalQuery,correctedQuery:{value:t.correctedQuery},type:t.type}):{}}}])}(),hn="UNIVERSAL",dn="VERTICAL",fn="navigation",pn="universal-results",vn="vertical-results",gn="alternative-verticals",mn="autocomplete",yn="direct-answer",_n="generative-direct-answer",bn="filter",kn="filters",wn="static-filter-nodes",Sn="location-radius-filter-node",Cn="locationRadius",xn="query",An="query-id",En="facet-filter-nodes",On="facetFilters",Mn="dynamic-filters",Tn="geolocation",Ln="question-submission",Fn="search-config",In="search-offset",Rn="spell-check",jn="skipSpellCheck",Pn="location-bias",Nn="sessions-opt-in",Dn="vertical-pages-config",Bn="locale",qn="sortBys",Un="no-results-config",Vn="results-header",zn="context",Hn="referrerPageUrl",Kn="queryTrigger",Gn="facets-loaded",Zn="query-source",Qn="history-pop-state",Wn="search-id",$n=function(){function e(t){n(this,e),this.filters=t.filters||[],this.resultsContext=t.resultsContext,Object.freeze(this)}return o(e,null,[{key:"fromCore",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rn;return new e({filters:t,resultsContext:n})}}])}(),Yn=function(){function e(t){n(this,e),this.accuracy=t.accuracy||null,this.latitude=t.latitude||null,this.longitude=t.longitude||null,this.locationDisplayName=t.locationDisplayName||null,this.searchState=t.searchState}return o(e,null,[{key:"searchLoading",value:function(){return new e({searchState:Rt.SEARCH_LOADING})}},{key:"fromCore",value:function(t){return new e(t?{accuracy:t.method,latitude:t.latitude,longitude:t.longitude,locationDisplayName:t.displayName,searchState:Rt.SEARCH_COMPLETE}:{accuracy:"UNKNOWN"})}}])}(),Jn=function(){function e(t){n(this,e),this.alternativeVerticals=t||[]}return o(e,null,[{key:"fromCore",value:function(t,n){return t&&0!==t.length?new e(t.map((function(e){return an.fromCore(e,{},n)}))):new e}}])}(),Xn=function(){function e(){n(this,e)}return o(e,null,[{key:"transformUniversal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return s(s(s(s(s(s(s({},Wn,e.uuid),An,e.queryId),fn,ln.fromCore(e.verticalResults)),yn,cn.fromCore(e.directAnswer,n,hn)),pn,sn.fromCore(e,t,n)),Rn,un.fromCore(e.spellCheck)),Pn,Yn.fromCore(e.locationBias))}},{key:"transformVertical",value:function(t,n,r){var i=t.verticalResults&&t.verticalResults.results&&t.verticalResults.resultsCount>0,o=rn,a=t;return i||(o=on,a=e._reshapeForNoResults(t)),s(s(s(s(s(s(s(s(s({},Wn,a.uuid),An,a.queryId),fn,new ln),yn,cn.fromCore(a.directAnswer,n,dn)),vn,an.fromCore(a.verticalResults,{},n,o,r)),Mn,$n.fromCore(a.facets,o)),Rn,un.fromCore(a.spellCheck)),gn,Jn.fromCore(a.alternativeVerticals,n)),Pn,Yn.fromCore(a.locationBias))}},{key:"_reshapeForNoResults",value:function(e){var t=e.allResultsForVertical||{},n=t.verticalResults||{},r=n.results,i=n.resultsCount;return f(f({},e),{},{results:r||[],resultsCount:i||0,verticalResults:t.verticalResults,facets:t.facets})}}])}(),er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n(this,e),this.name=t.name||null,this.email=t.email||null,this.privacyPolicy=t.privacyPolicy||null,this.questionText=t.questionText||null,this.questionDescription=t.questionDescription||null,this.questionExpanded="boolean"!=typeof t.expanded||t.expanded,this.errors=r||null,this.questionSubmitted=t.submitted||!1,Object.freeze(this)}return o(e,null,[{key:"submitted",value:function(){return{questionSubmitted:!0,questionExpanded:!0}}},{key:"errors",value:function(t,n){return e(t,n)}}])}(),tr={INITIALIZE:"initialize",QUERY_PARAMETER:"query-parameter",SUGGEST:"suggest",FILTER_COMPONENT:"filter-component",PAGINATION:"pagination",SEARCH_BAR:"search-bar",VOICE_SEARCH:"voice-search"},nr=["type","label"],rr=function(){function e(t,r){n(this,e),this.action=t.toUpperCase(),r&&(this.label=r)}return o(e,[{key:"addOptions",value:function(e){return Object.assign(this,e),this}},{key:"toApiEvent",value:function(){return Object.assign({},this)}}],[{key:"fromData",value:function(t){var n=t.type,r=t.label,i=p(t,nr),o=new e(n,r);return o.addOptions(i),o}}])}(),ir=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t),Object.freeze(this)}return o(e,null,[{key:"fromFilters",value:function(t){var n={};t.forEach((function(e){n[e]=[]}));for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=i.flatMap((function(e){return e.$or||e}));return a.forEach((function(e){var t=e.getFilterKey();n[t]||(n[t]=[]),n[t].push(e)})),new e(n)}},{key:"fromCore",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.map((function(e){return{label:e.displayName,fieldId:e.fieldId,options:e.options.map((function(t){return{label:t.displayName,countLabel:t.count,selected:t.selected,filter:s({},e.fieldId,s({},t.matcher,t.value))}}))}})).map((function(t){return new e(t)}));return n}}])}(),or="filter-type-static",ar="filter-type-facet",sr="filter-type-radius",cr=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e);var r=t.fieldName,i=t.displayValue,o=t.filterType;this.fieldName=r,this.displayValue=i,this.filterType=o||or,Object.freeze(this)})),lr=function(){return o((function e(){n(this,e)}),[{key:"getFilter",value:function(){}},{key:"getMetadata",value:function(){}},{key:"getChildren",value:function(){}},{key:"getSimpleDescendants",value:function(){}},{key:"remove",value:function(){}}])}(),ur=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,r),e=t(this,r);var o=i.filter,a=i.metadata,s=i.remove;return e.filter=Yt.from(o),e.metadata=new cr(a),e._remove=s||function(){},Object.freeze(e),e}return u(r,e),o(r,[{key:"getFilter",value:function(){return this.filter}},{key:"getChildren",value:function(){return[]}},{key:"getMetadata",value:function(){return this.metadata}},{key:"getSimpleDescendants",value:function(){return this}},{key:"remove",value:function(){this._remove()}},{key:"hasSameFilterAs",value:function(e){var t=this.getFilter(),n=e.getFilter(),r=t.getFilterKey(),i=n.getFilterKey();if(r!==i)return!1;var o=t[r],a=n[i],s=Object.keys(o),c=Object.keys(a);return s.length===c.length&&s.every((function(e){return e in a&&a[e]===o[e]}))}}])}(lr),hr=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,r),e=t(this,r);var o=i.combinator,a=i.children;return e.combinator=o,e.children=a||[],Object.freeze(e),e}return u(r,e),o(r,[{key:"getFilter",value:function(){var e=this.children.map((function(e){return e.getFilter()}));switch(this.combinator){case Vt:return Yt.and.apply(Yt,_(e));case zt:return Yt.or.apply(Yt,_(e))}return Yt.empty()}},{key:"getMetadata",value:function(){return null}},{key:"getChildren",value:function(){return this.children}},{key:"getSimpleDescendants",value:function(){return this.getChildren().flatMap((function(e){return e.getSimpleDescendants()}))}},{key:"remove",value:function(){this.children.forEach((function(e){e.remove()}))}}])}(lr),dr=function(){function e(){n(this,e)}return o(e,null,[{key:"and",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._combine(Vt,n)}},{key:"or",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._combine(zt,n)}},{key:"_combine",value:function(e,t){var n=t.filter((function(e){return e.getFilter().getFilterKey()}));return n.length?1===n.length?n[0]:new hr({combinator:e,children:n}):new ur}},{key:"from",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.children&&e.children.length?new hr(e):new ur(e)}}])}(),fr=function(){return o((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n(this,e),this.storage=t,this.availableFieldIds=r}),[{key:"getAllFilterNodes",value:function(){var e=[].concat(_(this.getStaticFilterNodes()),_(this.getFacetFilterNodes())),t=this.getFilterNodeByKey(Sn);return t&&e.push(t),e}},{key:"getStaticFilterNodes",value:function(){var e=[];return this.storage.getAll().forEach((function(t,n){n.startsWith(wn)&&e.push(t)})),e}},{key:"getFacetFilterNodes",value:function(){return this.storage.get(En)||[]}},{key:"getStaticFilterPayload",value:function(){var e=this.getStaticFilterNodes().filter((function(e){return e.getChildren().length>0||e.getFilter().getFilterKey()}));return e.length>0?this._transformFilterNodes(e,ot.AND):null}},{key:"getAllStaticFilterNodesCombined",value:function(){var e=this.getStaticFilterNodes();return dr.and.apply(dr,_(e))}},{key:"_transformFilterNodes",value:function(e,t){var n=this,r=e.flatMap((function(e){return e.children?n._transformFilterNodes(e.children,e.combinator):n._transformSimpleFilterNode(e)}));return 1===r.length?r[0]:{kind:t===ot.OR?"disjunction":"conjunction",filters:r,combinator:t}}},{key:"_transformSimpleFilterNode",value:function(e){var t=Object.keys(e.filter)[0],n=e.filter[t],r=Object.keys(n);if(1===r.length){var i=r[0],o=n[i];return{kind:"fieldValue",fieldId:t,matcher:i,value:o}}if(r.length>1){var a=r.map((function(e){return{kind:"fieldValue",fieldId:t,matcher:e,value:n[e]}}));return{combinator:ot.AND,kind:"conjunction",filters:a}}}},{key:"_transformSimpleFilterNodeIntoFacetOption",value:function(e){var t=e[Object.keys(e)[0]],n=Object.keys(t)[0];return{matcher:n,value:t[n]}}},{key:"_createFacetsFromFilterNodes",value:function(){var e=function(t){return t.getChildren().length?t.getChildren().flatMap(e):t.getFilter()},t=this.getFacetFilterNodes().flatMap(e);return ir.fromFilters.apply(ir,[this.availableFieldIds].concat(_(t)))}},{key:"getFacets",value:function(){return this.storage.has(En)?this._createFacetsFromFilterNodes():this.storage.get(On)||{}}},{key:"getFacetsPayload",value:function(){var e=this,t=this.getFacets();return Object.entries(t).map((function(t){var n=g(t,2);return{fieldId:n[0],options:n[1].map(e._transformSimpleFilterNodeIntoFacetOption)}}))}},{key:"getFilterNodeByKey",value:function(e){return this.storage.get(e)}},{key:"setStaticFilterNodes",value:function(e,t){this.storage.set("".concat(wn,".").concat(e),t)}},{key:"setFacetFilterNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.availableFieldIds=e,this.storage.set(En,t)}},{key:"setLocationRadiusFilterNode",value:function(e){this.storage.set(Sn,e)}},{key:"clearStaticFilterNode",value:function(e){this.storage.delete("".concat(wn,".").concat(e))}},{key:"clearFacetFilterNodes",value:function(){this.storage.delete(En)}},{key:"clearAllFilterNodes",value:function(){var e=this;this.storage.delete(Sn),this.clearFacetFilterNodes(),this.storage.getAll().forEach((function(t,n){n.startsWith(wn)&&e.storage.delete(n)}))}}])}(),pr=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.sections=t.sections||[],this.queryId=t.queryId||"",this.inputIntents=t.inputIntents||[],this.businessId=t.businessId||"",Object.freeze(this)})),vr=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.filter=t.filter||{},this.key=t.key||"",this.matchedSubstrings=t.matchedSubstrings||[],this.value=t.value||"",this.shortValue=t.shortValue||this.value,this.intents=t.queryIntents||[],Object.freeze(this)})),gr=function(){return o((function e(){n(this,e)}),null,[{key:"transformAutoCompleteResponse",value:function(e){var t=this,n=[{results:e.results.map((function(e){return t.transformAutoCompleteResult(e)})),resultsCount:e.results.length}];return new pr({sections:n,queryId:e.queryId,inputIntents:e.inputIntents})}},{key:"transformFilterSearchResponse",value:function(e){var t=this,n=e.sections.map((function(e){return{label:e.label,results:e.results.map((function(e){return t.transformAutoCompleteResult(e)})),resultsCount:e.results.length}}));return new pr({sections:n,queryId:e.queryId,businessId:e.businessId})}},{key:"transformAutoCompleteResult",value:function(e){var t=e.filter?this._transformFilter(e.filter):{};return new vr({filter:t,key:e.key,matchedSubstrings:e.matchedSubstrings,value:e.value,queryIntents:e.inputIntents})}},{key:"_transformFilter",value:function(e){return s({},e.fieldId,s({},e.matcher,e.value))}}])}(),mr=["en-ae","en-au","en-ca","en-de","en-gb","en-hk","en-ie","en-jm","en-sg","en-us","en-za","es-bo","es-co","es-cu","es-es","es-gt","es-hn","es-mx","es-ni","es-us","fr-be","fr-ca","fr-ch","fr-fr","it-it","de-at","de-ch","de-de","ja-jp","ar-ae","ar-bh","ar-dz","ar-iq","ar-kw","ar-ly","ar-om","ar-ps","ar-qa","ar-sa","nl-be","nl-nl","pt-br","pt-pt","sv-se","zh-hans-cn","zh-hans-hk","zh-hant-hk","zh-hant-tw","zh-cn","zh-tw"],yr="https://assets.sitescdn.net/answers/".concat("v2.1.1","/answerstemplates.compiled.min.js"),_r=window.document,br=function(){function e(){n(this,e)}return o(e,null,[{key:"setup",value:function(e,t){_r=e}},{key:"create",value:function(e){if("createRange"in _r){var t=_r.createElement("div"),n=_r.createRange().createContextualFragment(e);return t.appendChild(n),t}return(new DOMParser).parseFromString(e,"text/html").body}},{key:"query",value:function(e,t){return void 0===t&&(t=e,e=_r),t instanceof HTMLElement||t instanceof Window||t instanceof HTMLDocument?t:e.querySelector(t)}},{key:"queryAll",value:function(e,t){return void 0===t&&(t=e,e=_r),null==e&&(e=_r),t instanceof HTMLElement||t instanceof HTMLDocument||t instanceof Window?[t]:Array.from(e.querySelectorAll(t))}},{key:"onReady",value:function(t){"complete"!==_r.readyState&&"loaded"!==_r.readyState&&"interactive"!==_r.readyState?e.on(_r,"DOMContentLoaded",t):t()}},{key:"createEl",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=_r.createElement(t),i=Object.keys(n),o=0;o<i.length;o++)"class"!==i[o]?r[i[o]]=n[i[o]]:e.addClass(r,n[i[o]]);return r}},{key:"append",value:function(t,n){void 0===n&&(n=t,t=_r),"string"==typeof t&&(t=e.query(t)),"string"==typeof n?t.insertAdjacentHTML("afterBegin",n):t.appendChild(n)}},{key:"addClass",value:function(e,t){if(e)for(var n=t.split(","),r=n.length,i=0;i<r;i++)e.classList.add(n[i])}},{key:"removeClass",value:function(e,t){e&&e.classList.remove(t)}},{key:"empty",value:function(e){e.innerHTML=""}},{key:"css",value:function(t,n){var r=e.query(t);for(var i in n)r.style[i]=n[i]}},{key:"attr",value:function(t,n,r){e.query(t).setAttribute(n,r)}},{key:"attributes",value:function(e,t){var n=this;Object.entries(t).forEach((function(t){var r=g(t,2),i=r[0],o=r[1];return n.attr(e,i,o)}))}},{key:"trigger",value:function(t,n,r){var i=e._customEvent(n,r);e.query(t).dispatchEvent(i)}},{key:"_customEvent",value:function(e,t){var n=f({bubbles:!0,cancelable:!0,detail:null},t),r=_r.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}},{key:"on",value:function(t,n,r){e.query(t).addEventListener(n,r)}},{key:"onClickOrEnter",value:function(t,n){e.query(t).addEventListener("click",n),e.query(t).addEventListener("keydown",(function(e){"Enter"===e.key&&n(e)}))}},{key:"once",value:function(t,n,r){var i=function(){r(),e.off(t,n,i)};e.query(t).addEventListener(n,i)}},{key:"off",value:function(t,n,r){e.query(t).removeEventListener(n,r)}},{key:"delegate",value:function(t,n,r,i){var o=e.query(t);o.addEventListener(r,(function(t){for(var r=t.target;!r.isEqualNode(o);){if(e.matches(r,n)){i(t,r);break}r=r.parentNode}}))}},{key:"matches",value:function(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):Element.prototype.webkitMatchesSelector?e.webkitMatchesSelector(t):void 0}}])}(),kr=function(){function e(t){if(n(this,e),this._params={},window&&window.URLSearchParams)return new URLSearchParams(t);this._params=this.parse(t)}return o(e,[{key:"parse",value:function(t){var n={},r=t;if(!r)return n;t.indexOf("?")>-1&&(r=t.slice(t.indexOf("?")+1));for(var i=r.split("&"),o=0;o<i.length;o++){var a=i[o].split("=");a.length>1?n[a[0]]=e.decode(a[1]):n[a[0]]=""}return n}},{key:"get",value:function(e){return void 0===this._params[String(e)]?null:this._params[e]}},{key:"set",value:function(e,t){this._params[String(e)]=String(t)}},{key:"has",value:function(e){return e in this._params}},{key:"delete",value:function(e){delete this._params[String(e)]}},{key:"toString",value:function(){var t=[];for(var n in this._params)t.push("".concat(n,"=").concat(e.encode(this._params[n])));return t.join("&")}},{key:"entries",value:function(){var e=[];for(var t in this._params)e.push([t,this._params[t]]);return e}}],[{key:"decode",value:function(e){return decodeURIComponent(e.replace(/[ +]/g,"%20"))}},{key:"encode",value:function(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","%20":"+"};return encodeURIComponent(e).replace(/[!'()]|%20/g,(function(e){return t[e]}))}}])}(),wr=function(){return o((function e(){n(this,e)}),[{key:"render",value:function(e,t){return e}},{key:"registerHelper",value:function(e,t){}},{key:"registerTemplate",value:function(e,t){}},{key:"registerPartial",value:function(e,t){}},{key:"compile",value:function(e){}}])}(),Sr=function(){return o((function e(t){n(this,e),this.name=t.name,this.path=t.path,this.complexContents=t.complexContents,this.viewBox=t.viewBox||"0 0 24 24",this.contents=this.pathDefinition()}),[{key:"pathDefinition",value:function(){return this.complexContents?this.complexContents:'<path d="'.concat(this.path,'"></path>')}},{key:"parseContents",value:function(e){var t=this.contents;return"function"==typeof t&&(t=t(e)),'<svg viewBox="'.concat(this.viewBox,'" xmlns="http://www.w3.org/2000/svg">').concat(t,"</svg>")}},{key:"markup",value:function(){var e=this;return"function"==typeof this.contents?function(t){return e.parseContents(t)}:this.parseContents()}}])}(),Cr=new Sr({name:"thumb",viewBox:"0 0 24 22",path:"M15.273 1H5.455c-.906 0-1.68.55-2.008 1.342L.153 10.097A2.19 2.19 0 000 10.9v2.2c0 1.21.982 2.2 2.182 2.2h6.883L8.03 20.327l-.033.352c0 .451.186.869.48 1.166L9.633 23l7.178-7.249a2.16 2.16 0 00.644-1.551v-11c0-1.21-.982-2.2-2.182-2.2zm0 13.2l-4.735 4.774L11.75 13.1H2.182v-2.2l3.273-7.7h9.818v11zM19.636 1H24v13.2h-4.364V1z"}),xr=new Sr({name:"receipt",path:"M14.606 9.5c-.671-.515-1.591-.833-2.606-.833 1.015 0 1.935.318 2.606.833zm-7.985 0H1.655A1.66 1.66 0 010 7.833V3.667C0 2.747.741 2 1.655 2h20.69A1.66 1.66 0 0124 3.667v4.166A1.66 1.66 0 0122.345 9.5h-4.966V22H6.621V9.5h2.773H6.62zm10.758-1.667h4.966V3.667H1.655v4.166h4.966v-2.5h10.758v2.5z"}),Ar=new Sr({name:"pantheon",path:"M9.947 16.598h.252V9.412h-.252a.432.432 0 01-.23-.065c-.07-.043-.106-.093-.106-.15L9.15 7.82v-.15c0-.044.028-.08.084-.109a.691.691 0 01.105-.086.254.254 0 01.146-.043H13.6c.056 0 .104.015.146.043.042.03.091.058.147.086a.271.271 0 01.063.108c.014.043.007.093-.02.15l-.42 1.378a.374.374 0 01-.147.15.37.37 0 01-.19.065h-.251v7.186h.252a.37.37 0 01.189.065c.07.043.119.093.147.15l.42 1.378c.027.028.034.071.02.129a.275.275 0 01-.063.129 1.364 1.364 0 00-.147.086.254.254 0 01-.146.043H9.485a.254.254 0 01-.146-.043.691.691 0 01-.105-.086c-.056-.029-.084-.072-.084-.13v-.128l.461-1.377c0-.058.035-.108.105-.151a.432.432 0 01.231-.065zm5.792 0h.252V9.412h-.252a.432.432 0 01-.23-.065.374.374 0 01-.148-.15l-.42-1.377c-.027-.029-.034-.072-.02-.13a.275.275 0 01.063-.129c.056-.028.105-.057.146-.086a.254.254 0 01.147-.043h4.114c.055 0 .104.015.146.043a.691.691 0 01.105.086c.056.03.084.072.084.13v.129l-.42 1.377a.374.374 0 01-.146.15.432.432 0 01-.231.065h-.21v7.186h.21a.43.43 0 01.23.065c.07.043.12.093.148.15l.42 1.378v.15c0 .043-.029.08-.085.108a.691.691 0 01-.105.086.254.254 0 01-.146.043h-4.114a.254.254 0 01-.147-.043 1.364 1.364 0 00-.146-.086.271.271 0 01-.063-.108c-.014-.043-.007-.093.02-.15l.42-1.377a.374.374 0 01.147-.151.432.432 0 01.231-.065zm-11.794-.086h.252V9.498h-.252a.334.334 0 01-.21-.065.386.386 0 01-.126-.193l-.42-1.377a.248.248 0 01-.02-.172.854.854 0 01.063-.173c.028-.057.07-.1.126-.129a.365.365 0 01.168-.043h4.07c.057 0 .113.015.169.043a.278.278 0 01.126.13.854.854 0 01.062.172.248.248 0 01-.02.172l-.42 1.377a.386.386 0 01-.126.193.334.334 0 01-.21.065h-.21v7.014h.21c.084 0 .154.029.21.086a.673.673 0 01.126.172l.42 1.378a.248.248 0 01.02.172.854.854 0 01-.062.172.278.278 0 01-.126.129.365.365 0 01-.168.043H3.526a.365.365 0 01-.168-.043.278.278 0 01-.126-.13.854.854 0 01-.063-.171.248.248 0 01.02-.172l.42-1.378a.673.673 0 01.126-.172.281.281 0 01.21-.086zM1.763 6.658a.717.717 0 01-.504-.194.644.644 0 01-.21-.495v-.43a.73.73 0 01.105-.387.68.68 0 01.273-.259C4.309 3.402 6.54 2.276 8.121 1.515 9.702.755 10.493.361 10.493.332c.531-.258.972-.366 1.322-.323.35.043.734.165 1.154.366l8.31 4.518c.14.058.245.144.315.259a.73.73 0 01.105.387v.43c0 .201-.07.366-.21.495a.717.717 0 01-.504.194H1.763zm-.714 13.34a.54.54 0 01.168-.387.516.516 0 01.378-.172h19.642c.168 0 .308.057.42.172a.541.541 0 01.168.387v.818a.522.522 0 01-.168.408.605.605 0 01-.42.151H1.595a.551.551 0 01-.378-.15.522.522 0 01-.168-.41v-.817zm21.405 2.022c.14 0 .266.058.378.173a.592.592 0 01.168.43v.818a.541.541 0 01-.168.387.516.516 0 01-.378.172L.546 23.957a.516.516 0 01-.378-.172.541.541 0 01-.168-.387v-.818a.59.59 0 01.168-.43.516.516 0 01.378-.173l21.908.043z"}),Er=new Sr({name:"mic",path:"M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.41 2.72 6.23 6 6.72V22h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),Or=new Sr({name:"voice_search_mic",viewBox:"0 0 33 27",complexContents:'<svg class="yxt-SearchBar-mic" id="yxt-SearchBar-mic" x="9" y="1" width="0.01" height="0.01" style ="overflow:visible" opacity="0.5" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="14.5" height="25.5" style ="overflow:visible" opacity="1" label="MicContainer">\n <animate class="js-yxt-SearchBar-micFadeOut" begin="indefinite" attributeName="opacity" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="1;0;0"/>\n <animate class="js-yxt-SearchBar-micFadeIn" begin="indefinite" attributeName="opacity" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="0;0;1"/>\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n \x3c!-- Layer: covering --\x3e\n <svg x="4.5" y="0" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="5.5" height="16.5" style ="overflow:visible" opacity="1" label="coveringContainer">\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path d="M5.5,2.75c0,-1.519,-1.231,-2.75,-2.75,-2.75 -1.519,0,-2.75,1.231,-2.75,2.75 0,0,0,11,0,11 0,1.519,1.231,2.75,2.75,2.75 1.519,0,2.75,-1.231,2.75,-2.75 0,0,0,-11,0,-11 0,0,0,0,0,0zM5.5,2.75" fill="#00000000" id="covering" stroke="#000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1.5"/>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: stand --\x3e\n <svg x="0" y="13" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="14.5" height="12.5" style ="overflow:visible" opacity="1" label="standContainer">\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path d="M1.5,0.75c0,-0.414,-0.336,-0.75,-0.75,-0.75 -0.414,0,-0.75,0.336,-0.75,0.75 0,3.751,2.848,6.836,6.5,7.212 0,0,0,3.788,0,3.788 0,0.414,0.336,0.75,0.75,0.75 0.414,0,0.75,-0.336,0.75,-0.75 0,0,0,-3.788,0,-3.788 3.652,-0.375,6.5,-3.461,6.5,-7.212 0,-0.414,-0.336,-0.75,-0.75,-0.75 -0.414,0,-0.75,0.336,-0.75,0.75 0,3.176,-2.574,5.75,-5.75,5.75 -3.176,0,-5.75,-2.574,-5.75,-5.75 0,0,0,0,0,0zM1.5,0.75" fill="#000000" id="stand" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-linecap="round" stroke-miterlimit="4" stroke-width="0"/>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: 4th --\x3e\n <svg x="6.25" y="11.75" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="2" height="2" style ="overflow:visible" opacity="1" label="4thContainer">\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path d="M1,2c0.552,0,1,-0.448,1,-1 0,-0.552,-0.448,-1,-1,-1 -0.552,0,-1,0.448,-1,1 0,0.552,0.448,1,1,1 0,0,0,0,0,0zM1,2" fill="#000000" id="_th" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1"/>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: 3rd --\x3e\n <svg x="6.25" y="2.75" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="2" height="2" style ="overflow:visible" opacity="1" label="3rdContainer">\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path d="M1,2c0.552,0,1,-0.448,1,-1 0,-0.552,-0.448,-1,-1,-1 -0.552,0,-1,0.448,-1,1 0,0.552,0.448,1,1,1 0,0,0,0,0,0zM1,2" fill="#000000" id="_rd" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1"/>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: 2nd --\x3e\n <svg x="6.25" y="5.75" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="2" height="2" style ="overflow:visible" opacity="1" label="2ndContainer">\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path d="M1,2c0.552,0,1,-0.448,1,-1 0,-0.552,-0.448,-1,-1,-1 -0.552,0,-1,0.448,-1,1 0,0.552,0.448,1,1,1 0,0,0,0,0,0zM1,2" fill="#000000" id="_nd" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1"/>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: 1st --\x3e\n <svg x="6.25" y="8.75" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="2" height="2" style ="overflow:visible" opacity="1" label="1stContainer">\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path d="M1,2c0.552,0,1,-0.448,1,-1 0,-0.552,-0.448,-1,-1,-1 -0.552,0,-1,0.448,-1,1 0,0.552,0.448,1,1,1 0,0,0,0,0,0zM1,2" fill="#000000" id="_st" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1"/>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n <rect fill="none" height="100%" rx="0" stroke="#00000000" stroke-width="1" width="100%" x="0" y="0"/>\n\n </g>\n </g>\n </svg>\n </g>\n </g>\n</svg>'}),Mr=new Sr({name:"voice_search_dots",viewBox:"0 0 33 27",complexContents:'<svg x="0.25" y="4.25" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="32" height="19" style ="overflow:visible" opacity="0" label="DotsContainer">\n <animate class="js-yxt-SearchBar-dotsFadeIn" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="13.5;13.5;0"/>\n <animate class="js-yxt-SearchBar-dotsFadeIn" begin="indefinite" attributeName="width" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="5;5;32"/>\n <animate class="js-yxt-SearchBar-dotsFadeIn" id="dotsFadeIn" begin="indefinite" attributeName="opacity" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.5;0.75;1" values="0;0;1;1"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;1" values="0;13.5;13.5"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" begin="indefinite" attributeName="width" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;1" values="32;5;5"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" id="dotsFadeOut" begin="indefinite" attributeName="opacity" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;0.75;1" values="1;1;0;0"/>\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n \x3c!-- Layer: dot4 --\x3e\n <svg x="27" y="7" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="y" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.125;0.5;0.875;1" repeatCount="indefinite" values="7;7;5;7;7"/>\n <animate class="js-yxt-SearchBar-dotsFadeIn" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="0;0;27"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;1" values="27;0;0"/>\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="5" height="5" style ="overflow:visible" opacity="1" label="dot4Container">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="height" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.125;0.5;0.875;1" repeatCount="indefinite" values="5;5;9;5;5"/>\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path class="yxt-SearchBar-dot4" d="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5" fill="#87B7F7" id="dot4" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="d" calcMode="spline" dur="0.3s" fill="freeze" href="#dot4" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.125;0.5;0.875;1" repeatCount="indefinite" values="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,4,0,4 0,1.371,-1.129,2.5,-2.5,2.5 0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-4,0,-4zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5"/>\n </path>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: dot3 --\x3e\n <svg x="18" y="7" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="y" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.375;0.75;1" repeatCount="indefinite" values="7;2;7;7"/>\n <animate class="js-yxt-SearchBar-dotsFadeIn" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="0;0;18"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;1" values="18;0;0"/>\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="5" height="5" style ="overflow:visible" opacity="1" label="dot3Container">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="height" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.375;0.75;1" repeatCount="indefinite" values="5;15;5;5"/>\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path class="yxt-SearchBar-dot3" d="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5" fill="#87B7F7" id="dot3" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="d" calcMode="spline" dur="0.3s" fill="freeze" href="#dot3" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.375;0.75;1" repeatCount="indefinite" values="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,10,0,10 0,1.371,-1.129,2.5,-2.5,2.5 0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-10,0,-10zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5"/>\n </path>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: dot2 --\x3e\n <svg x="9" y="7" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="y" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.125;0.5;0.875;1" repeatCount="indefinite" values="7;7;4;7;7"/>\n <animate class="js-yxt-SearchBar-dotsFadeIn" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="0;0;9"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" begin="indefinite" attributeName="x" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;1" values="9;0;0"/>\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="5" height="5" style ="overflow:visible" opacity="1" label="dot2Container">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="height" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.125;0.5;0.875;1" repeatCount="indefinite" values="5;5;11;5;5"/>\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path class="yxt-SearchBar-dot2" d="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5" fill="#87B7F7" id="dot2" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="d" calcMode="spline" dur="0.3s" fill="freeze" href="#dot2" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.125;0.5;0.875;1" repeatCount="indefinite" values="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,6,0,6 0,1.371,-1.129,2.5,-2.5,2.5 0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-6,0,-6zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5"/>\n </path>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n \x3c!-- Layer: dot1 --\x3e\n <svg x="0" y="7" width="0.01" height="0.01" style ="overflow:visible" opacity="1" label="anchorPointContainer">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="y" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.25;0.625;1" repeatCount="indefinite" values="7;7;6;7"/>\n <g label="flipped" transform="scale(1 1)">\n <g label="layerRotation" transform="rotate(0)">\n <svg x="-0" y="-0" width="5" height="5" style ="overflow:visible" opacity="1" label="dot1Container">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="height" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.25;0.625;1" repeatCount="indefinite" values="5;5;7;5"/>\n <g clip-path="" label="maskPath">\n <g label="layerShadow" filter="">\n <path class="yxt-SearchBar-dot1" d="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5" fill="#87B7F7" id="dot1" stroke="#00000000" stroke-dasharray="0" stroke-dashoffset="0" stroke-miterlimit="4" stroke-width="1">\n <animate class="js-yxt-SearchBar-dotsListening" begin="indefinite" attributeName="d" calcMode="spline" dur="0.3s" fill="freeze" href="#dot1" keySplines="0 0 1 1;0.42 0 0.58 1;0.42 0 0.58 1" keyTimes="0;0.25;0.625;1" repeatCount="indefinite" values="M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,2,0,2 0,1.371,-1.129,2.5,-2.5,2.5 0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-2,0,-2zM0,2.5;M0,2.5c-0,-1.371,1.129,-2.5,2.5,-2.5 0,0,0,0,0,0 1.371,-0,2.5,1.129,2.5,2.5 0,0,0,0,0,0 0,0,0,0,0,0 0,1.371,-1.129,2.5,-2.5,2.5 -0,0,-0,0,-0,0 0,0,0,0,0,0 -1.371,0,-2.5,-1.129,-2.5,-2.5 0,0,0,0,0,0 0,0,0,-0,0,-0zM0,2.5"/>\n </path>\n \n </g>\n </g>\n </svg>\n </g>\n </g>\n </svg>\n <rect fill="none" height="100%" rx="0" stroke="#00000000" stroke-width="1" width="100%" x="0" y="0">\n <animate class="js-yxt-SearchBar-dotsFadeIn" begin="indefinite" attributeName="width" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0 0 1 1;0.42 0 0.58 1" keyTimes="0;0.5;1" values="5;5;32"/>\n <animate class="js-yxt-SearchBar-dotsFadeOut" begin="indefinite" attributeName="width" calcMode="spline" dur="0.3s" fill="freeze" keySplines="0.42 0 0.58 1;0 0 1 1" keyTimes="0;0.5;1" values="32;5;5"/>\n </rect>\n </g>\n </g>\n </svg>\n </g>\n </g>\n</svg>'}),Tr=new Sr({name:"directions",path:"M23.649 11.154L12.846.35a1.195 1.195 0 00-1.692 0L.35 11.154a1.195 1.195 0 000 1.692L11.154 23.65a1.195 1.195 0 001.692 0L23.65 12.846c.468-.456.468-1.212 0-1.692zm-9.254 3.853v-3.001H9.593v3.6h-2.4v-4.8c0-.66.54-1.2 1.2-1.2h6.002V6.604l4.2 4.2-4.2 4.202z"}),Lr=new Sr({name:"calendar",path:"M18.111 13.2H12v6h6.111v-6zM16.89 0v2.4H7.11V0H4.667v2.4H3.444c-1.356 0-2.432 1.08-2.432 2.4L1 21.6C1 22.92 2.088 24 3.444 24h17.112C21.9 24 23 22.92 23 21.6V4.8c0-1.32-1.1-2.4-2.444-2.4h-1.223V0H16.89zm3.667 21.6H3.444V8.4h17.112v13.2z"}),Fr=new Sr({name:"callout",path:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"}),Ir=new Sr({name:"info",path:"M12 8.4A1.2 1.2 0 1012 6a1.2 1.2 0 000 2.4zM12 0c6.624 0 12 5.376 12 12s-5.376 12-12 12S0 18.624 0 12 5.376 0 12 0zm0 18c.66 0 1.2-.54 1.2-1.2V12c0-.66-.54-1.2-1.2-1.2-.66 0-1.2.54-1.2 1.2v4.8c0 .66.54 1.2 1.2 1.2z"}),Rr=new Sr({name:"ai_signpost",viewBox:"0 0 20 20",complexContents:'\n <path\n fill="currentColor"\n d="M16.5 2C17.3284 2 18 2.67157 18 3.5V16.5C18 17.3284 17.3284 18 16.5 18H3.5C2.67157 18 2 17.3284 2 16.5V3.5C2 2.67157 2.67157 2 3.5 2H16.5ZM6.73145 6L4.5 13.29H5.52051L6.04785 11.3906H8.60156L9.13867 13.29H10.1592L7.92773 6H6.73145ZM11.3262 6V6.83008H12.8545V12.46H11.3262V13.29H15.374V12.46H13.8457V6.83008H15.374V6H11.3262ZM8.36719 10.5996H6.28711L7.32715 6.86914L8.36719 10.5996Z"\n />\n '}),jr=new Sr({name:"briefcase",path:"M20 7h-4V5c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 20c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V9c0-1.11-.89-2-2-2zm-6 0h-4V5h4v2z"}),Pr=new Sr({name:"kabob",viewBox:"0 0 3 11",complexContents:'<circle cx="1.5" cy="1.5" r="1.5"/><circle cx="1.5" cy="5.5" r="1.5"/><circle cx="1.5" cy="9.5" r="1.5"/>'}),Nr=new Sr({name:"person",viewBox:"0 0 18 18",path:"M9 9c2.486 0 4.5-2.014 4.5-4.5S11.486 0 9 0a4.499 4.499 0 00-4.5 4.5C4.5 6.986 6.514 9 9 9zm0 2.25c-3.004 0-9 1.508-9 4.5v1.125C0 17.494.506 18 1.125 18h15.75c.619 0 1.125-.506 1.125-1.125V15.75c0-2.992-5.996-4.5-9-4.5z"}),Dr=new Sr({name:"magnifying_glass",path:"M16.124 13.051a5.154 5.154 0 110-10.308 5.154 5.154 0 010 10.308M16.114 0a7.886 7.886 0 00-6.46 12.407L0 22.06 1.94 24l9.653-9.653A7.886 7.886 0 1016.113 0"}),Br=new Sr({name:"office",path:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"}),qr=new Sr({name:"link",path:"M2.28 12A3.723 3.723 0 016 8.28h4.8V6H6c-3.312 0-6 2.688-6 6s2.688 6 6 6h4.8v-2.28H6A3.723 3.723 0 012.28 12zm4.92 1.2h9.6v-2.4H7.2v2.4zM18 6h-4.8v2.28H18A3.723 3.723 0 0121.72 12 3.723 3.723 0 0118 15.72h-4.8V18H18c3.312 0 6-2.688 6-6s-2.688-6-6-6z"}),Ur=new Sr({name:"window",path:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}),Vr=new Sr({name:"phone",path:"M4.827 10.387a20.198 20.198 0 008.786 8.786l2.934-2.933c.36-.36.893-.48 1.36-.32a15.21 15.21 0 004.76.76c.733 0 1.333.6 1.333 1.333v4.654C24 23.4 23.4 24 22.667 24 10.147 24 0 13.853 0 1.333 0 .6.6 0 1.333 0H6c.733 0 1.333.6 1.333 1.333 0 1.667.267 3.267.76 4.76.147.467.04.987-.333 1.36l-2.933 2.934z"}),zr=new Sr({name:"tag",viewBox:"0 0 18 18",path:"M17.469 8.622l-8.1-8.1A1.789 1.789 0 008.1 0H1.8C.81 0 0 .81 0 1.8v6.3c0 .495.198.945.531 1.278l8.1 8.1c.324.324.774.522 1.269.522a1.76 1.76 0 001.269-.531l6.3-6.3A1.76 1.76 0 0018 9.9c0-.495-.207-.954-.531-1.278zM3.15 4.5c-.747 0-1.35-.603-1.35-1.35 0-.747.603-1.35 1.35-1.35.747 0 1.35.603 1.35 1.35 0 .747-.603 1.35-1.35 1.35z"}),Hr=new Sr({name:"document",path:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"}),Kr=new Sr({name:"chevron",viewBox:"0 0 7 9",complexContents:'<g fill-rule="evenodd" transform="translate(-1 -8)"><path d="m2.6417004 8-1.1417004 1.0575 3.70850202 3.4425-3.70850202 3.4425 1.1417004 1.0575 4.8582996-4.5z"/></g>'}),Gr=new Sr({name:"support",path:"M12,0 C5.376,0 0,5.376 0,12 C0,18.624 5.376,24 12,24 C18.624,24 24,18.624 24,12 C24,5.376 18.624,0 12,0 Z M13,19 L11,19 L11,17 L13,17 L13,19 Z M15.07,11.25 L14.17,12.17 C13.45,12.9 13,13.5 13,15 L11,15 L11,14.5 C11,13.4 11.45,12.4 12.17,11.67 L13.41,10.41 C13.78,10.05 14,9.55 14,9 C14,7.9 13.1,7 12,7 C10.9,7 10,7.9 10,9 L8,9 C8,6.79 9.79,5 12,5 C14.21,5 16,6.79 16,9 C16,9.88 15.64,10.68 15.07,11.25 Z"}),Zr=new Sr({name:"yext",viewBox:"0 0 30 30",path:"M25.517 28.142v.095h-.204v.905h-.066v-.905h-.197v-.095h.467zm.667 0h.066v1h-.066v-.825l-.24.595h-.013l-.24-.595v.825h-.066v-1h.066l.247.61.246-.61zM15 28.8c7.622 0 13.8-6.178 13.8-13.8 0-7.622-6.178-13.8-13.8-13.8C7.378 1.2 1.2 7.378 1.2 15c0 7.622 6.178 13.8 13.8 13.8zM15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0zm.45 16.65v-1.2h6.6v1.2h-2.7v5.4h-1.2v-5.4h-2.7zm-1.599-1.35l.849.849-2.601 2.601 2.601 2.601-.849.849-2.601-2.601L8.649 22.2l-.849-.849 2.601-2.601L7.8 16.149l.849-.849 2.601 2.601 2.601-2.601zM18.675 9a2.175 2.175 0 00-1.847 3.323l2.995-2.995A2.163 2.163 0 0018.675 9zm0 5.55a3.375 3.375 0 112.833-5.209l-3.789 3.788a2.175 2.175 0 003.13-1.954h1.201a3.375 3.375 0 01-3.375 3.375zm-7.425-3.734L13.78 7.8l.92.771-2.85 3.397v2.582h-1.2v-2.582L7.8 8.57l.92-.771 2.53 3.016z"}),Qr=new Sr({name:"pin",viewBox:"5 0 9 18",path:"m9.375 0c-3.52446429 0-6.375 2.817-6.375 6.3 0 4.725 6.375 11.7 6.375 11.7s6.375-6.975 6.375-11.7c0-3.483-2.8505357-6.3-6.375-6.3zm.00000018 8.55000007c-1.25678576 0-2.27678579-1.008-2.27678579-2.25s1.02000003-2.25 2.27678579-2.25c1.25678572 0 2.27678582 1.008 2.27678582 2.25s-1.0200001 2.25-2.27678582 2.25z"}),Wr=new Sr({name:"gear",path:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42a.353.353 0 01.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16a.353.353 0 01-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"}),$r=new Sr({name:"light_bulb",viewBox:"0 0 32 35",path:"M11.585 31.056l8.38-.493v-.986l-8.38.493zM11.585 33.028L15.775 35l4.19-1.972V31.55l-8.38.493v.986zm6.926-.407l-2.736 1.29-2.13-1.004 4.866-.286zM15.775 7.394c-4.63 0-8.38 3.205-8.38 8.38 0 5.177 4.19 6.902 4.19 12.818v.493l8.38-.493c0-5.916 4.19-8.188 4.19-12.817a8.38 8.38 0 00-8.38-8.38zm5.617 13.48c-1.025 1.837-2.174 3.892-2.381 6.786l-6.44.38c-.129-3.01-1.29-5.021-2.32-6.808-.493-.8-.928-1.636-1.299-2.5h13.556c-.325.708-.704 1.403-1.116 2.142zm1.479-3.128H8.627a7.793 7.793 0 01-.247-1.971c0-4.353 3.042-7.395 7.395-7.395a7.394 7.394 0 017.394 7.395 6.739 6.739 0 01-.3 1.971h.002zM26.62 15.282h4.93v1h-4.93zM23.094 7.756l2.091-2.091.698.697-2.092 2.092zM15.282 0h1v4.93h-1zM5.666 6.362l.697-.697 2.091 2.091-.697.697zM0 15.282h4.93v1H0z"}),Yr=new Sr({name:"star",viewBox:"0 0 18 18",path:"M8.991 0C4.023 0 0 4.032 0 9s4.023 9 8.991 9C13.968 18 18 13.968 18 9s-4.032-9-9.009-9zm3.816 14.4L9 12.105 5.193 14.4l1.008-4.329-3.357-2.907 4.428-.378L9 2.7l1.728 4.077 4.428.378-3.357 2.907z"}),Jr=new Sr({name:"close",viewBox:"0 1 24 24",complexContents:'\n <path d="M7 8l9.716 9.716m0-9.716L7 17.716"\n stroke="currentColor"\n stroke-width="2"/>\n '}),Xr=new Sr({name:"elements",path:"M13,15 L13,17 L21,17 L21,19 L13,19 L13,21 L11,21 L11,15 L13,15 Z M9,17 L9,19 L3,19 L3,17 L9,17 Z M9,15 L7,15 L7,13 L3,13 L3,11 L7,11 L7,9 L9,9 L9,15 Z M21,11 L21,13 L11,13 L11,11 L21,11 Z M17,3 L17,5 L21,5 L21,7 L17,7 L17,9 L15,9 L15,3 L17,3 Z M13,5 L13,7 L3,7 L3,5 L13,5 Z"}),ei=new Sr({name:"yext_animated_reverse",viewBox:"0 0 72 72",complexContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iconPrefix||"yxt";return'<defs>\n <mask id="'.concat(t,'_reverse_Mask-1">\n <rect fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-2">\n <rect x="-144.3" y="144.3" fill="#fff" width="720" height="720" />\n <path d="M-0.3 .1c0 0 1.3 1.2 1.3 1.2c0 0 .3-1.6 .3-1.6c0 0-1.6 .4-1.6 .4" />\n <path fill="#fff" d="M.3 .7c0 0-0.3 .3-0.3 .3c0 0 0 0 0 0c0 0 .3-0.3 .3-0.3c0 0 0 0 0 0" />\n <path d="M.3 .7c0 0-0.1 0-0.1 0c0 0 .1 .1 .1 .1c0 0 .1-0.1 .1-0.1c0 0-0.1 0-0.1 0m222.8 469.1c0 0-70.5 69.4-70.5 69.4c0 0 34.1 33.5 34.1 33.5c0 0 67-72.9 67-72.9c0 0-30.6-30-30.6-30" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-3">\n <rect fill="#fff" width="720" height="720" />\n <path d="M489.8 277.4c0 0 78 18.8 78 18.8c0 0-96.1 61.5-96.1 61.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-13.9 14-13.9 14m-67.8-108.1c0 0 73.9 1.3 73.9 1.3c0 0-33.8 54.5-33.8 54.5c0 0 18.6-3.2 18.6-3.2c0 0 35.4-36.5 35.4-36.5c0 0-62-25.9-62-25.9c0 0-32.1 9.8-32.1 9.8" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-4">\n <rect x="-91.1" y="91.1" fill="#fff" width="720" height="720" />\n <path d="M-0.3 .1c0 0 1.3 1.2 1.3 1.2c0 0 .3-1.6 .3-1.6c0 0-1.6 .4-1.6 .4" />\n <path fill="#fff" d="M.3 .7c0 0-0.3 .3-0.3 .3c0 0 0 0 0 0c0 0 .3-0.3 .3-0.3c0 0 0 0 0 0" />\n <path d="M.3 .7c0 0-0.1 0-0.1 0c0 0 .1 .1 .1 .1c0 0 .1-0.1 .1-0.1c0 0-0.1 0-0.1 0m222.8 469.1c0 0-70.5 69.4-70.5 69.4c0 0 34.1 33.5 34.1 33.5c0 0 67-72.9 67-72.9c0 0-30.6-30-30.6-30" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-5">\n <rect fill="#fff" width="720" height="720" />\n <path d="M488.4 291.4c0 0 40.5 39.3 40.5 39.3c0 0-57.2 27-57.2 27c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-15.3 28-15.3 28m-90.5-97.4c0 0 52-11.3 52-11.3c0 0-6 45.2-6 45.2c0 0 36.8-6 36.8-6c0 0 39.3-31.9 39.3-31.9c0 0-65.9-30.5-65.9-30.5c0 0-56.2 34.5-56.2 34.5" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-6">\n <rect x="-61.3" y="61.3" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-7">\n <rect fill="#fff" width="720" height="720" />\n <path d="M481.8 298.4c0 0 27.5 39.8 27.5 39.8c0 0-37.6 19.5-37.6 19.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-21.9 35-21.9 35m-108.1-79.7c0 0 30.2-23.8 30.2-23.8c0 0 21.7 35.9 21.7 35.9c0 0 55.1-8.9 55.1-8.9c0 0 35.4-36.5 35.4-36.5c0 0-62-25.9-62-25.9c0 0-80.4 59.2-80.4 59.2" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-8">\n <rect x="-42.6" y="42.6" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-9">\n <rect fill="#fff" width="720" height="720" />\n <path d="M475.2 305.4c0 0 14.5 40.3 14.5 40.3c0 0-18 12-18 12c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-28.5 42-28.5 42m-113.6-74.3c0 0 17.9-18.5 17.9-18.5c0 0 36.4 25.3 36.4 25.3c0 0 64.8-16 64.8-16c0 0 39.3-31.9 39.3-31.9c0 0-65.9-30.5-65.9-30.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-10">\n <rect x="-29.6" y="29.6" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-11">\n <rect fill="#fff" width="720" height="720" />\n <path d="M468.6 312.4c0 0 1.5 40.8 1.5 40.8c0 0 1.6 4.5 1.6 4.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-35.1 49-35.1 49m-107-81.3c0 0 15.1 4.9 15.1 4.9c0 0 38.2 13.3 38.2 13.3c0 0 65.8-27.4 65.8-27.4c0 0 39.3-21.9 39.3-21.9c0 0-65.9-40.5-65.9-40.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-12">\n <rect x="-20.3" y="20.3" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-13">\n <rect fill="#fff" width="720" height="720" />\n <path d="M456.6 311.9c0 0-7 35.6-7 35.6c0 0 22.1 10.2 22.1 10.2c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-47.1 48.5-47.1 48.5m-95-80.8c0 0 12.3 28.3 12.3 28.3c0 0 39.9 1.3 39.9 1.3c0 0 66.9-38.8 66.9-38.8c0 0 39.3-21.9 39.3-21.9c0 0-65.9-40.5-65.9-40.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-14">\n <rect x="-13.4" y="13.4" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-15">\n <rect fill="#fff" width="720" height="720" />\n <path d="M444.6 311.4c0 0-15.6 30.5-15.6 30.5c0 0 42.7 15.8 42.7 15.8c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-59.1 48-59.1 48m-83-80.3c0 0 9.5 51.7 9.5 51.7c0 0 41.7-10.8 41.7-10.8c0 0 67.9-50.1 67.9-50.1c0 0 50.6-31.9 50.6-31.9c0 0-77.2-30.5-77.2-30.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-16">\n <rect x="-7.3" y="7.3" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-17">\n <rect fill="#fff" width="720" height="720" />\n <path d="M432.6 310.9c0 0-24.2 25.3-24.2 25.3c0 0 63.3 21.5 63.3 21.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-71.1 47.5-71.1 47.5m-71-79.8c0 0 20.3 90.4 20.3 90.4c0 0 29-29.5 29-29.5c0 0 69.8-70.1 69.8-70.1c0 0 35.4-36.5 35.4-36.5c0 0-62-25.9-62-25.9c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-18">\n <rect x="-4" y="4" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-19">\n <rect fill="#fff" width="720" height="720" />\n <path d="M432.6 310.9c0 0-24.2 25.3-24.2 25.3c0 0 63.3 21.5 63.3 21.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-71.1 47.5-71.1 47.5m-71-79.8c0 0 20.3 90.4 20.3 90.4c0 0 29-29.5 29-29.5c0 0 69.8-70.1 69.8-70.1c0 0 39.3-31.9 39.3-31.9c0 0-65.9-30.5-65.9-30.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_reverse_Mask-20">\n <rect fill="#fff" width="720" height="720" />\n </mask>\n <clipPath id="').concat(t,'_reverse_ClipPath-1">\n <rect width="720" height="720" />\n </clipPath>\n </defs>\n <g transform="translate(0,0) scale(.1,.1)">\n <g mask="url(#').concat(t,'_reverse_Mask-1)">\n <path d="M377.5 395.3c0 0 64.8 0 64.8 0c0 0 0 129.6 0 129.6c0 0 28.8 0 28.8 0c0 0 0-129.6 0-129.6c0 0 64.8 0 64.8 0c0 0 0-28.8 0-28.8c0 0-158.4 0-158.4 0c0 0 0 28.8 0 28.8Z" />\n <path d="M338.9 363.6c0 0-62.5 62.4-62.5 62.4c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 62.4-62.4 62.4-62.4c0 0-20.3-20.4-20.3-20.4Z" />\n <path d="M454.7 345.8c44.8 0 81-36.3 81-81c0 0-28.8 0-28.8 0c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3c0 0 69.8-69.9 69.8-69.9c0 0 21.1-21 21.1-21c-14.4-22.3-39.5-37-68-37c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81Zm0-133.2c10.2 0 19.6 2.9 27.6 7.9c0 0-71.9 71.8-71.9 71.8c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2Z" />\n <path d="M276.4 255.9c0 0-60.7-72.8-60.7-72.8c0 0-22.1 18.6-22.1 18.6c0 0 68.4 82 68.4 82c0 0 0 62.4 0 62.4c0 0 28.8 0 28.8 0c0 0 0-62.6 0-62.6c0 0 68.4-81.8 68.4-81.8c0 0-22-18.6-22-18.6c0 0-60.8 72.8-60.8 72.8Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-353.7c195.2 0 353.7 158.5 353.7 353.7c0 195.2-158.5 353.7-353.7 353.7c-195.2 0-353.7-158.5-353.7-353.7c0-195.2 158.5-353.7 353.7-353.7Z" fill="none" transform="translate(359.8,360.4) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-2)" transform="translate(144.3,-144.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-3)">\n <path d="M390.6 395.2c0 0 51.7 .1 51.7 .1c0 0 .1 103.6 .1 103.6c0 0 28.7 0 28.7 0c0 0 0-103.6 0-103.6c0 0 52-0.1 52-0.1c0 0 0-28.4 0-28.4c0 0-132.5 0-132.5 0c0 0 0 28.4 0 28.4Z" />\n <path d="M329 373.4c0 .1-52.6 52.6-52.6 52.6c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 52.6-52.6 52.6-52.6c0 0-20.4-20.3-20.4-20.3Z" />\n <path d="M454.7 345.8c44.8 0 81-36.3 81-81c0 0-28.8 0-28.8 0c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3c0 0 69.8-69.9 69.8-69.9c0 0 21.1-21 21.1-21c-14.4-22.3-39.5-37-68-37c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81Zm0-133.2c10.2 0 19.6 2.9 27.6 7.9c0 0-71.9 71.8-71.9 71.8c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2Z" />\n <path d="M276.4 255.9c0 0-48.7-58.3-48.7-58.3c0 0-21.1 19-21.1 19c0 0 55.5 67.2 55.5 67.2c0 0 .3 50 .3 50c0 0 28.4 0 28.4 0c0 0 0-50.3 0-50.3c0 0 55.4-66.9 55.4-66.9c0 0-21-18.6-21-18.6c0 0-48.8 57.9-48.8 57.9Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-336.2c185.6 0 336.2 150.6 336.2 336.2c0 185.6-150.6 336.2-336.2 336.2c-185.6 0-336.2-150.6-336.2-336.2c0-185.6 150.6-336.2 336.2-336.2Z" fill="none" display="block" transform="translate(370.8,347.5) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g mask="url(#').concat(t,'_reverse_Mask-4)" transform="translate(91.1,-91.1)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g mask="url(#').concat(t,'_reverse_Mask-5)">\n <path d="M409.7 395.1c0 0 32.6 .2 32.6 .2c0 0 .3 65.5 .3 65.5c0 0 28.5 0 28.5 0c0 0 0-65.5 0-65.5c0 0 33.1-0.2 33.1-0.2c0 0 0-27.8 0-27.8c0 0-94.5 0-94.5 0c0 0 0 27.8 0 27.8Z" />\n <path d="M319.7 382.8c0 0-43.3 43.2-43.3 43.2c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 43.4-43.3 43.4-43.3c0 0-20.5-20.3-20.5-20.3Z" />\n <path d="M502.8 199.6c-13.4-9.9-30-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l69.8-69.9l.3-0.2l-20.3-20.4l-71.2 71.1c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-31.1-37-31.1-37c0 0-19.7 19.5-19.7 19.5c0 0 36.7 45.6 36.7 45.6c0 0 .7 31.8 .7 31.8c0 0 27.7 0 27.7 0c0 0 0-32.4 0-32.4c0 0 36.5-44.9 36.5-44.9c0 0-19.6-18.6-19.6-18.6c0 0-31.2 36-31.2 36Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-310c171.1 0 310 138.9 310 310c0 171.1-138.9 310-310 310c-171.1 0-310-138.9-310-310c0-171.1 138.9-310 310-310Z" fill="none" transform="translate(387.8,328.7) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-6)" transform="translate(61.3,-61.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g mask="url(#').concat(t,'_reverse_Mask-7)">\n <path d="M420.4 395c0 0 21.9 .3 21.9 .3c0 0 .4 44.1 .4 44.1c0 0 28.4 0 28.4 0c0 0 0-44.1 0-44.1c0 0 22.6-0.3 22.6-0.3c0 0 0-27.5 0-27.5c0 0-73.3 0-73.3 0c0 0 0 27.5 0 27.5Z" />\n <path d="M313.2 389.2c0 0-36.8 36.8-36.8 36.8c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 37-36.9 37-36.9c0 0-20.6-20.3-20.6-20.3Z" />\n <path d="M500 200c-13.4-9.9-27.2-16.2-45.3-16.2c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l57.7-57.7l-20.3-20.4l-58.8 58.7c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-21.2-25.1-21.2-25.1c0 0-19 19.8-19 19.8c0 0 26.2 33.5 26.2 33.5c0 0 1 21.6 1 21.6c0 0 27.2 0 27.2 0c0 0 0-22.3 0-22.3c0 0 25.9-32.7 25.9-32.7c0 0-18.8-18.6-18.8-18.6c0 0-21.3 23.8-21.3 23.8Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-294.3c162.4 0 294.3 131.9 294.3 294.3c0 162.4-131.9 294.3-294.3 294.3c-162.4 0-294.3-131.9-294.3-294.3c0-162.4 131.9-294.3 294.3-294.3Z" fill="none" display="block" transform="translate(398.7,318.2) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g mask="url(#').concat(t,'_reverse_Mask-8)" transform="translate(42.6,-42.6)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-9)">\n <path d="M427.2 394.9c0 0 15.1 .4 15.1 .4c0 0 .4 30.7 .4 30.7c0 0 28.4 0 28.4 0c0 0 0-30.7 0-30.7c0 0 15.9-0.4 15.9-0.4c0 0 0-27.2 0-27.2c0 0-59.8 0-59.8 0c0 0 0 27.2 0 27.2Z" />\n <path d="M307.4 395c0 0-31 31-31 31c0 0-53.9-54-53.9-54c0 0-20.4 20.4-20.4 20.4c0 0 54 54 54 54c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 54 54 54 54c0 0 20.4-20.3 20.4-20.3c0 0-54-54.1-54-54.1c0 0 31.2-31.1 31.2-31.1c0 0-20.6-20.3-20.6-20.3Z" />\n <path d="M502.8 199.6c-13.4-9.9-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l45.5-45.5l-20.4-20.4l-46.5 46.5c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-15-17.6-15-17.6c0 0-18.4 20-18.4 20c0 0 19.4 25.8 19.4 25.8c0 0 1.2 15.2 1.2 15.2c0 0 27 0 27 0c0 0 0-15.9 0-15.9c0 0 19.1-24.9 19.1-24.9c0 0-18.2-18.7-18.2-18.7c0 0-15.1 16.1-15.1 16.1Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-284.4c157 0 284.4 127.4 284.4 284.4c0 157-127.4 284.4-284.4 284.4c-157 0-284.4-127.4-284.4-284.4c0-157 127.4-284.4 284.4-284.4Z" fill="none" transform="translate(406.1,311.6) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-10)" transform="translate(29.6,-29.6)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-11)">\n <path d="M436 393.5c0 0 8.7 .4 8.7 .4c0 0 .4 17.8 .4 17.8c0 0 23.6 0 23.6 0c0 0 0-17.8 0-17.8c0 0 9.4-0.4 9.4-0.4c0 0 0-22.6 0-22.6c0 0-42.1 0-42.1 0c0 0 0 22.6 0 22.6Z" />\n <path d="M297.2 405.2c0 0-20.8 20.8-20.8 20.8c0 0-35.4-35.6-35.4-35.6c0 0-20.3 20.5-20.3 20.5c0 0 35.4 35.5 35.4 35.5c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 35.6 35.5 35.6 35.5c0 0 20.2-20.2 20.2-20.2c0 0-35.4-35.7-35.4-35.7c0 0 21.1-21 21.1-21c0 0-20.7-20.2-20.7-20.2Z" />\n <path d="M502.8 199.6c-13.4-9.9-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l33.7-33.7l-20.4-20.3l-34.7 34.6c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-10.7-12.4-10.7-12.4c0 0-18.1 20.1-18.1 20.1c0 0 14.9 20.6 14.9 20.6c0 0 1.2 10.7 1.2 10.7c0 0 26.8 0 26.8 0c0 0 0-11.5 0-11.5c0 0 14.6-19.6 14.6-19.6c0 0-17.9-18.6-17.9-18.6c0 0-10.8 10.7-10.8 10.7Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-277.5c153.1 0 277.5 124.4 277.5 277.5c0 153.1-124.4 277.5-277.5 277.5c-153.1 0-277.5-124.4-277.5-277.5c0-153.1 124.4-277.5 277.5-277.5Z" fill="none" display="block" transform="translate(411.2,307.1) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-12)" transform="translate(20.3,-20.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-13)">\n <path d="M446 390.8c0 0 3.5 .2 3.5 .2c0 0 .2 7.3 .2 7.3c.1 0 14.2 0 14.2 0c0 0 0-7.3 0-7.3c0 0 4-0.2 4-0.2c0 0 0-13.5 0-13.5c0 0-21.9 0-21.9 0c0 0 0 13.5 0 13.5Z" />\n <path d="M287.9 414.4c0 0-11.5 11.6-11.5 11.6c0 0-18.5-18.8-18.5-18.8c0 0-20.3 20.5-20.3 20.5c0 0 18.5 18.7 18.5 18.7c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 18.7 18.7 18.7 18.7c0 0 20.2-20 20.2-20c0 0-18.5-19.1-18.5-19.1c0 0 11.9-11.8 11.9-11.8c0 0-20.8-20.2-20.8-20.2Z" />\n <path d="M502.8 199.6c-13.4-10-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l22.4-22.4l-20.4-20.4l-23.4 23.4c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 259.4c0 0-4.5-5.2-4.5-5.2c0 0-10.7 12.1-10.7 12.1c0 0 6.9 10.1 6.9 10.1c0 0 .8 4.5 .8 4.5c0 0 16 0 16 0c0 0 0-5 0-5c0 0 6.7-9.4 6.7-9.4c0 0-10.6-11.2-10.6-11.2c0 0-4.6 4.1-4.6 4.1Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-272.5c150.4 0 272.5 122.1 272.5 272.5c0 150.4-122.1 272.5-272.5 272.5c-150.4 0-272.5-122.1-272.5-272.5c0-150.4 122.1-272.5 272.5-272.5Z" fill="none" display="block" transform="translate(414.9,303.7) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-14)" transform="translate(13.4,-13.4)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-15)">\n <path d="M453.6 388.1c0 0 .7 0 .7 0c0 0 .1 1.7 .1 1.7c0 0 4.7 0 4.7 0c0 0 0-1.7 0-1.7c0 0 1 0 1 0c0 0 0-4.5 0-4.5c0 0-6.5 0-6.5 0c0 0 0 4.5 0 4.5Z" />\n <path d="M280.8 421.5c0 0-4.4 4.5-4.4 4.5c0 0-5.5-5.9-5.5-5.9c0 0-20.3 20.6-20.3 20.6c0 0 5.5 5.7 5.5 5.7c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 5.8 5.7 5.8 5.7c0 0 20.1-19.9 20.1-19.9c0 0-5.5-6.2-5.5-6.2c0 0 4.8-4.6 4.8-4.6c0 0-20.8-20.3-20.8-20.3Z" />\n <path d="M502.8 199.6c-13.4-10-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l11.9-11.9l-20.4-20.3l-12.9 12.8c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 262.9c0 0-1-1.2-1-1.2c0 0-3.6 4-3.6 4c0 0 1.9 2.8 1.9 2.8c0 0 .2 1.1 .2 1.1c0 0 5.4 0 5.4 0c0 0 0-1.2 0-1.2c0 0 1.7-2.6 1.7-2.6c0 0-3.5-3.7-3.5-3.7c0 0-1.1 .8-1.1 .8Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-268.8c148.4 0 268.8 120.4 268.8 268.8c0 148.4-120.4 268.8-268.8 268.8c-148.4 0-268.8-120.4-268.8-268.8c0-148.4 120.4-268.8 268.8-268.8Z" fill="none" display="block" transform="translate(417.6,301.3) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-16)" transform="translate(7.3,-7.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-17)">\n <path d="M275.4 426.9c0 0-19.3 19.5-19.3 19.5c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 19.9-19.7 19.9-19.7c0 0-20.9-20.2-20.9-20.2Z" />\n <path d="M411.4 291.3l20.7 20.7l.1-0.1c6.8 3.2 14.5 5.1 22.5 5.1c28.9 0 52.2-23.4 52.2-52.2h28.8c0 44.7-36.2 81-81 81c-44.7 0-81-36.3-81-81c0-44.8 36.3-81 81-81c18 0 21.9 6.3 35.3 16.2l-7.9 20.3c-8-4.9-17.3-7.7-27.4-7.7c-28.8 0-52.2 23.3-52.2 52.2c0 10.1 2.9 19.5 7.9 27.5Z" fill-rule="evenodd" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-265.6c146.6 0 265.6 119 265.6 265.6c0 146.6-119 265.6-265.6 265.6c-146.6 0-265.6-119-265.6-265.6c0-146.6 119-265.6 265.6-265.6Z" fill="none" display="block" transform="translate(420,299.1) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-18)" transform="translate(4,-4)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-19)">\n <path d="M265.4 437.1c0 0-9.3 9.3-9.3 9.3c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 9.8-9.6 9.8-9.6c0 0-20.8-20.1-20.8-20.1Z" />\n <path d="M403 299.3l20.9 20.9l8.3-8.3c6.8 3.2 14.5 5.1 22.5 5.1c28.9 0 52.2-23.4 52.2-52.2h28.8c0 44.7-36.2 81-81 81c-44.7 0-81-36.3-81-81c0-44.8 36.3-81 81-81c18 0 34.6 5.8 48.1 15.8l-20.7 20.7c-8-4.9-17.3-7.7-27.4-7.7c-28.8 0-52.2 23.3-52.2 52.2c0 10 2.9 19.3 7.8 27.3Z" fill-rule="evenodd" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-263.8c145.6 0 263.8 118.2 263.8 263.8c0 145.6-118.2 263.8-263.8 263.8c-145.6 0-263.8-118.2-263.8-263.8c0-145.6 118.2-263.8 263.8-263.8Z" fill="none" display="block" transform="translate(421.2,297.8) scale(.977,.977)" />\n </g>\n <g clip-path="url(#').concat(t,'_reverse_ClipPath-1)" opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_reverse_Mask-20)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-261.7c144.4 0 261.7 117.3 261.7 261.7c0 144.4-117.3 261.7-261.7 261.7c-144.4 0-261.7-117.3-261.7-261.7c0-144.4 117.3-261.7 261.7-261.7Z" fill="none" display="block" transform="translate(422.8,296.4) scale(.977,.977)" />\n </g>')}}),ti=new Sr({name:"yext_animated_forward",viewBox:"0 0 72 72",complexContents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iconPrefix||"yxt";return'<defs>\n <mask id="'.concat(t,'_forward_Mask-1">\n <rect fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-2">\n <rect x="-144.3" y="144.3" fill="#fff" width="720" height="720" />\n <path d="M-0.3 .1c0 0 1.3 1.2 1.3 1.2c0 0 .3-1.6 .3-1.6c0 0-1.6 .4-1.6 .4" />\n <path fill="#fff" d="M.3 .7c0 0-0.3 .3-0.3 .3c0 0 0 0 0 0c0 0 .3-0.3 .3-0.3c0 0 0 0 0 0" />\n <path d="M.3 .7c0 0-0.1 0-0.1 0c0 0 .1 .1 .1 .1c0 0 .1-0.1 .1-0.1c0 0-0.1 0-0.1 0m222.8 469.1c0 0-70.5 69.4-70.5 69.4c0 0 34.1 33.5 34.1 33.5c0 0 67-72.9 67-72.9c0 0-30.6-30-30.6-30" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-3">\n <rect fill="#fff" width="720" height="720" />\n <path d="M489.8 277.4c0 0 78 18.8 78 18.8c0 0-96.1 61.5-96.1 61.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-13.9 14-13.9 14m-67.8-108.1c0 0 73.9 1.3 73.9 1.3c0 0-33.8 54.5-33.8 54.5c0 0 18.6-3.2 18.6-3.2c0 0 35.4-36.5 35.4-36.5c0 0-62-25.9-62-25.9c0 0-32.1 9.8-32.1 9.8" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-4">\n <rect x="-91.1" y="91.1" fill="#fff" width="720" height="720" />\n <path d="M-0.3 .1c0 0 1.3 1.2 1.3 1.2c0 0 .3-1.6 .3-1.6c0 0-1.6 .4-1.6 .4" />\n <path fill="#fff" d="M.3 .7c0 0-0.3 .3-0.3 .3c0 0 0 0 0 0c0 0 .3-0.3 .3-0.3c0 0 0 0 0 0" />\n <path d="M.3 .7c0 0-0.1 0-0.1 0c0 0 .1 .1 .1 .1c0 0 .1-0.1 .1-0.1c0 0-0.1 0-0.1 0m222.8 469.1c0 0-70.5 69.4-70.5 69.4c0 0 34.1 33.5 34.1 33.5c0 0 67-72.9 67-72.9c0 0-30.6-30-30.6-30" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-5">\n <rect fill="#fff" width="720" height="720" />\n <path d="M488.4 291.4c0 0 40.5 39.3 40.5 39.3c0 0-57.2 27-57.2 27c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-15.3 28-15.3 28m-90.5-97.4c0 0 52-11.3 52-11.3c0 0-6 45.2-6 45.2c0 0 36.8-6 36.8-6c0 0 39.3-31.9 39.3-31.9c0 0-65.9-30.5-65.9-30.5c0 0-56.2 34.5-56.2 34.5" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-6">\n <rect x="-61.3" y="61.3" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-7">\n <rect fill="#fff" width="720" height="720" />\n <path d="M481.8 298.4c0 0 27.5 39.8 27.5 39.8c0 0-37.6 19.5-37.6 19.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-21.9 35-21.9 35m-108.1-79.7c0 0 30.2-23.8 30.2-23.8c0 0 21.7 35.9 21.7 35.9c0 0 55.1-8.9 55.1-8.9c0 0 35.4-36.5 35.4-36.5c0 0-62-25.9-62-25.9c0 0-80.4 59.2-80.4 59.2" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-8">\n <rect x="-42.6" y="42.6" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-9">\n <rect fill="#fff" width="720" height="720" />\n <path d="M475.2 305.4c0 0 14.5 40.3 14.5 40.3c0 0-18 12-18 12c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-28.5 42-28.5 42m-113.6-74.3c0 0 17.9-18.5 17.9-18.5c0 0 36.4 25.3 36.4 25.3c0 0 64.8-16 64.8-16c0 0 39.3-31.9 39.3-31.9c0 0-65.9-30.5-65.9-30.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-10">\n <rect x="-29.6" y="29.6" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-11">\n <rect fill="#fff" width="720" height="720" />\n <path d="M468.6 312.4c0 0 1.5 40.8 1.5 40.8c0 0 1.6 4.5 1.6 4.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-35.1 49-35.1 49m-107-81.3c0 0 15.1 4.9 15.1 4.9c0 0 38.2 13.3 38.2 13.3c0 0 65.8-27.4 65.8-27.4c0 0 39.3-21.9 39.3-21.9c0 0-65.9-40.5-65.9-40.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-12">\n <rect x="-20.3" y="20.3" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-13">\n <rect fill="#fff" width="720" height="720" />\n <path d="M456.6 311.9c0 0-7 35.6-7 35.6c0 0 22.1 10.2 22.1 10.2c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-47.1 48.5-47.1 48.5m-95-80.8c0 0 12.3 28.3 12.3 28.3c0 0 39.9 1.3 39.9 1.3c0 0 66.9-38.8 66.9-38.8c0 0 39.3-21.9 39.3-21.9c0 0-65.9-40.5-65.9-40.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-14">\n <rect x="-13.4" y="13.4" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-15">\n <rect fill="#fff" width="720" height="720" />\n <path d="M444.6 311.4c0 0-15.6 30.5-15.6 30.5c0 0 42.7 15.8 42.7 15.8c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-59.1 48-59.1 48m-83-80.3c0 0 9.5 51.7 9.5 51.7c0 0 41.7-10.8 41.7-10.8c0 0 67.9-50.1 67.9-50.1c0 0 50.6-31.9 50.6-31.9c0 0-77.2-30.5-77.2-30.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-16">\n <rect x="-7.3" y="7.3" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-17">\n <rect fill="#fff" width="720" height="720" />\n <path d="M432.6 310.9c0 0-24.2 25.3-24.2 25.3c0 0 63.3 21.5 63.3 21.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-71.1 47.5-71.1 47.5m-71-79.8c0 0 20.3 90.4 20.3 90.4c0 0 29-29.5 29-29.5c0 0 69.8-70.1 69.8-70.1c0 0 35.4-36.5 35.4-36.5c0 0-62-25.9-62-25.9c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-18">\n <rect x="-4" y="4" fill="#fff" width="720" height="720" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-19">\n <rect fill="#fff" width="720" height="720" />\n <path d="M432.6 310.9c0 0-24.2 25.3-24.2 25.3c0 0 63.3 21.5 63.3 21.5c0 0 59.6-41.1 59.6-41.1c0 0 10.6-53.8 10.6-53.8c0 0-38.2 .6-38.2 .6c0 0-71.1 47.5-71.1 47.5m-71-79.8c0 0 20.3 90.4 20.3 90.4c0 0 29-29.5 29-29.5c0 0 69.8-70.1 69.8-70.1c0 0 39.3-31.9 39.3-31.9c0 0-65.9-30.5-65.9-30.5c0 0-92.5 71.6-92.5 71.6" />\n </mask>\n <mask id="').concat(t,'_forward_Mask-20">\n <rect fill="#fff" width="720" height="720" />\n </mask>\n <clipPath id="').concat(t,'_forward_ClipPath-1">\n <rect width="720" height="720" />\n </clipPath>\n </defs>\n <g transform="translate(0,0) scale(.1,.1)">\n <g mask="url(#').concat(t,'_forward_Mask-1)">\n <path d="M377.5 395.3c0 0 64.8 0 64.8 0c0 0 0 129.6 0 129.6c0 0 28.8 0 28.8 0c0 0 0-129.6 0-129.6c0 0 64.8 0 64.8 0c0 0 0-28.8 0-28.8c0 0-158.4 0-158.4 0c0 0 0 28.8 0 28.8Z" />\n <path d="M338.9 363.6c0 0-62.5 62.4-62.5 62.4c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 62.4-62.4 62.4-62.4c0 0-20.3-20.4-20.3-20.4Z" />\n <path d="M454.7 345.8c44.8 0 81-36.3 81-81c0 0-28.8 0-28.8 0c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3c0 0 69.8-69.9 69.8-69.9c0 0 21.1-21 21.1-21c-14.4-22.3-39.5-37-68-37c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81Zm0-133.2c10.2 0 19.6 2.9 27.6 7.9c0 0-71.9 71.8-71.9 71.8c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2Z" />\n <path d="M276.4 255.9c0 0-60.7-72.8-60.7-72.8c0 0-22.1 18.6-22.1 18.6c0 0 68.4 82 68.4 82c0 0 0 62.4 0 62.4c0 0 28.8 0 28.8 0c0 0 0-62.6 0-62.6c0 0 68.4-81.8 68.4-81.8c0 0-22-18.6-22-18.6c0 0-60.8 72.8-60.8 72.8Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-353.7c195.2 0 353.7 158.5 353.7 353.7c0 195.2-158.5 353.7-353.7 353.7c-195.2 0-353.7-158.5-353.7-353.7c0-195.2 158.5-353.7 353.7-353.7Z" fill="none" transform="translate(359.8,360.4) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-2)" transform="translate(144.3,-144.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-3)">\n <path d="M390.6 395.2c0 0 51.7 .1 51.7 .1c0 0 .1 103.6 .1 103.6c0 0 28.7 0 28.7 0c0 0 0-103.6 0-103.6c0 0 52-0.1 52-0.1c0 0 0-28.4 0-28.4c0 0-132.5 0-132.5 0c0 0 0 28.4 0 28.4Z" />\n <path d="M329 373.4c0 .1-52.6 52.6-52.6 52.6c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 52.6-52.6 52.6-52.6c0 0-20.4-20.3-20.4-20.3Z" />\n <path d="M454.7 345.8c44.8 0 81-36.3 81-81c0 0-28.8 0-28.8 0c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3c0 0 69.8-69.9 69.8-69.9c0 0 21.1-21 21.1-21c-14.4-22.3-39.5-37-68-37c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81Zm0-133.2c10.2 0 19.6 2.9 27.6 7.9c0 0-71.9 71.8-71.9 71.8c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2Z" />\n <path d="M276.4 255.9c0 0-48.7-58.3-48.7-58.3c0 0-21.1 19-21.1 19c0 0 55.5 67.2 55.5 67.2c0 0 .3 50 .3 50c0 0 28.4 0 28.4 0c0 0 0-50.3 0-50.3c0 0 55.4-66.9 55.4-66.9c0 0-21-18.6-21-18.6c0 0-48.8 57.9-48.8 57.9Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-336.2c185.6 0 336.2 150.6 336.2 336.2c0 185.6-150.6 336.2-336.2 336.2c-185.6 0-336.2-150.6-336.2-336.2c0-185.6 150.6-336.2 336.2-336.2Z" fill="none" display="block" transform="translate(370.8,347.5) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g mask="url(#').concat(t,'_forward_Mask-4)" transform="translate(91.1,-91.1)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g mask="url(#').concat(t,'_forward_Mask-5)">\n <path d="M409.7 395.1c0 0 32.6 .2 32.6 .2c0 0 .3 65.5 .3 65.5c0 0 28.5 0 28.5 0c0 0 0-65.5 0-65.5c0 0 33.1-0.2 33.1-0.2c0 0 0-27.8 0-27.8c0 0-94.5 0-94.5 0c0 0 0 27.8 0 27.8Z" />\n <path d="M319.7 382.8c0 0-43.3 43.2-43.3 43.2c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 43.4-43.3 43.4-43.3c0 0-20.5-20.3-20.5-20.3Z" />\n <path d="M502.8 199.6c-13.4-9.9-30-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l69.8-69.9l.3-0.2l-20.3-20.4l-71.2 71.1c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-31.1-37-31.1-37c0 0-19.7 19.5-19.7 19.5c0 0 36.7 45.6 36.7 45.6c0 0 .7 31.8 .7 31.8c0 0 27.7 0 27.7 0c0 0 0-32.4 0-32.4c0 0 36.5-44.9 36.5-44.9c0 0-19.6-18.6-19.6-18.6c0 0-31.2 36-31.2 36Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-310c171.1 0 310 138.9 310 310c0 171.1-138.9 310-310 310c-171.1 0-310-138.9-310-310c0-171.1 138.9-310 310-310Z" fill="none" transform="translate(387.8,328.7) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-6)" transform="translate(61.3,-61.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g mask="url(#').concat(t,'_forward_Mask-7)">\n <path d="M420.4 395c0 0 21.9 .3 21.9 .3c0 0 .4 44.1 .4 44.1c0 0 28.4 0 28.4 0c0 0 0-44.1 0-44.1c0 0 22.6-0.3 22.6-0.3c0 0 0-27.5 0-27.5c0 0-73.3 0-73.3 0c0 0 0 27.5 0 27.5Z" />\n <path d="M313.2 389.2c0 0-36.8 36.8-36.8 36.8c0 0-62.4-62.4-62.4-62.4c0 0-20.4 20.4-20.4 20.4c0 0 62.5 62.4 62.5 62.4c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 62.5 62.4 62.5 62.4c0 0 20.3-20.4 20.3-20.4c0 0-62.4-62.4-62.4-62.4c0 0 37-36.9 37-36.9c0 0-20.6-20.3-20.6-20.3Z" />\n <path d="M500 200c-13.4-9.9-27.2-16.2-45.3-16.2c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l57.7-57.7l-20.3-20.4l-58.8 58.7c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-21.2-25.1-21.2-25.1c0 0-19 19.8-19 19.8c0 0 26.2 33.5 26.2 33.5c0 0 1 21.6 1 21.6c0 0 27.2 0 27.2 0c0 0 0-22.3 0-22.3c0 0 25.9-32.7 25.9-32.7c0 0-18.8-18.6-18.8-18.6c0 0-21.3 23.8-21.3 23.8Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-294.3c162.4 0 294.3 131.9 294.3 294.3c0 162.4-131.9 294.3-294.3 294.3c-162.4 0-294.3-131.9-294.3-294.3c0-162.4 131.9-294.3 294.3-294.3Z" fill="none" display="block" transform="translate(398.7,318.2) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g mask="url(#').concat(t,'_forward_Mask-8)" transform="translate(42.6,-42.6)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-9)">\n <path d="M427.2 394.9c0 0 15.1 .4 15.1 .4c0 0 .4 30.7 .4 30.7c0 0 28.4 0 28.4 0c0 0 0-30.7 0-30.7c0 0 15.9-0.4 15.9-0.4c0 0 0-27.2 0-27.2c0 0-59.8 0-59.8 0c0 0 0 27.2 0 27.2Z" />\n <path d="M307.4 395c0 0-31 31-31 31c0 0-53.9-54-53.9-54c0 0-20.4 20.4-20.4 20.4c0 0 54 54 54 54c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 54 54 54 54c0 0 20.4-20.3 20.4-20.3c0 0-54-54.1-54-54.1c0 0 31.2-31.1 31.2-31.1c0 0-20.6-20.3-20.6-20.3Z" />\n <path d="M502.8 199.6c-13.4-9.9-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l45.5-45.5l-20.4-20.4l-46.5 46.5c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-15-17.6-15-17.6c0 0-18.4 20-18.4 20c0 0 19.4 25.8 19.4 25.8c0 0 1.2 15.2 1.2 15.2c0 0 27 0 27 0c0 0 0-15.9 0-15.9c0 0 19.1-24.9 19.1-24.9c0 0-18.2-18.7-18.2-18.7c0 0-15.1 16.1-15.1 16.1Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-284.4c157 0 284.4 127.4 284.4 284.4c0 157-127.4 284.4-284.4 284.4c-157 0-284.4-127.4-284.4-284.4c0-157 127.4-284.4 284.4-284.4Z" fill="none" transform="translate(406.1,311.6) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-10)" transform="translate(29.6,-29.6)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-11)">\n <path d="M436 393.5c0 0 8.7 .4 8.7 .4c0 0 .4 17.8 .4 17.8c0 0 23.6 0 23.6 0c0 0 0-17.8 0-17.8c0 0 9.4-0.4 9.4-0.4c0 0 0-22.6 0-22.6c0 0-42.1 0-42.1 0c0 0 0 22.6 0 22.6Z" />\n <path d="M297.2 405.2c0 0-20.8 20.8-20.8 20.8c0 0-35.4-35.6-35.4-35.6c0 0-20.3 20.5-20.3 20.5c0 0 35.4 35.5 35.4 35.5c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 35.6 35.5 35.6 35.5c0 0 20.2-20.2 20.2-20.2c0 0-35.4-35.7-35.4-35.7c0 0 21.1-21 21.1-21c0 0-20.7-20.2-20.7-20.2Z" />\n <path d="M502.8 199.6c-13.4-9.9-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l33.7-33.7l-20.4-20.3l-34.7 34.6c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 255.9c0 0-10.7-12.4-10.7-12.4c0 0-18.1 20.1-18.1 20.1c0 0 14.9 20.6 14.9 20.6c0 0 1.2 10.7 1.2 10.7c0 0 26.8 0 26.8 0c0 0 0-11.5 0-11.5c0 0 14.6-19.6 14.6-19.6c0 0-17.9-18.6-17.9-18.6c0 0-10.8 10.7-10.8 10.7Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-277.5c153.1 0 277.5 124.4 277.5 277.5c0 153.1-124.4 277.5-277.5 277.5c-153.1 0-277.5-124.4-277.5-277.5c0-153.1 124.4-277.5 277.5-277.5Z" fill="none" display="block" transform="translate(411.2,307.1) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-12)" transform="translate(20.3,-20.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-13)">\n <path d="M446 390.8c0 0 3.5 .2 3.5 .2c0 0 .2 7.3 .2 7.3c.1 0 14.2 0 14.2 0c0 0 0-7.3 0-7.3c0 0 4-0.2 4-0.2c0 0 0-13.5 0-13.5c0 0-21.9 0-21.9 0c0 0 0 13.5 0 13.5Z" />\n <path d="M287.9 414.4c0 0-11.5 11.6-11.5 11.6c0 0-18.5-18.8-18.5-18.8c0 0-20.3 20.5-20.3 20.5c0 0 18.5 18.7 18.5 18.7c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 18.7 18.7 18.7 18.7c0 0 20.2-20 20.2-20c0 0-18.5-19.1-18.5-19.1c0 0 11.9-11.8 11.9-11.8c0 0-20.8-20.2-20.8-20.2Z" />\n <path d="M502.8 199.6c-13.4-10-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l22.4-22.4l-20.4-20.4l-23.4 23.4c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 259.4c0 0-4.5-5.2-4.5-5.2c0 0-10.7 12.1-10.7 12.1c0 0 6.9 10.1 6.9 10.1c0 0 .8 4.5 .8 4.5c0 0 16 0 16 0c0 0 0-5 0-5c0 0 6.7-9.4 6.7-9.4c0 0-10.6-11.2-10.6-11.2c0 0-4.6 4.1-4.6 4.1Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-272.5c150.4 0 272.5 122.1 272.5 272.5c0 150.4-122.1 272.5-272.5 272.5c-150.4 0-272.5-122.1-272.5-272.5c0-150.4 122.1-272.5 272.5-272.5Z" fill="none" display="block" transform="translate(414.9,303.7) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-14)" transform="translate(13.4,-13.4)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-15)">\n <path d="M453.6 388.1c0 0 .7 0 .7 0c0 0 .1 1.7 .1 1.7c0 0 4.7 0 4.7 0c0 0 0-1.7 0-1.7c0 0 1 0 1 0c0 0 0-4.5 0-4.5c0 0-6.5 0-6.5 0c0 0 0 4.5 0 4.5Z" />\n <path d="M280.8 421.5c0 0-4.4 4.5-4.4 4.5c0 0-5.5-5.9-5.5-5.9c0 0-20.3 20.6-20.3 20.6c0 0 5.5 5.7 5.5 5.7c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 5.8 5.7 5.8 5.7c0 0 20.1-19.9 20.1-19.9c0 0-5.5-6.2-5.5-6.2c0 0 4.8-4.6 4.8-4.6c0 0-20.8-20.3-20.8-20.3Z" />\n <path d="M502.8 199.6c-13.4-10-30.1-15.8-48.1-15.8c-44.7 0-81 36.2-81 81c0 44.7 36.3 81 81 81c44.8 0 81-36.3 81-81h-28.8c0 28.8-23.3 52.2-52.2 52.2c-8.2 0-16-1.9-22.9-5.3l11.9-11.9l-20.4-20.3l-12.9 12.8c-5-8-7.9-17.4-7.9-27.5c0-28.9 23.4-52.2 52.2-52.2c10.1 0 19.4 2.8 27.4 7.7Z" fill-rule="evenodd" />\n <path d="M276.4 262.9c0 0-1-1.2-1-1.2c0 0-3.6 4-3.6 4c0 0 1.9 2.8 1.9 2.8c0 0 .2 1.1 .2 1.1c0 0 5.4 0 5.4 0c0 0 0-1.2 0-1.2c0 0 1.7-2.6 1.7-2.6c0 0-3.5-3.7-3.5-3.7c0 0-1.1 .8-1.1 .8Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-268.8c148.4 0 268.8 120.4 268.8 268.8c0 148.4-120.4 268.8-268.8 268.8c-148.4 0-268.8-120.4-268.8-268.8c0-148.4 120.4-268.8 268.8-268.8Z" fill="none" display="block" transform="translate(417.6,301.3) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-16)" transform="translate(7.3,-7.3)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-17)">\n <path d="M275.4 426.9c0 0-19.3 19.5-19.3 19.5c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 19.9-19.7 19.9-19.7c0 0-20.9-20.2-20.9-20.2Z" />\n <path d="M411.4 291.3l20.7 20.7l.1-0.1c6.8 3.2 14.5 5.1 22.5 5.1c28.9 0 52.2-23.4 52.2-52.2h28.8c0 44.7-36.2 81-81 81c-44.7 0-81-36.3-81-81c0-44.8 36.3-81 81-81c18 0 21.9 6.3 35.3 16.2l-7.9 20.3c-8-4.9-17.3-7.7-27.4-7.7c-28.8 0-52.2 23.3-52.2 52.2c0 10.1 2.9 19.5 7.9 27.5Z" fill-rule="evenodd" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-265.6c146.6 0 265.6 119 265.6 265.6c0 146.6-119 265.6-265.6 265.6c-146.6 0-265.6-119-265.6-265.6c0-146.6 119-265.6 265.6-265.6Z" fill="none" display="block" transform="translate(420,299.1) scale(.977,.977)" />\n </g>\n <g opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-18)" transform="translate(4,-4)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <g display="block" mask="url(#').concat(t,'_forward_Mask-19)">\n <path d="M265.4 437.1c0 0-9.3 9.3-9.3 9.3c0 0-62.5 62.4-62.5 62.4c0 0 20.4 20.4 20.4 20.4c0 0 62.4-62.4 62.4-62.4c0 0 9.8-9.6 9.8-9.6c0 0-20.8-20.1-20.8-20.1Z" />\n <path d="M403 299.3l20.9 20.9l8.3-8.3c6.8 3.2 14.5 5.1 22.5 5.1c28.9 0 52.2-23.4 52.2-52.2h28.8c0 44.7-36.2 81-81 81c-44.7 0-81-36.3-81-81c0-44.8 36.3-81 81-81c18 0 34.6 5.8 48.1 15.8l-20.7 20.7c-8-4.9-17.3-7.7-27.4-7.7c-28.8 0-52.2 23.3-52.2 52.2c0 10 2.9 19.3 7.8 27.3Z" fill-rule="evenodd" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-263.8c145.6 0 263.8 118.2 263.8 263.8c0 145.6-118.2 263.8-263.8 263.8c-145.6 0-263.8-118.2-263.8-263.8c0-145.6 118.2-263.8 263.8-263.8Z" fill="none" display="block" transform="translate(421.2,297.8) scale(.977,.977)" />\n </g>\n <g clip-path="url(#').concat(t,'_forward_ClipPath-1)" opacity="0" transform="translate(0,0) scale(.1,.1)">\n <g display="block" mask="url(#').concat(t,'_forward_Mask-20)">\n <path d="M224.2 478.3c0 0-210.6 210.5-210.6 210.5c0 0 20.4 20.4 20.4 20.4c0 0 210.7-210.7 210.7-210.7c-11.7-11-5.9-6-20.5-20.2Z" />\n </g>\n <path stroke="#000" stroke-width="30" d="M0-261.7c144.4 0 261.7 117.3 261.7 261.7c0 144.4-117.3 261.7-261.7 261.7c-144.4 0-261.7-117.3-261.7-261.7c0-144.4 117.3-261.7 261.7-261.7Z" fill="none" display="block" transform="translate(422.8,296.4) scale(.977,.977)" />\n </g>')}}),ni=new Sr({name:"email",path:"M12,-3.55271368e-15 C8.81712,-3.55271368e-15 5.7648,1.26468 3.5148,3.5148 C1.2648,5.76492 3.55271368e-15,8.81736 3.55271368e-15,12 C3.55271368e-15,15.18264 1.26468,18.2352 3.5148,20.4852 C5.76492,22.7352 8.81736,24 12,24 C15.18264,24 18.2352,22.73532 20.4852,20.4852 C22.7352,18.23508 24,15.18264 24,12 C24,8.81736 22.73532,5.7648 20.4852,3.5148 C18.23508,1.2648 15.18264,-3.55271368e-15 12,-3.55271368e-15 Z M17.28,7.92 L12,11.87064 L6.72,7.92 L17.28,7.92 Z M18,15.64776 C18,15.7743216 17.9446872,15.894312 17.85,15.976824 C17.7543744,16.059324 17.6278128,16.096824 17.503128,16.0799496 L6.479928,16.0799496 C6.352428,16.0940122 6.224928,16.0499496 6.13212,15.961824 C6.0402456,15.8727624 5.9914944,15.7471368 5.9999328,15.618696 L5.9999328,9.047736 L5.9999328,8.441184 L7.9536768,9.90744 L11.6398368,12.67224 C11.839524,12.8681784 12.1601568,12.8681784 12.3598368,12.67224 L17.8939968,8.51736 L17.9849352,8.44986 L17.9858726,8.45079768 C17.9914978,8.48548488 17.9952478,8.52111048 17.9971226,8.55579768 L17.9971226,15.6386777 L18,15.64776 Z"}),ri={};[Cr,xr,Ar,Er,Or,Mr,Tr,Lr,Fr,Ir,Rr,jr,Pr,Nr,Dr,Br,qr,Ur,Vr,zr,Hr,Kr,Gr,Zr,Qr,Wr,$r,Xr,Jr,ei,ti,ni,Yr].forEach((function(e){ri[e.name]=e.markup()})),ri.default=Yr.markup();var ii=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=/(\w+)[-_].*/;function r(e,t){if(t[e])return t[e];var r=e.match(n);if(!r)throw new Error("Can't find lang or lcale with code "+e);return t[r[1]]}function i(e){return e>1}function o(e){return 1!==e}function a(e){return 0}var s={ach:{n:2,f:i},af:{n:2,f:o},ak:{n:2,f:i},am:{n:2,f:i},an:{n:2,f:o},ar:{n:6,f:function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5}},arn:{n:2,f:i},ast:{n:2,f:o},ay:{n:1,f:a},az:{n:2,f:o},be:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},bg:{n:2,f:o},bn:{n:2,f:o},bo:{n:1,f:a},br:{n:2,f:i},brx:{n:2,f:o},bs:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ca:{n:2,f:o},cgg:{n:1,f:a},cs:{n:3,f:function(e){return 1===e?0:e>=2&&e<=4?1:2}},csb:{n:3,f:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},cy:{n:4,f:function(e){return 1===e?0:2===e?1:8!==e&&11!==e?2:3}},da:{n:2,f:o},de:{n:2,f:o},doi:{n:2,f:o},dz:{n:1,f:a},el:{n:2,f:o},en:{n:2,f:o},eo:{n:2,f:o},es:{n:2,f:o},et:{n:2,f:o},eu:{n:2,f:o},fa:{n:1,f:a},ff:{n:2,f:o},fi:{n:2,f:o},fil:{n:2,f:i},fo:{n:2,f:o},fr:{n:2,f:function(e){return e<=-2||e>=2}},fur:{n:2,f:o},fy:{n:2,f:o},ga:{n:5,f:function(e){return 1===e?0:2===e?1:e<7?2:e<11?3:4}},gd:{n:4,f:function(e){return 1===e||11===e?0:2===e||12===e?1:e>2&&e<20?2:3}},gl:{n:2,f:o},gu:{n:2,f:o},gun:{n:2,f:i},ha:{n:2,f:o},he:{n:2,f:o},hi:{n:2,f:o},hne:{n:2,f:o},hr:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},hu:{n:2,f:o},hy:{n:2,f:o},id:{n:1,f:a},is:{n:2,f:function(e){return e%10!=1||e%100==11}},it:{n:2,f:o},ja:{n:1,f:a},jbo:{n:1,f:a},jv:{n:2,f:function(e){return 0!==e}},ka:{n:1,f:a},kab:{n:2,f:o},kk:{n:2,f:o},km:{n:1,f:a},kn:{n:2,f:o},ko:{n:1,f:a},ku:{n:2,f:o},kw:{n:4,f:function(e){return 1===e?0:2===e?1:3===e?2:3}},ky:{n:1,f:a},lb:{n:2,f:o},ln:{n:2,f:i},lo:{n:1,f:a},lt:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2}},lv:{n:3,f:function(e){return e%10==1&&e%100!=11?0:0!==e?1:2}},mai:{n:2,f:o},mfe:{n:2,f:i},mg:{n:2,f:i},mi:{n:2,f:i},mk:{n:2,f:function(e){return 1===e||e%10==1?0:1}},ml:{n:2,f:o},mn:{n:2,f:o},mni:{n:2,f:o},mnk:{n:3,f:function(e){return 0===e?0:1===e?1:2}},mr:{n:2,f:o},ms:{n:1,f:a},mt:{n:4,f:function(e){return 1===e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3}},my:{n:1,f:a},nah:{n:2,f:o},nap:{n:2,f:o},nb:{n:2,f:o},ne:{n:2,f:o},nl:{n:2,f:o},nn:{n:2,f:o},no:{n:2,f:o},nso:{n:2,f:o},oc:{n:2,f:i},or:{n:2,f:o},pa:{n:2,f:o},pap:{n:2,f:o},pl:{n:3,f:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},pms:{n:2,f:o},ps:{n:2,f:o},pt:{n:2,f:o},rm:{n:2,f:o},ro:{n:3,f:function(e){return 1===e?0:0===e||e%100>0&&e%100<20?1:2}},ru:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},rw:{n:2,f:o},sah:{n:1,f:a},sat:{n:2,f:o},sco:{n:2,f:o},sd:{n:2,f:o},se:{n:2,f:o},si:{n:2,f:o},sk:{n:3,f:function(e){return 1===e?0:e>=2&&e<=4?1:2}},sl:{n:4,f:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0}},so:{n:2,f:o},son:{n:2,f:o},sq:{n:2,f:o},sr:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},su:{n:1,f:a},sv:{n:2,f:o},sw:{n:2,f:o},ta:{n:2,f:o},te:{n:2,f:o},tg:{n:2,f:i},th:{n:1,f:a},ti:{n:2,f:i},tk:{n:2,f:o},tr:{n:2,f:i},tt:{n:1,f:a},ug:{n:1,f:a},uk:{n:3,f:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ur:{n:2,f:o},uz:{n:2,f:i},vi:{n:1,f:a},wa:{n:2,f:i},wo:{n:1,f:a},yo:{n:2,f:o},zh:{n:1,f:a}};var c={};t.getNPlurals=function(e){return r(e,s).n},t.getPluralFunc=function(e){if(c[e])return c[e];var t=r(e,s),n=function(e,n){return n[+t.f(e)]};return c[e]=n,n},t.hasLang=function(e){try{return r(e,s),!0}catch(e){return!1}},t.getAvailLangs=function(){return Object.keys(s)}}));x(ii);var oi=ii.getNPlurals,ai=ii.getPluralFunc,si=ii.hasLang;ii.getAvailLangs;var ci=function(){return o((function e(){n(this,e)}),null,[{key:"process",value:function(e,t,n,r,i){var o="string"==typeof e?e:this._selectPluralForm(e,n,r);return this._interpolate(o,t,i)}},{key:"_selectPluralForm",value:function(e,t,n){si(n)||(n="en");var r=this._generateArrayOneToN(n),i=ai(n)(t,r);return i in e?e[i]:(console.error("msgstr[".concat(i,'] not found for msgid "').concat(e[0],'" and locale "').concat(n,'".')),e[0])}},{key:"_generateArrayOneToN",value:function(e){var t=oi(e);return Array.from(new Array(t).keys())}},{key:"_interpolate",value:function(e,t,n){if(t&&!n)throw new Error("An escapeExpression function must be provided when processing translations with interpolation");return e.replace(/\[\[([a-zA-Z0-9]+)\]\]/g,(function(e,r){var i=t[r];return n(i)}))}}])}();function li(e){var t,n=e.replace(/-/g,"_").split("_"),r=n[0].toLowerCase(),i=f({language:r},function(){var t=n.length;if(1===t)return{};if(2===t&&"zh"===r){var i=n[1].toLowerCase();return["hans","hant"].includes(i)?{modifier:i}:{region:i}}return 2===t?{region:n[1]}:3===t?{modifier:n[1],region:n[2]}:t>3?(console.error('Encountered unsupported locale "'.concat(e,'", ')+"with ".concat(t," sections.")),{}):void 0}());return i.modifier&&(i.modifier=(t=i.modifier).charAt(0).toUpperCase()+t.slice(1).toLowerCase()),i.region&&(i.region=i.region.toUpperCase()),i}function ui(e){return"ar"===e}var hi={distance:"mi"},di={distance:"km"},fi={en:{GB:di,AU:di,default:hi},es:{US:hi}},pi=di;function vi(e,t){if(!e)return null;var n=function(e){return function(e){var t=li(e),n=t.language,r=t.region;if(!(n in fi))return pi;if(!(r in fi[n]))return fi[n].default||pi;return fi[n][r]}(e).distance}(t);switch(t=t.replace(/_/g,"-"),n){case"mi":return gi(e,t);case"km":return function(e,t){var n=e/1e3;return new Intl.NumberFormat(t,{style:"decimal",maximumFractionDigits:1,minimumFractionDigits:1}).format(n)+" km"}(e,t);default:return gi(e,t)}}function gi(e,t){var n=e/1609.344;return new Intl.NumberFormat(t,{style:"decimal",maximumFractionDigits:1,minimumFractionDigits:1}).format(n)+" mi"}var mi={SOY:wr,Handlebars:function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,r),(e=t(this,r))._handlebars=i._hb||null,e._templates=i||{},e}return u(r,e),o(r,[{key:"init",value:function(e,t){this._handlebars=e._hb,this._templates=e,this._initLocale=t,this._registerCustomHelpers()}},{key:"registerHelper",value:function(e,t){this._handlebars.registerHelper(e,t)}},{key:"registerPartial",value:function(e,t){this._handlebars.registerPartial(e,t)}},{key:"SafeString",value:function(e){return new this._handlebars.SafeString(e)}},{key:"escapeExpression",value:function(e){return this._handlebars.escapeExpression(e)}},{key:"compile",value:function(e){return"string"!=typeof e?"":this._handlebars.compile(e)}},{key:"registerTemplate",value:function(e,t){this._templates[e]=this.compile(t)}},{key:"render",value:function(e,t){if(null!==e.template)return e.template(t);if(!(e.templateName in this._templates))throw new Error("Can't find template: "+e.templateName);try{return this._templates[e.templateName](t)}catch(t){throw console.error("Error when trying to render the template: "+e.templateName),t}}},{key:"_registerCustomHelpers",value:function(){this.registerHelper("ifeq",(function(e,t,n){return e===t?n.fn(this):n.inverse(this)})),this.registerHelper("ifnoteq",(function(e,t,n){return e!==t?n.fn(this):n.inverse(this)})),this.registerHelper({eq:function(e,t){return e===t},ne:function(e,t){return e!==t},lt:function(e,t){return e<t},gt:function(e,t){return e>t},lte:function(e,t){return e<=t},gte:function(e,t){return e>=t},and:function(){return Array.prototype.slice.call(arguments).every(Boolean)},or:function(){return Array.prototype.slice.call(arguments,0,-1).some(Boolean)}}),this.registerHelper({add:function(e,t){return e+t},sub:function(e,t){return e-t},mul:function(e,t){return e*t},div:function(e,t){return e/t},mod:function(e,t){return e%t}}),this.registerHelper("every",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.slice(0,t.length-1),i=t[t.length-1];return r.every((function(e){return e}))?i.fn(this):i.inverse(this)})),this.registerHelper("formatPhoneNumber",(function(e){var t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return t?[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join(""):null})),this.registerHelper("assign",(function(e,t,n){var r=arguments;(n=r[r.length-1]).data.root||(n.data.root={});for(var i="",o=1;o<r.length-1;o++)i+=r[o];n.data.root[e]=i})),this.registerHelper("json",(function(e,t,n){return void 0===e?"":JSON.stringify(e)})),this.registerHelper("plural",(function(e,t,n){return 1===e?t:n}));var e=this;this.registerHelper("processTranslation",(function(t){var n={},r={},i=t.hash,o=i.phrase,a=i.count,s=i.locale;Object.entries(t.hash).forEach((function(e){var t=g(e,2),i=t[0],o=t[1];if(i.startsWith("pluralForm")){var a=parseInt(i.substring(10));n[a]=o}else r[i]=o}));var c="string"!=typeof o,l=li(s=s||e._initLocale).language;return c?ci.process(n,r,a,l,e.escapeExpression.bind(e)):ci.process(o,r,null,null,e.escapeExpression.bind(e))})),e.registerHelper("icon",(function(t,n,r){var i=ri.default;return ri[t]?(i="function"==typeof ri[t]?ri[t](n):ri[t],e.SafeString(i)):e.SafeString(i)})),e.registerHelper("highlightValue",(function(t,n){var r=t.value||t.shortValue,i=new Xt({value:r,matchedSubstrings:t.matchedSubstrings}),o=function(t){return e.escapeExpression(t)};return n?e.SafeString(i.getInvertedWithTransformFunction(o)):e.SafeString(i.getWithTransformFunction(o))}))}}])}(wr)},yi=function(){return o((function e(t){if(n(this,e),!e.setInstance(this))return e.getInstance();this._templates={},this._onLoaded=t||function(){}}),[{key:"fetchTemplates",value:function(){return br.query("#yext-answers-templates")?Promise.resolve():new Promise((function(e,t){var n=br.createEl("script",{id:"yext-answers-templates",onload:e,onerror:t,async:!0,src:yr});br.append("body",n)}))}},{key:"register",value:function(e){return this._templates=e,this._onLoaded(this._templates),this}},{key:"get",value:function(e){return this._templates[e]}},{key:"getTemplates",value:function(){return this._templates}}],[{key:"setInstance",value:function(e){return!this.instance&&(this.instance=e,!0)}},{key:"getInstance",value:function(){return this.instance}}])}(),_i="ANSWERS_SEARCH_UI_SDK",bi="ANSWERS_CORE",ki=s({},_i,"v2.1.1");function wi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Si(e))return s({},"Client-SDK",ki);Ci(e);var t=e["Client-SDK"]||{};xi(t),t[bi],t[_i];var n=p(t,[bi,_i].map(b));return s({},"Client-SDK",f(f({},n),ki))}function Si(e){return"object"===k(e)||(console.error('additionalHttpHeaders must be an "object", '+'not a(n) "'.concat(k(e),'".')),!1)}function Ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).filter((function(e){return"Client-SDK"!==e}));t.forEach((function(e){return console.error('Ignored unknown HTTP header "'.concat(e,'". ')+'Only the "'.concat("Client-SDK",'" header is recognized in additionalHttpHeaders.'))}))}function xi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(e){return'Ignoring "'.concat(e,'" values for ').concat("Client-SDK",". These values are automatically specified.")};bi in e&&console.error(t(bi)),_i in e&&console.error(t(_i))}var Ai=function(e,t,n,r){e.core.ruler.push(t,(function(e){var t,i,o;for(i=e.tokens.length-1;i>=0;i--)if("inline"===e.tokens[i].type)for(t=(o=e.tokens[i].children).length-1;t>=0;t--)o[t].type===n&&r(o,t)}))},Ei=x(A((function(e,t){e.exports=function(){var e,t,n=(function(e,t){e.exports=function(){var e={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},t=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,n={};function r(e,t,i){var o,a,s,c,l,u="";for("string"!=typeof t&&(i=t,t=r.defaultChars),void 0===i&&(i=!0),l=function(e){var t,r,i=n[e];if(i)return i;for(i=n[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(s<128)u+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(c=e.charCodeAt(o+1))>=56320&&c<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()";var i=r,o={};function a(e,t){var n;return"string"!=typeof t&&(t=a.defaultChars),n=function(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,s,c,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l}))}a.defaultChars=";/?:@&=+$,#",a.componentChars="";var s=a;function c(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var l=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(d),p=["%","/","?",";","#"].concat(f),v=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};c.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=h.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=l.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||u&&y[u]||(s=s.substr(2),this.slashes=!0)),!y[u]&&(a||u&&!_[u])){var d,f,b=-1;for(n=0;n<v.length;n++)-1!==(o=s.indexOf(v[n]))&&(-1===b||o<b)&&(b=o);for(-1!==(f=-1===b?s.lastIndexOf("@"):s.lastIndexOf("@",b))&&(d=s.slice(0,f),s=s.slice(f+1),this.auth=d),b=-1,n=0;n<p.length;n++)-1!==(o=s.indexOf(p[n]))&&(-1===b||o<b)&&(b=o);-1===b&&(b=s.length),":"===s[b-1]&&b--;var k=s.slice(0,b);s=s.slice(b),this.parseHost(k),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var S=this.hostname.split(/\./);for(n=0,r=S.length;n<r;n++){var C=S[n];if(C&&!C.match(g)){for(var x="",A=0,E=C.length;A<E;A++)C.charCodeAt(A)>127?x+="x":x+=C[A];if(!x.match(g)){var O=S.slice(0,n),M=S.slice(n+1),T=C.match(m);T&&(O.push(T[1]),M.unshift(T[2])),M.length&&(s=M.join(".")+s),this.hostname=O.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=s.indexOf("#");-1!==L&&(this.hash=s.substr(L),s=s.slice(0,L));var F=s.indexOf("?");return-1!==F&&(this.search=s.substr(F),s=s.slice(0,F)),s&&(this.pathname=s),_[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},c.prototype.parseHost=function(e){var t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var b,k={encode:i,decode:s,format:function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")},parse:function(e,t){if(e&&e instanceof c)return e;var n=new c;return n.parse(e,t),n}},w=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S=/[\0-\x1F\x7F-\x9F]/,C=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,x={Any:w,Cc:S,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:t,Z:C},A=(function(n,r){var i=Object.prototype.hasOwnProperty;function o(e,t){return i.call(e,t)}function a(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=/[&<>"]/,d=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var v=/[.?*+^$[\]\\(){}|-]/g;r.lib={},r.lib.mdurl=k,r.lib.ucmicro=x,r.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},r.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},r.has=o,r.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")},r.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(l,(function(t,n,r){return n||function(t,n){var r=0;return o(e,n)?e[n]:35===n.charCodeAt(0)&&u.test(n)&&a(r="x"===n[1].toLowerCase()?parseInt(n.slice(2),16):parseInt(n.slice(1),10))?s(r):t}(t,r)}))},r.isValidEntityCode=a,r.fromCodePoint=s,r.escapeHtml=function(e){return h.test(e)?e.replace(d,p):e},r.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},r.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},r.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},r.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},r.isPunctChar=function(e){return t.test(e)},r.escapeRE=function(e){return e.replace(v,"\\$&")},r.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/\u1e9e/g,"ß")),e.toLowerCase().toUpperCase()}}(b={path:void 0,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&b.path)}},b.exports),b.exports),E=A.unescapeAll,O=A.unescapeAll,M={parseLinkLabel:function(e,t,n){var r,i,o,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<c;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(s=e.pos),e.pos=l,s},parseLinkDestination:function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=E(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=E(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},parseLinkTitle:function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=O(e.slice(a+1,t)),s.ok=!0,s;if(40===r&&41===i)return s;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s}},T=A.assign,L=A.unescapeAll,F=A.escapeHtml,I={};function R(){this.rules=T({},I)}I.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+F(e[t].content)+"</code>"},I.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+F(e[t].content)+"</code></pre>\n"},I.fence=function(e,t,n,r,i){var o,a,s,c,l,u=e[t],h=u.info?L(u.info).trim():"",d="",f="";return h&&(d=(s=h.split(/(\s+)/g))[0],f=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,d,f)||F(u.content)).indexOf("<pre")?o+"\n":h?(a=u.attrIndex("class"),c=u.attrs?u.attrs.slice():[],a<0?c.push(["class",n.langPrefix+d]):(c[a]=c[a].slice(),c[a][1]+=" "+n.langPrefix+d),l={attrs:c},"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"},I.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},I.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},I.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},I.text=function(e,t){return F(e[t].content)},I.html_block=function(e,t){return e[t].content},I.html_inline=function(e,t){return e[t].content},R.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+F(e.attrs[t][0])+'="'+F(e.attrs[t][1])+'"';return r},R.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},R.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},R.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type&&(r+=this.renderInlineAsText(e[i].children,t,n));return r},R.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var j=R;function P(){this.__rules__=[],this.__cache__=null}P.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},P.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},P.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},P.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},P.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},P.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},P.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},P.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},P.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},P.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var N=P,D=/\r\n?|\n/g,B=/\0/g,q=A.arrayReplaceAt;function U(e){return/^<\/a\s*>/i.test(e)}var V=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,z=/\((c|tm|r|p)\)/i,H=/\((c|tm|r|p)\)/gi,K={c:"©",r:"®",p:"§",tm:"™"};function G(e,t){return K[t.toLowerCase()]}function Z(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(H,G)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Q(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||V.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var W=A.isWhiteSpace,$=A.isPunctChar,Y=A.isMdAsciiPunct,J=/['"]/,X=/['"]/g;function ee(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function te(e,t){var n,r,i,o,a,s,c,l,u,h,d,f,p,v,g,m,y,_,b,k,w;for(b=[],n=0;n<e.length;n++){for(r=e[n],c=e[n].level,y=b.length-1;y>=0&&!(b[y].level<=c);y--);if(b.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a<s&&(X.lastIndex=a,o=X.exec(i));){if(g=m=!0,a=o.index+1,_="'"===o[0],u=32,o.index-1>=0)u=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(h=32,a<s)h=i.charCodeAt(a);else for(y=n+1;y<e.length&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y++)if(e[y].content){h=e[y].content.charCodeAt(0);break}if(d=Y(u)||$(String.fromCharCode(u)),f=Y(h)||$(String.fromCharCode(h)),p=W(u),(v=W(h))?g=!1:f&&(p||d||(g=!1)),p?m=!1:d&&(v||f||(m=!1)),34===h&&'"'===o[0]&&u>=48&&u<=57&&(m=g=!1),g&&m&&(g=d,m=f),g||m){if(m)for(y=b.length-1;y>=0&&(l=b[y],!(b[y].level<c));y--)if(l.single===_&&b[y].level===c){l=b[y],_?(k=t.md.options.quotes[2],w=t.md.options.quotes[3]):(k=t.md.options.quotes[0],w=t.md.options.quotes[1]),r.content=ee(r.content,o.index,w),e[l.token].content=ee(e[l.token].content,l.pos,k),a+=w.length-1,l.token===n&&(a+=k.length-1),s=(i=r.content).length,b.length=y;continue e}g?b.push({token:n,pos:o.index,single:_,level:c}):m&&_&&(r.content=ee(r.content,o.index,"’"))}else _&&(r.content=ee(r.content,o.index,"’"))}}}}function ne(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ne.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},ne.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},ne.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},ne.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},ne.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var re=ne;function ie(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ie.prototype.Token=re;var oe=ie,ae=[["normalize",function(e){var t;t=(t=e.src.replace(D,"\n")).replace(B,"�"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}],["linkify",function(e){var t,n,r,i,o,a,s,c,l,u,h,d,f,p,v,g,m,y,_=e.tokens;if(e.md.options.linkify)for(n=0,r=_.length;n<r;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(f=0,t=(i=_[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(y=a.content,/^<a[>\s]/i.test(y)&&f>0&&f--,U(a.content)&&f++),!(f>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,m=e.md.linkify.match(l),s=[],d=a.level,h=0,c=0;c<m.length;c++)p=m[c].url,v=e.md.normalizeLink(p),e.md.validateLink(v)&&(g=m[c].text,g=m[c].schema?"mailto:"!==m[c].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(u=m[c].index)>h&&((o=new e.Token("text","",0)).content=l.slice(h,u),o.level=d,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",v]],o.level=d++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=d,s.push(o),(o=new e.Token("link_close","a",-1)).level=--d,o.markup="linkify",o.info="auto",s.push(o),h=m[c].lastIndex);h<l.length&&((o=new e.Token("text","",0)).content=l.slice(h),o.level=d,s.push(o)),_[n].children=i=q(i,t,s)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}],["replacements",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(z.test(e.tokens[t].content)&&Z(e.tokens[t].children),V.test(e.tokens[t].content)&&Q(e.tokens[t].children))}],["smartquotes",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&J.test(e.tokens[t].content)&&te(e.tokens[t].children,e)}]];function se(){this.ruler=new N;for(var e=0;e<ae.length;e++)this.ruler.push(ae[e][0],ae[e][1])}se.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},se.prototype.State=oe;var ce=se,le=A.isSpace;function ue(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function he(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}var de=A.isSpace,fe=A.isSpace,pe=A.isSpace;function ve(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!pe(o))?-1:r}function ge(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!pe(n))?-1:i}var me=A.normalizeReference,ye=A.isSpace,_e=A.isSpace,be="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",ke="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",we={HTML_TAG_RE:new RegExp("^(?:"+be+"|"+ke+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE:new RegExp("^(?:"+be+"|"+ke+")")},Se=we.HTML_OPEN_CLOSE_TAG_RE,Ce=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Se.source+"\\s*$"),/^$/,!1]],xe=A.isSpace;function Ae(e,t,n,r){var i,o,a,s,c,l,u,h;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,a=s=l=u=0,c=(o=this.src).length;s<c;s++){if(i=o.charCodeAt(s),!h){if(xe(i)){l++,9===i?u+=4-u%4:u++;continue}h=!0}10!==i&&s!==c-1||(10!==i&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),h=!1,l=0,u=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ae.prototype.push=function(e,t,n){var r=new re(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Ae.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Ae.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Ae.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),xe(t));e++);return e},Ae.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!xe(this.src.charCodeAt(--e)))return e+1;return e},Ae.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},Ae.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Ae.prototype.getLines=function(e,t,n,r){var i,o,a,s,c,l,u,h=e;if(e>=t)return"";for(l=new Array(t-e),i=0;h<t;h++,i++){for(o=0,u=s=this.bMarks[h],c=h+1<t||r?this.eMarks[h]+1:this.eMarks[h];s<c&&o<n;){if(a=this.src.charCodeAt(s),xe(a))9===a?o+=4-(o+this.bsCount[h])%4:o++;else{if(!(s-u<this.tShift[h]))break;o++}s++}l[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,c):this.src.slice(s,c)}return l.join("")},Ae.prototype.Token=re;var Ee=Ae,Oe=[["table",function(e,t,n,r){var i,o,a,s,c,l,u,h,d,f,p,v,g,m,y,_;if(t+2>n)return!1;if(l=t+1,e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(i=e.src.charCodeAt(a++))&&45!==i&&58!==i)return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!le(i))return!1;a++}for(u=(o=ue(e,t+1)).split("|"),f=[],s=0;s<u.length;s++){if(!(p=u[s].trim())){if(0===s||s===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;58===p.charCodeAt(p.length-1)?f.push(58===p.charCodeAt(0)?"center":"right"):58===p.charCodeAt(0)?f.push("left"):f.push("")}if(-1===(o=ue(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=he(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(h=u.length)||h!==f.length)return!1;if(r)return!0;for(m=e.parentType,e.parentType="table",_=e.md.block.ruler.getRules("blockquote"),(d=e.push("table_open","table",1)).map=v=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s<u.length;s++)d=e.push("th_open","th",1),f[s]&&(d.attrs=[["style","text-align:"+f[s]]]),(d=e.push("inline","",0)).content=u[s].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),l=t+2;l<n&&!(e.sCount[l]<e.blkIndent);l++){for(y=!1,s=0,c=_.length;s<c;s++)if(_[s](e,l,n,!0)){y=!0;break}if(y)break;if(!(o=ue(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=he(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((d=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(d=e.push("tr_open","tr",1)).map=[l,l+1],s=0;s<h;s++)d=e.push("td_open","td",1),f[s]&&(d.attrs=[["style","text-align:"+f[s]]]),(d=e.push("inline","",0)).content=u[s]?u[s].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return g&&(d=e.push("tbody_close","tbody",-1),g[1]=l),d=e.push("table_close","table",-1),v[1]=l,e.parentType=m,e.line=l,!0},["paragraph","reference"]],["code",function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}],["fence",function(e,t,n,r){var i,o,a,s,c,l,u,h=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(c=d,(o=(d=e.skipChars(d,i))-c)<3)return!1;if(u=e.src.slice(c,d),a=e.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=c=e.bMarks[s]+e.tShift[s],f=e.eMarks[s],d<f&&e.sCount[s]<e.blkIndent));)if(e.src.charCodeAt(d)===i&&!(e.sCount[s]-e.blkIndent>=4||(d=e.skipChars(d,i))-c<o||(d=e.skipSpaces(d))<f)){h=!0;break}return o=e.sCount[t],e.line=s+(h?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=u,l.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){var i,o,a,s,c,l,u,h,d,f,p,v,g,m,y,_,b,k,w,S,C=e.lineMax,x=e.bMarks[t]+e.tShift[t],A=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(r)return!0;for(s=d=e.sCount[t]+1,32===e.src.charCodeAt(x)?(x++,s++,d++,i=!1,_=!0):9===e.src.charCodeAt(x)?(_=!0,(e.bsCount[t]+d)%4==3?(x++,s++,d++,i=!1):i=!0):_=!1,f=[e.bMarks[t]],e.bMarks[t]=x;x<A&&(o=e.src.charCodeAt(x),de(o));)9===o?d+=4-(d+e.bsCount[t]+(i?1:0))%4:d++,x++;for(p=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(_?1:0),l=x>=A,m=[e.sCount[t]],e.sCount[t]=d-s,y=[e.tShift[t]],e.tShift[t]=x-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",h=t+1;h<n&&(S=e.sCount[h]<e.blkIndent,!((x=e.bMarks[h]+e.tShift[h])>=(A=e.eMarks[h])));h++)if(62!==e.src.charCodeAt(x++)||S){if(l)break;for(b=!1,a=0,c=k.length;a<c;a++)if(k[a](e,h,n,!0)){b=!0;break}if(b){e.lineMax=h,0!==e.blkIndent&&(f.push(e.bMarks[h]),p.push(e.bsCount[h]),y.push(e.tShift[h]),m.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}f.push(e.bMarks[h]),p.push(e.bsCount[h]),y.push(e.tShift[h]),m.push(e.sCount[h]),e.sCount[h]=-1}else{for(s=d=e.sCount[h]+1,32===e.src.charCodeAt(x)?(x++,s++,d++,i=!1,_=!0):9===e.src.charCodeAt(x)?(_=!0,(e.bsCount[h]+d)%4==3?(x++,s++,d++,i=!1):i=!0):_=!1,f.push(e.bMarks[h]),e.bMarks[h]=x;x<A&&(o=e.src.charCodeAt(x),de(o));)9===o?d+=4-(d+e.bsCount[h]+(i?1:0))%4:d++,x++;l=x>=A,p.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(_?1:0),m.push(e.sCount[h]),e.sCount[h]=d-s,y.push(e.tShift[h]),e.tShift[h]=x-e.bMarks[h]}for(v=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=u=[t,0],e.md.block.tokenize(e,t,h),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=C,e.parentType=g,u[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=y[a],e.sCount[a+t]=m[a],e.bsCount[a+t]=p[a];return e.blkIndent=v,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(c++))&&45!==i&&95!==i)return!1;for(o=1;c<l;){if((a=e.src.charCodeAt(c++))!==i&&!fe(a))return!1;a===i&&o++}return!(o<3||!r&&(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i)),0))},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){var i,o,a,s,c,l,u,h,d,f,p,v,g,m,y,_,b,k,w,S,C,x,A,E,O,M,T,L,F=!1,I=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(F=!0),(A=ge(e,t))>=0){if(u=!0,O=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(O,A-O-1)),F&&1!==g)return!1}else{if(!((A=ve(e,t))>=0))return!1;u=!1}if(F&&e.skipSpaces(A)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(A-1),r)return!0;for(p=e.tokens.length,u?(L=e.push("ordered_list_open","ol",1),1!==g&&(L.attrs=[["start",g]])):L=e.push("bullet_list_open","ul",1),L.map=f=[t,0],L.markup=String.fromCharCode(v),y=t,E=!1,T=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";y<n;){for(x=A,m=e.eMarks[y],l=_=e.sCount[y]+A-(e.bMarks[t]+e.tShift[t]);x<m;){if(9===(i=e.src.charCodeAt(x)))_+=4-(_+e.bsCount[y])%4;else{if(32!==i)break;_++}x++}if((c=(o=x)>=m?1:_-l)>4&&(c=1),s=l+c,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),L.map=h=[t,0],C=e.tight,S=e.tShift[t],w=e.sCount[t],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=_,o>=m&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!E||(I=!1),E=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[t]=S,e.sCount[t]=w,e.tight=C,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),y=t=e.line,h[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(M=!1,a=0,d=T.length;a<d;a++)if(T[a](e,y,n,!0)){M=!0;break}if(M)break;if(u){if((A=ge(e,y))<0)break}else if((A=ve(e,y))<0)break;if(v!==e.src.charCodeAt(A-1))break}return(L=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),f[1]=y,e.line=y,e.parentType=k,I&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,p),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){var i,o,a,s,c,l,u,h,d,f,p,v,g,m,y,_,b=0,k=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k<w;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===w)return!1;if(58!==e.src.charCodeAt(k+1))return!1;break}for(s=e.lineMax,y=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";S<s&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3||e.sCount[S]<0)){for(m=!1,l=0,u=y.length;l<u;l++)if(y[l](e,S,s,!0)){m=!0;break}if(m)break}for(w=(g=e.getLines(t,S,e.blkIndent,!1).trim()).length,k=1;k<w;k++){if(91===(i=g.charCodeAt(k)))return!1;if(93===i){d=k;break}(10===i||92===i&&++k<w&&10===g.charCodeAt(k))&&b++}if(d<0||58!==g.charCodeAt(d+1))return!1;for(k=d+2;k<w;k++)if(10===(i=g.charCodeAt(k)))b++;else if(!ye(i))break;if(!(p=e.md.helpers.parseLinkDestination(g,k,w)).ok)return!1;if(c=e.md.normalizeLink(p.str),!e.md.validateLink(c))return!1;for(o=k=p.pos,a=b+=p.lines,v=k;k<w;k++)if(10===(i=g.charCodeAt(k)))b++;else if(!ye(i))break;for(p=e.md.helpers.parseLinkTitle(g,k,w),k<w&&v!==k&&p.ok?(_=p.str,k=p.pos,b+=p.lines):(_="",k=o,b=a);k<w&&(i=g.charCodeAt(k),ye(i));)k++;if(k<w&&10!==g.charCodeAt(k)&&_)for(_="",k=o,b=a;k<w&&(i=g.charCodeAt(k),ye(i));)k++;return!(k<w&&10!==g.charCodeAt(k)||!(h=me(g.slice(1,d)))||!r&&(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[h]&&(e.env.references[h]={title:_,href:c}),e.parentType=f,e.line=t+b+1,0))}],["heading",function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(c))||c>=l)return!1;for(o=1,i=e.src.charCodeAt(++c);35===i&&c<l&&o<=6;)o++,i=e.src.charCodeAt(++c);return!(o>6||c<l&&!_e(i)||!r&&(l=e.skipSpacesBack(l,c),(a=e.skipCharsBack(l,35,c))>c&&_e(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(c,l).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o),0))},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r,i,o,a,s,c,l,u,h,d,f=t+1,p=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f])<(l=e.eMarks[f])&&(45===(h=e.src.charCodeAt(c))||61===h)&&(c=e.skipChars(c,h),(c=e.skipSpaces(c))>=l)){u=61===h?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=p.length;o<a;o++)if(p[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(h),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(h),e.parentType=d,!0)}],["html_block",function(e,t,n,r){var i,o,a,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,l),i=0;i<Ce.length&&!Ce[i][0].test(s);i++);if(i===Ce.length)return!1;if(r)return Ce[i][2];if(o=t+1,!Ce[i][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(c=e.bMarks[o]+e.tShift[o],l=e.eMarks[o],s=e.src.slice(c,l),Ce[i][1].test(s)){0!==s.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["paragraph",function(e,t){var n,r,i,o,a,s,c=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";c<u&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,c,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}]];function Me(){this.ruler=new N;for(var e=0;e<Oe.length;e++)this.ruler.push(Oe[e][0],Oe[e][1],{alt:(Oe[e][2]||[]).slice()})}Me.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,c=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=c){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Me.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},Me.prototype.State=Ee;var Te=Me;function Le(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Fe=A.isSpace,Ie=A.isSpace,Re=[],je=0;je<256;je++)Re.push(0);function Pe(e,t){var n,r,i,o,a,s=[],c=t.length;for(n=0;n<c;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Re[e.charCodeAt(0)]=1}));var Ne={tokenize:function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},postProcess:function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Pe(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Pe(e,n[t].delimiters)}};function De(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}var Be={tokenize:function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},postProcess:function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(De(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&De(e,n[t].delimiters)}},qe=A.normalizeReference,Ue=A.isSpace,Ve=A.normalizeReference,ze=A.isSpace,He=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Ke=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ge=we.HTML_TAG_RE,Ze=A.has,Qe=A.isValidEntityCode,We=A.fromCodePoint,$e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ye=/^&([a-z][a-z0-9]{1,31});/i;function Je(e,t){var n,r,i,o,a,s,c,l,u={},h=t.length;for(n=0;n<h;n++)if((i=t[n]).length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1]),a=u[i.marker][i.length%3],(r=n-i.jump-1)<-1&&(r=-1),s=r;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(c=!0)),!c)){l=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+l,i.open=!1,o.end=n,o.jump=l,o.close=!1,s=-1;break}-1!==s&&(u[i.marker][(i.length||0)%3]=s)}}var Xe=A.isWhiteSpace,et=A.isPunctChar,tt=A.isMdAsciiPunct;function nt(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}nt.prototype.pushPending=function(){var e=new re("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},nt.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new re(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},nt.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,c,l,u,h=e,d=!0,f=!0,p=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<p&&this.src.charCodeAt(h)===v;)h++;return i=h-e,r=h<p?this.src.charCodeAt(h):32,c=tt(n)||et(String.fromCharCode(n)),u=tt(r)||et(String.fromCharCode(r)),s=Xe(n),(l=Xe(r))?d=!1:u&&(s||c||(d=!1)),s?f=!1:c&&(l||u||(f=!1)),t?(o=d,a=f):(o=d&&(!f||c),a=f&&(!d||u)),{can_open:o,can_close:a,length:i}},nt.prototype.Token=re;var rt=nt,it=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!Le(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["newline",function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<r&&Fe(e.src.charCodeAt(i));)i++;return e.pos=i,!0}],["escape",function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<i){if((n=e.src.charCodeAt(r))<256&&0!==Re[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<i&&(n=e.src.charCodeAt(r),Ie(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}],["backticks",function(e,t){var n,r,i,o,a,s,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(c=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[c]||0)<=n)return t||(e.pending+=i),e.pos+=c,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((l=s-a)===c)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=c,!0}],["strikethrough",Ne.tokenize],["emphasis",Be.tokenize],["link",function(e,t){var n,r,i,o,a,s,c,l,u="",h="",d=e.pos,f=e.posMax,p=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=o+1)<f&&40===e.src.charCodeAt(s)){for(v=!1,s++;s<f&&(r=e.src.charCodeAt(s),Ue(r)||10===r);s++);if(s>=f)return!1;if(p=s,(c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(u=e.md.normalizeLink(c.str),e.md.validateLink(u)?s=c.pos:u="",p=s;s<f&&(r=e.src.charCodeAt(s),Ue(r)||10===r);s++);if(c=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<f&&p!==s&&c.ok)for(h=c.str,s=c.pos;s<f&&(r=e.src.charCodeAt(s),Ue(r)||10===r);s++);}(s>=f||41!==e.src.charCodeAt(s))&&(v=!0),s++}if(v){if(void 0===e.env.references)return!1;if(s<f&&91===e.src.charCodeAt(s)?(p=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(p,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[qe(i)]))return e.pos=d,!1;u=l.href,h=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],h&&n.push(["title",h]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=f,!0}],["image",function(e,t){var n,r,i,o,a,s,c,l,u,h,d,f,p,v="",g=e.pos,m=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=a+1)<m&&40===e.src.charCodeAt(c)){for(c++;c<m&&(r=e.src.charCodeAt(c),ze(r)||10===r);c++);if(c>=m)return!1;for(p=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(u.str),e.md.validateLink(v)?c=u.pos:v=""),p=c;c<m&&(r=e.src.charCodeAt(c),ze(r)||10===r);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&p!==c&&u.ok)for(h=u.str,c=u.pos;c<m&&(r=e.src.charCodeAt(c),ze(r)||10===r);c++);else h="";if(c>=m||41!==e.src.charCodeAt(c))return e.pos=g,!1;c++}else{if(void 0===e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(p=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?o=e.src.slice(p,c++):c=a+1):c=a+1,o||(o=e.src.slice(s,a)),!(l=e.env.references[Ve(o)]))return e.pos=g,!1;v=l.href,h=l.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,f=[]),(d=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],d.children=f,d.content=i,h&&n.push(["title",h])),e.pos=c,e.posMax=m,!0}],["autolink",function(e,t){var n,r,i,o,a,s,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(a=e.pos,s=e.posMax;;){if(++c>=s)return!1;if(60===(o=e.src.charCodeAt(c)))return!1;if(62===o)break}return n=e.src.slice(a+1,c),Ke.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!He.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(r=e.src.slice(o).match(Ge))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}],["entity",function(t,n){var r,i,o=t.pos,a=t.posMax;if(38!==t.src.charCodeAt(o))return!1;if(o+1<a)if(35===t.src.charCodeAt(o+1)){if(i=t.src.slice(o).match($e))return n||(r="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),t.pending+=Qe(r)?We(r):We(65533)),t.pos+=i[0].length,!0}else if((i=t.src.slice(o).match(Ye))&&Ze(e,i[1]))return n||(t.pending+=e[i[1]]),t.pos+=i[0].length,!0;return n||(t.pending+="&"),t.pos++,!0}]],ot=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Je(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Je(0,n[t].delimiters)}],["strikethrough",Ne.postProcess],["emphasis",Be.postProcess],["text_collapse",function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function at(){var e;for(this.ruler=new N,e=0;e<it.length;e++)this.ruler.push(it[e][0],it[e][1]);for(this.ruler2=new N,e=0;e<ot.length;e++)this.ruler2.push(ot[e][0],ot[e][1])}at.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},at.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},at.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},at.prototype.State=rt;var st=at,ct=function(e){var n={};return n.src_Any=w.source,n.src_Cc=S.source,n.src_Z=C.source,n.src_P=t.source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|"),n.src_pseudo_letter="(?:(?![><|]|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|[><|]|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!+(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy='(^|[><|]|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n};function lt(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function ut(e){return Object.prototype.toString.call(e)}function ht(e){return"[object Function]"===ut(e)}function dt(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ft={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},pt={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},vt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function gt(e){var t=e.re=ct(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===ut(n))return function(e){return"[object RegExp]"===ut(e)}(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):ht(n.validate)?a.validate=n.validate:o(t,n),void(ht(n.normalize)?a.normalize=n.normalize:n.normalize?o(t,n):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===ut(e)}(n)?o(t,n):i.push(t)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(dt).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function mt(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function yt(e,t){var n=new mt(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function _t(e,t){if(!(this instanceof _t))return new _t(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||ft.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=lt({},ft,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=lt({},pt,e),this.__compiled__={},this.__tlds__=vt,this.__tlds_replaced__=!1,this.re={},gt(this)}_t.prototype.add=function(e,t){return this.__schemas__[e]=t,gt(this),this},_t.prototype.set=function(e){return this.__opts__=lt(this.__opts__,e),this},_t.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},_t.prototype.pretest=function(e){return this.re.pretest.test(e)},_t.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},_t.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(yt(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(yt(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},_t.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),gt(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,gt(this),this)},_t.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},_t.prototype.onCompile=function(){};var bt=_t,kt=2147483647,wt=/^xn--/,St=/[^\x20-\x7E]/,Ct=/[\x2E\u3002\uFF0E\uFF61]/g,xt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},At=Math.floor,Et=String.fromCharCode;function Ot(e){throw new RangeError(xt[e])}function Mt(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function Tt(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+Mt((e=e.replace(Ct,".")).split("."),t).join(".")}function Lt(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function Ft(e){return Mt(e,(function(e){var t="";return e>65535&&(t+=Et((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+Et(e)})).join("")}function It(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function Rt(e,t,n){var r=0;for(e=n?At(e/700):e>>1,e+=At(e/t);e>455;r+=36)e=At(e/35);return At(r+36*e/(e+38))}function jt(e){var t,n,r,i,o,a,s,c,l,u,h,d=[],f=e.length,p=0,v=128,g=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&Ot("not-basic"),d.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<f;){for(o=p,a=1,s=36;i>=f&&Ot("invalid-input"),((c=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>At((kt-p)/a))&&Ot("overflow"),p+=c*a,!(c<(l=s<=g?1:s>=g+26?26:s-g));s+=36)a>At(kt/(u=36-l))&&Ot("overflow"),a*=u;g=Rt(p-o,t=d.length+1,0==o),At(p/t)>kt-v&&Ot("overflow"),v+=At(p/t),p%=t,d.splice(p++,0,v)}return Ft(d)}function Pt(e){var t,n,r,i,o,a,s,c,l,u,h,d,f,p,v,g=[];for(d=(e=Lt(e)).length,t=128,n=0,o=72,a=0;a<d;++a)(h=e[a])<128&&g.push(Et(h));for(r=i=g.length,i&&g.push("-");r<d;){for(s=kt,a=0;a<d;++a)(h=e[a])>=t&&h<s&&(s=h);for(s-t>At((kt-n)/(f=r+1))&&Ot("overflow"),n+=(s-t)*f,t=s,a=0;a<d;++a)if((h=e[a])<t&&++n>kt&&Ot("overflow"),h==t){for(c=n,l=36;!(c<(u=l<=o?1:l>=o+26?26:l-o));l+=36)v=c-u,p=36-u,g.push(Et(It(u+v%p,0))),c=At(v/p);g.push(Et(It(c,0))),o=Rt(n,f,r==i),n=0,++r}++n,++t}return g.join("")}function Nt(e){return Tt(e,(function(e){return wt.test(e)?jt(e.slice(4).toLowerCase()):e}))}function Dt(e){return Tt(e,(function(e){return St.test(e)?"xn--"+Pt(e):e}))}var Bt={decode:Lt,encode:Ft},qt={version:"1.4.1",ucs2:Bt,toASCII:Dt,toUnicode:Nt,encode:Pt,decode:jt},Ut=function(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}(Object.freeze({__proto__:null,decode:jt,encode:Pt,toUnicode:Nt,toASCII:Dt,version:"1.4.1",ucs2:Bt,default:qt})),Vt={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},zt=/^(vbscript|javascript|file|data):/,Ht=/^data:image\/(gif|png|jpeg|webp);/;function Kt(e){var t=e.trim().toLowerCase();return!zt.test(t)||!!Ht.test(t)}var Gt=["http:","https:","mailto:"];function Zt(e){var t=k.parse(e,!0);if(t.hostname&&(!t.protocol||Gt.indexOf(t.protocol)>=0))try{t.hostname=Ut.toASCII(t.hostname)}catch(e){}return k.encode(k.format(t))}function Qt(e){var t=k.parse(e,!0);if(t.hostname&&(!t.protocol||Gt.indexOf(t.protocol)>=0))try{t.hostname=Ut.toUnicode(t.hostname)}catch(e){}return k.decode(k.format(t),k.decode.defaultChars+"%")}function Wt(e,t){if(!(this instanceof Wt))return new Wt(e,t);t||A.isString(e)||(t=e||{},e="default"),this.inline=new st,this.block=new Te,this.core=new ce,this.renderer=new j,this.linkify=new bt,this.validateLink=Kt,this.normalizeLink=Zt,this.normalizeLinkText=Qt,this.utils=A,this.helpers=A.assign({},M),this.options={},this.configure(e),t&&this.set(t)}return Wt.prototype.set=function(e){return A.assign(this.options,e),this},Wt.prototype.configure=function(e){var t,n=this;if(A.isString(e)&&!(e=Vt[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Wt.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Wt.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Wt.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Wt.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Wt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Wt.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Wt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},Wt}()}(e={exports:{}}),e.exports),r=(t=n)&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;function i(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(43!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function o(e){var t,n,r,i,o,a=[],s=e.delimiters,c=e.delimiters.length;for(t=0;t<c;t++)43===(r=s[t]).marker&&-1!==r.end&&(i=s[r.end],(o=e.tokens[r.token]).type="u_open",o.tag="u",o.nesting=1,o.markup="++",o.content="",(o=e.tokens[i.token]).type="u_close",o.tag="u",o.nesting=-1,o.markup="++",o.content="","text"===e.tokens[i.token-1].type&&"+"===e.tokens[i.token-1].content&&a.push(i.token-1));for(;a.length;){for(n=(t=a.pop())+1;n<e.tokens.length&&"u_close"===e.tokens[n].type;)n++;t!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}var a=function(e){e.inline.ruler.after("emphasis","underline",i),e.inline.ruler2.after("emphasis","underline",o)},s=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function c(e,t){var n,r,i=e.posMax,o=e.pos;if(126!==e.src.charCodeAt(o))return!1;if(t)return!1;if(o+2>=i)return!1;for(e.pos=o+1;e.pos<i;){if(126===e.src.charCodeAt(e.pos)){n=!0;break}e.md.inline.skipToken(e)}return n&&o+1!==e.pos?(r=e.src.slice(o+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=o,!1):(e.posMax=e.pos,e.pos=o+1,e.push("sub_open","sub",1).markup="~",e.push("text","",0).content=r.replace(s,"$1"),e.push("sub_close","sub",-1).markup="~",e.pos=e.posMax+1,e.posMax=i,!0):(e.pos=o,!1)}var l=function(e){e.inline.ruler.after("emphasis","sub",c)},u=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function h(e,t){var n,r,i=e.posMax,o=e.pos;if(94!==e.src.charCodeAt(o))return!1;if(t)return!1;if(o+2>=i)return!1;for(e.pos=o+1;e.pos<i;){if(94===e.src.charCodeAt(e.pos)){n=!0;break}e.md.inline.skipToken(e)}return n&&o+1!==e.pos?(r=e.src.slice(o+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=o,!1):(e.posMax=e.pos,e.pos=o+1,e.push("sup_open","sup",1).markup="^",e.push("text","",0).content=r.replace(u,"$1"),e.push("sup_close","sup",-1).markup="^",e.pos=e.posMax+1,e.posMax=i,!0):(e.pos=o,!1)}var d=function(e){e.inline.ruler.after("emphasis","sup",h)};function f(e,t,n){for(var r=t,i=0,o=[];i<e.length&&r>0;){var a=e[i];if("image"===a.type)o.push(a);else{var s=p(a,r,n),c=s.trimmedToken,l=s.remainingLength;o.push(c),r=l}i++}for(var u=0;i<e.length;i++){var h=e[i],d=1===h.nesting,f=-1===h.nesting;f&&0===u?o.push(h):d?u++:f&&u>0&&u--}return{trimmedTokens:o,remainingLength:r}}function p(e,t,n){if(!e.children){var r=t-e.content.length;return e.content=e.content.substr(0,t),r<=0&&(e.content+=n),{trimmedToken:e,remainingLength:r}}var i=f(e.children,t,n),o=i.trimmedTokens,a=i.remainingLength;return e.children=o,{trimmedToken:e,remainingLength:a}}var v=function(){function e(){this._md=new r,this.addPlugin(a),this.addPlugin(l),this.addPlugin(d)}var t=e.prototype;return t.addPlugin=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.unshift(e),this._md.use.apply(this._md,n)},t.disablePlugin=function(e){this._md.disable(e,!0)},t.toHTML=function(e){return this._md.render(e)},t.toTruncatedHTML=function(e,t,n){void 0===n&&(n="...");var r={},i=f(this._md.parse(e,r),t,n).trimmedTokens;return this._md.renderer.render(i,this._md.options,r)},e}(),g=new v;return g.class=v,g}()}))),Oi=function(){return o((function e(){n(this,e)}),null,[{key:"format",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"...";if("string"!=typeof e)throw new Bt('Rich text "'.concat(e,'" needs to be a string. Currently is a ').concat(k(e)));var o=Ti();Ei.addPlugin(Ai,o,"link_open",(function(e,t){return Mi(e,t,n)}));var a=r?Ei.toTruncatedHTML(e,r,i):Ei.toHTML(e),s='<div class="js-yxt-rtfValue" data-field-name="'.concat(t=t||"",'">\n').concat(a,"</div>");return Ei.disablePlugin(o),s}}])}();function Mi(e,t,n){var r;"string"==typeof(n=n||{})&&(r=n);var i,o=e[t].attrGet("href");o.startsWith("mailto")?(i="MESSAGE",r=r||n.email):o.startsWith("tel")?(i="TAP_TO_CALL",r=r||n.phone):(i="VIEW_WEBSITE",r=r||n.url),e[t].attrSet("data-cta-type",i),r&&e[t].attrSet("target",r)}function Ti(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var Li=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,{searchState:Rt.SEARCH_COMPLETE},t)}return o(e,null,[{key:"fromCore",value:function(t,n,r){if(!t)return new e;var i=n===hn?"":r[0].verticalKey,o=new Set(t.citations),a=r.flatMap((function(e){return e.results})).filter((function(e){var t;return!!(null!==(t=e.rawData)&&void 0!==t&&t.uid&&e.id&&e.name&&o.has(e.rawData.uid))&&(o.delete(e.rawData.uid),!0)})).map((function(e){return{id:e.id,name:e.name,description:e.description,rawData:e.rawData}}));if(t.directAnswer){var s=Oi.format(t.directAnswer,"gda-snippet");t.directAnswer=s}return new e(f(f({},t),{},{searcher:n,citationsData:a,verticalKey:i}))}},{key:"searchLoading",value:function(){return new e({searchState:Rt.SEARCH_LOADING})}}])}(),Fi=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._token=t.token,this._apiKey=t.apiKey,this._experienceKey=t.experienceKey,this._experienceVersion=t.experienceVersion,this._locale=t.locale,this._fieldFormatters=t.fieldFormatters||{},this.storage=t.storage,this.filterRegistry=new fr(this.storage),this._analyticsReporter=t.analyticsReporter,this.onUniversalSearch=t.onUniversalSearch||function(){},this.onVerticalSearch=t.onVerticalSearch||function(){},this._environment=t.environment||"production",this._cloudRegion="us",this._cloudChoice=t.cloudChoice||"multi",this._verticalKey=t.verticalKey,this._componentManager=t.componentManager,this._additionalHttpHeaders=wi(t.additionalHttpHeaders)}),[{key:"setQueryUpdateListener",value:function(e){this.queryUpdateListener=e}},{key:"setResultsUpdateListener",value:function(e){this.resultsUpdateListener=e}},{key:"init",value:function(e){var t="sandbox"===this._environment?Je.SANDBOX:Je.PROD,n="gcp"===this._cloudChoice?et.GLOBAL_GCP:et.GLOBAL_MULTI,r=f(f(f({},this._token&&{token:this._token}),this._apiKey&&{apiKey:this._apiKey}),{},{experienceKey:this._experienceKey,locale:this._locale,experienceVersion:this._experienceVersion,additionalQueryParams:{jsLibVersion:"v2.1.1"},cloudRegion:this._cloudRegion,cloudChoice:n,environment:t},e);this._coreLibrary=$e(r)}},{key:"isInitialized",value:function(){return!!this._coreLibrary}},{key:"verticalSearch",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(window.performance.mark("yext.answers.verticalQueryStart"),!i.append){var o=this.storage.get(vn);o&&o.searchState===Rt.SEARCH_LOADING||this.storage.set(vn,an.searchLoading()),this.storage.set(yn,cn.searchLoading()),this.storage.set(Rn,{}),this.storage.set(Pn,Yn.searchLoading())}var a=r.resetPagination,s=r.useFacets,c=r.sendQueryId,l=r.setQueryParams;a&&this.storage.delete(In),s||this.filterRegistry.setFacetFilterNodes([],[]);var u=this.storage.get(zn),h=this.storage.get(Hn),d=this.storage.get(xn)||"",p=Object.assign({},{input:d},i);l&&(u&&this.storage.setWithPersist(zn,u),void 0!==h&&this.storage.setWithPersist(Hn,h));var v=this.storage.get(Fn)||{};v.verticalKey||this.storage.set(Fn,f(f({},v),{},{verticalKey:e}));var g=this._getLocationRadius(),m=this.storage.get(Kn),y=this.getQueryTriggerForSearchApi(m);return this._coreLibrary.verticalSearch({verticalKey:e||v.verticalKey,limit:null===(t=this.storage.get(Fn))||void 0===t?void 0:t.limitForVertical,location:this._getLocationPayload(),query:p.input,queryId:c&&this.storage.get(An),retrieveFacets:this._isDynamicFiltersEnabled,facets:this.filterRegistry.getFacetsPayload(),staticFilter:this.filterRegistry.getStaticFilterPayload(),offset:this.storage.get(In)||0,skipSpellCheck:this.storage.get(jn),queryTrigger:y,sessionId:this.getOrSetupSessionId(),sessionTrackingEnabled:this.storage.get(Nn).value,sortBys:this.storage.get(qn),locationRadius:0===g?void 0:g,context:u&&JSON.parse(u),referrerPageUrl:h,querySource:this.storage.get(Zn),additionalHttpHeaders:this._additionalHttpHeaders}).then((function(t){return Xn.transformVertical(t,n._fieldFormatters,e)})).then((function(t){if(n._persistFacets(),n._persistFilters(),n._persistLocationRadius(),n.storage.set(Wn,t[Wn]),n.storage.set(An,t[An]),n.storage.set(fn,t[fn]),n.storage.set(gn,t[gn]),i.append){var r=n.storage.get(vn).append(t[vn]);n.storage.set(vn,r),t[yn].answer&&n.storage.set(yn,t[yn])}else n.storage.set(vn,t[vn]),n.storage.set(yn,t[yn]);t[Mn]&&(n.storage.set(Mn,t[Mn]),n.storage.set(Vn,t[Mn])),t[Rn]&&n.storage.set(Rn,t[Rn]),t[Pn]&&n.storage.set(Pn,t[Pn]),n.storage.delete(jn),n.storage.delete(Kn);var o={verticalKey:e,queryString:p.input,resultsCount:n.storage.get(vn).resultsCount,resultsContext:t[vn].resultsContext},a=n.onVerticalSearch(o);"object"===k(a)&&n._analyticsReporter.report(rr.fromData(a)),n.updateHistoryAfterSearch(m),window.performance.mark("yext.answers.verticalQueryResponseRendered")})).catch((function(e){throw n._markSearchComplete(dn),e})).catch((function(e){console.error("The following problem was encountered during vertical search: "+e)}))}},{key:"clearResults",value:function(){this.storage.set(xn,null),this.storage.set(An,""),this.storage.set(Wn,""),this.storage.set(Vn,{}),this.storage.set(Rn,{}),this.storage.set(Mn,{}),this.storage.set(Ln,new er({})),this.storage.set(fn,new ln),this.storage.set(gn,new Jn({})),this.storage.set(yn,new cn({})),this.storage.set(Pn,new Yn({})),this.storage.set(vn,new an({})),this.storage.set(pn,new sn({})),this.storage.set(_n,new Li({}))}},{key:"verticalPage",value:function(){this.triggerSearch(tr.PAGINATION)}},{key:"search",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getUrls(e);window.performance.mark("yext.answers.universalQueryStart");var o=r.setQueryParams,a=this.storage.get(zn),s=this.storage.get(Hn);o&&(a&&this.storage.setWithPersist(zn,a),void 0!==s&&this.storage.setWithPersist(Hn,s)),this.storage.set(yn,cn.searchLoading());var c=this.storage.get(pn);c&&c.searchState===Rt.SEARCH_LOADING||this.storage.set(pn,sn.searchLoading()),this.storage.set(Ln,{}),this.storage.set(Rn,{}),this.storage.set(Pn,Yn.searchLoading());var l=this.storage.get(Kn),u=this.getQueryTriggerForSearchApi(l);return this._coreLibrary.universalSearch({query:e,limit:null===(t=this.storage.get(Fn))||void 0===t?void 0:t.universalLimit,location:this._getLocationPayload(),skipSpellCheck:this.storage.get(jn),queryTrigger:u,sessionId:this.getOrSetupSessionId(),sessionTrackingEnabled:this.storage.get(Nn).value,context:a&&JSON.parse(a),referrerPageUrl:s,querySource:this.storage.get(Zn),additionalHttpHeaders:this._additionalHttpHeaders}).then((function(e){return Xn.transformUniversal(e,i,n._fieldFormatters)})).then((function(t){n.storage.set(Wn,t[Wn]),n.storage.set(An,t[An]),n.storage.set(fn,t[fn]),n.storage.set(yn,t[yn]),n.storage.set(pn,t[pn]),n.storage.set(Rn,t[Rn]),n.storage.set(Pn,t[Pn]),n.storage.delete(jn),n.storage.delete(Kn);var r=n._getOnUniversalSearchParams(t[pn].sections,e),i=n.onUniversalSearch(r);"object"===k(i)&&n._analyticsReporter.report(rr.fromData(i)),n.updateHistoryAfterSearch(l),window.performance.mark("yext.answers.universalQueryResponseRendered")})).catch((function(e){throw n._markSearchComplete(hn),e})).catch((function(e){console.error("The following problem was encountered during universal search: "+e)}))}},{key:"generativeDirectAnswer",value:function(e,t){var n=this,r=this.storage.get(Wn),i=this.storage.get(xn);return this._coreLibrary.generativeDirectAnswer({searchId:r,searchTerm:i,results:e,additionalHttpHeaders:this._additionalHttpHeaders}).then((function(r){var i=Li.fromCore(r,t,e);n.storage.set(_n,i)})).catch((function(e){n.storage.set(_n,new Li({})),console.error("Failed to generate direct answer with the following error: "+e)}))}},{key:"_markSearchComplete",value:function(e){var t=e===hn?pn:vn,n=this.storage.get(t);n&&n.searchState!==Rt.SEARCH_COMPLETE&&(n.searchState=Rt.SEARCH_COMPLETE,this.storage.set(t,n));var r=this.storage.get(yn);r&&r.searchState!==Rt.SEARCH_COMPLETE&&(r.searchState=Rt.SEARCH_COMPLETE,this.storage.set(yn,r));var i=this.storage.get(Pn);i&&i.searchState!==Rt.SEARCH_COMPLETE&&(i.searchState=Rt.SEARCH_COMPLETE,this.storage.set(Pn,i))}},{key:"_getOnUniversalSearchParams",value:function(e,t){var n=e.reduce((function(e,t){var n=t.verticalConfigId,r=t.resultsCount,i=t.results;return e[n]={totalResultsCount:r,displayedResultsCount:i.length},e}),{});return{queryString:t,sectionsCount:e.length,resultsCountByVertical:n}}},{key:"autoCompleteUniversal",value:function(e,t){var n,r=this,i=null===(n=this.storage.get(Fn))||void 0===n?void 0:n.autocompleteLimit;return this._coreLibrary.universalAutocomplete(f(f({input:e},i&&{limit:i}),{},{sessionTrackingEnabled:this.storage.get(Nn).value,additionalHttpHeaders:this._additionalHttpHeaders})).then((function(e){return gr.transformAutoCompleteResponse(e)})).then((function(e){return r.storage.set("".concat(mn,".").concat(t),e),e})).catch((function(e){console.error("Universal autocomplete failed with the following error: "+e)}))}},{key:"autoCompleteVertical",value:function(e,t,n){var r,i=this,o=null===(r=this.storage.get(Fn))||void 0===r?void 0:r.autocompleteLimit;return this._coreLibrary.verticalAutocomplete(f(f({input:e,verticalKey:n},o&&{limit:o}),{},{sessionTrackingEnabled:this.storage.get(Nn).value,additionalHttpHeaders:this._additionalHttpHeaders})).then((function(e){return gr.transformAutoCompleteResponse(e)})).then((function(e){return i.storage.set("".concat(mn,".").concat(t),e),e})).catch((function(e){console.error("Vertical autocomplete failed with the following error: "+e)}))}},{key:"autoCompleteFilter",value:function(e,t){var n=this,r=t.searchParameters.fields.map((function(e){return{fieldApiName:e.fieldId,entityType:e.entityTypeId,fetchEntities:e.shouldFetchEntities}}));return this._coreLibrary.filterSearch({input:e,verticalKey:t.verticalKey,fields:r,sectioned:t.searchParameters.sectioned,sessionTrackingEnabled:this.storage.get(Nn).value,additionalHttpHeaders:this._additionalHttpHeaders}).then((function(e){return gr.transformFilterSearchResponse(e)}),(function(e){return console.error(e)})).then((function(e){n.storage.set("".concat(mn,".").concat(t.namespace),e)})).catch((function(e){console.error("Filter search failed with the following error: "+e)}))}},{key:"submitQuestion",value:function(e){var t=this;return this._coreLibrary.submitQuestion(f(f({},e),{},{sessionTrackingEnabled:this.storage.get(Nn).value,additionalHttpHeaders:this._additionalHttpHeaders})).then((function(){t.storage.set(Ln,er.submitted())})).catch((function(e){throw console.error("Question submission failed with the following error: "+e),e}))}},{key:"setSortBys",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map((function(e){return{type:e.type,field:e.field,direction:e.direction}}));this.storage.setWithPersist(qn,r)}},{key:"clearSortBys",value:function(){this.storage.delete(qn)}},{key:"setQuery",value:function(e){this.storage.setWithPersist(xn,e)}},{key:"setQueryId",value:function(e){this.storage.set(An,e)}},{key:"triggerSearch",value:function(e,t){var n=void 0!==t?t:this.storage.get(xn)||"";e?this.storage.set(Kn,e):this.storage.delete(Kn),this.setQuery(n)}},{key:"getStaticFilterNodes",value:function(){return this.filterRegistry.getStaticFilterNodes()}},{key:"getFacetFilterNodes",value:function(){return this.filterRegistry.getFacetFilterNodes()}},{key:"getLocationRadiusFilterNode",value:function(){return this.filterRegistry.getFilterNodeByKey(Sn)}},{key:"setFacetFilterNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.filterRegistry.setFacetFilterNodes(e,t)}},{key:"setStaticFilterNodes",value:function(e,t){this.filterRegistry.setStaticFilterNodes(e,t)}},{key:"setLocationRadiusFilterNode",value:function(e){this.filterRegistry.setLocationRadiusFilterNode(e)}},{key:"clearStaticFilterNode",value:function(e){this.filterRegistry.clearStaticFilterNode(e)}},{key:"clearFacetFilterNodes",value:function(){this.filterRegistry.clearFacetFilterNodes()}},{key:"clearLocationRadiusFilterNode",value:function(){this.filterRegistry.clearLocationRadiusFilterNode()}},{key:"_getLocationPayload",value:function(){var e=this.storage.get(Tn);return e&&{latitude:e.lat,longitude:e.lng}}},{key:"getQueryTriggerForSearchApi",value:function(e){return[tr.INITIALIZE,tr.SUGGEST,tr.VOICE_SEARCH].includes(e)?e:null}},{key:"updateHistoryAfterSearch",value:function(e){[tr.INITIALIZE,tr.SUGGEST,tr.QUERY_PARAMETER].includes(e)?this.storage.replaceHistoryWithState():this.storage.pushStateToHistory()}},{key:"_getLocationRadius",value:function(){var e=this.getLocationRadiusFilterNode();return e?e.getFilter().value:null}},{key:"_persistFacets",value:function(){var e=this.filterRegistry.getFacets();this.storage.setWithPersist(On,e)}},{key:"_persistFilters",value:function(){var e=this.filterRegistry.getAllStaticFilterNodesCombined().getFilter();this.storage.setWithPersist(kn,e)}},{key:"_persistLocationRadius",value:function(){var e=this._getLocationRadius();e||0===e?this.storage.setWithPersist(Cn,e):this.storage.delete(Cn)}},{key:"enableDynamicFilters",value:function(){this._isDynamicFiltersEnabled=!0}},{key:"on",value:function(e,t,n){return this.storage.registerListener({eventType:e,storageKey:t,callback:n}),this.storage}},{key:"_getUrls",value:function(e){var t=this._componentManager.getActiveComponent("Navigation");if(t){var n=t.getState("tabs"),r={};if(n&&Array.isArray(n))for(var i=0;i<n.length;i++){var o=new kr(n[i].url.split("?")[1]);o.set("query",e);var a=n[i].baseUrl;o.toString().length>0&&(a+="?"+o.toString()),r[n[i].configId]=a}return r}}},{key:"getOrSetupSessionId",value:function(){if(this.storage.get(Nn).value)try{var e=window.sessionStorage.getItem("sessionId");return e||(e=It(),window.sessionStorage.setItem("sessionId",e)),e}catch(e){console.warn("Unable to use browser sessionStorage for sessionId.\n",e)}return null}}])}();
/*!
* css-vars-ponyfill
* v2.4.9
* https://jhildenbiddle.github.io/css-vars-ponyfill/
* (c) 2018-2024 John Hildenbiddle <http://hildenbiddle.com>
* MIT license
*/
function Ii(){return(Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
/*!
* get-css-data
* v2.1.0
* https://github.com/jhildenbiddle/get-css-data
* (c) 2018-2022 John Hildenbiddle <http://hildenbiddle.com>
* MIT license
*/function Ri(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],i=Array.apply(null,Array(r.length)).map((function(e){return null}));function o(e){var t="string"==typeof e,n=t&&"<"===e.trim().charAt(0);return t&&!n}function a(e,t){n.onError(e,r[t],t)}function s(e,t){var o=n.onSuccess(e,r[t],t);e=!1===o?"":o||e,i[t]=e,-1===i.indexOf(null)&&n.onComplete(i)}var c=document.createElement("a");r.forEach((function(e,t){if(c.setAttribute("href",e),c.href=String(c.href),Boolean(document.all&&!window.atob)&&c.host.split(":")[0]!==location.host.split(":")[0]){if(c.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){var e=r.responseText;o(e)?s(e,t):a(r,t)},r.onerror=function(e){a(r,t)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),a(null,t)}else{var i=new XMLHttpRequest;i.open("GET",e),n.mimeType&&i.overrideMimeType&&i.overrideMimeType(n.mimeType),n.onBeforeSend(i,e,t),i.onreadystatechange=function(){if(4===i.readyState){var e=i.responseText;i.status<400&&o(e)||0===i.status&&o(e)?s(e,t):a(i,t)}},i.send()}}))}
/**
* Gets CSS data from <style> and <link> nodes (including @imports), then
* returns data in order processed by DOM. Allows specifying nodes to
* include/exclude and filtering CSS data using RegEx.
*
* @preserve
* @param {object} [options] The options object
* @param {object} [options.rootElement=document] Root element to traverse for
* <link> and <style> nodes.
* @param {string} [options.include] CSS selector matching <link> and <style>
* nodes to include
* @param {string} [options.exclude] CSS selector matching <link> and <style>
* nodes to exclude
* @param {object} [options.filter] Regular expression used to filter node CSS
* data. Each block of CSS data is tested against the filter,
* and only matching data is included.
* @param {boolean} [options.skipDisabled=true] Determines if disabled
* stylesheets will be skipped while collecting CSS data.
* @param {boolean} [options.useCSSOM=false] Determines if CSS data will be
* collected from a stylesheet's runtime values instead of its
* text content. This is required to get accurate CSS data
* when a stylesheet has been modified using the deleteRule()
* or insertRule() methods because these modifications will
* not be reflected in the stylesheet's text content.
* @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
* 1) the XHR object, 2) source node reference, and 3) the
* source URL as arguments.
* @param {function} [options.onSuccess] Callback on each CSS node read. Passes
* 1) CSS text, 2) source node reference, and 3) the source
* URL as arguments.
* @param {function} [options.onError] Callback on each error. Passes 1) the XHR
* object for inspection, 2) soure node reference, and 3) the
* source URL that failed (either a <link> href or an @import)
* as arguments
* @param {function} [options.onComplete] Callback after all nodes have been
* processed. Passes 1) concatenated CSS text, 2) an array of
* CSS text in DOM order, and 3) an array of nodes in DOM
* order as arguments.
*
* @example
*
* getCssData({
* rootElement : document,
* include : 'style,link[rel="stylesheet"]',
* exclude : '[href="skip.css"]',
* filter : /red/,
* skipDisabled: true,
* useCSSOM : false,
* onBeforeSend(xhr, node, url) {
* // ...
* }
* onSuccess(cssText, node, url) {
* // ...
* }
* onError(xhr, node, url) {
* // ...
* },
* onComplete(cssText, cssArray, nodeArray) {
* // ...
* }
* });
*/function ji(e){var t=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,r={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,skipDisabled:!1!==e.skipDisabled,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},i=Array.apply(null,r.rootElement.querySelectorAll(r.include)).filter((function(e){return t=e,n=r.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,n);var t,n})),o=Array.apply(null,Array(i.length)).map((function(e){return null}));function a(){if(-1===o.indexOf(null)){o.reduce((function(e,t,n){return""===t&&e.push(n),e}),[]).reverse().forEach((function(e){return[i,o].forEach((function(t){return t.splice(e,1)}))}));var e=o.join("");r.onComplete(e,o,i)}}function s(e,t,n,i){var s=r.onSuccess(e,n,i);(function e(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=c(t,i,s);l.rules.length?Ri(l.absoluteUrls,{onBeforeSend:function(e,t,i){r.onBeforeSend(e,n,t)},onSuccess:function(e,t,i){var o=r.onSuccess(e,n,t),a=c(e=!1===o?"":o||e,t,s);return a.rules.forEach((function(t,n){e=e.replace(t,a.absoluteRules[n])})),e},onError:function(r,c,u){a.push({xhr:r,url:c}),s.push(l.rules[u]),e(t,n,i,o,a,s)},onComplete:function(r){r.forEach((function(e,n){t=t.replace(l.rules[n],e)})),e(t,n,i,o,a,s)}}):o(t,a)})(e=void 0!==s&&!1===Boolean(s)?"":s||e,n,i,(function(e,i){null===o[t]&&(i.forEach((function(e){return r.onError(e.xhr,n,e.url)})),!r.filter||r.filter.test(e)?o[t]=e:o[t]="",a())}))}function c(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(e.replace(t,"").match(n)||[]).filter((function(e){return-1===i.indexOf(e)})),o.urls=o.rules.map((function(e){return e.replace(n,"$1")})),o.absoluteUrls=o.urls.map((function(e){return Pi(e,r)})),o.absoluteRules=o.rules.map((function(e,t){var n=o.urls[t],i=Pi(o.absoluteUrls[t],r);return e.replace(n,i)})),o}i.length?i.forEach((function(e,t){var n=e.getAttribute("href"),i=e.getAttribute("rel"),c="link"===e.nodeName.toLowerCase()&&n&&i&&-1!==i.toLowerCase().indexOf("stylesheet"),l=!1!==r.skipDisabled&&e.disabled,u="style"===e.nodeName.toLowerCase();if(c&&!l)if(-1!==n.indexOf("data:text/css")){var h=decodeURIComponent(n.substring(n.indexOf(",")+1));r.useCSSOM&&(h=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),s(h,t,e,location.href)}else Ri(n,{mimeType:"text/css",onBeforeSend:function(t,n,i){r.onBeforeSend(t,e,n)},onSuccess:function(r,i,o){var a=Pi(n);s(r,t,e,a)},onError:function(n,i,s){o[t]="",r.onError(n,e,i),a()}});else if(u&&!l){var d=e.textContent;r.useCSSOM&&(d=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),s(d,t,e,location.href)}else o[t]="",a()})):r.onComplete("",[])}function Pi(e,t){var n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),r.href=t||document.baseURI||(document.querySelector("base")||{}).href||location.href,i.href=e,i.href}var Ni=Di;function Di(e,t,n){e instanceof RegExp&&(e=Bi(e,n)),t instanceof RegExp&&(t=Bi(t,n));var r=qi(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Bi(e,t){var n=t.match(e);return n?n[0]:null}function qi(e,t,n){var r,i,o,a,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],o=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())<o&&(o=i,a=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[o,a])}return s}function Ui(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,removeComments:!1},r=Ii({},n,t),i=[];function o(e){throw new Error("CSS parse error: ".concat(e))}function a(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function s(){return a(/^{\s*/)}function c(){return a(/^}/)}function l(){a(/^\s*/)}function u(){if(l(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return o("end of comment is missing");var n=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:n}}}function h(){for(var e,t=[];e=u();)t.push(e);return r.removeComments?[]:t}function d(){for(l();"}"===e[0];)o("extra closing bracket");var t=a(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t){var n,r=t[0].trim();/\/\*/.test(r)&&(r=r.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,""));var i=/["']\w*,\w*["']/.test(r);return i&&(r=r.replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")}))),n=/,/.test(r)?r.split(/\s*(?![^(]*\)),\s*/):[r],i&&(n=n.map((function(e){return e.replace(/\u200C/g,",")}))),n}}function f(){if("@"===e[0])return A();a(/^([;\s]*)+/);var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=a(/^(\*?[-#/*\\\w.]+(\[[0-9a-z_-]+\])?)\s*/);if(n){if(n=n[0].trim(),!a(/^:\s*/))return o("property missing ':'");var r=a(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),i={type:"declaration",property:n.replace(t,""),value:r?r[0].replace(t,"").trim():""};return a(/^[;\s]*/),i}}function p(){if(!s())return o("missing '{'");for(var e,t=h();e=f();)t.push(e),t=t.concat(h());return c()?t:o("missing '}'")}function v(){l();for(var e,t=[];e=a(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),a(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:p()}}function g(){var e=a(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=a(/^([-\w]+)\s*/)))return o("@keyframes missing name");var n,r=e[1];if(!s())return o("@keyframes missing '{'");for(var i=h();n=v();)i.push(n),i=i.concat(h());return c()?{type:"keyframes",name:r,vendor:t,keyframes:i}:o("@keyframes missing '}'")}}function m(){if(a(/^@page */))return{type:"page",selectors:d()||[],declarations:p()}}function y(){var e=a(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(e)return{type:"page-margin-box",name:"".concat(e[1],"-").concat(e[2])+(e[3]?"-".concat(e[3]):""),declarations:p()}}function _(){if(a(/^@font-face\s*/))return{type:"font-face",declarations:p()}}function b(){var e=a(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:O()}}function k(){if(a(/^@host\s*/))return{type:"host",rules:O()}}function w(){var e=a(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:O()}}function S(){var e=a(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}function C(){var e=a(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:O()}}function x(){var e=a(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}function A(){if(l(),"@"===e[0]){var t=x()||_()||w()||g()||b()||C()||S()||k()||m()||y();if(t&&!r.preserveStatic){var n=!1;if(t.declarations)n=t.declarations.some((function(e){return/var\(/.test(e.value)}));else n=(t.keyframes||t.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return n?t:{}}return t}}function E(){if(!r.preserveStatic){var t=Ni("{","}",e);if(t){var n=/:(?:root|host)(?![.:#(])/.test(t.pre)&&/--\S*\s*:/.test(t.body),i=/var\(/.test(t.body);if(!n&&!i)return e=e.slice(t.end+1),{}}}var a=d()||[],s=r.preserveStatic?p():p().filter((function(e){var t=a.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return a.length||o("selector missing"),{type:"rule",selectors:a,declarations:s}}function O(t){if(!t&&!s())return o("missing '{'");for(var n,r=h();e.length&&(t||"}"!==e[0])&&(n=A()||E());)n.type&&r.push(n),r=r.concat(h());return t||c()?r:o("missing '}'")}return{type:"stylesheet",stylesheet:{rules:O(!0),errors:i}}}function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={parseHost:!1,store:{},onWarning:function(){}},r=Ii({},n,t),i=new RegExp(":".concat(r.parseHost?"host":"root","$"));return"string"==typeof e&&(e=Ui(e,r)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return i.test(e)}))&&e.declarations.forEach((function(e,t){var n=e.property,i=e.value;n&&0===n.indexOf("--")&&(r.store[n]=i)}))})),r.store}function zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+i(e.rules)+"}"},"font-face":function(e){return"@font-face{"+i(e.declarations)+"}"},host:function(e){return"@host{"+i(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+i(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+i(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+i(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+i(e.declarations)+"}"},"page-margin-box":function(e){return"@"+e.name+"{"+i(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+i(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+i(e.rules)+"}"}};function i(e){for(var i="",o=0;o<e.length;o++){var a=e[o];n&&n(a);var s=r[a.type](a);s&&(i+=s,s.length&&a.selectors&&(i+=t))}return i}return i(e.stylesheet.rules)}function Hi(e,t){e.rules.forEach((function(n){n.rules?Hi(n,t):n.keyframes?n.keyframes.forEach((function(e){"keyframe"===e.type&&t(e.declarations,n)})):n.declarations&&t(n.declarations,e)}))}Di.range=qi;function Ki(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},r=Ii({},n,t);return"string"==typeof e&&(e=Ui(e,r)),Hi(e.stylesheet,(function(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=i.type,a=i.property,s=i.value;if("declaration"===o)if(r.preserveVars||!a||0!==a.indexOf("--")){if(-1!==s.indexOf("var(")){var c=Zi(s,r);c!==i.value&&(c=Gi(c),r.preserveVars?(e.splice(n,0,{type:o,property:a,value:c}),n++):i.value=c)}}else e.splice(n,1),n--}})),zi(e)}function Gi(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function Zi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=Ni("(",")",e);function i(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),i=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],o=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,a=o||(i?String(i):void 0),s=n||e;return o||t.onWarning('variable "'.concat(r,'" is undefined')),a&&"undefined"!==a&&a.length>0?Zi(a,t,s):"var(".concat(s,")")}if(r){if("var"===r.pre.slice(-3)){var o=0===r.body.trim().length;return o?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+i(r.body)+Zi(r.post,t)}return r.pre+"(".concat(Zi(r.body,t),")")+Zi(r.post,t)}return-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e}var Qi="undefined"!=typeof window,Wi=Qi&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),$i={group:0,job:0},Yi={rootElement:Qi?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onError:function(){},onWarning:function(){},onSuccess:function(){},onComplete:function(){},onFinally:function(){}},Ji={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},Xi={dom:{},job:{},user:{}},eo=!1,to=null,no=0,ro=null,io=!1;
/**
* Fetches, parses, and transforms CSS custom properties from specified
* <style> and <link> elements into static values, then appends a new <style>
* element with static values to the DOM to provide CSS custom property
* compatibility for legacy browsers. Also provides a single interface for
* live updates of runtime values in both modern and legacy browsers.
*
* @preserve
* @param {object} [options] Options object
* @param {object} [options.rootElement=document] Root element to traverse for
* <link> and <style> nodes
* @param {boolean} [options.shadowDOM=false] Determines if shadow DOM <link>
* and <style> nodes will be processed.
* @param {string} [options.include="style,link[rel=stylesheet]"] CSS selector
* matching <link re="stylesheet"> and <style> nodes to
* process
* @param {string} [options.exclude] CSS selector matching <link
* rel="stylehseet"> and <style> nodes to exclude from those
* matches by options.include
* @param {object} [options.variables] A map of custom property name/value
* pairs. Property names can omit or include the leading
* double-hyphen (—), and values specified will override
* previous values
* @param {boolean} [options.onlyLegacy=true] Determines if the ponyfill will
* only generate legacy-compatible CSS in browsers that lack
* native support (i.e., legacy browsers)
* @param {boolean} [options.preserveStatic=true] Determines if CSS
* declarations that do not reference a custom property will
* be preserved in the transformed CSS
* @param {boolean} [options.preserveVars=false] Determines if CSS custom
* property declarations will be preserved in the transformed
* CSS
* @param {boolean} [options.silent=false] Determines if warning and error
* messages will be displayed on the console
* @param {boolean} [options.updateDOM=true] Determines if the ponyfill will
* update the DOM after processing CSS custom properties
* @param {boolean} [options.updateURLs=true] Determines if relative url()
* paths will be converted to absolute urls in external CSS
* @param {boolean} [options.watch=false] Determines if a MutationObserver will
* be created that will execute the ponyfill when a <link> or
* <style> DOM mutation is observed
* @param {function} [options.onBeforeSend] Callback before XHR is sent. Passes
* 1) the XHR object, 2) source node reference, and 3) the
* source URL as arguments
* @param {function} [options.onError] Callback after a CSS parsing error has
* occurred or an XHR request has failed. Passes 1) an error
* message, and 2) source node reference, 3) xhr, and 4 url as
* arguments.
* @param {function} [options.onWarning] Callback after each CSS parsing warning
* has occurred. Passes 1) a warning message as an argument.
* @param {function} [options.onSuccess] Callback after CSS data has been
* collected from each node and before CSS custom properties
* have been transformed. Allows modifying the CSS data before
* it is transformed by returning any string value (or false
* to skip). Passes 1) CSS text, 2) source node reference, and
* 3) the source URL as arguments.
* @param {function} [options.onComplete] Callback after all CSS has been
* processed, legacy-compatible CSS has been generated, and
* (optionally) the DOM has been updated. Passes 1) a CSS
* string with CSS variable values resolved, 2) an array of
* output <style> node references that have been appended to
* the DOM, 3) an object containing all custom properies names
* and values, and 4) the ponyfill execution time in
* milliseconds.
* @param {function} [options.onFinally] Callback in modern and legacy browsers
* after the ponyfill has finished all tasks. Passes 1) a
* boolean indicating if the last ponyfill call resulted in a
* style change, 2) a boolean indicating if the current
* browser provides native support for CSS custom properties,
* and 3) the ponyfill execution time in milliseconds.
* @example
*
* cssVars({
* rootElement : document,
* shadowDOM : false,
* include : 'style,link[rel="stylesheet"]',
* exclude : '',
* variables : {},
* onlyLegacy : true,
* preserveStatic: true,
* preserveVars : false,
* silent : false,
* updateDOM : true,
* updateURLs : true,
* watch : false,
* onBeforeSend(xhr, node, url) {},
* onError(message, node, xhr, url) {},
* onWarning(message) {},
* onSuccess(cssText, node, url) {},
* onComplete(cssText, styleNode, cssVariables, benchmark) {},
* onFinally(hasChanged, hasNativeSupport, benchmark)
* });
*/
function oo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="cssVars(): ",n=Ii({},Yi,e);function r(e,r,i,o){!n.silent&&window.console&&console.error("".concat(t).concat(e,"\n"),r),n.onError(e,r,i,o)}function i(e){!n.silent&&window.console&&console.warn("".concat(t).concat(e)),n.onWarning(e)}function o(e){n.onFinally(Boolean(e),Wi,fo()-n.__benchmark)}if(Qi){if(n.watch)return n.watch=Yi.watch,ao(n),void oo(n);if(!1===n.watch&&to&&(to.disconnect(),to=null),!n.__benchmark){if(eo===n.rootElement)return void so(e);var a=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));if(n.__benchmark=fo(),n.exclude=[to?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',"link[disabled]:not([data-cssvars])",n.exclude].filter((function(e){return e})).join(","),n.variables=uo(n.variables),a.forEach((function(e){var t="style"===e.nodeName.toLowerCase()&&e.__cssVars.text,n=t&&e.textContent!==e.__cssVars.text;t&&n&&(e.sheet&&(e.sheet.disabled=!1),e.setAttribute("data-cssvars",""))})),!to){var s=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars="out"]'));s.forEach((function(e){var t=e.getAttribute("data-cssvars-group");(t?n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)})),no&&a.length<no&&(no=a.length,Xi.dom={})}}if("loading"!==document.readyState)if(Wi&&n.onlyLegacy){var c=!1;if(n.updateDOM){var l=n.rootElement.host||(n.rootElement===document?document.documentElement:n.rootElement);Object.keys(n.variables).forEach((function(e){var t=n.variables[e];c=c||t!==getComputedStyle(l).getPropertyValue(e),l.style.setProperty(e,t)}))}o(c)}else!io&&(n.shadowDOM||n.rootElement.shadowRoot||n.rootElement.host)?ji({rootElement:Yi.rootElement,include:Yi.include,exclude:n.exclude,skipDisabled:!1,onSuccess:function(e,t,n){return!((t.sheet||{}).disabled&&!t.__cssVars)&&((e=((e=e.replace(Ji.cssComments,"").replace(Ji.cssMediaQueries,"")).match(Ji.cssVarDeclRules)||[]).join(""))||!1)},onComplete:function(e,t,r){Vi(e,{store:Xi.dom,onWarning:i}),io=!0,oo(n)}}):(eo=n.rootElement,ji({rootElement:n.rootElement,include:n.include,exclude:n.exclude,skipDisabled:!1,onBeforeSend:n.onBeforeSend,onError:function(e,t,n){var i=e.responseURL||ho(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");r("CSS XHR Error: ".concat(i," ").concat(e.status," ").concat(o),t,e,i)},onSuccess:function(e,t,r){if((t.sheet||{}).disabled&&!t.__cssVars)return!1;var i="link"===t.nodeName.toLowerCase(),o="style"===t.nodeName.toLowerCase()&&e!==t.textContent,a=n.onSuccess(e,t,r);return e=void 0!==a&&!1===Boolean(a)?"":a||e,n.updateURLs&&(i||o)&&(e=lo(e,r)),e},onComplete:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=Ii({},Xi.dom,Xi.user);if(Xi.job={},a.forEach((function(e,o){var a=t[o];if(e.__cssVars=e.__cssVars||{},e.__cssVars.text=a,Ji.cssVars.test(a))try{var s=Ui(a,{preserveStatic:n.preserveStatic,removeComments:!0});Vi(s,{parseHost:Boolean(n.rootElement.host),store:Xi.dom,onWarning:i}),e.__cssVars.tree=s}catch(t){r(t.message,e)}})),Ii(Xi.job,Xi.dom),n.updateDOM?(Ii(Xi.user,n.variables),Ii(Xi.job,Xi.user)):(Ii(Xi.job,Xi.user,n.variables),Ii(s,n.variables)),$i.job>0&&Boolean(Object.keys(Xi.job).length>Object.keys(s).length||Boolean(Object.keys(s).length&&Object.keys(Xi.job).some((function(e){return Xi.job[e]!==s[e]})))))po(n.rootElement),oo(n);else{var c=[],l=[],u=!1;if(n.updateDOM&&$i.job++,a.forEach((function(e,o){var a=!e.__cssVars.tree;if(e.__cssVars.tree)try{Ki(e.__cssVars.tree,Ii({},n,{variables:Xi.job,onWarning:i}));var s=zi(e.__cssVars.tree);if(n.updateDOM){var h=t[o],d=Ji.cssVarFunc.test(h);if(e.getAttribute("data-cssvars")||e.setAttribute("data-cssvars","src"),s.length&&d){var f=e.getAttribute("data-cssvars-group")||++$i.group,p=s.replace(/\s/g,""),v=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(f,'"]'))||document.createElement("style");u=u||Ji.cssKeyframes.test(s),n.preserveStatic&&e.sheet&&(e.sheet.disabled=!0),v.hasAttribute("data-cssvars")||v.setAttribute("data-cssvars","out"),p===e.textContent.replace(/\s/g,"")?(a=!0,v&&v.parentNode&&(e.removeAttribute("data-cssvars-group"),v.parentNode.removeChild(v))):p!==v.textContent.replace(/\s/g,"")&&([e,v].forEach((function(e){e.setAttribute("data-cssvars-job",$i.job),e.setAttribute("data-cssvars-group",f)})),v.textContent=s,c.push(s),l.push(v),v.parentNode||e.parentNode.insertBefore(v,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==s&&c.push(s)}catch(t){r(t.message,e)}a&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",$i.job)})),no=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var h,d=[].concat(n.rootElement).concat([].slice.call(n.rootElement.querySelectorAll("*"))),f=0;h=d[f];++f)if(h.shadowRoot&&h.shadowRoot.querySelector("style")){var p=Ii({},n,{rootElement:h.shadowRoot});oo(p)}n.updateDOM&&u&&co(n.rootElement),eo=!1,n.onComplete(c.join(""),l,JSON.parse(JSON.stringify(Xi.job)),fo()-n.__benchmark),o(l.length)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){oo(e),document.removeEventListener("DOMContentLoaded",t)}))}}function ao(e){function t(e){var t=n(e)&&e.hasAttribute("disabled"),r=(e.sheet||{}).disabled;return t||r}function n(e){return"link"===e.nodeName.toLowerCase()&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")}function r(e){return"style"===e.nodeName.toLowerCase()}window.MutationObserver&&(to&&(to.disconnect(),to=null),(to=new MutationObserver((function(i){i.some((function(i){return function(r){var i=!1;if("attributes"===r.type&&n(r.target)&&!t(r.target)){var o="disabled"===r.attributeName,a="href"===r.attributeName,s="skip"===r.target.getAttribute("data-cssvars"),c="src"===r.target.getAttribute("data-cssvars");o?i=!s&&!c:a&&(s?r.target.setAttribute("data-cssvars",""):c&&po(e.rootElement,!0),i=!0)}return i}(i)||function(e){var t=!1;if("childList"===e.type){var n=r(e.target),i="out"===e.target.getAttribute("data-cssvars");t=n&&!i}return t}(i)||function(e){var i=!1;return"childList"===e.type&&(i=[].slice.call(e.addedNodes).some((function(e){var i=1===e.nodeType&&e.hasAttribute("data-cssvars"),o=r(e)&&Ji.cssVars.test(e.textContent);return!i&&(n(e)||o)&&!t(e)}))),i}(i)||function(t){var n=!1;return"childList"===t.type&&(n=[].slice.call(t.removedNodes).some((function(t){var n=1===t.nodeType,r=n&&"out"===t.getAttribute("data-cssvars"),i=n&&"src"===t.getAttribute("data-cssvars"),o=i;if(i||r){var a=t.getAttribute("data-cssvars-group"),s=e.rootElement.querySelector('[data-cssvars-group="'.concat(a,'"]'));i&&po(e.rootElement,!0),s&&s.parentNode.removeChild(s)}return o}))),n}(i)}))&&oo(e)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}function so(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(ro),ro=setTimeout((function(){e.__benchmark=null,oo(e)}),t)}function co(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(e){return getComputedStyle(document.body)[e]}))[0];if(t){for(var n=[].slice.call(e.querySelectorAll("*")),r=[],i=0,o=n.length;i<o;i++){var a=n[i];"none"!==getComputedStyle(a)[t]&&(a.style[t]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(a))}document.body.offsetHeight;for(var s=0,c=r.length;s<c;s++){var l=r[s].style;l[t]=l[t].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function lo(e,t){return(e.replace(Ji.cssComments,"").match(Ji.cssUrls)||[]).forEach((function(n){var r=n.replace(Ji.cssUrls,"$1"),i=ho(r,t);e=e.replace(n,n.replace(r,i))})),e}function uo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^-{2}/;return Object.keys(e).reduce((function(n,r){return n[t.test(r)?r:"--".concat(r.replace(/^-+/,""))]=e[r],n}),{})}function ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),r.href=t,i.href=e,i.href}function fo(){return Qi&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function po(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].slice.call(e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]'));n.forEach((function(e){return e.setAttribute("data-cssvars","")})),t&&(Xi.dom={})}oo.reset=function(){for(var e in $i.job=0,$i.group=0,eo=!1,to&&(to.disconnect(),to=null),no=0,ro=null,io=!1,Xi)Xi[e]={}};var vo=A((function(e,t){var n="[object Arguments]",r="[object Function]",i="[object GeneratorFunction]",o="[object Map]",a="[object Set]",s=/\w*$/,c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,u={};u[n]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object DataView]"]=u["[object Boolean]"]=u["[object Date]"]=u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u[o]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u[a]=u["[object String]"]=u["[object Symbol]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Error]"]=u[r]=u["[object WeakMap]"]=!1;var h="object"==typeof C&&C&&C.Object===Object&&C,d="object"==typeof self&&self&&self.Object===Object&&self,f=h||d||Function("return this")(),p=t&&!t.nodeType&&t,v=p&&e&&!e.nodeType&&e,g=v&&v.exports===p;function m(e,t){return e.set(t[0],t[1]),e}function y(e,t){return e.add(t),e}function _(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function b(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function w(e,t){return function(n){return e(t(n))}}function S(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var x,A=Array.prototype,E=Function.prototype,O=Object.prototype,M=f["__core-js_shared__"],T=(x=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",L=E.toString,F=O.hasOwnProperty,I=O.toString,R=RegExp("^"+L.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=g?f.Buffer:void 0,P=f.Symbol,N=f.Uint8Array,D=w(Object.getPrototypeOf,Object),B=Object.create,q=O.propertyIsEnumerable,U=A.splice,V=Object.getOwnPropertySymbols,z=j?j.isBuffer:void 0,H=w(Object.keys,Object),K=ge(f,"DataView"),G=ge(f,"Map"),Z=ge(f,"Promise"),Q=ge(f,"Set"),W=ge(f,"WeakMap"),$=ge(Object,"create"),Y=ke(K),J=ke(G),X=ke(Z),ee=ke(Q),te=ke(W),ne=P?P.prototype:void 0,re=ne?ne.valueOf:void 0;function ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(e){this.__data__=new oe(e)}function ce(e,t){var r=Se(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ce(e)}(e)&&F.call(e,"callee")&&(!q.call(e,"callee")||I.call(e)==n)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=r.length,o=!!i;for(var a in e)!t&&!F.call(e,a)||o&&("length"==a||_e(a,i))||r.push(a);return r}function le(e,t,n){var r=e[t];F.call(e,t)&&we(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ue(e,t){for(var n=e.length;n--;)if(we(e[n][0],t))return n;return-1}function he(e,t,c,l,h,d,f){var p;if(l&&(p=d?l(e,h,d,f):l(e)),void 0!==p)return p;if(!Ee(e))return e;var v=Se(e);if(v){if(p=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&F.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,p)}else{var g=ye(e),w=g==r||g==i;if(xe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if("[object Object]"==g||g==n||w&&!d){if(b(e))return d?e:{};if(p=function(e){return"function"!=typeof e.constructor||be(e)?{}:(t=D(e),Ee(t)?B(t):{});var t}(w?{}:e),!t)return function(e,t){return pe(e,me(e),t)}(e,function(e,t){return e&&pe(t,Oe(t),e)}(p,e))}else{if(!u[g])return d?e:{};p=function(e,t,n,r){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return fe(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?fe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?fe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case o:return function(e,t,n){return _(t?n(k(e),!0):k(e),m,new e.constructor)}(e,r,n);case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,s.exec(e));return t.lastIndex=e.lastIndex,t}(e);case a:return function(e,t,n){return _(t?n(S(e),!0):S(e),y,new e.constructor)}(e,r,n);case"[object Symbol]":return c=e,re?Object(re.call(c)):{}}var c}(e,g,he,t)}}f||(f=new se);var C=f.get(e);if(C)return C;if(f.set(e,p),!v)var x=c?function(e){return function(e,t,n){var r=t(e);return Se(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Oe,me)}(e):Oe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(x||e,(function(n,r){x&&(n=e[r=n]),le(p,r,he(n,t,c,l,r,e,f))})),p}function de(e){return!(!Ee(e)||(t=e,T&&T in t))&&(Ae(e)||b(e)?R:c).test(ke(e));var t}function fe(e){var t=new e.constructor(e.byteLength);return new N(t).set(new N(e)),t}function pe(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;le(n,a,void 0===s?e[a]:s)}return n}function ve(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ge(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return de(n)?n:void 0}ie.prototype.clear=function(){this.__data__=$?$(null):{}},ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ie.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return F.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:F.call(t,e)},ie.prototype.set=function(e,t){return this.__data__[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},oe.prototype.clear=function(){this.__data__=[]},oe.prototype.delete=function(e){var t=this.__data__,n=ue(t,e);return!(n<0)&&(n==t.length-1?t.pop():U.call(t,n,1),!0)},oe.prototype.get=function(e){var t=this.__data__,n=ue(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ue(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new ie,map:new(G||oe),string:new ie}},ae.prototype.delete=function(e){return ve(this,e).delete(e)},ae.prototype.get=function(e){return ve(this,e).get(e)},ae.prototype.has=function(e){return ve(this,e).has(e)},ae.prototype.set=function(e,t){return ve(this,e).set(e,t),this},se.prototype.clear=function(){this.__data__=new oe},se.prototype.delete=function(e){return this.__data__.delete(e)},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this;n=this.__data__=new ae(r)}return n.set(e,t),this};var me=V?w(V,Object):function(){return[]},ye=function(e){return I.call(e)};function _e(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}function be(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function ke(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function we(e,t){return e===t||e!=e&&t!=t}(K&&"[object DataView]"!=ye(new K(new ArrayBuffer(1)))||G&&ye(new G)!=o||Z&&"[object Promise]"!=ye(Z.resolve())||Q&&ye(new Q)!=a||W&&"[object WeakMap]"!=ye(new W))&&(ye=function(e){var t=I.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?ke(n):void 0;if(r)switch(r){case Y:return"[object DataView]";case J:return o;case X:return"[object Promise]";case ee:return a;case te:return"[object WeakMap]"}return t});var Se=Array.isArray;function Ce(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Ae(e)}var xe=z||function(){return!1};function Ae(e){var t=Ee(e)?I.call(e):"";return t==r||t==i}function Ee(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Oe(e){return Ce(e)?ce(e):function(e){if(!be(e))return H(e);var t=[];for(var n in Object(e))F.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return he(e,!0,!0)}})),go=function(e){function r(e){var i;return n(this,r),(i=t(this,r))._state=e||{},i}return u(r,e),o(r,[{key:"init",value:function(e,t){this._set(e,t)}},{key:"set",value:function(e,t){this._set(e,t),this.emit("update")}},{key:"_set",value:function(e,t){void 0===t?this._state=e:this._state[e]=t}},{key:"update",value:function(e){this._state=e,this.emit("update")}},{key:"get",value:function(e){return void 0===e?this._state:this._state[e]}},{key:"has",value:function(e){return void 0!==this._state[e]}},{key:"asJSON",value:function(){return this._state}}])}(function(){return o((function e(){n(this,e),this._listeners={}}),[{key:"on",value:function(e,t,n){if("function"!=typeof t)throw new Error("callback handler should be of type {function}");return void 0===this._listeners[e]&&(this._listeners[e]=[]),this._listeners[e].push({event:e,cb:t,once:n||!1}),this}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"off",value:function(e){return delete this._listeners[e],this}},{key:"emit",value:function(e,t){var n=this._listeners[e];if(void 0!==n){for(var r=[],i=0;i<n.length;i++)n[i].cb(t),!0!==n[i].once&&r.push(n[i]);return this._listeners[e]=r,this}}}])}()),mo="get",yo="post",_o=function(){return o((function e(){n(this,e)}),[{key:"get",value:function(e,t,n){return this.request(mo,this.encodeParams(e,t),n)}},{key:"post",value:function(e,t,n,r){return this.request(yo,this.encodeParams(e,t),Object.assign({},{body:JSON.stringify(n),credentials:void 0},r))}},{key:"request",value:function(e,t,n){var r=Object.assign({},{method:e,credentials:"include"},n);return this._fetch(t,r)}},{key:"_fetch",value:function(e,t){return window.fetch?fetch(e,t):_e(e,t)}},{key:"beacon",value:function(e,t){return this._sendBeacon(e,JSON.stringify(t))}},{key:"_sendBeacon",value:function(e,t){if(window.navigator&&window.navigator.sendBeacon)return window.navigator.sendBeacon(e,t);var n=window.event&&window.event.type,r="unload"===n||"beforeunload"===n,i="XMLHttpRequest"in window?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");return i.open("POST",e,!r),i.setRequestHeader("Accept","*/*"),"string"==typeof t?i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"):"[object Blob]"===Object.prototype.toString.call(t)&&t.type&&i.setRequestHeader("Content-Type",t.type),i.send(t),!0}},{key:"encodeParams",value:function(e,t){if("object"===k(t)){var n=e.indexOf("?")>-1,r="";for(var i in t)n?r+="&":(n=!0,r+="?"),r+=i+"="+encodeURIComponent(t[i]);return e+r}}}])}(),bo="FilterBox",ko="FilterOptions",wo="RangeFilter",So="DateRangeFilter",Co="Facets",xo="GeoLocationFilter",Ao="SortOptions",Eo="FilterSearch";function Oo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"production";return"sandbox"===e?"https://liveapi-sandbox.yext.com":"https://liveapi.yext.com"}function Mo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"production",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"multi",n=To()?"eu":"us",r="";return"sandbox"===e&&"gcp"===t?r="sandbox-gcp.":"sandbox"===e?r="sandbox.":"gcp"===t&&(r="gcp."),"https://"+r+n+".yextevents.com"}function To(){return"us".toLowerCase()===Xe.EU.toString()}function Lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new kr;return e.split("?")[0]+"?"+t.toString()}function Fo(e,t){var n=[xo,Eo].reduce((function(e,n){return t([n]).forEach((function(t){e.push("".concat(xn,".").concat(t)),e.push("".concat(bn,".").concat(t))})),e}),[]),r=function(e,t){var n,r=new kr,i=a(e.entries());try{var o=function(){var e=g(n.value,2),i=e[0],o=e[1];t.every((function(e){return!i.startsWith(e)}))&&r.set(i,o)};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}(e,n);return[In,kn,Cn,On,qn].forEach((function(e){return r.delete(e)})),r}var Io=function(){return o((function e(t,r,i,o,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"production",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"multi";n(this,e),this._businessId=i,this._analyticsEventsEnabled=o,this._globalOptions=Object.assign({},s,{experienceKey:t}),this._environment=c,this._cloudChoice=l,this._baseUrl=Mo(this._environment,this._cloudChoice),this._eventsApiKey=a,r&&(this._globalOptions.experienceVersion=r)}),[{key:"getQueryId",value:function(){return this._globalOptions.queryId}},{key:"setQueryId",value:function(e){this._globalOptions.queryId=e}},{key:"getSearchId",value:function(){return this._globalOptions.searchId}},{key:"setSearchId",value:function(e){this._globalOptions.searchId=e}},{key:"getSearchTerm",value:function(){return this._globalOptions.searchTerm}},{key:"setSearchTerm",value:function(e){this._globalOptions.searchTerm=e}},{key:"setVisitor",value:function(e){this._globalOptions.visitor=e}},{key:"getAnalyticsOptIn",value:function(){return this._analyticsEventsEnabled}},{key:"setAnalyticsOptIn",value:function(e){this._analyticsEventsEnabled=e}},{key:"report",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.includeQueryId,r=void 0===n||n;if(!this._analyticsEventsEnabled)return!1;if(!this._eventsApiKey)return console.error("A valid eventsApiKey must be set in the config to send Analytics Events"),!1;if(!(e instanceof rr))return console.error("Tried to send invalid analytics event",e),!1;e.addOptions(this._globalOptions);var i=this.getSearchTerm(),o=e.toApiEvent(),a=f(f(f(f(f(f({action:o.action,authorization:"KEY "+this._eventsApiKey},void 0!==e.destinationUrl&&{destinationUrl:e.destinationUrl}),void 0!==e.entityId&&{entity:e.entityId}),void 0!==e.label&&{label:e.label}),void 0!==e.locale&&{locale:e.locale}),{},{search:f(f(f(f(f({},void 0!==e.directAnswer&&{isDirectAnswer:e.directAnswer}),{},{experienceKey:this._globalOptions.experienceKey},void 0!==e.generativeDirectAnswer&&{isGenerativeDirectAnswer:e.generativeDirectAnswer}),r&&{queryId:this.getQueryId()}),r&&{searchId:this.getSearchId()}),{},{versionLabel:this._globalOptions.experienceVersion},void 0!==e.verticalKey&&{verticalKey:e.verticalKey})},!!i&&{searchTerm:i}),void 0!==e.visitor&&{visitor:e.visitor});return(new _o).beacon("".concat(this._baseUrl,"/accounts/me/events"),a)}}])}(),Ro=function(){return o((function e(){n(this,e)}),[{key:"report",value:function(e){return!0}}])}(),jo=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.areEquivalentParams=void 0,t.areEquivalentParams=function(e,t){const n=Array.from(e.entries()),r=Array.from(t.entries());if(n.length!==r.length)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}}));x(jo),jo.areEquivalentParams;var Po=A((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e=""){this.params=this.parse(e)}parse(e){const t=new Map;let r=e;if(!r)return t;e.indexOf("?")>-1&&(r=e.slice(e.indexOf("?")+1));const i=r.split("&");for(let e=0;e<i.length;e++){const r=i[e].split("=");r.length>1?t.set(r[0],n.decode(r[1])):t.set(r[0],"")}return t}get(e){return this.params.get(e)}set(e,t){this.params.set(e,t)}has(e){return e in this.params}delete(e){this.params.delete(e)}toString(){const e=[];return this.params.forEach((t,r)=>{const i=t||"";e.push(`${r}=${n.encode(i)}`)}),e.join("&")}entries(){const e=[];return this.params.forEach((t,n)=>{e.push([n,t])}),e}static decode(e){return decodeURIComponent(e.replace(/[ +]/g,"%20"))}static encode(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","%20":"+"};return encodeURIComponent(e).replace(/[!'()]|%20/g,(function(e){return t[e]}))}}t.default=n}));x(Po);var No=x(A((function(e,t){var n=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(Po);t.default=class{constructor(e){this.popListener=e,this.params=new r.default,window.addEventListener("popstate",()=>{this.params=new r.default(window.location.search.substring(1)),this.popListener(this.getAll(),this.getUrlWithCurrentState())})}init(e){this.params=new r.default(e)}set(e,t){if("string"!=typeof e)throw new Error("Storage data key must be a string: "+e);if("string"!=typeof t)throw new Error("Storage data value must be a string: "+t);this.params.set(e,t)}replaceHistoryWithState(){const e=new r.default(window.location.search.substring(1));jo.areEquivalentParams(this.params,e)||window.history.replaceState(null,"","?"+this.params.toString())}pushStateToHistory(){const e=new r.default(window.location.search.substring(1));jo.areEquivalentParams(this.params,e)||window.history.pushState(null,"","?"+this.params.toString())}get(e){if("string"!=typeof e)throw new Error("Storage data key must be a string: "+e);return this.params.get(e)}delete(e){if("string"!=typeof e)throw new Error("Storage data key must be a string: "+e);this.params.delete(e)}getAll(){const e=new Map;for(const[t,n]of this.params.entries())e.set(t,n);return e}getUrlWithCurrentState(){return this.params.toString()}}}))),Do=function(){return o((function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.persistedStateListeners={update:r.updateListener||function(){},reset:r.resetListener||function(){}},this.persistedValueParser=r.persistedValueParser,this.popListener=function(e,n){t.persistedStateListeners.update(e,n),t.persistedStateListeners.reset(e,n)},this.storage=new Map,this.persistentStorage=new No(this.popListener),this.listeners=[]}),[{key:"init",value:function(e){var t=this;return this.persistentStorage.init(e),this.persistentStorage.getAll().forEach((function(e,n){var r=t.persistedValueParser?t.persistedValueParser(n,e):e;t.set(n,r)})),this}},{key:"set",value:function(e,t){if(null==e||"string"!=typeof e)throw new qt("Storage key must be of type string",e,t);if(void 0===t)throw new qt("Data cannot be of type undefined",e,t);this.storage.set(e,t),this._callListeners("update",e)}},{key:"setWithPersist",value:function(e,t){this.set(e,t);var n=t;"string"!=typeof t&&(n=JSON.stringify(t)),this.persistentStorage.set(e,n)}},{key:"replaceHistoryWithState",value:function(){this.persistentStorage.replaceHistoryWithState(),this.persistedStateListeners.update(this.persistentStorage.getAll(),this.getCurrentStateUrlMerged())}},{key:"pushStateToHistory",value:function(){this.persistentStorage.pushStateToHistory(),this.persistedStateListeners.update(this.persistentStorage.getAll(),this.getCurrentStateUrlMerged())}},{key:"get",value:function(e){return this.storage.get(e)}},{key:"getAll",value:function(){return new Map(this.storage)}},{key:"delete",value:function(e){if(null==e||"string"!=typeof e)throw new qt("Storage key must be of type string",e);this.storage.delete(e),this.persistentStorage.delete(e)}},{key:"has",value:function(e){return this.storage.has(e)}},{key:"getCurrentStateUrlMerged",value:function(){var e=new kr(window.location.search.substring(1));return this.persistentStorage.getAll().forEach((function(t,n){e.set(n,t)})),e.toString()}},{key:"getUrlWithCurrentState",value:function(){return this.persistentStorage.getUrlWithCurrentState()}},{key:"registerListener",value:function(e){if(!e.eventType||!e.storageKey||!e.callback||"function"!=typeof e.callback)throw new qt("Invalid listener applied in storage: ".concat(e));this.listeners.push(e)}},{key:"removeListener",value:function(e){this.listeners=this.listeners.filter((function(t){return t!==e}))}},{key:"_callListeners",value:function(e,t){var n=this;this.listeners.forEach((function(r){r.storageKey===t&&r.eventType===e&&r.callback(n.get(t))}))}}])}(),Bo=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,e),this.moduleId=null,this.uniqueId=r.uniqueId,this.name=t.name||this.constructor.type,this._config=t,this._type=this.constructor.name,this._parentContainer=t.parentContainer||null,this._children=[],this._state=new go(t.state),this.core=r.core||null,this.componentManager=r.componentManager||null,this.analyticsReporter=r.analyticsReporter||null,this._analyticsOptions=t.analyticsOptions||{},this._progressivelyRenderChildren=t.progressivelyRenderChildren,null===this._parentContainer){if("string"==typeof t.container&&(this._container=br.query(t.container)||null,null===this._container))throw new Error("Cannot find container DOM node: "+t.container)}else this._container=br.query(this._parentContainer,t.container),null===this._container&&(this._container=br.createEl("div",{class:t.container.substring(1,t.container.length)}),br.append(this._parentContainer,this._container));this._className=t.class||"component",this._render=t.render||null,this._renderer=r.renderer||mi.Handlebars,this._template=t.template?this._renderer.compile(t.template):null,this._templateName=t.templateName||this.constructor.defaultTemplateName(t),this._isMounted=!1,this.transformData=t.transformData,this.onCreate=t.onCreateOverride||this.onCreate||function(){},this.onCreate=this.onCreate.bind(this),this.beforeMount=t.beforeMountOverride||this.beforeMount||function(){},this.beforeMount=this.beforeMount.bind(this),this.onMount=t.onMountOverride||this.onMount||function(){},this.onMount=this.onMount.bind(this),this.onUpdate=t.onUpdateOverride||this.onUpdate||function(){},this.onUpdate=this.onUpdate.bind(this),this.userOnCreate=t.onCreate||function(){},this.userOnMount=t.onMount||function(){},this.userOnUpdate=t.onUpdate||function(){}}),[{key:"init",value:function(e){var t=this;try{this.setState(e.data||e.state||{}),this.onCreate(),this.userOnCreate()}catch(e){throw new Dt("Error initializing component",this.constructor.type,e)}return this._state.on("update",(function(){try{t.onUpdate(),t.userOnUpdate(),t.unMount(),t.mount()}catch(e){throw new Dt("Error updating component",t.constructor.type,e)}})),br.addClass(this._container,this._className),br.addClass(this._container,"yxt-Answers-component"),this}},{key:"addContainerClass",value:function(e){br.addClass(this._container,e)}},{key:"removeContainerClass",value:function(e){br.removeClass(this._container,e)}},{key:"setState",value:function(e){var t=Object.assign({},{_config:this._config},e);return this._state.set(t),this}},{key:"getState",value:function(e){return this._state.get(e)}},{key:"hasState",value:function(e){return this._state.has(e)}},{key:"addChild",value:function(e,t,n){var r=this.componentManager.create(t,Object.assign({name:e.name,parentContainer:this._container,data:e},n||{},{_parentOpts:this._config}));return this._children.push(r),r}},{key:"remove",value:function(){this._children.forEach((function(e){return e.remove()})),this.componentManager.remove(this)}},{key:"setRender",value:function(e){return this._render=e,this}},{key:"setRenderer",value:function(e){return this._renderer=mi[e],this}},{key:"setTemplate",value:function(e){this._template=this._renderer.compile(e)}},{key:"unMount",value:function(){if(!this._container)return this;this._children.forEach((function(e){e.unMount()})),br.empty(this._container),this._children.forEach((function(e){return e.remove()})),this._children=[],this.onUnMount()}},{key:"mount",value:function(e){var t=this;if(e&&(this._container=e),!this._container)return this;if(!1===this.beforeMount())return this;br.append(this._container,this.render(this._state.asJSON()));var n,r=br.queryAll(this._container,"[data-component]:not([data-is-component-mounted])");try{n=this.transformData?this.transformData(vo(this._state.get())):this._state.get()}catch(e){console.error("The following problem occurred while transforming data for sub-components of ".concat(this.name,": "),e)}(r.forEach((function(e){try{t._createSubcomponent(e,n)}catch(t){console.error("The following problem occurred while initializing sub-component: ",e,t)}})),this._progressivelyRenderChildren?this._children.forEach((function(e){setTimeout((function(){try{e.mount()}catch(t){console.error("The following problem occurred while mounting sub-component: ",e,t)}}))})):this._children.forEach((function(e){try{e.mount()}catch(t){console.error("The following problem occurred while mounting sub-component: ",e,t)}})),this.analyticsReporter)&&br.queryAll(this._container,"[data-eventtype]:not([data-is-analytics-attached])").forEach(this._createAnalyticsHook.bind(this));return this._isMounted=!0,this.onMount(this),this.userOnMount(this),this}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._state.get();this.beforeRender(),e=this.transformData?this.transformData(vo(e)):e;var t="";if("function"==typeof this._render){if("string"!=typeof(t=this._render(e)))throw new Error("Render method must return HTML as type {string}")}else t=this._renderer.render({template:this._template,templateName:this._templateName},e);return this.afterRender(),t}},{key:"_createSubcomponent",value:function(e,t){var n=this;e.dataset.isComponentMounted=!0;var r=e.dataset,i=r.component,o=r.prop,a=r.opts?JSON.parse(r.opts):{},s=t[o]||{};a=f(f({},a),{},{container:e}),Array.isArray(s)?s.slice().reverse().forEach((function(e){n.addChild(e,i,a)})):this.addChild(s,i,a)}},{key:"_createAnalyticsHook",value:function(e){var t=this;e.dataset.isAnalyticsAttached=!0;var n=e.dataset,r=n.eventtype,i=n.eventlabel,o=n.middleclick,a=n.eventoptions?JSON.parse(n.eventoptions):{},s=function(e){if(0===e.button||o&&1===e.button){var n=new rr(r,i);n.addOptions(t._analyticsOptions),n.addOptions(a),t.analyticsReporter.report(n)}};br.on(e,"click",(function(e){s(e)})),br.on(e,"auxclick",(function(e){s(e)}))}},{key:"onCreate",value:function(e){}},{key:"onUpdate",value:function(e){}},{key:"beforeRender",value:function(e){}},{key:"afterRender",value:function(e){}},{key:"onMount",value:function(e){}},{key:"onUnMount",value:function(e){}},{key:"beforeMount",value:function(e){}},{key:"onDestroy",value:function(e){}}],[{key:"defaultTemplateName",value:function(e){return"default"}},{key:"type",get:function(){return"Component"}},{key:"areDuplicateNamesAllowed",value:function(){return!1}}])}(),qo=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(n(this,e),this._requester=new _o,this._environment=t.environment||"production",this._baseUrl=t.baseUrl||Oo(this._environment),this._endpoint=t.endpoint||null,this._apiKey=t.apiKey||null,this._version=t.version||20190101,this._params=t.params||{},!r)throw new Pt("Must include storage","ApiRequest");this._storage=r}),[{key:"get",value:function(e){return this._requester.get(this._baseUrl+this._endpoint,Object.assign({},this.baseParams(),this.sanitizeParams(this._params)),e)}},{key:"post",value:function(e){return this._requester.post(this._baseUrl+this._endpoint,this.baseParams(),this.sanitizeParams(this._params),e)}},{key:"baseParams",value:function(){var e={v:this._version,api_key:this._apiKey,jsLibVersion:"v2.1.1",sessionTrackingEnabled:this._storage.get(Nn).value},t=new kr(this._storage.getCurrentStateUrlMerged());return t.has("beta")&&(e.beta=t.get("beta")),e}},{key:"sanitizeParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).forEach((function(t){void 0!==e[t]&&null!==e[t]||delete e[t]})),e}}])}(),Uo=function(){return o((function e(t,r){var i=this;if(n(this,e),this.apiKey=t.apiKey,this.experienceKey=t.experienceKey,this.experienceVersion=t.experienceVersion||"config1.0",this.printVerbose=t.printVerbose,this.sendToServer=t.sendToServer,this.sendToServer&&!r)throw new Pt("Must include storage to send errors to server","ErrorReporter");this.storage=r,this.environment=t.environment,window.addEventListener("error",(function(e){return i.report(e.error)})),window.addEventListener("unhandledrejection",(function(e){return i.report(e.error)}))}),[{key:"report",value:function(e){if(e instanceof jt&&!e.reported){if(e.reported=!0,this.printError(e),this.sendToServer){var t={endpoint:"/v2/accounts/me/answers/errors",apiKey:this.apiKey,version:20190301,environment:this.environment,params:{libVersion:"v2.1.1",experienceVersion:this.experienceVersion,experienceKey:this.experienceKey,error:e.toJson()}};new qo(t,this.storage).get().catch(console.err)}return e}}},{key:"printError",value:function(e){this.printVerbose?console.error("error: ".concat(e.errorMessage,"\ncode: ").concat(e.errorCode,"\nboundary: ").concat(e.boundary,"\nstack: ").concat(e.stack)):console.error(e.toString())}}])}(),Vo=function(){return o((function e(){n(this,e)}),[{key:"report",value:function(e){console.error(e.toString())}}])}(),zo=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.limitForVertical=t.limit||20,this.universalLimit=t.universalLimit,this.autocompleteLimit=t.autocompleteLimit,this.verticalKey=t.verticalKey||null,this.defaultInitialSearch=t.defaultInitialSearch,this.validate(),Object.freeze(this)}),[{key:"validate",value:function(){if("number"!=typeof this.limitForVertical||this.limitForVertical<1||this.limitForVertical>50)throw new Nt("Search Limit must be between 1 and 50, inclusive","SearchConfig");"object"===k(this.universalLimit)&&null!==this.universalLimit&&Object.values(this.universalLimit).forEach((function(e){if("number"!=typeof e||e<1||e>50)throw new Nt("Universal limits must be between 1 and 50, inclusive","SearchConfig")}))}}])}(),Ho=function(){return o((function e(t){n(this,e),this._activeComponents=[],this._componentRegistry=t,this._componentIdCounter=0,this._core=null,this._renderer=null,this._analyticsReporter=null,this._componentTypeToComponentNames={},this._componentToModuleIdListener=new Map}),[{key:"setRenderer",value:function(e){return this._renderer=e,this}},{key:"setCore",value:function(e){return this._core=e,this}},{key:"setAnalyticsReporter",value:function(e){return this._analyticsReporter=e,this}},{key:"register",value:function(e){return this._componentRegistry[e.type]=e,this}},{key:"getSimilarComponents",value:function(e){var t=Object.keys(this._componentRegistry).filter((function(t){return t.startsWith(e.substring(0,2))}));return 0===t.length&&(t=Object.keys(this._componentRegistry)),t}},{key:"create",value:function(e,t){var n={core:this._core,renderer:this._renderer,analyticsReporter:this._analyticsReporter,componentManager:this,uniqueId:this._componentIdCounter};this._componentIdCounter++;var r=this._componentRegistry[e];if(!r)throw new Dt("Component type ".concat(e," is not recognized as a valid component.")+" You might have meant ".concat(this.getSimilarComponents(e).join(", "),"?"));if(!r.areDuplicateNamesAllowed()&&this._activeComponents.some((function(e){return e.name===t.name})))throw new Dt("Another component with name ".concat(t.name," already exists"),e);var i=f({isTwin:this._activeComponents.some((function(t){return t.constructor.type===e}))},t),o=new this._componentRegistry[e](i,n).init(i);if(this._activeComponents.push(o),this._componentTypeToComponentNames[e]||(this._componentTypeToComponentNames[e]=[]),this._componentTypeToComponentNames[e].push(o.name),this._core&&null!==this._core.storage){if(void 0===o.moduleId||null===o.moduleId)return o;var a={eventType:"update",storageKey:o.moduleId,callback:function(e){return o.setState(e)}};this._core.storage.registerListener(a),this._componentToModuleIdListener.set(o,a)}return o}},{key:"remove",value:function(e){this._core.storage.removeListener(this._componentToModuleIdListener.get(e));var t=this._activeComponents.findIndex((function(t){return t.uniqueId===e.uniqueId}));-1!==t&&this._activeComponents.splice(t,1)}},{key:"removeByName",value:function(e){var t=this._activeComponents.find((function(t){return t.name===e}));t.remove(),br.empty(t._container)}},{key:"getActiveComponent",value:function(e){return this._activeComponents.find((function(t){return t.constructor.type===e}))}},{key:"getActiveComponents",value:function(e){return this._activeComponents.filter((function(t){return t.constructor.type===e}))}},{key:"getComponentNamesForComponentTypes",value:function(e){var t=this;return e.reduce((function(e,n){return e.concat(t._componentTypeToComponentNames[n]||[])}),[])}},{key:"getNumActiveComponents",value:function(){return this._activeComponents.length}}])}(),Ko=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.label=t.label||null,this.url=t.url||null,this.verticalKey=t.verticalKey||null,this.hideInNavigation=t.hideInNavigation||!1,this.isFirst=t.isFirst||!1,this.isActive=t.isActive||!1,this.iconUrl=t.iconUrl,this.icon=t.icon,Object.freeze(this)}),[{key:"validate",value:function(){}}])}(),Go=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n(this,e),this.verticalPagesConfig=e.from(t)}),[{key:"get",value:function(){return this.verticalPagesConfig.map((function(e){return f({},e)}))}}],[{key:"from",value:function(e){return e.map((function(e){return new Ko(e)}))}}])}();function Zo(e){var t;try{t=JSON.parse(e)}catch(e){return!1}return!!t&&("object"===k(t)&&!Array.isArray(t))}var Qo=function(){return o((function e(){n(this,e)}),[{key:"create",value:function(e){switch(e){case tr.FILTER_COMPONENT:return{setQueryParams:!0,resetPagination:!0,useFacets:!0};case tr.PAGINATION:return{setQueryParams:!0,resetPagination:!1,useFacets:!0,sendQueryId:!0};case tr.QUERY_PARAMETER:case tr.INITIALIZE:return{setQueryParams:!0,resetPagination:!1,useFacets:!0};case tr.SUGGEST:return{setQueryParams:!0,resetPagination:!0,useFacets:!0};default:return{setQueryParams:!0,resetPagination:!0}}}}])}(),Wo=function(){return o((function e(t,r){var i=this;n(this,e),this.core=t,this.config=f({searchCooldown:300,verticalKey:void 0,allowEmptySearch:!0,defaultInitialSearch:void 0},r),this.middleware=[],this.searchOptionsFactory=new Qo,this.core.storage.registerListener({storageKey:xn,eventType:"update",callback:function(e){return i._handleQueryUpdate(e)}})}),[{key:"registerMiddleware",value:function(e){this.middleware.push(e)}},{key:"_handleQueryUpdate",value:function(e){null!==e?this._debouncedSearch(e):(this.config.defaultInitialSearch||""===this.config.defaultInitialSearch)&&(this.core.storage.set(Kn,tr.INITIALIZE),this.core.storage.set(xn,this.config.defaultInitialSearch))}},{key:"_debouncedSearch",value:function(e){var t=this;if(!this._throttled&&(e||this.config.allowEmptySearch||this.core.storage.get(Kn)===tr.FILTER_COMPONENT))return this._setSearchLoadingState(),this._throttled=!0,setTimeout((function(){t._throttled=!1}),this._searchCooldown),this._search(e)}},{key:"_setSearchLoadingState",value:function(){this.config.verticalKey?this.core.storage.set(vn,an.searchLoading()):this.core.storage.set(pn,sn.searchLoading()),this.core.storage.set(yn,cn.searchLoading())}},{key:"_search",value:function(e){var t=this,n=this.middleware.map((function(t){return t(e)})),r=this.core.storage.get(Kn);return Promise.all(n).then((function(){return t.config.verticalKey?t.core.verticalSearch(t.config.verticalKey,t.searchOptionsFactory.create(r),{input:e}):t.core.search(e,t.searchOptionsFactory.create(r))}))}}])}(),$o=function(){return o((function e(t,r){n(this,e),this._voiceIconWrapper=br.query(t,".yxt-SearchBar-voiceIconWrapper"),this._micFadeInAnimation=br.query(t,".js-yxt-SearchBar-micFadeIn"),this._micFadeOutAnimation=br.query(t,".js-yxt-SearchBar-micFadeOut"),this._activeCustomIconClass="yxt-SearchBar-CustomMicIcon--active",this._customMicIconUrl=r}),[{key:"applyActiveStyling",value:function(){this._customMicIconUrl?this._voiceIconWrapper.classList.add(this._activeCustomIconClass):this._micFadeInAnimation.beginElement()}},{key:"applyInactiveStyling",value:function(){this._customMicIconUrl?this._voiceIconWrapper.classList.remove(this._activeCustomIconClass):this._micFadeOutAnimation.beginElement()}}])}(),Yo=function(){return o((function e(t,r){n(this,e),this._voiceIconWrapper=br.query(t,".yxt-SearchBar-voiceIconWrapper"),this._dotsFadeInAnimations=br.queryAll(t,".js-yxt-SearchBar-dotsFadeIn"),this._dotsFadeOutAnimations=br.queryAll(t,".js-yxt-SearchBar-dotsFadeOut"),this._dotsListeningAnimations=br.queryAll(t,".js-yxt-SearchBar-dotsListening"),this._activeCustomIconClass="yxt-SearchBar-CustomListeningIcon--active",this._customListeningIconUrl=r,this._stopListeningAnimationTimeout=null}),[{key:"applyActiveStyling",value:function(){this._customListeningIconUrl?this._voiceIconWrapper.classList.add(this._activeCustomIconClass):(this._dotsFadeInAnimations.forEach((function(e){e.beginElement()})),this._stopListeningAnimationTimeout&&clearTimeout(this._stopListeningAnimationTimeout),this._dotsListeningAnimations.forEach((function(e){e.beginElement()})))}},{key:"applyInactiveStyling",value:function(){var e=this;this._customListeningIconUrl?this._voiceIconWrapper.classList.remove(this._activeCustomIconClass):(this._dotsFadeOutAnimations.forEach((function(e){e.beginElement()})),this._stopListeningAnimationTimeout&&clearTimeout(this._stopListeningAnimationTimeout),this._stopListeningAnimationTimeout=setTimeout((function(){e._dotsListeningAnimations.forEach((function(e){e.endElement()}))}),300))}}])}(),Jo=function(){return o((function e(t,r,i){n(this,e),this._startVoiceSearchText=r||"开始语音搜索",this._stopVoiceSearchText=i||"停止语音搜索",this._voiceSearchElement=br.query(t,".yxt-SearchBar-voiceSearch"),this._screenReaderTextElement=br.query(t,".yxt-SearchBar-voiceSearchText")}),[{key:"setStartListeningText",value:function(){this._screenReaderTextElement.innerText=this._startVoiceSearchText}},{key:"setStopListeningText",value:function(){this._screenReaderTextElement.innerText=this._stopVoiceSearchText}}])}(),Xo=A((function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,c=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=o.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,(n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}])&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),o=c(n(94)),a=c(n(95)),s=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(n[c]);if(void 0!==l)return l}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var h=this.satisfies(n[u]);if(void 0!==h)return h}}if(o>0){var d=Object.keys(i),f=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})})),ea=x(Xo);function ta(e,t,n){var r=e;return t&&(r+="-"+t),n&&(r+="-"+n),r.toLowerCase()}Xo.bowser;var na=A((function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="swal-button";t.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:r,CONFIRM_BUTTON:r+"--confirm",CANCEL_BUTTON:r+"--cancel",DANGER_BUTTON:r+"--danger",BUTTON_LOADING:r+"--loading",BUTTON_LOADER:r+"__loader"},t.default=t.CLASS_NAMES},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getNode=function(e){var t="."+e;return document.querySelector(t)},t.stringToNode=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild},t.insertAfter=function(e,t){var n=t.nextSibling;t.parentNode.insertBefore(e,n)},t.removeNode=function(e){e.parentElement.removeChild(e)},t.throwErr=function(e){throw"SweetAlert: "+(e=e.replace(/ +(?= )/g,"")).trim()},t.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},t.ordinalSuffixOf=function(e){var t=e%10,n=e%100;return 1===t&&11!==n?e+"st":2===t&&12!==n?e+"nd":3===t&&13!==n?e+"rd":e+"th"}},function(e,t,n){function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(25));var i=n(26);t.overlayMarkup=i.default,r(n(27)),r(n(28)),r(n(29));var o=n(0),a=o.default.MODAL_TITLE,s=o.default.MODAL_TEXT,c=o.default.ICON,l=o.default.FOOTER;t.iconMarkup='\n <div class="'+c+'"></div>',t.titleMarkup='\n <div class="'+a+'"></div>\n',t.textMarkup='\n <div class="'+s+'"></div>',t.footerMarkup='\n <div class="'+l+'"></div>\n'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.CONFIRM_KEY="confirm",t.CANCEL_KEY="cancel";var i={visible:!0,text:null,value:null,className:"",closeModal:!0},o=Object.assign({},i,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},i,{text:"OK",value:!0});t.defaultButtonList={cancel:o,confirm:a};var s=function(e){switch(e){case t.CONFIRM_KEY:return a;case t.CANCEL_KEY:return o;default:var n=e.charAt(0).toUpperCase()+e.slice(1);return Object.assign({},i,{text:n,value:e})}},c=function(e,t){var n=s(e);return!0===t?Object.assign({},n,{visible:!0}):"string"==typeof t?Object.assign({},n,{visible:!0,text:t}):r.isPlainObject(t)?Object.assign({visible:!0},n,t):Object.assign({},n,{visible:!1})},l=function(e){var n={};switch(e.length){case 1:n[t.CANCEL_KEY]=Object.assign({},o,{visible:!1});break;case 2:n[t.CANCEL_KEY]=c(t.CANCEL_KEY,e[0]),n[t.CONFIRM_KEY]=c(t.CONFIRM_KEY,e[1]);break;default:r.throwErr("Invalid number of 'buttons' in array ("+e.length+").\n If you want more than 2 buttons, you need to use an object!")}return n};t.getButtonListOpts=function(e){var n=t.defaultButtonList;return"string"==typeof e?n[t.CONFIRM_KEY]=c(t.CONFIRM_KEY,e):Array.isArray(e)?n=l(e):r.isPlainObject(e)?n=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],a=e[i],s=c(i,a);t[i]=s}return t.cancel||(t.cancel=o),t}(e):!0===e?n=l([!0,!0]):!1===e?n=l([!1,!1]):void 0===e&&(n=t.defaultButtonList),n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(2),o=n(0),a=o.default.MODAL,s=o.default.OVERLAY,c=n(30),l=n(31),u=n(32),h=n(33);t.injectElIntoModal=function(e){var t=r.getNode(a),n=r.stringToNode(e);return t.appendChild(n),n};var d=function(e,t){!function(e){e.className=a,e.textContent=""}(e);var n=t.className;n&&e.classList.add(n)};t.initModalContent=function(e){var t=r.getNode(a);d(t,e),c.default(e.icon),l.initTitle(e.title),l.initText(e.text),h.default(e.content),u.default(e.buttons,e.dangerMode)},t.default=function(){var e=r.getNode(s),t=r.stringToNode(i.modalMarkup);e.appendChild(t)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i={isOpen:!1,promise:null,actions:{},timer:null},o=Object.assign({},i);t.resetState=function(){o=Object.assign({},i)},t.setActionValue=function(e){if("string"==typeof e)return a(r.CONFIRM_KEY,e);for(var t in e)a(t,e[t])};var a=function(e,t){o.actions[e]||(o.actions[e]={}),Object.assign(o.actions[e],{value:t})};t.setActionOptionsFor=function(e,t){var n=(void 0===t?{}:t).closeModal,r=void 0===n||n;Object.assign(o.actions[e],{closeModal:r})},t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(0),a=o.default.OVERLAY,s=o.default.SHOW_MODAL,c=o.default.BUTTON,l=o.default.BUTTON_LOADING,u=n(5);t.openModal=function(){r.getNode(a).classList.add(s),u.default.isOpen=!0},t.onAction=function(e){void 0===e&&(e=i.CANCEL_KEY);var t=u.default.actions[e],n=t.value;if(!1===t.closeModal){var o=c+"--"+e;r.getNode(o).classList.add(l)}else r.getNode(a).classList.remove(s),u.default.isOpen=!1;u.default.promise.resolve(n)},t.getState=function(){var e=Object.assign({},u.default);return delete e.promise,delete e.timer,e},t.stopLoading=function(){for(var e=document.querySelectorAll("."+c),t=0;t<e.length;t++)e[t].classList.remove(l)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){e.exports=t.sweetAlert=n(9)}).call(t,n(7))},function(e,t,n){(function(t){e.exports=t.swal=n(10)}).call(t,n(7))},function(e,t,n){"undefined"!=typeof window&&n(11),n(16);var r=n(23).default;e.exports=r},function(e,t,n){var r=n(12);"string"==typeof r&&(r=[[e.i,r,""]]);var i={insertAt:"top",transform:void 0};n(14)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(13)(void 0)).push([e.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r);return[n].concat(r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}))).concat([i]).join("\n")}return[n].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=p[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],t))}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(u(r.parts[o],t));p[r.id]={id:r.id,refs:1,parts:a}}}}function i(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function o(e,t){var n=g(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=_[_.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),_.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=_.indexOf(e);t>=0&&_.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function c(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function u(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=y++;n=m||(m=s(t)),r=h.bind(null,n,l,!1),i=h.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=f.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=d.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function h(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=k(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=b(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},v=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}((function(e){return document.querySelector(e)})),m=null,y=0,_=[],b=n(15);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=v()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a];(c=p[s.id]).refs--,o.push(c)}for(e&&r(i(e,t),t),a=0;a<o.length;a++){var c;if(0===(c=o[a]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete p[c.id]}}}};var k=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){var r=n(17);"undefined"==typeof window||window.Promise||(window.Promise=r),n(21),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var i=0|t,o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;){if(function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(n[o],e))return!0;o++}return!1}}),"undefined"!=typeof window&&[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,n){(function(t){!function(n){function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,r)}else(1===e._state?a:s)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void u(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,c(e)}catch(t){s(e,t)}}function s(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,s(t,e))}))}catch(e){if(n)return;n=!0,s(t,e)}}var h=setTimeout;i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){function r(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){r(o,e)}),n)}t[o]=a,0==--i&&e(t)}catch(e){n(e)}}if(0===t.length)return e([]);for(var i=t.length,o=0;o<t.length;o++)r(o,t[o])}))},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},i._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){h(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==e&&e.exports?e.exports=i:n.Promise||(n.Promise=i)}(this)}).call(t,n(18).setImmediate)},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(19),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){function r(e){delete s[e]}function i(e){if(c)setTimeout(i,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{r(e),c=!1}}}}if(!e.setImmediate){var o,a=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick((function(){i(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&i(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),o=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){i(e.data)},o=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;o=function(t){var n=l.createElement("script");n.onreadystatechange=function(){i(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():o=function(e){setTimeout(i,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return s[a]=r,o(a),a++},u.clearImmediate=r}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(7),n(20))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(){p&&d&&(p=!1,d.length?f=d.concat(f):v=-1,f.length&&a())}function a(){if(!p){var e=i(o);p=!0;for(var t=f.length;t;){for(d=f,f=[];++v<t;)d&&d[v].run();v=-1,t=f.length}d=null,p=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,u,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var d,f=[],p=!1,v=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new s(e,t)),1!==f.length||p||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){n(22).polyfill()},function(e,t,n){function r(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var c=o[a],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(n[c]=i[c])}}return n}e.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(24),i=n(6),o=n(5),a=n(36),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if("undefined"!=typeof window){var n=a.getOpts.apply(void 0,e);return new Promise((function(e,t){o.default.promise={resolve:e,reject:t},r.default(n),setTimeout((function(){i.openModal()}))}))}};s.close=i.onAction,s.getState=i.getState,s.setActionValue=o.setActionValue,s.stopLoading=i.stopLoading,s.setDefaults=a.setDefaults,t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0).default.MODAL,o=n(4),a=n(34),s=n(35),c=n(1);t.init=function(e){r.getNode(i)||(document.body||c.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),a.default(),o.default()),o.initModalContent(e),s.default(e)},t.default=t.init},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.MODAL;t.modalMarkup='\n <div class="'+r+'" role="dialog" aria-modal="true"></div>',t.default=t.modalMarkup},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r='<div \n class="'+n(0).default.OVERLAY+'"\n tabIndex="-1">\n </div>';t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.ICON;t.errorIconMarkup=function(){var e=r+"--error",t=e+"__line";return'\n <div class="'+e+'__x-mark">\n <span class="'+t+" "+t+'--left"></span>\n <span class="'+t+" "+t+'--right"></span>\n </div>\n '},t.warningIconMarkup=function(){var e=r+"--warning";return'\n <span class="'+e+'__body">\n <span class="'+e+'__dot"></span>\n </span>\n '},t.successIconMarkup=function(){var e=r+"--success";return'\n <span class="'+e+"__line "+e+'__line--long"></span>\n <span class="'+e+"__line "+e+'__line--tip"></span>\n\n <div class="'+e+'__ring"></div>\n <div class="'+e+'__hide-corners"></div>\n '}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.CONTENT;t.contentMarkup='\n <div class="'+r+'">\n\n </div>\n'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.default.BUTTON_CONTAINER,o=r.default.BUTTON,a=r.default.BUTTON_LOADER;t.buttonMarkup='\n <div class="'+i+'">\n\n <button\n class="'+o+'"\n ></button>\n\n <div class="'+a+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(2),o=n(0),a=o.default.ICON,s=o.default.ICON_CUSTOM,c=["error","warning","success","info"],l={error:i.errorIconMarkup(),warning:i.warningIconMarkup(),success:i.successIconMarkup()};t.default=function(e){if(e){var t=r.injectElIntoModal(i.iconMarkup);c.includes(e)?function(e,t){var n=a+"--"+e;t.classList.add(n);var r=l[e];r&&(t.innerHTML=r)}(e,t):function(e,t){t.classList.add(s);var n=document.createElement("img");n.src=e,t.appendChild(n)}(e,t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(4),o=function(e){navigator.userAgent.includes("AppleWebKit")&&(e.style.display="none",e.offsetHeight,e.style.display="")};t.initTitle=function(e){if(e){var t=i.injectElIntoModal(r.titleMarkup);t.textContent=e,o(t)}},t.initText=function(e){if(e){var t=document.createDocumentFragment();e.split("\n").forEach((function(e,n,r){t.appendChild(document.createTextNode(e)),n<r.length-1&&t.appendChild(document.createElement("br"))}));var n=i.injectElIntoModal(r.textMarkup);n.appendChild(t),o(n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(4),o=n(0),a=o.default.BUTTON,s=o.default.DANGER_BUTTON,c=n(3),l=n(2),u=n(6),h=n(5),d=function(e,t,n){var i=t.text,o=t.value,d=t.className,f=t.closeModal,p=r.stringToNode(l.buttonMarkup),v=p.querySelector("."+a),g=a+"--"+e;v.classList.add(g),d&&(Array.isArray(d)?d:d.split(" ")).filter((function(e){return e.length>0})).forEach((function(e){v.classList.add(e)})),n&&e===c.CONFIRM_KEY&&v.classList.add(s),v.textContent=i;var m={};return m[e]=o,h.setActionValue(m),h.setActionOptionsFor(e,{closeModal:f}),v.addEventListener("click",(function(){return u.onAction(e)})),p};t.default=function(e,t){var n=i.injectElIntoModal(l.footerMarkup);for(var r in e){var o=e[r],a=d(r,o,t);o.visible&&n.appendChild(a)}0===n.children.length&&n.remove()}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(4),o=n(2),a=n(5),s=n(6),c=n(0).default.CONTENT,l=function(e){e.addEventListener("input",(function(e){var t=e.target.value;a.setActionValue(t)})),e.addEventListener("keyup",(function(e){if("Enter"===e.key)return s.onAction(r.CONFIRM_KEY)})),setTimeout((function(){e.focus(),a.setActionValue("")}),0)};t.default=function(e){if(e){var t=i.injectElIntoModal(o.contentMarkup),n=e.element,r=e.attributes;"string"==typeof n?function(e,t,n){var r=document.createElement(t),i=c+"__"+t;for(var o in r.classList.add(i),n){var a=n[o];r[o]=a}"input"===t&&l(r),e.appendChild(r)}(t,n,r):t.appendChild(n)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(2);t.default=function(){var e=r.stringToNode(i.overlayMarkup);document.body.appendChild(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(6),o=n(1),a=n(3),s=n(0),c=s.default.MODAL,l=s.default.BUTTON,u=s.default.OVERLAY,h=function(e){if(r.default.isOpen)switch(e.key){case"Escape":return i.onAction(a.CANCEL_KEY)}},d=function(e){if(r.default.isOpen)switch(e.key){case"Tab":return function(e){e.preventDefault(),p()}(e)}},f=function(e){if(r.default.isOpen)return"Tab"===e.key&&e.shiftKey?function(e){e.preventDefault(),v()}(e):void 0},p=function(){var e=o.getNode(l);e&&(e.tabIndex=0,e.focus())},v=function(){var e=o.getNode(c).querySelectorAll("."+l),t=e[e.length-1];t&&t.focus()},g=function(){var e=o.getNode(c).querySelectorAll("."+l);e.length&&(function(e){e[e.length-1].addEventListener("keydown",d)}(e),function(e){e[0].addEventListener("keydown",f)}(e))},m=function(e){if(o.getNode(u)===e.target)return i.onAction(a.CANCEL_KEY)};t.default=function(e){e.closeOnEsc?document.addEventListener("keyup",h):document.removeEventListener("keyup",h),e.dangerMode?p():v(),g(),function(e){var t=o.getNode(u);t.removeEventListener("click",m),e&&t.addEventListener("click",m)}(e.closeOnClickOutside),function(e){r.default.timer&&clearTimeout(r.default.timer),e&&(r.default.timer=window.setTimeout((function(){return i.onAction(a.CANCEL_KEY)}),e))}(e.timer)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),o=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:i.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},c=Object.assign({},s);t.setDefaults=function(e){c=Object.assign({},s,e)};var l=function(e){var t=e&&e.button,n=e&&e.buttons;return void 0!==t&&void 0!==n&&r.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==t?{confirm:t}:n},u=function(e){return r.ordinalSuffixOf(e+1)},h=function(e,t){r.throwErr(u(t)+" argument ('"+e+"') is invalid")},d=function(e,t){var n=e+1,i=t[n];r.isPlainObject(i)||void 0===i||r.throwErr("Expected "+u(n)+" argument ('"+i+"') to be a plain object")},f=function(e,t,n,i){var o=t instanceof Element;if("string"==typeof t){if(0===n)return{text:t};if(1===n)return{text:t,title:i[0]};if(2===n)return d(n,i),{icon:t};h(t,n)}else{if(o&&0===n)return d(n,i),{content:t};if(r.isPlainObject(t))return function(e,t){var n=e+1,i=t[n];void 0!==i&&r.throwErr("Unexpected "+u(n)+" argument ("+i+")")}(n,i),t;h(t,n)}};t.getOpts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};e.forEach((function(t,r){var i=f(0,t,r,e);Object.assign(n,i)}));var r=l(n);n.buttons=i.getButtonListOpts(r),delete n.button,n.content=o.getContentOpts(n.content);var u=Object.assign({},s,c,n);return Object.keys(u).forEach((function(e){a.DEPRECATED_OPTS[e]&&a.logDeprecation(e)})),u}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i={element:"input",attributes:{placeholder:""}};t.getContentOpts=function(e){return r.isPlainObject(e)?Object.assign({},e):e instanceof Element?{element:e}:"input"===e?i:null}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.logDeprecation=function(e){var n=t.DEPRECATED_OPTS[e],r=n.onlyRename,i=n.replacement,o=n.subOption,a=n.link,s='SweetAlert warning: "'+e+'" option has been '+(r?"renamed":"deprecated")+".";i&&(s+=" Please use"+(o?' "'+o+'" in ':" ")+'"'+i+'" instead.');var c="https://sweetalert.js.org";s+=a?" More details: "+c+a:" More details: "+c+"/guides/#upgrading-from-1x",console.warn(s)},t.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])})),ra=x(na);na.swal;var ia={closeOnClickOutside:!1,closeOnEsc:!1};function oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t||ia;ra(e,n).then((function(){br.query(".swal-overlay").remove()}))}var aa=function(){return o((function e(t){n(this,e);var r=window.SpeechRecognition||window.webkitSpeechRecognition;this._speechRecognition=new r,this._speechRecognition.interimResults=!0,this._speechRecognition.lang="Microsoft Edge"===ea.parse(navigator.userAgent).browser.name?function(e){var t=li(e),n=t.language,r=t.modifier,i=t.region;if(!r&&!i)return n;var o=ta(n,r,i);return mr.includes(o)?o:r?ta(n,r):n}(t):t,this._latestResult="",this._silenceThresholdTimeout=null,this._silenceThresholdToSearch=1e3,this._recognitionActive=!1,this._init()}),[{key:"_init",value:function(){var e=this;this._speechRecognition.addEventListener("start",(function(){e._recognitionActive=!0})),this._speechRecognition.addEventListener("end",(function(){e._recognitionActive=!1,e._onCompleteHandler&&e._onCompleteHandler(e._latestResult)})),this._speechRecognition.addEventListener("result",(function(t){e._handleResultEvent(t)})),this._speechRecognition.addEventListener("error",(function(t){e._handleErrorEvent(t)}))}},{key:"_handleResultEvent",value:function(e){var t=this;clearTimeout(this._silenceThresholdTimeout),this._silenceThresholdTimeout=setTimeout((function(){t.stop()}),this._silenceThresholdToSearch);var n=e.results[0][0].transcript,r=e.results[0].isFinal;n!==this._latestResult&&(this._onResultHandler&&this._onResultHandler(n),this._latestResult=n),r&&this.stop()}},{key:"_handleErrorEvent",value:function(e){if("service-not-allowed"===e.error){var t="暂无语音识别功能。";"Safari"===ea.parse(navigator.userAgent).browser.name&&(t+="\n注意事项:Safari 用户必须启用 Siri"),oa(t)}else console.warn(e);this._onError&&this._onError()}},{key:"start",value:function(){try{!this._recognitionActive&&this._speechRecognition.start()}catch(e){console.warn(e)}}},{key:"stop",value:function(){this._recognitionActive&&this._speechRecognition.stop()}},{key:"onError",value:function(e){this._onError=e}},{key:"onResult",value:function(e){this._onResultHandler=e}},{key:"onComplete",value:function(e){this._onCompleteHandler=e}}])}(),sa="not-listening",ca="listening",la=function(){return o((function e(t,r,i){n(this,e),this._state=sa,this._voiceSearchElement=br.query(t,".yxt-SearchBar-voiceSearch"),this._micIconStylist=new $o(t,r.customMicIconUrl),this._listeningIconStylist=new Yo(t,r.customListeningIconUrl),this._screenReaderTextController=new Jo(t,r.startText,r.stopText);var o=i.core.storage.get(Bn);this._speechRecognizer=new aa(o),this._searchComponent=i,this._autocompleteComponent=i._autocomplete,this._config=r,this._init()}),[{key:"_init",value:function(){this._config.customMicIconUrl&&this._micIconStylist.applyActiveStyling(),this._config.customListeningIconUrl&&this._listeningIconStylist.applyInactiveStyling(),this._screenReaderTextController.setStartListeningText(),this._speechRecognizer.onResult(this._handleResult.bind(this)),this._speechRecognizer.onComplete(this._handleComplete.bind(this)),this._speechRecognizer.onError(this._enterNotListeningState.bind(this))}},{key:"handleIconClick",value:function(){var e=this;return this._voiceSearchElement.blur(),this._state===sa?this._hasMicAccess().then((function(t){t?e._enterListeningState():oa("禁止使用麦克风")})):(this._state===ca&&this._enterNotListeningState(),Promise.resolve())}},{key:"_hasMicAccess",value:function(){return navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){return e.getTracks().forEach((function(e){return e.stop()})),!0})).catch((function(){return!1}))}},{key:"_enterListeningState",value:function(){this._state=ca,this._speechRecognizer.start(),this._setupSearchBarForListening(),this._listeningIconStylist.applyActiveStyling(),this._micIconStylist.applyInactiveStyling(),this._screenReaderTextController.setStopListeningText(),this._reportVoiceStart()}},{key:"_enterNotListeningState",value:function(){this._state=sa,this._speechRecognizer.stop(),this._micIconStylist.applyActiveStyling(),this._listeningIconStylist.applyInactiveStyling(),this._screenReaderTextController.setStartListeningText(),this._reportVoiceStop()}},{key:"_setupSearchBarForListening",value:function(){this._autocompleteComponent.updateQuery(""),this._autocompleteComponent.close(),this._searchComponent.hideClearButton(),this._autocompleteComponent.setIsVoiceSearchActive(!0)}},{key:"_handleResult",value:function(e){this._autocompleteComponent.updateQuery(e),this._autocompleteComponent.autoComplete(e)}},{key:"_handleComplete",value:function(){this._searchComponent.submitVoiceQuery(),this._autocompleteComponent.close(),this._autocompleteComponent.setIsVoiceSearchActive(!1),this._enterNotListeningState()}},{key:"_reportVoiceStart",value:function(){if(this._searchComponent.analyticsReporter){this._voiceSessionId=It();var e=rr.fromData({type:"VOICE_START",businessId:this._searchComponent.analyticsReporter._businessId,timestamp:(new Date).getTime(),voiceSessionId:this._voiceSessionId});this._searchComponent.analyticsReporter.report(e,{includeQueryId:!1})}}},{key:"_reportVoiceStop",value:function(){if(this._searchComponent.analyticsReporter){var e=rr.fromData({type:"VOICE_STOP",businessId:this._searchComponent.analyticsReporter._businessId,timestamp:(new Date).getTime(),voiceSessionId:this._voiceSessionId});this._searchComponent.analyticsReporter.report(e,{includeQueryId:!1})}}}])}();function ua(){if(!(window.SpeechRecognition||window.webkitSpeechRecognition)||!navigator.mediaDevices)return!1;var e=ea.parse(navigator.userAgent);if("desktop"===e.platform.type)return!0;var t=e.os.name,n=e.browser.name;return"Safari"===n&&"iOS"===t||"Chrome"===n&&"Android"===t||"Samsung Internet for Android"===n&&"Android"===t}var ha=function(){return o((function e(t){n(this,e),this.id=t}),[{key:"canEnter",value:function(e){return!0}},{key:"onEnter",value:function(e){}},{key:"onExit",value:function(e){}}])}(),da=function(){return o((function e(t,r,i){n(this,e),this._state=t,this._stateMap=r,this.transitions=i}),[{key:"updateState",value:function(e,t){var n=this._stateMap[this.transitions[this._state.id][e]];return n&&n!==this._state&&n.canEnter(t)&&(this._state.onExit(n),n.onEnter(this._state),this._state=n),this._state}}])}(),fa=function(e){function r(e,i){var o;return n(this,r),(o=t(this,r,[i]))._controller=e,o._loadingIconElement=br.query(o._controller.searchBarContainer,".js-yxt-SearchBar-LoadingIndicator"),o.inputEl=br.query(o._controller.searchBarContainer,o._controller.inputEl),o}return u(r,e),o(r,[{key:"onEnter",value:function(e){this._loadingIconElement.classList.remove("yxt-SearchBar-Icon--inactive")}},{key:"onExit",value:function(e){this.inputEl.blur(),this._loadingIconElement.classList.add("yxt-SearchBar-Icon--inactive")}}])}(ha),pa=function(e){function r(e,i,o){var a;return n(this,r),(a=t(this,r,[i]))._controller=e,a._useCustomIcon=o,o?a._searchIconElement=br.query(a._controller.searchBarContainer,".js-yxt-SearchBar-buttonImage"):(a._searchIconElement=br.query(a._controller.searchBarContainer,".js-yxt-AnimatedForward"),a.svgWrapper=br.query(a._searchIconElement,".Icon--yext_animated_forward")),a}return u(r,e),o(r,[{key:"canEnter",value:function(e){return!this._controller.iconIsFrozen}},{key:"onEnter",value:function(e){this._useCustomIcon?this._handleTransitionToCustom():this._handleTransitionToMagifyingGlass()}},{key:"_handleTransitionToMagifyingGlass",value:function(){this._searchIconElement.classList.remove("yxt-SearchBar-Icon--inactive"),this.svgWrapper.classList.remove("yxt-SearchBar-MagnifyingGlass--static")}},{key:"_handleTransitionToCustom",value:function(){this._searchIconElement.classList.remove("yxt-SearchBar-Icon--inactive")}},{key:"onExit",value:function(e){this._searchIconElement.classList.add("yxt-SearchBar-Icon--inactive")}}])}(ha),va=function(e){function r(e,i,o){var a;return n(this,r),(a=t(this,r,[i]))._controller=e,a._useCustomIcon=o,o?a._defaultIconElement=br.query(a._controller.searchBarContainer,".js-yxt-SearchBar-buttonImage"):(a._defaultIconElement=br.query(a._controller.searchBarContainer,".js-yxt-AnimatedReverse"),a.svgWrapper=br.query(a._defaultIconElement,".Icon--yext_animated_reverse")),a}return u(r,e),o(r,[{key:"canEnter",value:function(e){var t=!1;return e&&e.relatedTarget&&(t=this._controller.searchBarContainer.contains(e.relatedTarget)),!this._controller.iconIsFrozen&&!t}},{key:"onEnter",value:function(e){this._useCustomIcon?this._handleTransitionToCustom():this._handleTransitionToYext(e)}},{key:"_handleTransitionToYext",value:function(e){this._defaultIconElement.classList.remove("yxt-SearchBar-Icon--inactive"),e instanceof fa?this.svgWrapper.classList.add("yxt-SearchBar-Yext--static"):this.svgWrapper.classList.remove("yxt-SearchBar-Yext--static")}},{key:"_handleTransitionToCustom",value:function(){this._defaultIconElement.classList.remove("yxt-SearchBar-Icon--inactive")}},{key:"onExit",value:function(e){this._defaultIconElement.classList.add("yxt-SearchBar-Icon--inactive")}}])}(ha),ga="SEARCH_COMPLETE",ma="SUBMIT",ya="FOCUS",_a="FOCUS_OUT",ba="LOADING_ICON",ka="SEARCH_ICON",wa="DEFAULT_ICON",Sa=function(){return o((function e(t){n(this,e),this.iconIsFrozen=!1,this.inputEl=t.inputEl,this.searchBarContainer=t.searchBarContainer;var r=s(s(s({},ba,new fa(this,ba)),wa,new va(this,wa,t.useCustomIcon)),ka,new pa(this,ka,t.useCustomIcon)),i=s(s(s({},ba,s({},ga,wa)),wa,s(s({},ma,ba),ya,ka)),ka,s(s({},ma,ba),_a,wa)),o=t.isFocus?r[ka]:r[wa];this._fsm=new da(o,r,i)}),[{key:"handleEvent",value:function(e,t){this._fsm.updateState(e,t)}},{key:"setupLoadingIconEvents",value:function(e,t){var n=this;e.registerListener({eventType:"update",storageKey:t?vn:pn,callback:function(e){n.iconIsFrozen=!1,e.searchState===Rt.SEARCH_LOADING?n.handleEvent(ma):n.handleEvent(ga)}})}},{key:"setupAnimatedIconEvents",value:function(){for(var e=this,t=0,n=[".js-yext-submit",".js-yxt-SearchBar-clear"];t<n.length;t++){var r=n[t],i=br.query(this.searchBarContainer,r);i&&br.on(i,"mousedown",(function(){e.iconIsFrozen=!0,br.once(document,"mouseup",(function(){e.iconIsFrozen=!1}))}))}var o=br.query(this.searchBarContainer,this.inputEl);br.on(o,"focus",(function(){e.handleEvent(ya)})),br.on(this.searchBarContainer,"focusout",(function(t){e.handleEvent(_a,t)}))}}])}();function Ca(e,t){var n=document.createElement("a");n.href=e;var r,i=new kr(n.search),o=a(t.entries());try{for(o.s();!(r=o.n()).done;){var s=g(r.value,2),c=s[0],l=s[1];i.has(c)||i.set(c,l)}}catch(e){o.e(e)}finally{o.f()}return n.search=i.toString(),n.href}var xa=function(e){function r(){var e,i,o,a,s,c,l,u,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(u=t(this,r,[h,d]))._verticalKey=h.verticalKey||null,u._useForm=void 0===h.useForm||h.useForm,u._formEl=h.formSelector||"form",u._inputEl=h.inputEl||".js-yext-query",u.title=h.title,u.labelText=h.labelText||"进行搜索",u.submitText=h.submitText||"提交",u.clearText=h.clearText||"清除",u.submitIcon=h.submitIcon||null,u.promptHeader=h.promptHeader||null,u.autoFocus=!0===h.autoFocus,u.clearButton=void 0===h.clearButton||h.clearButton,u.autocompleteOnLoad=h.autocompleteOnLoad||!1,u.redirectUrl=h.redirectUrl||null,u.redirectUrlTarget=h.redirectUrlTarget||"_self",u._isTwin=h.isTwin,u._globalSearchConfig=u.core.storage.get(Fn)||{},u._defaultInitialSearch=u._globalSearchConfig.defaultInitialSearch,u.query=h.query||u.core.storage.get(xn),u.core.storage.registerListener({eventType:"update",storageKey:xn,callback:function(e){u.query=e,u.queryEl&&(u.queryEl.value=e),null!==e&&u._updateClearButtonVisibility(e)}}),u._searchCooldown=h.searchCooldown||300,u._promptForLocation=void 0===h.promptForLocation||Boolean(h.promptForLocation),u._showClearButton=u.clearButton&&u.query,u._allowEmptySearch=!!h.allowEmptySearch,u._autoCompleteName="".concat(u.name,".autocomplete"),u._geolocationOptions=f({enableHighAccuracy:!1,timeout:1e3,maximumAge:3e5},h.geolocationOptions),u._geolocationTimeoutAlert=f({enabled:!1,message:"我们无法确定你的位置"},h.geolocationTimeoutAlert),u.autocompleteContainerIdName="yxt-SearchBar-autocomplete--".concat(u.name),u.inputLabelIdName="yxt-SearchBar-inputLabel--".concat(u.name),u.inputIdName="yxt-SearchBar-input--".concat(u.name),u.customHooks={onClearSearch:h.customHooks&&h.customHooks.onClearSearch||function(){},onConductSearch:h.customHooks&&h.customHooks.onConductSearch||function(){}},u._autocompleteConfig={shouldHideOnEmptySearch:h.autocomplete&&h.autocomplete.shouldHideOnEmptySearch,onOpen:h.autocomplete&&h.autocomplete.onOpen,onClose:h.autocomplete&&h.autocomplete.onClose,customPrompts:h.autocomplete&&h.autocomplete.customPrompts,autocompleteContainerIdName:u.autocompleteContainerIdName,disabled:u._autocompleteDisabled},u._isTwin||u.initQueryUpdateListener(),u._showLoadingIndicator=(null===(e=h.loadingIndicator)||void 0===e?void 0:e.display)||!1,u._customLoadingIconUrl=(null===(i=h.loadingIndicator)||void 0===i?void 0:i.iconUrl)||null,u._voiceSearchConfig=h.voiceSearch||{},u._voiceSearchEnabled=null===(o=h.voiceSearch)||void 0===o?void 0:o.enabled,u._silenceThresholdToSearch=(null===(a=h.voiceSearch)||void 0===a?void 0:a.silenceThresholdToSearch)||1500,u._showVoiceSearch=u._voiceSearchEnabled&&ua(),u._customMicIconUrl=null===(s=h.voiceSearch)||void 0===s?void 0:s.customMicIconUrl,u._customListeningIconUrl=null===(c=h.voiceSearch)||void 0===c?void 0:c.customListeningIconUrl,u._autocompleteDisabled=!0===(null===(l=h.autocomplete)||void 0===l?void 0:l.disabled),u}return u(r,e),o(r,[{key:"initQueryUpdateListener",value:function(){var e=this,t=new Wo(this.core,{searchCooldown:this._searchCooldown,verticalKey:this._verticalKey,allowEmptySearch:this._allowEmptySearch,defaultInitialSearch:this._defaultInitialSearch});this.core.setQueryUpdateListener(t),this.core.queryUpdateListener.registerMiddleware((function(t){return e.promptForLocation(t)})),this.core.queryUpdateListener.registerMiddleware((function(t){return e.customHooks.onConductSearch(t)}))}},{key:"searchAfterAnswersOnReady",value:function(){null==this.query||this.redirectUrl||this.core.setQuery(this.query)}},{key:"onMount",value:function(){var e=this;if(this.queryEl=br.query(this._container,this._inputEl),!this.autoFocus||this.query||this.autocompleteOnLoad||this.focusInputElement(),this.initSearchBarIconController(),this.initSearch(this._formEl),this.initAutoComplete(this._inputEl),this._showVoiceSearch){this._voiceSearchController=new la(this._container,this._voiceSearchConfig,this);var t=br.query(this._container,".js-yxt-SearchBar-voiceSearch");br.on(t,"click",(function(){e._voiceSearchController.handleIconClick()}))}this.clearButton&&this.initClearButton(),this.autoFocus&&!this.query&&this.autocompleteOnLoad&&this.focusInputElement()}},{key:"initSearchBarIconController",value:function(){var e={useCustomIcon:this._config.customIconUrl||this.submitIcon,isFocus:this.autoFocus&&!this.query,searchBarContainer:this._container,inputEl:this._inputEl};this.searchBarIconController=new Sa(e),this._showLoadingIndicator&&this.searchBarIconController.setupLoadingIconEvents(this.core.storage,this._verticalKey),e.useCustomIcon||this.searchBarIconController.setupAnimatedIconEvents()}},{key:"remove",value:function(){this._autocomplete.remove(),y(r,"remove",this,3)([])}},{key:"initClearButton",value:function(){var e=this,t=this._getClearButton();this._showClearButton=this._showClearButton||this.query,this._showClearButton?t.classList.remove("yxt-SearchBar--hidden"):t.classList.add("yxt-SearchBar--hidden"),br.on(t,"click",(function(){e.customHooks.onClearSearch(),e.query="",e._showClearButton=!1,t.classList.add("yxt-SearchBar--hidden"),e.queryEl.value=e.query,e.core.storage.delete(In),e.core.triggerSearch(tr.SEARCH_BAR,e.query),e.focusInputElement()})),br.on(this.queryEl,"input",(function(t){var n=t.target.value;e.query=n,e._updateClearButtonVisibility(n)}))}},{key:"submitVoiceQuery",value:function(){var e=br.query(this._container,this._inputEl);this.onQuerySubmit(e,tr.VOICE_SEARCH)}},{key:"initSearch",value:function(e){var t=this;if(this._formEl=e,this._container.classList.add("yxt-SearchBar-wrapper"),this._useForm){var n=br.query(this._container,e);if(!n)throw new Error("Could not initialize SearchBar; Can not find {HTMLElement} `",this._formEl,"`.");br.on(n,"submit",(function(e){e.preventDefault();var r=n.querySelector(t._inputEl);t.onQuerySubmit(r)}))}else{var r=br.query(this._container,this._inputEl);if(!r)throw new Error("Could not initialize SearchBar; Can not find {HTMLElement} `",this._inputEl,"`.");br.on(r,"keydown",(function(e){"Enter"===e.key&&(e.preventDefault(),t.onQuerySubmit(r))}));var i=br.query(this._container,".js-yext-submit");br.on(i,"click",(function(e){e.preventDefault(),t.onQuerySubmit(r)}))}}},{key:"onQuerySubmit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tr.SEARCH_BAR,n=e.value;this.query=n;var r=new kr(this.core.storage.getCurrentStateUrlMerged());r.set("query",n);var i=this.core.storage.get(zn);if(i&&r.set(zn,i),"string"==typeof this.redirectUrl&&(this._allowEmptySearch||n)){var o=Ca(this.redirectUrl,r);return window.open(o,this.redirectUrlTarget)||(window.location.href=o),!1}return e.blur(),br.query(this._container,".js-yext-submit").blur(),this.core.storage.delete(In),this.core.triggerSearch(t,n),!1}},{key:"initAutoComplete",value:function(e){var t=this;this._inputEl=e,this._autocompleteDisabled||(this._autocomplete&&this._autocomplete.remove(),this._autocomplete=this.componentManager.create("AutoComplete",f(f({parentContainer:this._container,name:this._autoCompleteName,container:".yxt-SearchBar-autocomplete",autoFocus:this.autoFocus&&!this.autocompleteOnLoad,verticalKey:this._verticalKey,promptHeader:this.promptHeader,originalQuery:this.query,inputEl:e,listLabelIdName:this.inputLabelIdName},this._autocompleteConfig),{},{onSubmit:function(){if(t._useForm)br.trigger(br.query(t._container,t._formEl),"submit");else{var n=br.query(t._container,e);t.onQuerySubmit(n)}},onChange:function(){br.trigger(br.query(t._container,e),"input")},onMount:function(){t._autocomplete.updateAriaExpanded(br.query(t._container,e))}})),this._autocomplete.mount())}},{key:"promptForLocation",value:function(e){var t=this;return!this._autocompleteDisabled&&this._promptForLocation?this.fetchQueryIntents(e).then((function(e){return null==e?void 0:e.includes("NEAR_ME")})).then((function(e){if(e&&!t.core.storage.get(Tn))return new Promise((function(e,n){return navigator.geolocation.getCurrentPosition((function(n){t.core.storage.set(Tn,{lat:n.coords.latitude,lng:n.coords.longitude,radius:n.coords.accuracy}),e()}),(function(){e();var n=t._geolocationTimeoutAlert,r=n.enabled,i=n.message;r&&oa(i)}),t._geolocationOptions)}))})).catch((function(e){return console.warn("Unable to determine user's location.",e)})):Promise.resolve()}},{key:"fetchQueryIntents",value:function(e){var t=this.core.storage.get("".concat(mn,".").concat(this._autoCompleteName));if(t){var n=t.sections.flatMap((function(e){return e.results})).find((function(t){return t.value===e})),r=n?n.intents:t.inputIntents;return Promise.resolve(r)}return(this._verticalKey?this.core.autoCompleteVertical(e,this._autoCompleteName,this._verticalKey):this.core.autoCompleteUniversal(e,this._autoCompleteName)).then((function(e){var t;return null!==(t=null==e?void 0:e.inputIntents)&&void 0!==t?t:[]}))}},{key:"eventOptions",value:function(){var e=this.core.storage.get(An),t=Object.assign({},e&&{queryId:e},this._verticalKey&&{verticalKey:this._verticalKey});return JSON.stringify(t)}},{key:"setState",value:function(e){var t,n={complexContentsParams:{iconPrefix:this.name}},i={complexContentsParams:{iconPrefix:this.name}};return y(r,"setState",this,3)([Object.assign({title:this.title,inputIdName:this.inputIdName,labelText:this.labelText,inputLabelIdName:this.inputLabelIdName,submitIcon:this.submitIcon,searchBarContainerId:(null===(t=this._container)||void 0===t?void 0:t.id)||"",submitText:this.submitText,clearText:this.clearText,showClearButton:this._showClearButton,showLoadingIndicator:this._showLoadingIndicator,customMicIconUrl:this._customMicIconUrl,customLoadingIconUrl:this._customLoadingIconUrl,customListeningIconUrl:this._customListeningIconUrl,showVoiceSearch:this._showVoiceSearch,query:this.query||"",eventOptions:this.eventOptions(),iconId:this.name,forwardIconOpts:n,reverseIconOpts:i,autoFocus:this.autoFocus&&!this.query,useForm:this._useForm,autocompleteContainerIdName:this.autocompleteContainerIdName,autocompleteDisabled:this._autocompleteDisabled},e)])}},{key:"focusInputElement",value:function(){br.query(this._container,this._inputEl).focus()}},{key:"_getClearButton",value:function(){return br.query(this._container,".js-yxt-SearchBar-clear")}},{key:"hideClearButton",value:function(){this._showClearButton=!1,this._getClearButton().classList.add("yxt-SearchBar--hidden")}},{key:"showClearButton",value:function(){this._showClearButton=!0,this._getClearButton().classList.remove("yxt-SearchBar--hidden")}},{key:"_updateClearButtonVisibility",value:function(e){!this._showClearButton&&e.length>0?this.showClearButton():this._showClearButton&&0===e.length&&this.hideClearButton()}}],[{key:"type",get:function(){return"SearchBar"}},{key:"defaultTemplateName",value:function(){return"search/search"}}])}(Bo),Aa=function(){return o((function e(t,r){var i=this;n(this,e),this.core=t,this.config=f({searchCooldown:300,verticalKey:void 0,allowEmptySearch:!0,defaultInitialSearch:void 0},r),this.core.storage.registerListener({storageKey:pn,eventType:"update",callback:function(e){e.searchState===Rt.SEARCH_COMPLETE&&i._handleUniversalResultsUpdate(e)}}),this.core.storage.registerListener({storageKey:vn,eventType:"update",callback:function(e){if(e.searchState===Rt.SEARCH_COMPLETE){var t=e.searchCoreDocument?[e.searchCoreDocument]:[];i._handleVerticalResultsUpdate(t,dn)}}})}),[{key:"_handleUniversalResultsUpdate",value:function(e){var t=e.sections.map((function(e){return e.searchCoreDocument})).filter((function(e){return null!==e}));this._handleVerticalResultsUpdate(t,hn)}},{key:"_handleVerticalResultsUpdate",value:function(e,t){var n=this.core.storage.get(xn);e&&0!==e.length&&n?(this.core.storage.set(_n,Li.searchLoading()),this.core.generativeDirectAnswer(e,t)):this.core.storage.set(_n,new Li({}))}}])}();function Ea(e){return new kr(e)}function Oa(e,t){var n=[];t&&t.has("tabOrder")&&(n=t.get("tabOrder").split(","));var r,i=a(e);try{for(i.s();!(r=i.n()).done;){var o=r.value,s=o.verticalKey||o.url;n.includes(s)||(o.isFirst?n.unshift(s):n.push(s))}}catch(e){i.e(e)}finally{i.f()}return n}function Ma(e,t,n){var r,i=a(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.includes(o)||(n[o]&&n[o].isFirst?e.unshift(o):e.push(o))}}catch(e){i.e(e)}finally{i.f()}return e}function Ta(e,t,n){var r=Oa(e,Ea(n));return r&&t&&(r=Ma(t,r,e)),r}var La="COLLAPSE",Fa="INNERSCROLL",Ia=function(){function e(t){if(n(this,e),this.label=t.label,"string"!=typeof this.label)throw new Dt("label is a required configuration option for tab.","NavigationComponent");if(this.url=t.url,"string"!=typeof this.url)throw new Dt("url is a required configuration option for tab.","NavigationComponent");this.verticalKey=t.verticalKey||null,this.baseUrl=t.url,this.isFirst=t.isFirst||!1,this.isActive=t.isActive||!1}return o(e,null,[{key:"from",value:function(t){for(var n={},r=0;r<t.length;r++){var i=f({},t[r]);i.hideInNavigation||(i.verticalKey||n[i.url]||(i.verticalKey=i.url),n[i.verticalKey]=new e(i))}return n}}])}(),Ra=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),(e=t(this,r,[i,o])).overflowLabel=i.overflowLabel||"更多",e.overflowIcon=i.overflowIcon||"kabob",e.moduleId=fn,e._tabsConfig=i.verticalPages||e.core.storage.get(Dn).get(),e._tabs=Ia.from(e._tabsConfig),e._tabOrder=Oa(e._tabsConfig,Ea(e.core.storage.getCurrentStateUrlMerged())),e._navBreakpoints=[],e._mobileOverflowBehavior=i.mobileOverflowBehavior||La,e._ariaLabel=i.ariaLabel||"搜索页面导航",e.checkOutsideClick=e.checkOutsideClick.bind(e),e.checkMobileOverflowBehavior=e.checkMobileOverflowBehavior.bind(e);var a=function(){e.setState(e.core.storage.get(fn)||{})};return e.core.storage.registerListener({eventType:"update",storageKey:zn,callback:a}),e.core.storage.registerListener({eventType:"update",storageKey:Nn,callback:a}),e}return u(r,e),o(r,[{key:"onCreate",value:function(){br.on(window,"resize",this.checkMobileOverflowBehavior)}},{key:"onDestroy",value:function(){br.off(window,"resize",this.checkMobileOverflowBehavior)}},{key:"onMount",value:function(){this.shouldCollapse()&&(this._navBreakpoints=[],this.bindOverflowHandlers(),this.refitNav(),br.on(br.query(this._container,".yxt-Nav-more"),"click",this.toggleMoreDropdown.bind(this))),br.queryAll(this._container,"[data-originalurl]").forEach((function(e){var t=e.dataset.originalurl;t&&br.on(e,"click",(function(e){e.metaKey||e.ctrlKey||(e.preventDefault(),window.open(t,"_self"))}))}))}},{key:"setParentUrl",value:function(e){this._parentUrl=e,this.setState(this.core.storage.get(fn)||{})}},{key:"onUnMount",value:function(){this.unbindOverflowHandlers()}},{key:"bindOverflowHandlers",value:function(){br.on(window,"click",this.checkOutsideClick)}},{key:"unbindOverflowHandlers",value:function(){br.off(window,"click",this.checkOutsideClick)}},{key:"refitNav",value:function(){var e,t=br.query(this._container,".yxt-Nav-container"),n=br.query(this._container,".yxt-Nav-more"),r=br.query(this._container,".yxt-Nav-expanded"),i=br.query(this._container,".yxt-Nav-modal"),o=n.classList.contains("yxt-Nav-item--more")?t.offsetWidth:t.offsetWidth-n.offsetWidth,s=this._navBreakpoints.length,c=0,l=a(r.children);try{for(l.s();!(e=l.n()).done;){c+=e.value.offsetWidth}}catch(e){l.e(e)}finally{l.f()}if(c>o){this._navBreakpoints.push(c);var u=r.children.item(r.children.length-1);if(null===u)return;this._prepend(i,u),n.classList.contains("yxt-Nav-item--more")&&n.classList.remove("yxt-Nav-item--more")}else{if(s&&o>this._navBreakpoints[s-1]){var h=i.children.item(0);if(null===h)return;r.append(h),this._navBreakpoints.pop(),s--}0===i.children.length&&n.classList.add("yxt-Nav-item--more")}this.closeMoreDropdown(),(c>o||s>0&&o>this._navBreakpoints[s-1])&&this.refitNav()}},{key:"closeMoreDropdown",value:function(){br.query(this._container,".yxt-Nav-modal").classList.remove("is-active"),br.query(this._container,".yxt-Nav-more").setAttribute("aria-expanded",!1)}},{key:"openMoreDropdown",value:function(){br.query(this._container,".yxt-Nav-modal").classList.add("is-active"),br.query(this._container,".yxt-Nav-more").setAttribute("aria-expanded",!0)}},{key:"toggleMoreDropdown",value:function(){var e=br.query(this._container,".yxt-Nav-modal");e.classList.toggle("is-active"),br.query(this._container,".yxt-Nav-more").setAttribute("aria-expanded",e.classList.contains("is-active"))}},{key:"checkOutsideClick",value:function(e){this._closest(e.target,".yxt-Nav-container")||this.closeMoreDropdown()}},{key:"checkMobileOverflowBehavior",value:function(){this._checkMobileOverflowBehaviorTimer&&clearTimeout(this._checkMobileOverflowBehaviorTimer),this._checkMobileOverflowBehaviorTimer=setTimeout(this.setState.bind(this),100)}},{key:"setState",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==t.tabOrder&&(this._tabOrder=Ma(t.tabOrder,this._tabOrder,this._tabs));var n=Ea(this.core.storage.getCurrentStateUrlMerged());n.set("tabOrder",this._tabOrder);var i=this.core.storage.get(zn);i&&n.set(zn,i);var o=this.core.storage.get(Hn);void 0!==o&&n.set(Hn,o);for(var a=Fo(n,(function(t){return e.componentManager.getComponentNamesForComponentTypes(t)})),s=[],c=0;c<this._tabOrder.length;c++){var l=this._tabs[this._tabOrder[c]];void 0!==l&&(l.url=Lo(l.baseUrl,a),s.push(l))}if(this._parentUrl){var u=this._parentUrl.split("?")[0],h=document.createElement("a");s.forEach((function(e){e.originalUrl=e.url,h.href=e.url;var t=new kr(h.search),n=h.pathname.replace(/^\//,"");t.set("verticalUrl",n),e.url=u+"?"+t.toString(),e.target="_parent"}))}return y(r,"setState",this,3)([{tabs:s,overflowLabel:this.overflowLabel,overflowIcon:this.overflowIcon,showCollapse:this.shouldCollapse(),ariaLabel:this._ariaLabel}])}},{key:"_prepend",value:function(e,t){if(!e.hasOwnProperty("prepend")){var n=document.createDocumentFragment(),r=t instanceof Node;return n.appendChild(r?t:document.createTextNode(String(t))),void e.insertBefore(n,e.firstChild)}e.prepend(t)}},{key:"_closest",value:function(e,t){if(!e.hasOwnProperty("closest")){do{if(br.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}return e.closest(t)}},{key:"shouldCollapse",value:function(){switch(this._mobileOverflowBehavior){case La:return!0;case Fa:return(br.query(this._container,".yxt-Nav-container")||this._container).offsetWidth>767}}}],[{key:"type",get:function(){return"Navigation"}},{key:"defaultTemplateName",value:function(e){return"navigation/navigation"}}])}(Bo);function ja(e){var t={sectioned:!1,fields:[]};return void 0===e||(e.sectioned&&(t.sectioned=e.sectioned),t.fields=function(e){if(void 0===e)return[];return e.map((function(e){return f({fetchEntities:!1},e)}))}(e.fields)),t}var Pa=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,r),(e=t(this,r,[i,o]))._verticalKey=i.verticalKey||null,e._storeOnChange=i.storeOnChange||!1,e._formEl=i.formSelector||"form",e._inputEl=i.inputEl||".js-yext-query",e.title=i.title,e.searchText=i.searchText||"你对什么内容感兴趣?",e.promptHeader=i.promptHeader||null,e.autoFocus=!0===i.autoFocus,e.redirectUrl=i.redirectUrl||null,e.query=i.query||e.core.storage.get("".concat(xn,".").concat(e.name))||"",e.core.storage.registerListener({eventType:"update",storageKey:Qn,callback:function(t){var n=t.get("".concat(xn,".").concat(e.name))||"",r=t.get("".concat(bn,".").concat(e.name));r&&n?(e.query=n,e.filter=JSON.parse(r),e._saveFilterNodeToStorage()):e._removeFilterNode(),e.setState()}}),e.filter=i.filter||e.core.storage.get("".concat(bn,".").concat(e.name)),"string"==typeof e.filter)try{e.filter=JSON.parse(e.filter)}catch(e){}return e.query&&e.filter&&e._saveFilterNodeToStorage(),e.searchParameters=ja(i.searchParameters),e}return u(r,e),o(r,[{key:"onMount",value:function(){this.autoCompleteComponent&&this.autoCompleteComponent.remove(),this.initAutoComplete(this._inputEl),!0===this.autoFocus&&0===this.query.length&&br.query(this._container,this._inputEl).focus()}},{key:"_saveFilterNodeToStorage",value:function(){var e=this._buildFilterNode(this.query,this.filter);this.core.setStaticFilterNodes(this.name,e)}},{key:"_removeFilterNode",value:function(){this.query="",this.core.storage.setWithPersist("".concat(xn,".").concat(this.name),this.query),this.core.clearStaticFilterNode(this.name),this.setState()}},{key:"_buildFilterNode",value:function(e,t){var n=this;return dr.from({filter:t,metadata:{fieldName:this.title,displayValue:"".concat(e)},remove:function(){return n._removeFilterNode()}})}},{key:"initAutoComplete",value:function(e){var t=this;this._inputEl=e,this.autoCompleteComponent=this.componentManager.create("AutoComplete",{parentContainer:this._container,name:"".concat(this.name,".autocomplete"),isFilterSearch:!0,container:".yxt-SearchBar-autocomplete",promptHeader:this.promptHeader,originalQuery:this.query,inputEl:e,verticalKey:this._verticalKey,searchParameters:this.searchParameters,onSubmit:function(e,n){t.filter=Yt.fromResponse(n);var r=t._buildFilterNode(e,t.filter),i=new kr(t.core.storage.getCurrentStateUrlMerged());if(i.set("".concat(t.name,".query"),e),i.set("".concat(t.name,".filter"),n),"string"==typeof t.redirectUrl){var o=Ca(t.redirectUrl,i);return window.location.href=o,!1}t.query=e,t.core.storage.setWithPersist("".concat(xn,".").concat(t.name),t.query),t.core.storage.setWithPersist("".concat(bn,".").concat(t.name),r.getFilter()),t.core.setStaticFilterNodes(t.name,r),t.search(tr.FILTER_COMPONENT)},onMount:function(){t.autoCompleteComponent.updateAriaExpanded(br.query(t._container,e))}})}},{key:"search",value:function(e){this._storeOnChange||this.core.triggerSearch(e)}},{key:"setState",value:function(e){return y(r,"setState",this,3)([Object.assign({title:this.title,searchText:this.searchText,query:this.query},e)])}}],[{key:"type",get:function(){return Eo}},{key:"defaultTemplateName",value:function(){return"search/filtersearch"}}])}(Bo),Na=function(){function e(e,t,n,r,i){return e<t||n<t?e>n?n+1:e+1:r===i?t:t+1}return function(t,n){if(t===n)return 0;if(t.length>n.length){var r=t;t=n,n=r}for(var i=t.length,o=n.length;i>0&&t.charCodeAt(i-1)===n.charCodeAt(o-1);)i--,o--;for(var a=0;a<i&&t.charCodeAt(a)===n.charCodeAt(a);)a++;if(o-=a,0===(i-=a)||o<3)return o;var s,c,l,u,h,d,f,p,v,g,m,y,_=0,b=[];for(s=0;s<i;s++)b.push(s+1),b.push(t.charCodeAt(a+s));for(var k=b.length-1;_<o-3;)for(v=n.charCodeAt(a+(c=_)),g=n.charCodeAt(a+(l=_+1)),m=n.charCodeAt(a+(u=_+2)),y=n.charCodeAt(a+(h=_+3)),d=_+=4,s=0;s<k;s+=2)c=e(f=b[s],c,l,v,p=b[s+1]),l=e(c,l,u,g,p),u=e(l,u,h,m,p),d=e(u,h,d,y,p),b[s]=d,h=u,u=l,l=c,c=f;for(;_<o;)for(v=n.charCodeAt(a+(c=_)),d=++_,s=0;s<k;s+=2)f=b[s],b[s]=d=e(f,c,d,v,b[s+1]),c=f;return d}}();function Da(e,t){return function(e,t){if(e.includes(t))return!0;if(t.length<3)return!1;if(function(e,t){for(var n=[],r=0;r<=e.length-t.length;r++)n.push(e.substr(r,t.length));for(var i=t.length,o=0,a=n;o<a.length;o++){var s=a[o],c=Na(s,t);c<i&&(i=c)}return i}(e,t)<=1)return!0;return!1}(e.toLowerCase(),t.toLowerCase())}var Ba=9,qa=13,Ua=16,Va=17,za=18,Ha=27,Ka=37,Ga=39,Za=38,Qa=40,Wa=91,$a=92,Ya=93,Ja=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o])).isFilterSearch=i.isFilterSearch||!1,e._verticalKey=i.verticalKey||null,e._inputEl=i.inputEl||".js-yext-query",e._autocompleteEls=i.autoCompleteEls||".js-yext-autocomplete-option",e.moduleId="".concat(mn,".").concat(e.name),e._originalQuery=i.originalQuery||"",e._sectionIndex=0,e._resultIndex=-1,e.promptHeader=i.promptHeader||null,e._autoFocus=i.autoFocus||!1,e._onSubmit=i.onSubmit||function(){},e._onChange=i.onChange||function(){},e._searchParameters=i.searchParameters||null,e.listLabelIdName=i.listLabelIdName||"yxt-SearchBar-listLabel--SearchBar",e._shouldHideOnEmptySearch=i.shouldHideOnEmptySearch||!1,e._onOpen=i.onOpen||function(){},e._onClose=i.onClose||function(){},e._isOpen=!1,e._isVoiceSearchActive=!1,e.customPrompts=i.customPrompts,e._disabled=i.disabled||!1,e}return u(r,e),o(r,[{key:"setState",value:function(e){var t,n=br.query(this._parentContainer,this._inputEl),i=this._shouldHideOnEmptySearch&&!n.value,o=this._isOpen;if(i||!this.isQueryInputFocused()&&!this._isVoiceSearchActive?(this._isOpen=!1,this._sectionIndex=0,this._resultIndex=-1,e={}):this._isOpen=!0,this.customPrompts&&e.sections){var a=e.sections.find((function(e){return e.isCustom})),s=this.customPrompts.filter((function(e){return Da(e,n.value)}));if(!a&&s.length>0){var c=this.combineResultsWithCustomPrompts(e,s);return void this.core.storage.set("".concat(mn,".").concat(this.name),c)}}o&&!this._isOpen?this._onClose():!o&&this._isOpen&&this._onOpen(),this.updateAriaAttribute(),y(r,"setState",this,3)([Object.assign({},e,{hasResults:this.hasResults(e),isAlreadyOpen:this._isOpen&&o,sectionIndex:this._sectionIndex,resultIndex:this._resultIndex,promptHeader:0===this._originalQuery.length?this.promptHeader:null,listLabelIdName:this.listLabelIdName,autocompleteContainerIdName:"yxt-AutoComplete-container-".concat((null===(t=this._config.name)||void 0===t?void 0:t.replace(/\./g,"-"))||""),eventOptions:this.eventOptions(e)})])}},{key:"eventOptions",value:function(e){var t,n=null===(t=e.sections)||void 0===t?void 0:t.map((function(e){var t;return null===(t=e.results)||void 0===t?void 0:t.map((function(e){return{suggestedSearchText:e.value}}))}));return n}},{key:"updateAriaAttribute",value:function(){var e=br.query(this._parentContainer,this._inputEl);if(e.removeAttribute("aria-activedescendant"),this._sectionIndex>=0&&this._resultIndex>=0){var t="yxt-AutoComplete-option-".concat(this._config.name,"-").concat(this._sectionIndex,"-").concat(this._resultIndex);e.setAttribute("aria-activedescendant",t)}}},{key:"isQueryInputFocused",value:function(){return document.activeElement&&document.activeElement.getAttribute("class")&&document.activeElement.getAttribute("class").includes(this._inputEl.substring(1))}},{key:"updateState",value:function(){this.setState(this._state.get())}},{key:"onCreate",value:function(){var e=this,t=br.query(this._parentContainer,this._inputEl);if(!t)throw new Error("Could not initialize AutoComplete. Can not find {HTMLElement} `",this._inputEl,"`.");br.attributes(t,{autocomplete:"off",autocorrect:"off",spellcheck:"false"}),br.on(document,"click",(function(t){br.matches(t.target,".js-yxt-AutoComplete-wrapper *")||br.matches(t.target,e._inputEl)||e.close()})),br.on(t,"focus",(function(){e._sectionIndex=0,e._resultIndex=-1,e.autoComplete(t.value)})),br.on(t,"keydown",(function(n){e.handleNavigateResults(n.keyCode,n),e.handleSubmitResult(n.keyCode,t.value,n)})),this._autoFocus&&br.once(t,"click",(function(){e.autoComplete(t.value)})),br.delegate(this._container,".js-yext-autocomplete-option","click",(function(t,n){var r=n.dataset,i=r.short;e.updateQuery(i),e._onSubmit(i,r.filter),e.close()})),br.on(t,"keyup",(function(n){e.handleTyping(n.keyCode,t.value,n)}))}},{key:"close",value:function(){this.setState({}),this.reset()}},{key:"reset",value:function(){this._sectionIndex=0,this._resultIndex=-1,this.updateState()}},{key:"updateQuery",value:function(e){void 0===e&&(e=this._state.get("sections")[this._sectionIndex].results[this._resultIndex].shortValue);br.query(this._parentContainer,this._inputEl).value=e}},{key:"handleTyping",value:function(e,t,n){if(!([Qa,Za,Va,za,Ua,Ka,Ga,Wa,$a,qa,Ba,Ya].indexOf(e)>-1)){if(e===Ha)return this.updateQuery(this._originalQuery),void this.close();this._originalQuery=t,this.reset(),this.autoComplete(t)}}},{key:"setIsVoiceSearchActive",value:function(e){this._isVoiceSearchActive=e}},{key:"setCustomPrompts",value:function(e){this.customPrompts=e}},{key:"createSectionForCustomPrompts",value:function(e){var t=e.map((function(e){return gr.transformAutoCompleteResult({value:e})}));return{results:t,resultsCount:t.length,isCustom:!0}}},{key:"combineResultsWithCustomPrompts",value:function(e,t){var n=this.createSectionForCustomPrompts(t),r=e.sections.filter((function(e){return 0!==e.resultsCount}));return r.unshift(n),Object.assign({},e,{sections:r})}},{key:"autoComplete",value:function(e){this._disabled||(this.isFilterSearch?this.core.autoCompleteFilter(e,{namespace:this.name,verticalKey:this._verticalKey,searchParameters:this._searchParameters}):this._verticalKey?this.core.autoCompleteVertical(e,this.name,this._verticalKey):this.core.autoCompleteUniversal(e,this.name))}},{key:"hasResults",value:function(e){if(!e)return!1;var t=e.sections;if(!t)return!1;for(var n=0;n<t.length;n++){var r=t[n];if(r){var i=r.results;if(i&&i.length>0)return!0}}return!1}},{key:"handleNavigateResults",value:function(e,t){var n=this._state.get("sections");if(!(void 0===n||n.length<=0))if(e!==Ba){var r=n[this._sectionIndex].results;if(e===Za)return t.preventDefault(),this._resultIndex<=0?this._sectionIndex>0?(this._sectionIndex--,this._resultIndex=n[this._sectionIndex].results.length-1,this.updateQuery(),void this.updateState()):(this.updateQuery(this._originalQuery),void this.reset()):(this._resultIndex--,this.updateState(),void this.updateQuery());if(e===Qa){if(t.preventDefault(),this._resultIndex>=r.length-1)return this._sectionIndex<n.length-1&&(this._sectionIndex++,this._resultIndex=0),this.updateQuery(),void this.updateState();this._resultIndex++,this.updateQuery(),this.updateState()}}else this.close()}},{key:"handleSubmitResult",value:function(e,t,n){var r=this._state.get("sections");if(void 0===r||r.length<=0)this.isFilterSearch&&this.autoComplete(t);else if(e===qa){if(n.preventDefault(),this.isFilterSearch&&-1===this._resultIndex)return;var i="";this._sectionIndex>=0&&this._resultIndex>=0&&(i=JSON.stringify(r[this._sectionIndex].results[this._resultIndex].filter)),this.updateQuery(t),this._originalQuery=t,this._onSubmit(t,i),this.close()}else this._onChange()}},{key:"updateAriaExpanded",value:function(e){if(e){var t=this.getState("hasResults");e.getAttribute("aria-expanded")!==t&&e.setAttribute("aria-expanded",t)}}}],[{key:"type",get:function(){return"AutoComplete"}},{key:"defaultTemplateName",value:function(e){return"search/autocomplete"}}])}(Bo),Xa={suggestionHelpText:"你是指:"},es=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[f(f({},Xa),i),o])).moduleId=Rn,e}return u(r,e),o(r,[{key:"setState",value:function(e,t){return y(r,"setState",this,3)([Object.assign({},e,{shouldShow:void 0!==e.correctedQuery,correctedQueryUrl:this._buildRedirectQueryUrl(e.correctedQuery,e.type),helpText:this._getHelpText(e.type)},t)])}},{key:"_buildRedirectQueryUrl",value:function(e,t){if(void 0===e)return"";var n=new kr(this.core.storage.getCurrentStateUrlMerged());return n.set(xn,e.value),n.set(jn,!0),n.set(Kn,t.toLowerCase()),"?"+n.toString()}},{key:"_getHelpText",value:function(e){switch(e){case"SUGGEST":return this._config.suggestionHelpText;default:return""}}}],[{key:"type",get:function(){return"SpellCheck"}},{key:"defaultTemplateName",value:function(){return"search/spellcheck"}}])}(Bo),ts=A((function(e,t){var n="[object Arguments]",r="[object Map]",i="[object Object]",o="[object Set]",a=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[n]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[r]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[o]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof C&&C&&C.Object===Object&&C,u="object"==typeof self&&self&&self.Object===Object&&self,h=l||u||Function("return this")(),d=t&&!t.nodeType&&t,f=d&&e&&!e.nodeType&&e,p=f&&f.exports===d,v=p&&l.process,g=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),m=g&&g.isTypedArray;function y(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function b(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var k,w,S,x=Array.prototype,A=Function.prototype,E=Object.prototype,O=h["__core-js_shared__"],M=A.toString,T=E.hasOwnProperty,L=(k=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",F=E.toString,I=RegExp("^"+M.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=p?h.Buffer:void 0,j=h.Symbol,P=h.Uint8Array,N=E.propertyIsEnumerable,D=x.splice,B=j?j.toStringTag:void 0,q=Object.getOwnPropertySymbols,U=R?R.isBuffer:void 0,V=(w=Object.keys,S=Object,function(e){return w(S(e))}),z=me(h,"DataView"),H=me(h,"Map"),K=me(h,"Promise"),G=me(h,"Set"),Z=me(h,"WeakMap"),Q=me(Object,"create"),W=ke(z),$=ke(H),Y=ke(K),J=ke(G),X=ke(Z),ee=j?j.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new re(e);this.size=t.size}function se(e,t){var n=Ce(e),r=!n&&Se(e),i=!n&&!r&&xe(e),o=!n&&!r&&!i&&Te(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!T.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||be(l,c))||s.push(l);return s}function ce(e,t){for(var n=e.length;n--;)if(we(e[n][0],t))return n;return-1}function le(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=T.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var i=F.call(e);r&&(t?e[B]=n:delete e[B]);return i}(e):function(e){return F.call(e)}(e)}function ue(e){return Me(e)&&le(e)==n}function he(e,t,a,s,c){return e===t||(null==e||null==t||!Me(e)&&!Me(t)?e!=e&&t!=t:function(e,t,a,s,c,l){var u=Ce(e),h=Ce(t),d=u?"[object Array]":_e(e),f=h?"[object Array]":_e(t),p=(d=d==n?i:d)==i,v=(f=f==n?i:f)==i,g=d==f;if(g&&xe(e)){if(!xe(t))return!1;u=!0,p=!1}if(g&&!p)return l||(l=new ae),u||Te(e)?pe(e,t,a,s,c,l):function(e,t,n,i,a,s,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new P(e),new P(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return we(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var l=_;case o:var u=1&i;if(l||(l=b),e.size!=t.size&&!u)return!1;var h=c.get(e);if(h)return h==t;i|=2,c.set(e,t);var d=pe(l(e),l(t),i,a,s,c);return c.delete(e),d;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,d,a,s,c,l);if(!(1&a)){var m=p&&T.call(e,"__wrapped__"),y=v&&T.call(t,"__wrapped__");if(m||y){var k=m?e.value():e,w=y?t.value():t;return l||(l=new ae),c(k,w,a,s,l)}}if(!g)return!1;return l||(l=new ae),function(e,t,n,r,i,o){var a=1&n,s=ve(e),c=s.length,l=ve(t).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var h=s[u];if(!(a?h in t:T.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);var p=a;for(;++u<c;){h=s[u];var v=e[h],g=t[h];if(r)var m=a?r(g,v,h,t,e,o):r(v,g,h,e,t,o);if(!(void 0===m?v===g||i(v,g,n,r,o):m)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var y=e.constructor,_=t.constructor;y==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,a,s,c,l)}(e,t,a,s,he,c))}function de(e){return!(!Oe(e)||function(e){return!!L&&L in e}(e))&&(Ae(e)?I:a).test(ke(e))}function fe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||E,t!==r)return V(e);var t,n,r,i=[];for(var o in Object(e))T.call(e,o)&&"constructor"!=o&&i.push(o);return i}function pe(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,h=!0,d=2&n?new oe:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var f=e[u],p=t[u];if(r)var v=a?r(p,f,u,t,e,o):r(f,p,u,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(d){if(!y(t,(function(e,t){if(a=t,!d.has(a)&&(f===e||i(f,e,n,r,o)))return d.push(t);var a}))){h=!1;break}}else if(f!==p&&!i(f,p,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function ve(e){return function(e,t,n){var r=t(e);return Ce(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Le,ye)}function ge(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return de(n)?n:void 0}ne.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return T.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:T.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():D.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=ce(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return ce(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(H||re),string:new ne}},ie.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ge(this,e).get(e)},ie.prototype.has=function(e){return ge(this,e).has(e)},ie.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new re,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(r)}return n.set(e,t),this.size=n.size,this};var ye=q?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(q(e),(function(t){return N.call(e,t)})))}:function(){return[]},_e=le;function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||s.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function we(e,t){return e===t||e!=e&&t!=t}(z&&"[object DataView]"!=_e(new z(new ArrayBuffer(1)))||H&&_e(new H)!=r||K&&"[object Promise]"!=_e(K.resolve())||G&&_e(new G)!=o||Z&&"[object WeakMap]"!=_e(new Z))&&(_e=function(e){var t=le(e),n=t==i?e.constructor:void 0,a=n?ke(n):"";if(a)switch(a){case W:return"[object DataView]";case $:return r;case Y:return"[object Promise]";case J:return o;case X:return"[object WeakMap]"}return t});var Se=ue(function(){return arguments}())?ue:function(e){return Me(e)&&T.call(e,"callee")&&!N.call(e,"callee")},Ce=Array.isArray;var xe=U||function(){return!1};function Ae(e){if(!Oe(e))return!1;var t=le(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var Te=m?function(e){return function(t){return e(t)}}(m):function(e){return Me(e)&&Ee(e.length)&&!!c[le(e)]};function Le(e){return null!=(t=e)&&Ee(t.length)&&!Ae(t)?se(e):fe(e);var t}e.exports=function(e,t){return he(e,t)}})),ns={ipAccuracyHelpText:"根据你的互联网地址",deviceAccuracyHelpText:"根据你的设备",updateLocationButtonText:"更新你的位置"},rs=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[f(f({},ns),i),o])).core.storage.registerListener({storageKey:Pn,eventType:"update",callback:function(t){t.searchState===Rt.SEARCH_LOADING||ts(t,e.getState("locationBias"))||e.setState(t)}}),e._verticalKey=i.verticalKey||e.core.storage.get(Fn).verticalKey||null,e._updateLocationEl=i.updateLocationEl||".js-locationBias-update-location",e._locationDisplayName="",e._accuracy="",e._allowUpdate=!0,e._geolocationOptions=f({enableHighAccuracy:!1,timeout:6e3,maximumAge:3e5},i.geolocationOptions),e._geolocationTimeoutAlert=f({enabled:!1,message:"我们无法确定你的位置"},i.geolocationTimeoutAlert),e}return u(r,e),o(r,[{key:"onMount",value:function(){var e=this;this._allowUpdate&&(this._disableLocationUpdateIfGeolocationDenied(),br.on(this._updateLocationEl,"click",(function(t){"geolocation"in navigator&&navigator.geolocation.getCurrentPosition((function(t){e.core.storage.set(Tn,{lat:t.coords.latitude,lng:t.coords.longitude,radius:t.coords.accuracy}),e.core.triggerSearch()}),(function(t){return e._handleGeolocationError(t)}),e._geolocationOptions)})))}},{key:"_handleGeolocationError",value:function(e){1===e.code&&this._disableLocationUpdate();var t=this._geolocationTimeoutAlert,n=t.enabled,r=t.message;n&&oa(r)}},{key:"setState",value:function(e,t){return this._locationDisplayName=e.locationDisplayName,this._accuracy=e.accuracy,y(r,"setState",this,3)([Object.assign({},e,{locationDisplayName:this._getLocationDisplayName(e),accuracyText:this._getAccuracyHelpText(e.accuracy),isPreciseLocation:"DEVICE"===e.accuracy&&this._allowUpdate,isUnknownLocation:"UNKNOWN"===e.accuracy,shouldShow:void 0!==e.accuracy&&null!==e.accuracy,allowUpdate:this._allowUpdate,locationBias:e},t)])}},{key:"_getLocationDisplayName",value:function(e){return"UNKNOWN"===e.accuracy?"未知位置":e.locationDisplayName}},{key:"_getAccuracyHelpText",value:function(e){switch(e){case"IP":return this._config.ipAccuracyHelpText;case"DEVICE":return this._config.deviceAccuracyHelpText;default:return""}}},{key:"_disableLocationUpdateIfGeolocationDenied",value:function(){var e=this;"permissions"in navigator&&navigator.permissions.query({name:"geolocation"}).then((function(t){"denied"===t.state&&e._disableLocationUpdate()}))}},{key:"_disableLocationUpdate",value:function(){this.core.storage.delete(Tn),this._allowUpdate=!1,this.setState({locationDisplayName:this._locationDisplayName,accuracy:this._accuracy})}}],[{key:"type",get:function(){return"LocationBias"}},{key:"defaultTemplateName",value:function(){return"search/locationbias"}}])}(Bo),is=function(){return o((function e(t){n(this,e),this.title=t.title||"筛选条件",this.showCount=void 0===t.showCount||t.showCount,this.searchOnChange=t.searchOnChange||!1,this.resetFilter=t.resetFilter||!1,this.resetFilterLabel=t.resetFilterLabel||"重置",this.resetFilters=void 0===t.resetFilters?!t.searchOnChange:t.resetFilters,this.resetFiltersLabel=t.resetFiltersLabel||"全部重置",this.showMoreLimit=t.showMoreLimit||5,this.showMoreLabel=t.showMoreLabel||"显示更多内容",this.showLessLabel=t.showLessLabel||"显示较少内容",this.showMore=void 0===t.showMore||t.showMore,this.expand=void 0===t.expand||t.expand,this.showNumberApplied=void 0===t.showNumberApplied||t.showNumberApplied,this.applyLabel=t.applyLabel||"应用",this.applyButtonSelector=t.applyButtonSelector||".js-yext-filterbox-apply",this.filterConfigs=t.filters.filter((function(e){return e.options.length})),this.isDynamic=t.isDynamic||!1,this.validate()}),[{key:"validate",value:function(){}}])}(),os=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,r),(e=t(this,r,[i,o])).config=new is(i),!(i.filters&&i.filters instanceof Array))throw new Dt("FilterBox requires filters to be provided as an array","FilterBox");return e._filterComponents=[],e._filterNodes=[],e.config.filterConfigs.forEach((function(t){(void 0===t.showCount?!e.config.showCount:!t.showCount)&&t.options.forEach((function(e){e.countLabel=null}))})),e}return u(r,e),o(r,[{key:"setState",value:function(e){y(r,"setState",this,3)([Object.assign({},e,this.config,{showReset:this.config.resetFilters,resetLabel:this.config.resetFiltersLabel,showApplyButton:!this.config.searchOnChange})])}},{key:"onMount",value:function(){var e=this;this._filterComponents.length&&(this._filterComponents.forEach((function(e){return e.remove()})),this._filterComponents=[],this._filterNodes=[]);for(var t=function(t){var n=e.config.filterConfigs[t],r=e.componentManager.create(n.type,f(f(f({},e.config),{},{parentContainer:e._container,name:"".concat(e.name,".filter").concat(t),storeOnChange:!1,container:".js-yext-filterbox-filter".concat(t),showReset:e.config.resetFilter,resetLabel:e.config.resetFilterLabel,isDynamic:e.config.isDynamic},n),{},{showExpand:void 0===n.showExpand?e.config.expand:n.showExpand,onChange:function(r,i,o){var a=e.config.searchOnChange||i,s=e.config.searchOnChange&&!o;e.onFilterNodeChange(t,r,a,s),n.onChange&&n.onChange()}}));e.config.isDynamic&&"function"==typeof r.floatSelected&&r.floatSelected(),r.mount(),e._filterComponents.push(r),e._filterNodes[t]=r.getFilterNode()},n=0;n<this.config.filterConfigs.length;n++)t(n);if(this._saveFilterNodesToStorage(),!this.config.searchOnChange){var r=br.query(this._container,this.config.applyButtonSelector);r&&br.on(r,"click",(function(){e._saveFilterNodesToStorage(),e.core.triggerSearch(tr.FILTER_COMPONENT)}))}var i=br.query(this._container,".js-yxt-FilterBox-reset");i&&br.on(i,"click",this.resetFilters.bind(this))}},{key:"_getValidFilterNodes",value:function(){return this._filterNodes.filter((function(e){return e.getFilter().getFilterKey()}))}},{key:"resetFilters",value:function(){this._filterComponents.forEach((function(e){return e.clearOptions()}))}},{key:"onFilterNodeChange",value:function(e,t,n,r){this._filterNodes[e]=t,(n||r)&&this._saveFilterNodesToStorage(),r&&this.core.triggerSearch(tr.FILTER_COMPONENT)}},{key:"remove",value:function(){this._filterComponents.forEach((function(e){return e.remove()})),y(r,"remove",this,3)([])}},{key:"_saveFilterNodesToStorage",value:function(){if(this.config.isDynamic){var e=this.config.filterConfigs.map((function(e){return e.fieldId}));this.core.setFacetFilterNodes(e,this._getValidFilterNodes())}else this._filterComponents.forEach((function(e){return e.apply()}))}}],[{key:"type",get:function(){return bo}},{key:"defaultTemplateName",value:function(){return"filters/filterbox"}}])}(Bo);function as(e,t,n,r){return t=t||function(e){return e},n=n||function(e){return e},e.reduce((function(e,r,i){var o=t(r,i),a=n(r,i);return e[o]?e[o].push(a):e[o]=[a],e}),r||{})}function ss(e,t){if(!e||!e.getFilterKey())return{};var n=function e(t,n){var r=t[Vt]||t[zt];return r?r.flatMap((function(t){return e(Yt.from(t),n)})):Yt.from(t).getFilterKey()===n?[t]:[]}(e,t).filter((function(e){return e.isRangeFilter()}));return n.length<1?{}:n[0][t]}var cs=["singleoption","multioption"],ls={RADIUS_FILTER:"RADIUS_FILTER",STATIC_FILTER:"STATIC_FILTER"},us=function(){return o((function e(t,r){n(this,e),this.control=t.control,this.optionType=t.optionType||ls.STATIC_FILTER,this.initialOptions=t.options.map((function(e){return f({},e)})),this.options=t.options.map((function(e){return f({},e)})),this.label=t.label||"筛选条件",this.onChange=t.onChange||function(){},this.storeOnChange=void 0===t.storeOnChange||t.storeOnChange,this.showReset=t.showReset&&this.options.length>0,this.isDynamic=t.isDynamic,this.resetLabel=t.resetLabel||"重置",this.showMoreLimit=t.showMoreLimit||5,this.showMoreLabel=t.showMoreLabel||"显示更多内容",this.showLessLabel=t.showLessLabel||"显示较少内容",this.showMore=void 0===t.showMore||t.showMore,this.showMore=this.showMore&&this.options.length>this.showMoreLimit,this.showExpand=void 0===t.showExpand||t.showExpand,this.showNumberApplied=void 0===t.showNumberApplied||t.showNumberApplied,this.optionSelector=t.optionSelector||".js-yext-filter-option",this.placeholderText=t.placeholderText||"在此处搜索……",this.searchable=t.searchable||!1,this.searchLabelText=t.searchLabelText||"搜索筛选选项",this.validate();var i=r.persistedFilter,o=r.persistedLocationRadius;if(!this.isDynamic){var a=o||0===o;this.optionType===ls.STATIC_FILTER&&i?this.options=this.getPersistedStaticFilterOptions(this.options,i):this.optionType===ls.RADIUS_FILTER&&a&&(this.options=this.getPersistedLocationRadiusOptions(this.options,o))}}),[{key:"getPersistedStaticFilterOptions",value:function(e,t){return e.map((function(e){var n=function e(t,n){var r=n[Vt]||n[zt];return r?!!r.find((function(n){return e(t,Yt.from(n))})):ts(t,n)}(Yt.equal(e.field,e.value),t);return f(f({},e),{},{selected:n})}))}},{key:"getPersistedLocationRadiusOptions",value:function(e,t){return e.map((function(e){var n=e.value===t;return f(f({},e),{},{selected:n})}))}},{key:"getInitialSelectedCount",value:function(){return this.options.reduce((function(e,t){return t.selected?e+1:e}),0)}},{key:"validate",value:function(){if(!this.control||!cs.includes(this.control))throw new Dt('FilterOptions requires a valid "control" to be provided',"FilterOptions");if(!(this.optionType in ls)){var e=Object.values(ls).join(", ");throw new Dt("Invalid optionType ".concat(this.optionType," passed to FilterOptions. Expected one of ").concat(e),"FilterOptions")}if(this.optionType===ls.RADIUS_FILTER&&"singleoption"!==this.control)throw new Dt("FilterOptions of optionType ".concat(ls.RADIUS_FILTER,' requires control "singleoption"'),"FilterOptions");if(!this.options)throw new Dt("FilterOptions component requires options to be provided","FilterOptions");if("singleoption"===this.control&&this.options.filter((function(e){return e.selected})).length>1)throw new Dt('FilterOptions component with "singleoption" control cannot have multiple selected options',"FilterOptions")}}])}(),hs=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o]))._initVariables(i),e.config.storeOnChange&&e.apply(),e.config.isDynamic||e._registerBackNavigationListener(),e}return u(r,e),o(r,[{key:"_initVariables",value:function(e){var t={persistedFilter:this.core.storage.get(kn),persistedLocationRadius:this.core.storage.get(Cn)};this.config=new us(e,t);var n=this.config.getInitialSelectedCount();this.expanded=!this.config.showExpand||n>0,this.showMoreState=this.config.showMore}},{key:"_registerBackNavigationListener",value:function(){var e=this;this.core.storage.registerListener({eventType:"update",storageKey:Qn,callback:function(){e._initVariables(e._config),e.updateListeners(!0,!0),e.setState()}})}},{key:"setState",value:function(e){var t=this._getSelectedCount();y(r,"setState",this,3)([Object.assign({},e,f(f({name:this.name.toLowerCase()},this.config),{},{showMoreState:this.showMoreState,displayReset:this.config.showReset&&t>0,expanded:this.expanded,selectedCount:t,isSingleOption:"singleoption"===this.config.control}))])}},{key:"onMount",value:function(){var e=this;br.delegate(br.query(this._container,".yxt-FilterOptions-options"),this.config.optionSelector,"click",(function(t){var n=br.query(e._container,".js-yxt-FilterOptions-selectedCount");n&&(n.innerText=e._getSelectedCount()),e._updateOption(parseInt(t.target.dataset.index),t.target.checked)}));var t=br.query(this._container,".js-yxt-FilterOptions-reset");if(t&&br.on(t,"click",this.clearOptions.bind(this)),this.config.showMore){var n=br.query(this._container,".js-yxt-FilterOptions-showLess"),r=br.query(this._container,".js-yxt-FilterOptions-showMore"),i=br.queryAll(this._container,".js-yxt-FilterOptions-aboveShowMoreLimit");br.on(n,"click",(function(){e.showMoreState=!0,n.classList.add("hidden"),r.classList.remove("hidden");var t,o=a(i);try{for(o.s();!(t=o.n()).done;){t.value.classList.add("hidden")}}catch(e){o.e(e)}finally{o.f()}})),br.on(r,"click",(function(){e.showMoreState=!1,n.classList.remove("hidden"),r.classList.add("hidden");var t,o=a(i);try{for(o.s();!(t=o.n()).done;){t.value.classList.remove("hidden")}}catch(e){o.e(e)}finally{o.f()}}))}if(this.config.searchable){var o=br.query(this._container,".js-yxt-FilterOptions-clearSearch"),s=br.query(this._container,".js-yxt-FilterOptions-filter"),c=br.queryAll(this._container,".js-yxt-FilterOptions-option"),l=br.query(this._container,".js-yxt-FilterOptions-container");o&&s&&br.on(o,"click",(function(e){s.value="",br.trigger(s,"input"),s.focus()})),br.on(s,"input",(function(t){var n=t.target.value;n?(l.classList.add("yxt-FilterOptions-container--searching"),o.classList.remove("js-hidden")):(l.classList.remove("yxt-FilterOptions-container--searching"),o.classList.add("js-hidden"));var r,i=a(c);try{var s=function(){var t=r.value,i=br.query(t,".js-yxt-FilterOptions-optionLabel--name"),o=i.textContent||i.innerText||"";if(o=o.trim(),n){var a=e._getMatchedSubstring(o.toLowerCase(),n.toLowerCase());if(a){t.classList.add("displaySearch"),t.classList.remove("hiddenSearch");var s=new Xt({value:o,matchedSubstrings:[a]}).getElements();i.textContent="",s.forEach((function(e){return i.append(e)}))}else t.classList.add("hiddenSearch"),t.classList.remove("displaySearch"),i.textContent=o}else t.classList.remove("hiddenSearch"),t.classList.remove("displaySearch"),i.textContent=o};for(i.s();!(r=i.n()).done;)s()}catch(e){i.e(e)}finally{i.f()}}))}if(this.config.showExpand){var u=br.query(this._container,".yxt-FilterOptions-clickableLegend");br.on(u,"mousedown",(function(t){0===t.button&&(e.expanded=!e.expanded,e.setState())})),br.on(u,"keydown",(function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),e.expanded=!e.expanded,e.setState())}))}}},{key:"_getSelectedCount",value:function(){return this.config.options.filter((function(e){return e.selected})).length}},{key:"_toggleReset",value:function(){var e=br.query(this._container,".js-yxt-FilterOptions-reset");this._getSelectedCount()>0?e.classList.remove("js-hidden"):e.classList.contains("js-hidden")||e.classList.add("js-hidden")}},{key:"_getMatchedSubstring",value:function(e,t){var n=this._getOffset(e,t);if(n>-1)return{length:t.length,offset:n};if(t.length>3){for(var r=[],i=0;i<=e.length-t.length;i++)r.push(e.substr(i,t.length));for(var o=t.length,a=t,s=0,c=r;s<c.length;s++){var l=c[s],u=this._calcLevenshteinDistance(l,t);u<o&&(o=u,a=l)}if(o<=1&&(n=this._getOffset(e,a))>-1)return{length:t.length,offset:n}}}},{key:"_calcLevenshteinDistance",value:function(e,t){return Na(e,t)}},{key:"_getOffset",value:function(e,t){return e&&t?e.indexOf(t):-1}},{key:"clearOptions",value:function(){this.config.options=this.config.options.map((function(e){return Object.assign({},e,{selected:!1})})),this.updateListeners(),this.setState()}},{key:"updateListeners",value:function(e,t){var n=this.getFilterNode();this.config.storeOnChange&&this.apply(),this.config.onChange(n,e,t)}},{key:"_updateOption",value:function(e,t){"singleoption"===this.config.control&&(this.config.options=this.config.options.map((function(e){return Object.assign({},e,{selected:!1})}))),this.config.options[e]=Object.assign({},this.config.options[e],{selected:t}),this.config.showReset&&this._toggleReset(),this.updateListeners()}},{key:"apply",value:function(){switch(this.config.optionType){case ls.RADIUS_FILTER:this.core.setLocationRadiusFilterNode(this.getLocationRadiusFilterNode());break;case ls.STATIC_FILTER:this.core.setStaticFilterNodes(this.name,this.getFilterNode());break;default:throw new Dt("Unknown optionType ".concat(this.config.optionType),"FilterOptions")}}},{key:"floatSelected",value:function(){this.config.options=this.config.options.sort((function(e,t){return t.selected-e.selected}))}},{key:"_buildFilter",value:function(e){return e.filter?e.filter:Yt.equal(e.field,e.value)}},{key:"_getFilterType",value:function(){return this.config.isDynamic?ar:"RADIUS_FILTER"===this.config.optionType?sr:or}},{key:"_buildFilterMetadata",value:function(e){return new cr({fieldName:this.config.label,displayValue:e.label,filterType:this._getFilterType()})}},{key:"getLocationRadiusFilterNode",value:function(){var e=this,t=this.config.options.find((function(e){return e.selected}));if(!t)return dr.from();var n={metadata:this._buildFilterMetadata(t),filter:{value:t.value},remove:function(){return e._clearSingleOption(t)}};return dr.from(n)}},{key:"_clearSingleOption",value:function(e){e.selected=!1,this.updateListeners(!0,!0),this.setState()}},{key:"getFilterNode",value:function(){for(var e=this,t=as(this.config.options.filter((function(e){return e.selected})).map((function(t){return dr.from({filter:e._buildFilter(t),metadata:e._buildFilterMetadata(t),remove:function(){return e._clearSingleOption(t)}})})),(function(e){return e.getFilter().getFilterKey()})),n=[],r=0,i=Object.values(t);r<i.length;r++){var o=i[r];n.push(dr.or.apply(dr,_(o)))}return dr.and.apply(dr,n)}}],[{key:"type",get:function(){return ko}},{key:"defaultTemplateName",value:function(e){return"controls/filteroptions"}}])}(Bo),ds={minPlaceholderText:"下限",maxPlaceholderText:"上限"},fs=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[f(f({},ds),i),o]))._field=i.field,e._onChange=i.onChange||function(){},e._storeOnChange=void 0===i.storeOnChange||i.storeOnChange,e._title=i.title,e._minLabel=i.minLabel||null,e._maxLabel=i.maxLabel||null,e.seedFromPersistedFilter(),e.core.storage.registerListener({storageKey:Qn,eventType:"update",callback:function(){e.seedFromPersistedFilter(),e.setState()}}),e}return u(r,e),o(r,[{key:"seedFromPersistedFilter",value:function(){if(this.core.storage.has(kn)){var e=ss(this.core.storage.get(kn),this._field),t=e[Qt],n=e[Gt];this._range={min:t,max:n}}else this._range={min:[this._config.initialMin,0].find((function(e){return void 0!==e})),max:[this._config.initialMax,10].find((function(e){return void 0!==e}))};if(null!=this._range.min||null!=this._range.max){var r=this.getFilterNode();this.core.setStaticFilterNodes(this.name,r)}}},{key:"setState",value:function(e){y(r,"setState",this,3)([Object.assign({},e,{name:this.name,title:this._title,minLabel:this._minLabel,maxLabel:this._maxLabel,minValue:this._range.min,maxValue:this._range.max})])}},{key:"onCreate",value:function(){var e=this;br.delegate(this._container,".js-yext-range","change",(function(t){e._updateRange(t.target.dataset.key,Number.parseInt(t.target.value))}))}},{key:"setMin",value:function(e){this._updateRange("min",e)}},{key:"setMax",value:function(e){this._updateRange("max",e)}},{key:"_removeFilterNode",value:function(){this._range={min:null,max:null},this.setState(),this._onChange(dr.from()),this.core.clearStaticFilterNode(this.name),this.core.storage.delete("".concat(this.name,".min")),this.core.storage.delete("".concat(this.name,".max"))}},{key:"getFilterNode",value:function(){var e=this;return dr.from({filter:this._buildFilter(),metadata:this._buildFilterMetadata(),remove:function(){return e._removeFilterNode()}})}},{key:"_updateRange",value:function(e,t){this._range=Object.assign({},this._range,s({},e,t)),this.setState();var n=this.getFilterNode();this._storeOnChange&&this.core.setStaticFilterNodes(this.name,n),this._onChange(n)}},{key:"_buildFilter",value:function(){var e=this._range,t=e.min,n=e.max,r=!n&&0!==n,i=!t&&0!==t?null:parseInt(t),o=r?null:parseInt(n);return Yt.range(this._field,i,o,!1)}},{key:"_buildFilterMetadata",value:function(){var e,t=this._range,n=t.min,r=t.max,i=!n&&0!==n,o=!r&&0!==r;return i&&o?new cr({fieldName:this._title}):(e=o?"≥ ".concat(n):i?"≤ ".concat(r):n===r?n:"".concat(n," - ").concat(r),new cr({fieldName:this._title,displayValue:e}))}}],[{key:"type",get:function(){return wo}},{key:"defaultTemplateName",value:function(){return"controls/range"}}])}(Bo),ps=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o]))._field=i.field,e._title=i.title,e._minLabel=i.minLabel||null,e._maxLabel=i.maxLabel||null,e._onChange=i.onChange||function(){},e._storeOnChange=void 0===i.storeOnChange||i.storeOnChange,e._isExclusive=i.isExclusive,e.seedFromPersistedFilter(),e.core.storage.registerListener({storageKey:Qn,eventType:"update",callback:function(){e.seedFromPersistedFilter(),e.setState()}}),e}return u(r,e),o(r,[{key:"seedFromPersistedFilter",value:function(){if(this.core.storage.has(kn)){var e,t,n=ss(this.core.storage.get(kn),this._field);this._isExclusive?(e=n[Zt],t=n[Kt]):(e=n[Qt],t=n[Gt]),this._date={min:e,max:t}}else{var r=new Date,i="".concat(r.getFullYear(),"-").concat("".concat(r.getMonth()+1).padStart(2,"0"),"-").concat("".concat(r.getDate()).padStart(2,"0"));this._date={min:[this._config.initialMin,i].find((function(e){return void 0!==e})),max:[this._config.initialMax,i].find((function(e){return void 0!==e}))}}if(null!=this._date.min||null!=this._date.max){var o=this.getFilterNode();this.core.setStaticFilterNodes(this.name,o)}}},{key:"setState",value:function(e){y(r,"setState",this,3)([Object.assign({},e,{name:this.name,title:this._title,minLabel:this._minLabel,maxLabel:this._maxLabel,dateMin:this._date.min,dateMax:this._date.max})])}},{key:"onCreate",value:function(){var e=this;br.delegate(this._container,".js-yext-date","change",(function(t){e._updateRange(t.target.dataset.key,t.target.value)}))}},{key:"setMin",value:function(e){this._updateRange("min",e)}},{key:"setMax",value:function(e){this._updateRange("max",e)}},{key:"_removeFilterNode",value:function(){this._date={min:null,max:null},this.setState(),this._onChange(dr.from()),this.core.clearStaticFilterNode(this.name),this.core.storage.delete("".concat(this.name,".min")),this.core.storage.delete("".concat(this.name,".max"))}},{key:"getFilterNode",value:function(){var e=this;return dr.from({filter:this._buildFilter(),metadata:this._buildFilterMetadata(),remove:function(){return e._removeFilterNode()}})}},{key:"_updateRange",value:function(e,t){this._date=Object.assign({},this._date,s({},e,t)),this.setState();var n=this.getFilterNode();this._storeOnChange&&this.core.setStaticFilterNodes(this.name,n),this.core.storage.setWithPersist("".concat(this.name,".min"),this._date.min),this.core.storage.setWithPersist("".concat(this.name,".max"),this._date.max),this._onChange(n)}},{key:"_buildFilter",value:function(){return Yt.range(this._field,this._date.min,this._date.max,this._isExclusive)}},{key:"_buildFilterMetadata",value:function(){var e,t=this._date,n=t.min,r=t.max;return n||r?(e=r?n?n===r?this._isExclusive?"":n:ANSWERS.processTranslation("[[start]] 至 [[end]]",{start:n,end:r}):this._isExclusive?ANSWERS.processTranslation("[[date]]之前",{date:r}):ANSWERS.processTranslation("[[date]]及之前",{date:r}):this._isExclusive?ANSWERS.processTranslation("[[date]]之后",{date:n}):ANSWERS.processTranslation("[[date]]或之后",{date:n}),new cr({fieldName:this._title,displayValue:e})):new cr({fieldName:this._title})}}],[{key:"defaultTemplateName",value:function(){return"controls/date"}},{key:"type",get:function(){return So}}])}(Bo);var vs=function(){this.__data__=[],this.size=0};var gs=function(e,t){return e===t||e!=e&&t!=t};var ms=function(e,t){for(var n=e.length;n--;)if(gs(e[n][0],t))return n;return-1},ys=Array.prototype.splice;var _s=function(e){var t=this.__data__,n=ms(t,e);return!(n<0)&&(n==t.length-1?t.pop():ys.call(t,n,1),--this.size,!0)};var bs=function(e){var t=this.__data__,n=ms(t,e);return n<0?void 0:t[n][1]};var ks=function(e){return ms(this.__data__,e)>-1};var ws=function(e,t){var n=this.__data__,r=ms(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ss(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ss.prototype.clear=vs,Ss.prototype.delete=_s,Ss.prototype.get=bs,Ss.prototype.has=ks,Ss.prototype.set=ws;var Cs=Ss;var xs=function(){this.__data__=new Cs,this.size=0};var As=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Es=function(e){return this.__data__.get(e)};var Os=function(e){return this.__data__.has(e)},Ms="object"==typeof C&&C&&C.Object===Object&&C,Ts="object"==typeof self&&self&&self.Object===Object&&self,Ls=Ms||Ts||Function("return this")(),Fs=Ls.Symbol,Is=Object.prototype,Rs=Is.hasOwnProperty,js=Is.toString,Ps=Fs?Fs.toStringTag:void 0;var Ns=function(e){var t=Rs.call(e,Ps),n=e[Ps];try{e[Ps]=void 0;var r=!0}catch(e){}var i=js.call(e);return r&&(t?e[Ps]=n:delete e[Ps]),i},Ds=Object.prototype.toString;var Bs=function(e){return Ds.call(e)},qs=Fs?Fs.toStringTag:void 0;var Us=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qs&&qs in Object(e)?Ns(e):Bs(e)};var Vs=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var zs,Hs=function(e){if(!Vs(e))return!1;var t=Us(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ks=Ls["__core-js_shared__"],Gs=(zs=/[^.]+$/.exec(Ks&&Ks.keys&&Ks.keys.IE_PROTO||""))?"Symbol(src)_1."+zs:"";var Zs=function(e){return!!Gs&&Gs in e},Qs=Function.prototype.toString;var Ws=function(e){if(null!=e){try{return Qs.call(e)}catch(e){}try{return e+""}catch(e){}}return""},$s=/^\[object .+?Constructor\]$/,Ys=Function.prototype,Js=Object.prototype,Xs=Ys.toString,ec=Js.hasOwnProperty,tc=RegExp("^"+Xs.call(ec).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var nc=function(e){return!(!Vs(e)||Zs(e))&&(Hs(e)?tc:$s).test(Ws(e))};var rc=function(e,t){return null==e?void 0:e[t]};var ic=function(e,t){var n=rc(e,t);return nc(n)?n:void 0},oc=ic(Ls,"Map"),ac=ic(Object,"create");var sc=function(){this.__data__=ac?ac(null):{},this.size=0};var cc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},lc=Object.prototype.hasOwnProperty;var uc=function(e){var t=this.__data__;if(ac){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return lc.call(t,e)?t[e]:void 0},hc=Object.prototype.hasOwnProperty;var dc=function(e){var t=this.__data__;return ac?void 0!==t[e]:hc.call(t,e)};var fc=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ac&&void 0===t?"__lodash_hash_undefined__":t,this};function pc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pc.prototype.clear=sc,pc.prototype.delete=cc,pc.prototype.get=uc,pc.prototype.has=dc,pc.prototype.set=fc;var vc=pc;var gc=function(){this.size=0,this.__data__={hash:new vc,map:new(oc||Cs),string:new vc}};var mc=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var yc=function(e,t){var n=e.__data__;return mc(t)?n["string"==typeof t?"string":"hash"]:n.map};var _c=function(e){var t=yc(this,e).delete(e);return this.size-=t?1:0,t};var bc=function(e){return yc(this,e).get(e)};var kc=function(e){return yc(this,e).has(e)};var wc=function(e,t){var n=yc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Sc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sc.prototype.clear=gc,Sc.prototype.delete=_c,Sc.prototype.get=bc,Sc.prototype.has=kc,Sc.prototype.set=wc;var Cc=Sc;var xc=function(e,t){var n=this.__data__;if(n instanceof Cs){var r=n.__data__;if(!oc||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cc(r)}return n.set(e,t),this.size=n.size,this};function Ac(e){var t=this.__data__=new Cs(e);this.size=t.size}Ac.prototype.clear=xs,Ac.prototype.delete=As,Ac.prototype.get=Es,Ac.prototype.has=Os,Ac.prototype.set=xc;var Ec=Ac;var Oc=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Mc=function(){try{var e=ic(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Tc=function(e,t,n){"__proto__"==t&&Mc?Mc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Lc=Object.prototype.hasOwnProperty;var Fc=function(e,t,n){var r=e[t];Lc.call(e,t)&&gs(r,n)&&(void 0!==n||t in e)||Tc(e,t,n)};var Ic=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Tc(n,s,c):Fc(n,s,c)}return n};var Rc=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var jc=function(e){return null!=e&&"object"==typeof e};var Pc=function(e){return jc(e)&&"[object Arguments]"==Us(e)},Nc=Object.prototype,Dc=Nc.hasOwnProperty,Bc=Nc.propertyIsEnumerable,qc=Pc(function(){return arguments}())?Pc:function(e){return jc(e)&&Dc.call(e,"callee")&&!Bc.call(e,"callee")},Uc=Array.isArray;var Vc=function(){return!1},zc=A((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?Ls.Buffer:void 0,o=(i?i.isBuffer:void 0)||Vc;e.exports=o})),Hc=/^(?:0|[1-9]\d*)$/;var Kc=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Hc.test(e))&&e>-1&&e%1==0&&e<t};var Gc=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Zc={};Zc["[object Float32Array]"]=Zc["[object Float64Array]"]=Zc["[object Int8Array]"]=Zc["[object Int16Array]"]=Zc["[object Int32Array]"]=Zc["[object Uint8Array]"]=Zc["[object Uint8ClampedArray]"]=Zc["[object Uint16Array]"]=Zc["[object Uint32Array]"]=!0,Zc["[object Arguments]"]=Zc["[object Array]"]=Zc["[object ArrayBuffer]"]=Zc["[object Boolean]"]=Zc["[object DataView]"]=Zc["[object Date]"]=Zc["[object Error]"]=Zc["[object Function]"]=Zc["[object Map]"]=Zc["[object Number]"]=Zc["[object Object]"]=Zc["[object RegExp]"]=Zc["[object Set]"]=Zc["[object String]"]=Zc["[object WeakMap]"]=!1;var Qc=function(e){return jc(e)&&Gc(e.length)&&!!Zc[Us(e)]};var Wc=function(e){return function(t){return e(t)}},$c=A((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&Ms.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Yc=$c&&$c.isTypedArray,Jc=Yc?Wc(Yc):Qc,Xc=Object.prototype.hasOwnProperty;var el=function(e,t){var n=Uc(e),r=!n&&qc(e),i=!n&&!r&&zc(e),o=!n&&!r&&!i&&Jc(e),a=n||r||i||o,s=a?Rc(e.length,String):[],c=s.length;for(var l in e)!t&&!Xc.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Kc(l,c))||s.push(l);return s},tl=Object.prototype;var nl=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tl)};var rl=function(e,t){return function(n){return e(t(n))}},il=rl(Object.keys,Object),ol=Object.prototype.hasOwnProperty;var al=function(e){if(!nl(e))return il(e);var t=[];for(var n in Object(e))ol.call(e,n)&&"constructor"!=n&&t.push(n);return t};var sl=function(e){return null!=e&&Gc(e.length)&&!Hs(e)};var cl=function(e){return sl(e)?el(e):al(e)};var ll=function(e,t){return e&&Ic(t,cl(t),e)};var ul=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},hl=Object.prototype.hasOwnProperty;var dl=function(e){if(!Vs(e))return ul(e);var t=nl(e),n=[];for(var r in e)("constructor"!=r||!t&&hl.call(e,r))&&n.push(r);return n};var fl=function(e){return sl(e)?el(e,!0):dl(e)};var pl=function(e,t){return e&&Ic(t,fl(t),e)},vl=A((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?Ls.Buffer:void 0,o=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}}));var gl=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var ml=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var yl=function(){return[]},_l=Object.prototype.propertyIsEnumerable,bl=Object.getOwnPropertySymbols,kl=bl?function(e){return null==e?[]:(e=Object(e),ml(bl(e),(function(t){return _l.call(e,t)})))}:yl;var wl=function(e,t){return Ic(e,kl(e),t)};var Sl=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Cl=rl(Object.getPrototypeOf,Object),xl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Sl(t,kl(e)),e=Cl(e);return t}:yl;var Al=function(e,t){return Ic(e,xl(e),t)};var El=function(e,t,n){var r=t(e);return Uc(e)?r:Sl(r,n(e))};var Ol=function(e){return El(e,cl,kl)};var Ml=function(e){return El(e,fl,xl)},Tl=ic(Ls,"DataView"),Ll=ic(Ls,"Promise"),Fl=ic(Ls,"Set"),Il=ic(Ls,"WeakMap"),Rl=Ws(Tl),jl=Ws(oc),Pl=Ws(Ll),Nl=Ws(Fl),Dl=Ws(Il),Bl=Us;(Tl&&"[object DataView]"!=Bl(new Tl(new ArrayBuffer(1)))||oc&&"[object Map]"!=Bl(new oc)||Ll&&"[object Promise]"!=Bl(Ll.resolve())||Fl&&"[object Set]"!=Bl(new Fl)||Il&&"[object WeakMap]"!=Bl(new Il))&&(Bl=function(e){var t=Us(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ws(n):"";if(r)switch(r){case Rl:return"[object DataView]";case jl:return"[object Map]";case Pl:return"[object Promise]";case Nl:return"[object Set]";case Dl:return"[object WeakMap]"}return t});var ql=Bl,Ul=Object.prototype.hasOwnProperty;var Vl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ul.call(e,"index")&&(n.index=e.index,n.input=e.input),n},zl=Ls.Uint8Array;var Hl=function(e){var t=new e.constructor(e.byteLength);return new zl(t).set(new zl(e)),t};var Kl=function(e,t){var n=t?Hl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Gl=/\w*$/;var Zl=function(e){var t=new e.constructor(e.source,Gl.exec(e));return t.lastIndex=e.lastIndex,t},Ql=Fs?Fs.prototype:void 0,Wl=Ql?Ql.valueOf:void 0;var $l=function(e){return Wl?Object(Wl.call(e)):{}};var Yl=function(e,t){var n=t?Hl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Jl=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Hl(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Kl(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Yl(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Zl(e);case"[object Set]":return new r;case"[object Symbol]":return $l(e)}},Xl=Object.create,eu=function(){function e(){}return function(t){if(!Vs(t))return{};if(Xl)return Xl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var tu=function(e){return"function"!=typeof e.constructor||nl(e)?{}:eu(Cl(e))};var nu=function(e){return jc(e)&&"[object Map]"==ql(e)},ru=$c&&$c.isMap,iu=ru?Wc(ru):nu;var ou=function(e){return jc(e)&&"[object Set]"==ql(e)},au=$c&&$c.isSet,su=au?Wc(au):ou,cu={};cu["[object Arguments]"]=cu["[object Array]"]=cu["[object ArrayBuffer]"]=cu["[object DataView]"]=cu["[object Boolean]"]=cu["[object Date]"]=cu["[object Float32Array]"]=cu["[object Float64Array]"]=cu["[object Int8Array]"]=cu["[object Int16Array]"]=cu["[object Int32Array]"]=cu["[object Map]"]=cu["[object Number]"]=cu["[object Object]"]=cu["[object RegExp]"]=cu["[object Set]"]=cu["[object String]"]=cu["[object Symbol]"]=cu["[object Uint8Array]"]=cu["[object Uint8ClampedArray]"]=cu["[object Uint16Array]"]=cu["[object Uint32Array]"]=!0,cu["[object Error]"]=cu["[object Function]"]=cu["[object WeakMap]"]=!1;var lu=function e(t,n,r,i,o,a){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!Vs(t))return t;var h=Uc(t);if(h){if(s=Vl(t),!c)return gl(t,s)}else{var d=ql(t),f="[object Function]"==d||"[object GeneratorFunction]"==d;if(zc(t))return vl(t,c);if("[object Object]"==d||"[object Arguments]"==d||f&&!o){if(s=l||f?{}:tu(t),!c)return l?Al(t,pl(s,t)):wl(t,ll(s,t))}else{if(!cu[d])return o?t:{};s=Jl(t,d,c)}}a||(a=new Ec);var p=a.get(t);if(p)return p;a.set(t,s),su(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):iu(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var v=h?void 0:(u?l?Ml:Ol:l?fl:cl)(t);return Oc(v||t,(function(i,o){v&&(i=t[o=i]),Fc(s,o,e(i,n,r,o,t,a))})),s};var uu=function(e){return lu(e,5)},hu=function(){return o((function e(t){n(this,e),this.title=t.title||"筛选条件",this.showCount=void 0===t.showCount||t.showCount,this.searchOnChange=t.searchOnChange||!1,this.resetFacet=t.resetFacet||!1,this.resetFacetLabel=t.resetFacetLabel||"重置",this.resetFacets=t.resetFacets,this.resetFacetsLabel=t.resetFacetsLabel||"全部重置",this.showMoreLimit=t.showMoreLimit||5,this.showMoreLabel=t.showMoreLabel||"显示更多内容",this.showLessLabel=t.showLessLabel||"显示较少内容",this.showMore=void 0===t.showMore||t.showMore,this.expand=void 0===t.expand||t.expand,this.showNumberApplied=void 0===t.showNumberApplied||t.showNumberApplied,this.applyLabel=t.applyLabel||"应用",this.fieldControls=t.fieldControls||{},this.placeholderText=t.placeholderText||"在此处搜索……",this.searchable=t.searchable||!1,this.searchLabelText=t.searchLabelText||"搜索筛选选项",this.fields=t.fields||{},this.applyButtonSelector=t.applyButtonSelector||null,this.transformFacets=t.transformFacets,this.validate()}),[{key:"validate",value:function(){}}])}(),du=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o])).config=new hu(i),e._applyButtonSelector=i.applyButtonSelector||null,e.moduleId=Mn,e._filterbox=null,e._transformFacets=i.transformFacets,e}return u(r,e),o(r,[{key:"setState",value:function(e){var t=e.filters||[];if(this._transformFacets){var n=uu(t);t=this._transformFacets(n,this.config)}return t=t.map(this._applyDefaultFormatting),y(r,"setState",this,3)([f(f({},e),{},{filters:ir.fromCore(t),filterOptionsConfigs:this._getFilterOptionsConfigs(t),isNoResults:e.resultsContext===on})])}},{key:"_getFilterOptionsConfigs",value:function(e){return e.reduce((function(e,t){var n=Object.assign({},t);return n.options&&delete n.options,e[t.fieldId]=n,e}),{})}},{key:"_applyDefaultFormatting",value:function(e){return function(e){var t=e.options&&e.options[0]||{};return!0===t.value||!1===t.value}(e)?r._transformBooleanFacet(e):e}},{key:"remove",value:function(){this._filterbox&&this._filterbox.remove(),y(r,"remove",this,3)([])}},{key:"onMount",value:function(){var e=this;this.core.enableDynamicFilters(),this._filterbox&&(this._filterbox.remove(),this._filterbox=null);var t=this._state.get(),n=t.filters,r=t.isNoResults,i=t.filterOptionsConfigs;0===n.length||r||(n=n.map((function(t){var n=e.config.transformFacets?i[t.fieldId]||{}:e.config.fields[t.fieldId]||{};return Object.assign({},t,f({type:"FilterOptions",control:e.config.fieldControls[t.fieldId]||"multioption",searchable:e.config.searchable,searchLabelText:e.config.searchLabelText,placeholderText:e.config.placeholderText,showExpand:void 0===n.expand?e.config.expand:n.expand},n))})),this._filterbox=this.componentManager.create("FilterBox",Object.assign({},this.config,{parentContainer:this._container,name:"".concat(this.name,".filterbox"),container:".js-yxt-Facets",resetFilter:this.config.resetFacet,resetFilters:this.config.resetFacets,resetFilterLabel:this.config.resetFacetLabel,resetFiltersLabel:this.config.resetFacetsLabel,isDynamic:!0,filters:n})),this._filterbox.mount(),this.core.storage.set(Gn,!0))}}],[{key:"type",get:function(){return Co}},{key:"defaultTemplateName",value:function(){return"filters/facets"}},{key:"_transformBooleanFacet",value:function(e){var t=e.options.map((function(e){var t=e.displayName;return!0===e.value&&"true"===t&&(t="是"),!1===e.value&&"false"===t&&(t="否"),Object.assign({},e,{displayName:t})}));return Object.assign({},e,{options:t})}}])}(Bo),fu={radius:50,verticalKey:null,searchOnChange:!1,title:"位置",label:"位置",geoButtonIcon:"",geoButtonIconAltText:"使用我的位置",geoButtonText:"使用我的位置",enabledText:"当前位置",loadingText:"正在查找你的位置……",errorText:"找不到你的位置",buttonSelector:".js-yxt-GeoLocationFilter-button",inputSelector:".js-yxt-GeoLocationFilter-input"},pu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[f(f({},fu),i),o])).query=e.core.storage.get("".concat(xn,".").concat(e.name))||"",e.core.storage.registerListener({eventType:"update",storageKey:"".concat(xn,".").concat(e.name),callback:function(t){e.query=t,e.setState()}}),e.searchParameters=ja(i.searchParameters),e._geolocationOptions=f({enableHighAccuracy:!1,timeout:6e3,maximumAge:3e5},i.geolocationOptions),e._geolocationTimeoutAlert=f({enabled:!1,message:"我们无法确定你的位置"},i.geolocationTimeoutAlert),e}return u(r,e),o(r,[{key:"setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="";this._enabled&&(t=this._config.enabledText),e.geoLoading&&(t=this._config.loadingText),e.geoError&&(t=this._config.errorText),y(r,"setState",this,3)([f(f({},e),{},{title:this._config.title,geoEnabled:this._enabled,query:this.query,labelText:this._config.label,enabledText:this._config.enabledText,loadingText:this._config.loadingText,errorText:this._config.errorText,geoButtonIcon:this._config.geoButtonIcon,geoValue:this._enabled||e.geoLoading||e.geoError?"":this.query,geoPlaceholder:t,geoButtonText:this._config.geoButtonText})])}},{key:"onMount",value:function(){var e=this;this._autocomplete&&this._autocomplete.remove(),this._initAutoComplete(this._config.inputSelector),br.on(br.query(this._container,this._config.buttonSelector),"click",(function(){return e._toggleGeoFilter()}))}},{key:"_initAutoComplete",value:function(e){var t=this;this._autocomplete&&this._autocomplete.remove(),this._autocomplete=this.componentManager.create("AutoComplete",{parentContainer:this._container,name:"".concat(this.name,".autocomplete"),isFilterSearch:!0,container:".js-yxt-GeoLocationFilter-autocomplete",originalQuery:this.query,inputEl:e,verticalKey:this._config.verticalKey,searchParameters:this.searchParameters,onSubmit:function(e,n){return t._handleSubmit(e,n)},onMount:function(){t._autocomplete.updateAriaExpanded(br.query(t._container,e))}})}},{key:"_handleSubmit",value:function(e,t){this.query=e,this._saveDataToStorage(e,Yt.fromResponse(t),"".concat(e)),this._enabled=!1}},{key:"_toggleGeoFilter",value:function(){var e=this;navigator.geolocation?this._enabled||(this.setState({geoLoading:!0}),navigator.geolocation.getCurrentPosition((function(t){var n=e._buildFilter(t);e._saveDataToStorage("",n,"Current Location",t),e._enabled=!0,e.setState({}),e.core.storage.delete("".concat(xn,".").concat(e.name)),e.core.storage.delete("".concat(bn,".").concat(e.name))}),(function(){return e._handleGeolocationError()}),this._geolocationOptions)):this.setState({geoError:!0})}},{key:"_handleGeolocationError",value:function(){this.setState({geoError:!0});var e=this._geolocationTimeoutAlert,t=e.enabled,n=e.message;t&&oa(n)}},{key:"_removeFilterNode",value:function(){this.core.storage.delete("".concat(xn,".").concat(this.name)),this.core.storage.delete("".concat(bn,".").concat(this.name)),this._enabled=!1,this.query="",this.core.clearStaticFilterNode(this.name),this.setState()}},{key:"_buildFilterNode",value:function(e,t){var n=this;return dr.from({filter:e,metadata:{displayValue:t,fieldName:this._config.title||this._config.label||"位置"},remove:function(){return n._removeFilterNode()}})}},{key:"_saveDataToStorage",value:function(e,t,n,r){this.core.storage.setWithPersist("".concat(xn,".").concat(this.name),e),this.core.storage.setWithPersist("".concat(bn,".").concat(this.name),t);var i=this._buildFilterNode(t,n);this.core.setStaticFilterNodes(this.name,i),r&&this.core.storage.set(Tn,{lat:r.coords.latitude,lng:r.coords.longitude,radius:r.coords.accuracy}),this._config.searchOnChange&&this.core.triggerSearch(tr.FILTER_COMPONENT)}},{key:"_buildFilter",value:function(e){var t=e.coords,n=t.latitude,r=t.longitude,i=t.accuracy,o=Math.max(i,1609.344*this._config.radius);return Yt.position(n,r,o)}}],[{key:"type",get:function(){return xo}},{key:"defaultTemplateName",value:function(){return"controls/geolocation"}}])}(Bo),vu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[gu(i),o])).options=e._config.options,e.selectedOptionIndex=e.getPersistedSelectedOptionIndex(),e.options[e.selectedOptionIndex].isSelected=!0,e.hideExcessOptions=e._config.showMore&&e.selectedOptionIndex<e._config.showMoreLimit,e.searchOnChangeIsEnabled=e._config.searchOnChange,e.showResetIsEnabled=e._config.showReset,e.showReset=e.showResetIsEnabled&&0!==e.selectedOptionIndex,e.isNoResults=!1,e.core.storage.registerListener({eventType:"update",storageKey:vn,callback:function(t){if(t.searchState===Rt.SEARCH_COMPLETE){var n=t.resultsContext===on;e.handleVerticalResultsUpdate(n)}}}),e.core.storage.registerListener({eventType:"update",storageKey:Qn,callback:function(){var t=e.getPersistedSelectedOptionIndex();e._updateSelectedOption(t),e.setState()}}),e}return u(r,e),o(r,[{key:"getPersistedSelectedOptionIndex",value:function(){var e=this.core.storage.get(qn)||[],t=this._config.options.findIndex((function(t){return e.find((function(e){return e.direction===t.direction&&e.type===t.type&&e.field===t.field}))}));return-1===t?0:t}},{key:"handleVerticalResultsUpdate",value:function(e){var t=this.isNoResults;this.isNoResults=e,e!==t&&this.setState()}},{key:"setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.options;this.hideExcessOptions&&(t=this.options.slice(0,this._config.showMoreLimit)),y(r,"setState",this,3)([Object.assign({},e,{options:t,hideExcessOptions:this.hideExcessOptions,name:this.name,showReset:this.showReset,isNoResults:this.isNoResults})])}},{key:"onMount",value:function(){var e=this,t=br.query(this._container,".yxt-SortOptions-fieldSet");if(t&&br.on(t,"change",(function(t){return e.handleOptionSelection(parseInt(t.target.value))})),this._config.showMore){var n=br.query(this._container,".yxt-SortOptions-showToggle");n&&br.on(n,"click",(function(){e.hideExcessOptions=!e.hideExcessOptions,e.setState()}))}if(this.showResetIsEnabled){var r=br.query(this._container,".yxt-SortOptions-reset");r&&br.on(r,"click",(function(){e.handleOptionSelection(0),e.setState()}))}if(!this.searchOnChangeIsEnabled){var i=br.query(this._container,".yxt-SortOptions-apply");i&&br.on(i,"click",(function(){return e._sortResults()}))}}},{key:"handleOptionSelection",value:function(e){this._updateSelectedOption(e),this._updateCheckedAttributes(),this.showResetIsEnabled&&(this.showReset=0!==e,this._showOrHideResetButton()),this.searchOnChangeIsEnabled&&this._sortResults()}},{key:"_updateSelectedOption",value:function(e){this.options[this.selectedOptionIndex].isSelected=!1,this.options[e].isSelected=!0,this.selectedOptionIndex=e}},{key:"_updateCheckedAttributes",value:function(){var e=this;this.options.forEach((function(t,n){var r="#yxt-SortOptions-option_SortOptions_".concat(n),i=br.query(e._container,r);e.selectedOptionIndex===n?i&&i.setAttribute("checked",""):i&&i.removeAttribute("checked","")}))}},{key:"_showOrHideResetButton",value:function(){var e=br.query(this._container,".yxt-SortOptions-reset");this.showReset?e.classList.remove("js-hidden"):e.classList.contains("js-hidden")||e.classList.add("js-hidden")}},{key:"_sortResults",value:function(){var e=this.selectedOptionIndex,t=this.options[e];this._config.storeOnChange&&0===e?this.core.clearSortBys():this._config.storeOnChange&&this.core.setSortBys(t),this._search(),this._config.onChange(t)}},{key:"_search",value:function(){this.core.triggerSearch(tr.FILTER_COMPONENT)}}],[{key:"type",get:function(){return Ao}},{key:"defaultTemplateName",value:function(){return"controls/sortoptions"}}])}(Bo);function gu(e){var t=Object.assign({},e);if(t.defaultSortLabel=e.defaultSortLabel||"最佳匹配",!e.options)throw new Pt("config.options are required","SortOptions");var n=["FIELD","RELEVANCE","ENTITY_DISTANCE"];if(!Array.isArray(e.options))throw new Pt("options must be an array of objects","SortOptions");if(t.options=e.options.map((function(e){if(!e.label||!e.type)throw new Pt("option.label and option.type are required option ".concat(e),"SortOptions");var t={isSelected:!1};t.label=e.label,t.type=e.type;var r=0===n.indexOf(t.type);if(r&&e.field&&e.direction)t.field=e.field,t.direction=e.direction;else if(r)throw new Pt("option.field and option.direction are required for option: ".concat(e),"SortOptions");return t})),t.options.unshift({label:t.defaultSortLabel,isSelected:!1}),t.optionSelector=e.optionSelector||"yxt-SortOptions-optionSelector",t.searchOnChange=void 0===e.searchOnChange||e.searchOnChange,t.showReset=e.showReset||!1,t.resetLabel=e.resetLabel||"重置",t.showMoreLimit=e.showMoreLimit||5,t.showMore=void 0===e.showMore||e.showMore,t.showMore=t.showMore&&t.options.length>t.showMoreLimit,t.showMoreLabel=e.showMoreLabel||"显示更多内容",t.showLessLabel=e.showLessLabel||"显示较少内容",t.onChange=e.onChange||function(){},t.label=e.label||"排序",t.storeOnChange=void 0===e.storeOnChange||e.storeOnChange,t.applyLabel=e.applyLabel||"应用",t.verticalKey=e.verticalKey||ANSWERS.core.storage.get(Fn).verticalKey,!t.verticalKey)throw new Pt("vertical key is required","SortOptions");return t}function mu(e){switch(e){case Rt.PRE_SEARCH:return"yxt-Results--preSearch";case Rt.SEARCH_LOADING:return"yxt-Results--searchLoading";case Rt.SEARCH_COMPLETE:return"yxt-Results--searchComplete";default:return console.trace("encountered an unknown search state: ".concat(e)),""}}var yu="THUMBS_UP",_u="THUMBS_DOWN",bu={positiveFeedbackSrText:"这回答了我的问题",negativeFeedbackSrText:"这并未回答我的问题",footerTextOnSubmission:"感谢你的反馈!"},ku=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[f(f({},bu),i),o]))._userConfig=f({},i),e.moduleId=yn,e._formEl=i.formEl||".js-directAnswer-feedback-form",e._thumbsUpSelector=i.thumbsUpSelector||".js-directAnswer-thumbUp",e._thumbsDownSelector=i.thumbsDownSelector||".js-directAnswer-thumbDown",e._viewDetailsText=i.viewDetailsText||"查看详细信息",e._defaultCard=i.defaultCard,e._cardOverrides=i.cardOverrides||[],e._types=i.types,e._validateTypes(),e}return u(r,e),o(r,[{key:"beforeMount",value:function(){return!!this.hasState("answer")}},{key:"onMount",value:function(){var e=this,t=this.getState("customCard"),n=!0===this.getState("feedbackSubmitted");if(t||n)return this;br.on(this._formEl,"submit",(function(t){var n=t.target,r="true"===br.query(n,"input:checked").value;e.reportQuality(r),e.updateState({feedbackSubmitted:!0})})),br.on(this._thumbsUpSelector,"click",(function(){br.trigger(e._formEl,"submit")})),br.on(this._thumbsDownSelector,"click",(function(){br.trigger(e._formEl,"submit")}));var r=br.query(this._container,".js-yxt-rtfValue");r&&br.on(r,"click",(function(t){return e._handleRtfClickAnalytics(t)}))}},{key:"_handleRtfClickAnalytics",value:function(e){if(e.target.dataset.ctaType){var t=e.target.dataset.ctaType,n=this.getState("relatedItem"),r={verticalKey:n.verticalConfigId,directAnswer:!0,entityId:n.data.id,destinationUrl:e.target.href},i=new rr(t);i.addOptions(r),this.analyticsReporter.report(i)}}},{key:"updateState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},this.getState(),e);this.setState(t)}},{key:"updateContainerClass",value:function(e){var t=this;Object.values(Rt).forEach((function(e){t.removeContainerClass(mu(e))})),this.addContainerClass(mu(e))}},{key:"setState",value:function(e){var t=e.searchState||Rt.PRE_SEARCH;if(this.updateContainerClass(t),t!==Rt.SEARCH_LOADING)return y(r,"setState",this,3)([Object.assign({},e,{searchState:t,searcher:e.searcher,eventOptions:this.eventOptions(e),viewDetailsText:this._viewDetailsText,directAnswer:e,customCard:this._getCard(e)})])}},{key:"eventOptions",value:function(e){var t,n;return e&&0!==Object.keys(e).length?JSON.stringify({verticalConfigId:null===(t=e.relatedItem)||void 0===t?void 0:t.verticalConfigId,searcher:e.searcher,entityId:null===(n=e.relatedItem)||void 0===n?void 0:n.data.id,ctaLabel:this._viewDetailsText.toUpperCase().replace(" ","_")}):e}},{key:"_getCard",value:function(e){return this._types?this._getCardBasedOnTypes(e):this._cardOverrides.length>0?this._getCardBasedOnOverrides({directAnswer:e,overrides:this._cardOverrides,fallback:this._defaultCard}):this._defaultCard}},{key:"_getCardBasedOnTypes",value:function(e){if(!("type"in e)||!(e.type in this._types))return this._defaultCard;var t=this._types[e.type],n=t.cardType||this._defaultCard;return t.cardOverrides?this._getCardBasedOnOverrides({directAnswer:e,overrides:t.cardOverrides,fallback:n}):n}},{key:"_getCardBasedOnOverrides",value:function(e){var t=this,n=e.directAnswer,r=e.overrides,i=e.fallback,o=r.find((function(e){return t._overrideMatchesAnswer(e,n)}));return o?o.cardType:i}},{key:"_overrideMatchesAnswer",value:function(e,t){if(!Object.keys(t).length)return!0;for(var n={type:t.type,entityType:t.relatedItem.data.type,fieldName:t.answer.fieldName,fieldType:t.answer.fieldType},r=0,i=Object.entries(e);r<i.length;r++){var o=g(i[r],2),a=o[0],s=o[1];if("cardType"!==a&&n[a]!==s)return!1}return!0}},{key:"_validateTypes",value:function(){if(this._types){var e=function(e,t){Object.keys(t).forEach((function(t){if(!e.includes(t)){var n=e.join(" and ");throw new Error("The key '".concat(t,"' is not a supported option. Supported options include ").concat(n,"."))}}))};Object.entries(this._types).forEach((function(t){var n=g(t,2);n[0];var r=n[1];if(e(["cardType","cardOverrides"],r),r.cardOverrides){var i=["fieldName","entityType","fieldType","cardType"];r.cardOverrides.forEach((function(t){e(i,t)}))}}))}}},{key:"reportQuality",value:function(e){var t=!0===e?yu:_u,n=this.getState("relatedItem"),r={directAnswer:!0,verticalKey:n.verticalConfigId,entityId:n.data.id},i=new rr(t).addOptions(r);this.analyticsReporter.report(i)}},{key:"addChild",value:function(e,t,n){return t===this.getState("customCard")?y(r,"addChild",this,3)([this.getState("directAnswer"),t,f(f({},this._userConfig),n)]):y(r,"addChild",this,3)([e,t,n])}}],[{key:"type",get:function(){return"DirectAnswer"}},{key:"defaultTemplateName",value:function(e){return"results/directanswer"}}])}(Bo),wu={hideAISignpost:!1,aiSignpost:{iconName:"ai_signpost",label:"",popoverHeader:"AI-Generated Content",popoverBody:"This answer was generated by AI from matching search results and may be incomplete or inaccurate. Review the matching results for full context."}},Su=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r);var a=f(f({},wu.aiSignpost),i.aiSignpost);return(e=t(this,r,[f(f(f({},wu),i),{},{aiSignpost:a}),o]))._userConfig=f({},i),e.moduleId=_n,e._citationsSelector=i.citationsSelector||".js-gda-citation",e._customCard=i.cardType,e}return u(r,e),o(r,[{key:"beforeMount",value:function(){var e=this.getState("searchState");return e!==Rt.PRE_SEARCH&&!!(e!==Rt.SEARCH_COMPLETE||this.hasState("resultStatus")&&"NO_ANSWER"!==this.getState("resultStatus"))}},{key:"onMount",value:function(){var e=this;if(this.getState("customCard"))return this;br.queryAll(this._container,this._citationsSelector).forEach((function(t){return br.on(t,"click",(function(t){return e._handleCitationClickAnalytics(t)}))}));var t=br.query(this._container,".js-yxt-rtfValue");return t&&br.on(t,"click",(function(t){return e._handleRtfClickAnalytics(t)})),this._bindAISignpost(),this}},{key:"_bindAISignpost",value:function(){var e=br.query(this._container,".yxt-GenerativeDirectAnswer-aiSignpost"),t=br.query(this._container,".js-yxt-GenerativeDirectAnswer-aiSignpostButton"),n=br.query(this._container,".js-yxt-GenerativeDirectAnswer-aiSignpostPopover"),r=br.query(this._container,".js-yxt-GenerativeDirectAnswer-aiSignpostClose");if(e&&t&&n){var i=function(e){t.setAttribute("aria-expanded",e?"true":"false"),n.hidden=!e};br.on(t,"click",(function(){i("true"!==t.getAttribute("aria-expanded"))})),r&&br.on(r,"click",(function(){return i(!1)})),br.on(document,"click",(function(t){e.contains(t.target)||i(!1)}))}}},{key:"_handleCitationClickAnalytics",value:function(e){for(var t=e.target,n=this._citationsSelector.substring(1);t&&!t.classList.contains(n);)t=t.parentElement;if(t){var r=t.dataset.entityid;if(r){var i=t.dataset.eventtype||"CITATION_CLICK",o={generativeDirectAnswer:!0,directAnswer:!0,entityId:r,verticalKey:this.getState("verticalKey")},a=new rr(i);a.addOptions(o),this.analyticsReporter.report(a)}else console.error("No entityId found on citation element for analytics.")}else console.error("No citation target found for analytics.")}},{key:"_handleRtfClickAnalytics",value:function(e){if(e.target.dataset.ctaType){var t=e.target.dataset.ctaType,n={generativeDirectAnswer:!0,directAnswer:!0,destinationUrl:e.target.href,verticalKey:this.getState("verticalKey")},r=new rr(t);r.addOptions(n),this.analyticsReporter.report(r)}}},{key:"updateState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},this.getState(),e);this.setState(t)}},{key:"updateContainerClass",value:function(e){var t=this;Object.values(Rt).forEach((function(e){t.removeContainerClass(mu(e))})),this.addContainerClass(mu(e))}},{key:"setState",value:function(e){var t=e.searchState||Rt.PRE_SEARCH;return this.updateContainerClass(t),t===Rt.SEARCH_COMPLETE&&e.directAnswer?y(r,"setState",this,3)([Object.assign({},e,{searchState:t,searcher:e.searcher,generativeDirectAnswer:e,customCard:this._getCard(),verticalKey:e.verticalKey})]):y(r,"setState",this,3)([Object.assign({},e,{searchState:t,generativeDirectAnswer:{searchState:t},customCard:this._getCard()})])}},{key:"_getCard",value:function(){return this._customCard}},{key:"addChild",value:function(e,t,n){if(t===this.getState("customCard")){var i=this.getState("generativeDirectAnswer");return y(r,"addChild",this,3)([i,t,f(f({},this._userConfig),n)])}return y(r,"addChild",this,3)([e,t,n])}}],[{key:"type",get:function(){return"GenerativeDirectAnswer"}},{key:"defaultTemplateName",value:function(e){return"results/generativedirectanswer"}}])}(Bo),Cu=o((function e(t){if(n(this,e),this.label=t.label,"string"!=typeof this.label)throw new Nt("label is a required configuration option for verticalPage.","AlternativeVertical");if(this.url=t.url,"string"!=typeof this.url)throw new Nt("url is a required configuration option for verticalPage.","AlternativeVertical");this.iconName=t.iconName,this.iconUrl=t.iconUrl,this.hasIcon=this.iconName||this.iconUrl,this.resultsCount=t.resultsCount})),xu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),(e=t(this,r,[i,o])).moduleId=gn,e._alternativeVerticals=i.data&&i.data.alternativeVerticals||[],e._verticalsConfig=i.verticalsConfig||[],e._currentVerticalLabel=e.getCurrentVerticalLabel(i.verticalsConfig)||"",e.verticalSuggestions=e._buildVerticalSuggestions(e._alternativeVerticals,e._verticalsConfig,e.core.storage.get(zn),e.core.storage.get(Hn)),e._baseUniversalUrl=i.baseUniversalUrl||"",e._universalUrl=e._getUniversalURL(e._baseUniversalUrl,new kr(e.core.storage.getCurrentStateUrlMerged())),e._isShowingResults=i.isShowingResults||!1;var a=function(){e.verticalSuggestions=e._buildVerticalSuggestions(e._alternativeVerticals,e._verticalsConfig,e.core.storage.get(zn),e.core.storage.get(Hn)),e._universalUrl=e._getUniversalURL(e._baseUniversalUrl,new kr(e.core.storage.getCurrentStateUrlMerged())),e.setState(e.core.storage.get(gn))};return e.core.storage.registerListener({eventType:"update",storageKey:zn,callback:a}),e.core.storage.registerListener({eventType:"update",storageKey:Nn,callback:a}),e}return u(r,e),o(r,[{key:"setState",value:function(e){return y(r,"setState",this,3)([Object.assign({verticalSuggestions:[]},e,{universalUrl:this._universalUrl,verticalSuggestions:this.verticalSuggestions,currentVerticalLabel:this._currentVerticalLabel,isShowingResults:this._isShowingResults,query:this.core.storage.get(xn)})])}},{key:"getCurrentVerticalLabel",value:function(e){var t=e.find((function(e){return e.isActive||!1}));return t?t.label:""}},{key:"_buildVerticalSuggestions",value:function(e,t,n,r){var i=this,o=[],s=new kr(this.core.storage.getCurrentStateUrlMerged());n&&s.set(zn,n),"string"==typeof r&&s.set(Hn,r);var c=this.core.storage.get(Nn);c&&c.setDynamically&&(s[Nn]=c.value);var l,u=Fo(s,(function(e){return i.componentManager.getComponentNamesForComponentTypes(e)})),h=a(e);try{var d=function(){var e=l.value,n=e.verticalConfigId,r=t.find((function(e){return e.verticalKey===n}));if(!r||e.resultsCount<1)return 1;o.push(new Cu({label:r.label,url:Lo(r.url,u),iconName:r.icon,iconUrl:r.iconUrl,resultsCount:e.resultsCount}))};for(h.s();!(l=h.n()).done;)d()}catch(e){h.e(e)}finally{h.f()}return o}},{key:"_getUniversalURL",value:function(e,t){var n=this;if(!e)return"";t.set(xn,this.core.storage.get(xn));var r=this.core.storage.get(zn);r&&t.set(zn,r);var i=this.core.storage.get(Hn);return void 0!==i&&t.set(Hn,i),Lo(e,Fo(t,(function(e){return n.componentManager.getComponentNamesForComponentTypes(e)})))}}],[{key:"type",get:function(){return"AlternativeVerticals"}},{key:"defaultTemplateName",value:function(e){return"results/alternativeverticals"}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(Bo),Au=function(){return o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._apiKey=t.apiKey,this._zoom=t.zoom||14,this._defaultPosition=t.defaultPosition||{lat:37.0902,lng:-95.7129},this._noResults=t.noResults||{},this._showEmptyMap=t.showEmptyMap||!1,this._map=null,this._isLoaded=!1,this._onPinClick=t.onPinClick||null,this._onPinMouseOver=t.onPinMouseOver||null,this._onPinMouseOut=t.onPinMouseOut||null,this._onLoaded=t.onLoaded||function(){},this._pinConfig="function"==typeof t.pin?t.pin:Object.assign(e.DEFAULT_PIN_CONFIG,t.pin),this._collapsePins=t.collapsePins||!1,this._locale=this._getValidatedLocale(t.locale),this._providerOptions=t.providerOptions||{}}),[{key:"_getValidatedLocale",value:function(e){return e.length<2?(console.error("Locale '".concat(e,"' must include at least two characters. Falling back to 'en'")),"en"):e}},{key:"onLoaded",value:function(e){"function"==typeof e&&(this._onLoaded=e,this.isLoaded()&&this._onLoaded())}},{key:"isLoaded",value:function(){return this._isLoaded}},{key:"loadJS",value:function(){throw new Error("Unimplemented Method: loadJS")}},{key:"init",value:function(e){throw new Error("Unimplemented Method: init")}},{key:"_collapseMarkers",value:function(e){var t={};e.forEach((function(e){t["".concat(e.latitude).concat(e.longitude)]?t["".concat(e.latitude).concat(e.longitude)].push(e):t["".concat(e.latitude).concat(e.longitude)]=[e]}));for(var n=[],r=0,i=Object.entries(t);r<i.length;r++){var o=g(i[r],2)[1];if(o.length>1){var a={item:o.map((function(e){return e.item})),label:o.length,latitude:o[0].latitude,longitude:o[0].longitude};n.push(a)}else n.push(o[0])}return n}}],[{key:"DEFAULT_PIN_CONFIG",get:function(){return{icon:{anchor:null,svg:null,url:null,scaledSize:null},labelType:"numeric"}}},{key:"shouldHideMap",value:function(e,t,n,r){return t===on&&void 0!==r?!r:(!e||e.mapMarkers.length<=0)&&!n}}])}(),Eu=function(e){function r(e){var i;if(n(this,r),(i=t(this,r,[e]))._zoomOffset=1,i._zoom+=i._zoomOffset,i._clientId=e.clientId,i._signature=e.signature,!i.hasValidClientCredentials()&&!i._apiKey)throw new Error("GoogleMapsProvider: Missing `apiKey` or {`clientId`, `signature`}");return i._language=i.getLanguage(i._locale),i}return u(r,e),o(r,[{key:"getLanguage",value:function(e){var t=e.replace("_","-");if(["zh-CN","zh-HK","zh-TW","en-AU","en-GB","fr-CA","pt-BR","pt-PT","es-419"].includes(t))return t;var n=li(e),r=n.language,i=n.modifier,o=n.region;return"zh"===r&&"HK"===o?"zh-HK":"zh"===r&&"Hans"===i?"zh-CN":"zh"===r&&"Hant"===i?"zh-TW":r}},{key:"loadJS",value:function(){var e=this,t=function(){"function"==typeof e._onLoaded&&e._onLoaded()};if("undefined"!=typeof google)return e._isLoaded=!0,void t();var n=br.query("#yext-map-google-js");if(n){var r=n.onload;n.onload=function(){r(),t()}}else n=br.createEl("script",{id:"yext-map-google-js",onload:function(){e._isLoaded=!0,t()},async:!0,src:"https://maps.googleapis.com/maps/api/js?".concat(e.generateCredentials(),"&language=").concat(e._language,"&v=3.47")}),br.append("body",n)}},{key:"generateCredentials",value:function(){return this.hasValidClientCredentials()?"client=".concat(this._clientId):"key=".concat(this._apiKey)}},{key:"hasValidClientCredentials",value:function(){return this._clientId}},{key:"init",value:function(e,t,n){var r=this;if(Au.shouldHideMap(t,n,this._showEmptyMap,this._noResults.visible))return this._map=null,this;setTimeout((function(){var n=br.query(e),i=ui(r._language)?google.maps.ControlPosition.LEFT_TOP:google.maps.ControlPosition.RIGHT_TOP;if(r.map=new google.maps.Map(n,f({zoom:r._zoom,center:r.getCenterMarker(t),fullscreenControl:!1,mapTypeControl:!1,rotateControl:!1,scaleControl:!1,streetViewControl:!1,zoomControlOptions:{position:i}},r._providerOptions)),t&&t.mapMarkers.length){for(var o=r._collapsePins?r._collapseMarkers(t.mapMarkers):t.mapMarkers,a=Ou.from(o,r._pinConfig,r.map),s=new google.maps.LatLngBounds,c=function(e){var t=new google.maps.Marker(a[e]);r._onPinClick&&t.addListener("click",(function(){return r._onPinClick(o[e].item)})),r._onPinMouseOver&&t.addListener("mouseover",(function(){return r._onPinMouseOver(o[e].item)})),r._onPinMouseOut&&t.addListener("mouseout",(function(){return r._onPinMouseOut(o[e].item)})),s.extend(t.position)},l=0;l<a.length;l++)c(l);a.length>=2&&r.map.fitBounds(s)}}),100)}},{key:"getCenterMarker",value:function(e){return e&&e.mapCenter&&e.mapCenter.longitude&&e.mapCenter.latitude?{lng:e.mapCenter.longitude,lat:e.mapCenter.latitude}:{lng:this._defaultPosition.lng,lat:this._defaultPosition.lat}}}])}(Au),Ou=function(){function e(t){n(this,e),this.map=t.map||void 0,this.position=t.position||{lat:void 0,lng:void 0},this.icon=t.icon||void 0,this.label=t.label||void 0}return o(e,null,[{key:"serialize",value:function(e){var t=[];return e.forEach((function(e){t.push("markers=label:".concat(e.label,"|").concat(e.position.lat,",").concat(e.position.lng))})),t.join("&")}},{key:"from",value:function(t,n,r){var i=[];return Array.isArray(t)||(t=[t]),t.forEach((function(t){var o=n;"function"==typeof n&&(o=n(t.item,Au.DEFAULT_PIN_CONFIG,t));var a,s={};o.anchor&&(s.anchor=google.maps.Point(o.anchor.x,o.anchor.y)),o.scaledSize&&(s.scaledSize=new google.maps.Size(o.scaledSize.w,o.scaledSize.h)),o.url&&(s.url=o.url),o.svg&&(s.url="data:image/svg+xml;charset=utf-8, ".concat(encodeURIComponent(o.svg))),a=o.label||""===o.label?o.label:t.label.toString(),0===Object.keys(s).length&&(s=void 0),i.push(new e({map:r,position:{lat:t.latitude,lng:t.longitude},icon:s,label:a}))})),i}}])}(),Mu=A((function(e){function t(e){if(e=Object.assign({},e),!(this instanceof t))throw new Error("MapboxLanguage needs to be called with the new keyword");this.setLanguage=this.setLanguage.bind(this),this._initialStyleUpdate=this._initialStyleUpdate.bind(this),this._defaultLanguage=e.defaultLanguage,this._isLanguageField=e.languageField||/^\{name/,this._getLanguageField=e.getLanguageField||function(e){return"mul"===e?"{name}":"{name_"+e+"}"},this._languageSource=e.languageSource||null,this._languageTransform=e.languageTransform||function(e,t){return"ar"===t?function(e){var t=e.layers.map((function(e){if(!(e.layout||{})["text-field"])return e;return Object.assign({},e,{layout:Object.assign({},e.layout,{"text-letter-spacing":0})})}));return Object.assign({},e,{layers:t})}(e):function(e){var t=e.layers.map((function(e){if(!(e.layout||{})["text-field"])return e;var t=0;return"state_label"===e["source-layer"]&&(t=.15),"marine_label"===e["source-layer"]&&(/-lg/.test(e.id)&&(t=.25),/-md/.test(e.id)&&(t=.15),/-sm/.test(e.id)&&(t=.1)),"place_label"===e["source-layer"]&&(/-suburb/.test(e.id)&&(t=.15),/-neighbour/.test(e.id)&&(t=.1),/-islet/.test(e.id)&&(t=.01)),"airport_label"===e["source-layer"]&&(t=.01),"rail_station_label"===e["source-layer"]&&(t=.01),"poi_label"===e["source-layer"]&&/-scalerank/.test(e.id)&&(t=.01),"road_label"===e["source-layer"]&&(/-label-/.test(e.id)&&(t=.01),/-shields/.test(e.id)&&(t=.05)),Object.assign({},e,{layout:Object.assign({},e.layout,{"text-letter-spacing":t})})}));return Object.assign({},e,{layers:t})}(e)},this._excludedLayerIds=e.excludedLayerIds||[],this.supportedLanguages=e.supportedLanguages||["ar","en","es","fr","de","ja","ko","mul","pt","ru","zh"]}function n(e,t,n){if(function(e,t){return"string"==typeof t&&e.test(t)}(e,t))return n;if(function(e,t){return t.stops&&t.stops.filter((function(t){return e.test(t[1])})).length>0}(e,t)){var r=t.stops.map((function(t){return e.test(t[1])?[t[0],n]:t}));return Object.assign({},t,{stops:r})}return t}t.prototype.setLanguage=function(e,t){if(this.supportedLanguages.indexOf(t)<0)throw new Error("Language "+t+" is not supported");var r=this._languageSource||function(e){return Object.keys(e.sources).filter((function(t){var n=e.sources[t];return/mapbox-streets-v\d/.test(n.url)}))[0]}(e);if(!r)return e;var i=this._getLanguageField(t),o=this._isLanguageField,a=this._excludedLayerIds,s=e.layers.map((function(e){return e.source===r?function(e,t,r,i){return t.layout&&t.layout["text-field"]&&-1===i.indexOf(t.id)?Object.assign({},t,{layout:Object.assign({},t.layout,{"text-field":n(e,t.layout["text-field"],r)})}):t}(o,e,i,a):e})),c=Object.assign({},e,{layers:s});return this._languageTransform(c,t)},t.prototype._initialStyleUpdate=function(){var e=this._map.getStyle(),t=this._defaultLanguage||function(e){var t=navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage,n=t.split("-"),r=t;n.length>1&&(r=n[0]);if(e.indexOf(r)>-1)return r;return null}(this.supportedLanguages);this._map.off("styledata",this._initialStyleUpdate),this._map.setStyle(this.setLanguage(e,t))},t.prototype.onAdd=function(e){return this._map=e,this._map.on("styledata",this._initialStyleUpdate),this._container=document.createElement("div"),this._container},t.prototype.onRemove=function(){this._map.off("styledata",this._initialStyleUpdate),this._map=void 0},e.exports=t})),Tu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r);var a=li((e=t(this,r,[i,o]))._locale),s=a.language,c=a.modifier;return e._language=c?"".concat(s,"-").concat(c):s,e}return u(r,e),o(r,[{key:"loadJS",value:function(e){var t=this,n=br.createEl("script",{id:"yext-map-mapbox-js",onload:function(){t._isLoaded=!0,mapboxgl.accessToken=t._apiKey,mapboxgl.setRTLTextPlugin("https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js",null,!0),"function"==typeof e&&e(),"function"==typeof t._onLoaded&&t._onLoaded()},async:!0,src:"https://api.mapbox.com/mapbox-gl-js/".concat("v1.13.1","/mapbox-gl.js")}),r=br.createEl("link",{id:"yext-map-mapbox-css",rel:"stylesheet",href:"https://api.mapbox.com/mapbox-gl-js/".concat("v1.13.1","/mapbox-gl.css")});br.append("body",r),br.append("body",n)}},{key:"init",value:function(e,t,n){var r=this;if(Au.shouldHideMap(t,n,this._showEmptyMap,this._noResults.visible))return this._map=null,this;var i=br.query(e);this._map=new mapboxgl.Map(f({container:i,zoom:this._zoom,style:"mapbox://styles/mapbox/streets-v9",center:this.getCenterMarker(t)},this._providerOptions)),this._map.addControl(new Mu({defaultLanguage:this._language}));var o=new mapboxgl.NavigationControl({showCompass:!1});if(ui(this._language)?this._map.addControl(o,"top-left"):this._map.addControl(o),t&&t.mapMarkers.length){for(var a=this._collapsePins?this._collapseMarkers(t.mapMarkers):t.mapMarkers,s=Lu.from(a,this._pinConfig,this._map),c=new mapboxgl.LngLatBounds,l=function(e){var t=s[e].wrapper,n=new mapboxgl.LngLat(s[e].position.longitude,s[e].position.latitude),i=new mapboxgl.Marker(t).setLngLat(n);c.extend(i.getLngLat()),i.addTo(r._map),r._onPinClick&&i.getElement().addEventListener("click",(function(){return r._onPinClick(a[e].item)})),r._onPinMouseOver&&i.getElement().addEventListener("mouseover",(function(){return r._onPinMouseOver(a[e].item)})),r._onPinMouseOut&&i.getElement().addEventListener("mouseout",(function(){return r._onPinMouseOut(a[e].item)}))},u=0;u<s.length;u++)l(u);s.length>=2&&this._map.fitBounds(c,{padding:50})}}},{key:"getCenterMarker",value:function(e){return e&&e.mapCenter&&e.mapCenter.longitude&&e.mapCenter.latitude?[e.mapCenter.longitude,e.mapCenter.latitude]:{lng:this._defaultPosition.lng,lat:this._defaultPosition.lat}}}])}(Au),Lu=function(){function e(t){n(this,e),this.map=t.map||void 0,this.position=t.position||{latitude:void 0,longitude:void 0},this.wrapper=t.wrapper||void 0,this.label=t.label||void 0,this.staticMapPin=t.staticMapPin||void 0}return o(e,null,[{key:"serialize",value:function(e){var t=[];return e.forEach((function(e){e.staticMapPin?t.push("url-".concat(e.staticMapPin,"(").concat(e.position.longitude,",").concat(e.position.latitude,")")):t.push("pin-s-".concat(e.label,"(").concat(e.position.longitude,",").concat(e.position.latitude,")"))})),t.join(",")}},{key:"from",value:function(t,n,r){var i=[];return Array.isArray(t)||(t=[t]),t.forEach((function(t){var o=n;"function"==typeof n&&(o=n(t.item,Au.DEFAULT_PIN_CONFIG,t));var a=o.wrapper?o.wrapper:null,s=o.staticMapPin?o.staticMapPin:null;i.push(new e({map:r,position:{latitude:t.latitude,longitude:t.longitude},wrapper:a,label:t.label,staticMapPin:s}))})),i}}])}(),Fu={google:Eu,mapbox:Tu},Iu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,r),(e=t(this,r,[i,o])).moduleId=vn,e._noResults=f({displayAllResults:!1,visible:void 0,template:""},i.noResults||e.core.storage.get(Un)),e._mapProvider=i.mapProvider,!e._mapProvider||!(e._mapProvider.toLowerCase()in Fu))throw new Error("MapComponent: Invalid Map Provider; must be `google` or `mapBox`");return e._map=null,e}return u(r,e),o(r,[{key:"getProviderInstance",value:function(e){var t=f(f({locale:this.core.storage.get(Bn)},this._config),{},{noResults:this._noResults});return new(Fu[e.toLowerCase()])(t)}},{key:"onCreate",value:function(){this._map=this.getProviderInstance(this._mapProvider),this._map.loadJS()}},{key:"onMount",value:function(){var e=this;this._map.onLoaded((function(){e._map.init(e._container,e.getState("map"),e.getState("resultsContext"))}))}},{key:"setState",value:function(e,t){return 0===Object.keys(e).length?this:(e.resultsContext!==on||this._noResults.displayAllResults||(e={resultsContext:e.resultsContext}),y(r,"setState",this,3)([e,t]))}}],[{key:"type",get:function(){return"Map"}},{key:"defaultTemplateName",value:function(e){return"results/map"}}])}(Bo),Ru="cards/standard",ju="cards/accordion",Pu="cards/legacy",Nu={Standard:"StandardCard",Accordion:"AccordionCard",Legacy:"LegacyCard"},Du=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t),this.cardType=t.cardType||"Standard",this.dataMappings=t.dataMappings||function(){},this.callsToAction=t.callsToAction||[],this._index=t._index||0,this.isUniversal=t.isUniversal||!1})),Bu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),e=t(this,r,[new Du(i),o]);var a=i.data||{};return e.result=a.result||{},e.result&&e.result._raw&&(e.result._raw.distance=e.result.distance),e.verticalKey=a.verticalKey,e}return u(r,e),o(r,[{key:"onMount",value:function(){var e=this,t=br.query(this._container,".js-yxt-rtfValue");if(t){var n=t.dataset.fieldName;br.on(t,"click",(function(t){return e._handleRtfClickAnalytics(t,n)}))}}},{key:"_handleRtfClickAnalytics",value:function(e,t){var n=e.target.dataset.ctaType;if(n){var r={directAnswer:!1,verticalKey:this._config.data.verticalKey,entityId:this._config.data.result.id,destinationUrl:e.target.href};t?r.fieldName=t:console.warn("Field name not provided for RTF click analytics");var i=new rr(n);i.addOptions(r),this.analyticsReporter.report(i)}}},{key:"setState",value:function(e){var t=this._config.cardType,n=Nu[t]||t;return y(r,"setState",this,3)([f(f({},e),{},{result:this.result,cardType:n})])}},{key:"addChild",value:function(e,t,n){var i={verticalKey:this.verticalKey,result:e},o=f({showOrdinal:this._config.showOrdinal,dataMappings:this._config.dataMappings,callsToAction:this._config.callsToAction,verticalKey:this._config.verticalKey,_index:this._config._index,isUniversal:this._config.isUniversal,modifier:this._config.modifier},n);return y(r,"addChild",this,3)([i,t,o])}}],[{key:"applyDataMappings",value:function(e,t){var n={};return"function"==typeof t&&(t=t(e)),"object"===k(t)&&Object.entries(t).forEach((function(t){var r=g(t,2),i=r[0],o=r[1];n[i]="function"==typeof o?o(e):o})),n}},{key:"type",get:function(){return"Card"}},{key:"defaultTemplateName",value:function(e){return"cards/card"}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(Bo);function qu(e){return e.map((function(e){return dr.from({filter:Yt.from(e.filter),metadata:new cr({fieldName:e.key,displayValue:e.value})})}))}function Uu(e){return e.flatMap((function(e){return e.getSimpleDescendants()}))}function Vu(e,t){return e.filter((function(e){var n=e.getMetadata(),r=n.fieldName,i=n.displayValue;if(!r||!i)return!1;var o=e.getFilter().getFilterKey();return!t.includes(o)}))}var zu={showResultCount:!0,showAppliedFilters:!0,showFieldNames:!1,resultsCountSeparator:"|",verticalURL:void 0,showChangeFilters:!1,removable:!1,delimiter:"|",isUniversal:!1,labelText:"应用于此搜索的筛选条件:",removableLabelText:"移除此筛选条件",resultsCountTemplate:"",hiddenFields:[]},Hu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),e=t(this,r,[f(f({},zu),i),o]);var a=i.data||{};return e.resultsCount=a.resultsCount||0,e.resultsLength=a.resultsLength||0,e._compiledResultsCountTemplate=e._renderer.compile(e._config.resultsCountTemplate),e.nlpFilterNodes=qu(a.nlpFilters||[]),e.moduleId=Mn,e}return u(r,e),o(r,[{key:"onMount",value:function(){var e=this;br.queryAll(this._container,".js-yxt-ResultsHeader-removableFilterTag").forEach((function(t){br.on(t,"click",(function(){return e._removeFilterTag(t)}))}))}},{key:"_removeFilterTag",value:function(e){var t=e.dataset.filterId;this.appliedFilterNodes[t].remove(),this.core.triggerSearch(tr.FILTER_COMPONENT)}},{key:"_getPrunedNlpFilterNodes",value:function(){var e=this;return Vu(this.nlpFilterNodes.filter((function(t){return!e.appliedFilterNodes.find((function(e){return e.hasSameFilterAs(t)}))})),this._config.hiddenFields)}},{key:"_groupAppliedFilters",value:function(){var e=this,t=function(e){return e.getMetadata().fieldName},n=as(this.appliedFilterNodes,t,(function(t,n){return{displayValue:t.getMetadata().displayValue,dataFilterId:n,removable:e._config.removable}}));return as(this._getPrunedNlpFilterNodes(),t,(function(e){return{displayValue:e.getMetadata().displayValue}}),n)}},{key:"_createAppliedFiltersArray",value:function(){var e=this._groupAppliedFilters();return Object.keys(e).map((function(t){return{label:t,filterDataArray:e[t]}}))}},{key:"_calculateAppliedFilterNodes",value:function(){return Vu(Uu(this.core.filterRegistry.getAllFilterNodes()),this._config.hiddenFields)}},{key:"setState",value:function(e){var t=this.core.storage.get(In)||0;this.appliedFilterNodes=this._calculateAppliedFilterNodes();var n=this._createAppliedFiltersArray(),i=n.length>0&&this._config.showAppliedFilters,o={resultsCount:this.resultsCount,resultsCountStart:t+1,resultsCountEnd:t+this.resultsLength};return y(r,"setState",this,3)([f(f(f({},e),o),{},{showResultSeparator:this._config.resultsCountSeparator&&this._config.showResultCount&&i,shouldShowFilters:i,appliedFiltersArray:n,customResultsCount:this._compiledResultsCountTemplate(o)})])}}],[{key:"areDuplicateNamesAllowed",value:function(){return!0}},{key:"type",get:function(){return"ResultsHeader"}},{key:"defaultTemplateName",value:function(e){return"results/resultsheader"}}])}(Bo);function Ku(e,t,n){var r,i=a(t);try{for(i.s();!(r=i.n()).done;){var o,s=r.value.split("."),c=e,l=!1,u=a(s.slice(0,-1));try{for(u.s();!(o=u.n()).done;){var h=o.value;if(!(h in c)){l=!0;break}c=c[h]}}catch(e){u.e(e)}finally{u.f()}var d=s[s.length-1];if(!l&&d in c)return c[d]}}catch(e){i.e(e)}finally{i.f()}return n}var Gu=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t),this.isUniversal=t.isUniversal||!1;var r=t._parentOpts||{};this.renderItem=t.renderItem||r.renderItem,this.itemTemplate=t.itemTemplate||r.itemTemplate,this.maxNumberOfColumns=t.maxNumberOfColumns||1,this.card=t.card||{},this.verticalURL=t.verticalURL,this.showResultCount=void 0===t.showResultCount||t.showResultCount,this.resultsCountTemplate=t.resultsCountTemplate||"",this.hideResultsHeader=t.hideResultsHeader,this.appliedFilters={show:Ku(t,["appliedFilters.show","showAppliedFilters"],!0),resultsCountSeparator:Ku(t,["appliedFilters.resultsCountSeparator","resultsCountSeparator"],"|"),showFieldNames:Ku(t,["appliedFilters.showFieldNames","showFieldNames"],!1),hiddenFields:Ku(t,["appliedFilters.hiddenFields","hiddenFields"],["builtin.entityType"]),delimiter:Ku(t,["appliedFilters.delimiter"],"|"),removable:Ku(t,["appliedFilters.removable"],!1),showChangeFilters:Ku(t,["appliedFilters.showChangeFilters","showChangeFilters"],!1),changeFiltersText:Ku(t,["appliedFilters.changeFiltersText","changeFiltersText"]),labelText:Ku(t,["appliedFilters.labelText"],"应用于此搜索的筛选条件:"),removableLabelText:Ku(t,["appliedFilters.removableLabelText"],"移除此筛选条件")},this.viewMoreLabel=Ku(t,["viewMoreLabel","viewAllText"],"查看更多内容")})),Zu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r);var a=(e=t(this,r,[new Gu(Qu(i)),o]))._config.noResults||e.core.storage.get(Un);return e._noResultsConfig=Object.assign({displayAllResults:!1,template:""},a),e._useLegacyNoResults=e._config.isUniversal||!a,e._displayAllResults=e._noResultsConfig.displayAllResults,e._noResultsTemplate=e._noResultsConfig.template,e.core.storage.registerListener({eventType:"update",storageKey:vn,callback:function(t){e.updateContainerClass(t.searchState),t.searchState===Rt.SEARCH_COMPLETE&&e.setState(t)}}),e._verticalsConfig=i.verticalPages||e.core.storage.get(Dn).get()||[],e.results=[],e.numColumns=e._config.maxNumberOfColumns,e.resultsHeaderOpts={showFieldNames:e._config.appliedFilters.showFieldNames,resultsCountSeparator:e._config.appliedFilters.resultsCountSeparator,showAppliedFilters:e._config.appliedFilters.show,showChangeFilters:e._config.appliedFilters.showChangeFilters,changeFiltersText:e._config.appliedFilters.changeFiltersText,showResultCount:e._config.showResultCount,removable:e._config.appliedFilters.removable,delimiter:e._config.appliedFilters.delimiter,labelText:e._config.appliedFilters.labelText,removableLabelText:e._config.appliedFilters.removableLabelText,hiddenFields:e._config.appliedFilters.hiddenFields,resultsCountTemplate:e._config.resultsCountTemplate},e}return u(r,e),o(r,[{key:"onCreate",value:function(){this.updateContainerClass(Rt.PRE_SEARCH)}},{key:"mount",value:function(){return Object.keys(this.getState()).length>0&&y(r,"mount",this,3)([]),this}},{key:"getBaseUniversalUrl",value:function(){return(this._verticalsConfig.find((function(e){return!e.verticalKey}))||{}).url}},{key:"getUniversalUrl",value:function(){var e=this.getBaseUniversalUrl();if(e)return this._getExperienceURL(e,new kr(this.core.storage.getCurrentStateUrlMerged()))}},{key:"getVerticalURL",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._verticalsConfig.find((function(t){return t.verticalKey===e.verticalKey}))||{},r=this._config.verticalURL||n.url||t.verticalURL||this.verticalKey+".html",i=this.core.storage.get(fn),o=i?i.tabOrder:[],a=Ta(this._verticalsConfig,o,this.core.storage.getCurrentStateUrlMerged()),s=new kr(this.core.storage.getCurrentStateUrlMerged());return s.set("tabOrder",a),this._getExperienceURL(r,s)}},{key:"_getExperienceURL",value:function(e,t){var n=this;t.set(xn,this.query);var r=this.core.storage.get(zn);r&&t.set(zn,r);var i=this.core.storage.get(Hn);void 0!==i&&t.set(Hn,i);var o=this.core.storage.get(Nn);return o&&o.setDynamically&&t.set(Nn,o.value),Lo(e,Fo(t,(function(e){return n.componentManager.getComponentNamesForComponentTypes(e)})))}},{key:"updateContainerClass",value:function(e){var t=this;Object.values(Rt).forEach((function(e){t.removeContainerClass(mu(e))})),this.addContainerClass(mu(e))}},{key:"setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.results=e.results||[],this.resultsCount=e.resultsCount,this.verticalKey=e.verticalConfigId,this.resultsContext=e.resultsContext;var n=e.searchState||Rt.PRE_SEARCH,i=this._config.isUniversal||this._displayAllResults||e.resultsContext===rn;return this.query=this.core.storage.get(xn),y(r,"setState",this,3)([Object.assign({results:[]},e,{searchState:n,isPreSearch:n===Rt.PRE_SEARCH,isSearchLoading:n===Rt.SEARCH_LOADING,isSearchComplete:n===Rt.SEARCH_COMPLETE,eventOptions:this.eventOptions(),universalUrl:this.getUniversalUrl(),verticalURL:this.getVerticalURL(e),query:this.query,currentVerticalLabel:this._currentVerticalLabel,resultsPresent:i&&0!==this.results.length,showNoResults:this.resultsContext===on,placeholders:new Array(this._config.maxNumberOfColumns-1),numColumns:Math.min(this._config.maxNumberOfColumns,this.results.length),useLegacyNoResults:this._useLegacyNoResults,iconIsBuiltIn:ri[this._config.icon],nlpFilters:e.appliedQueryFilters||[]}),t])}},{key:"eventOptions",value:function(){return JSON.stringify({verticalConfigId:this.verticalKey})}},{key:"addChild",value:function(e,t,n){if(t===Iu.type){var i=f(f({noResults:this._noResultsConfig},this._config.mapConfig),n),o={resultsContext:this.getState("resultsContext"),map:e};return y(r,"addChild",this,3)([o,t,i])}if(t===Bu.type){var a={result:this.results[n._index],verticalKey:this.verticalKey},s=f(f({target:this._config.target},this._config.card),{},{isUniversal:this._config.isUniversal,template:this._config.itemTemplate,render:this._config.renderItem,modifier:this._config.modifier},n);return y(r,"addChild",this,3)([a,t,s])}if(t===xu.type){var c=this.results&&this.results.length>0;e=this.core.storage.get(gn);var l=f({template:this._noResultsTemplate,baseUniversalUrl:this.getBaseUniversalUrl(),verticalsConfig:this._verticalsConfig,isShowingResults:this._displayAllResults&&c},n);return y(r,"addChild",this,3)([e,t,l])}if(t===Hu.type){var u=f({resultsLength:this.results.length,resultsCount:this.resultsCount,nlpFilters:this.getState("nlpFilters")},e),h=f({},n);return this.resultsContext===on&&(h.showAppliedFilters=!1),y(r,"addChild",this,3)([u,t,f(f({isUniversal:this._config.isUniversal,verticalURL:this.getVerticalURL(),verticalKey:this.verticalKey},this.resultsHeaderOpts),h)])}return y(r,"addChild",this,3)([e,t,n])}}],[{key:"areDuplicateNamesAllowed",value:function(){return!0}},{key:"type",get:function(){return"VerticalResults"}},{key:"defaultTemplateName",value:function(e){return"results/verticalresults"}}])}(Bo),Qu=function(e){return f({icon:e.sectionTitleIconName||e.sectionTitleIconUrl,title:e.sectionTitle},e)},Wu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o]))._selectorBase=i.selectorBase||".js-yxt-AccordionResult",e.collapsedClass=i.collapsedClass||"is-collapsed",e.verticalConfigId=i.verticalConfigId||i._parentOpts.verticalConfigId||null,e}return u(r,e),o(r,[{key:"onMount",value:function(){var e=this;y(r,"onMount",this,3)([]);var t=this._container.firstElementChild;return br.queryAll(t,this._selectorBase).forEach((function(t){var n=br.query(t,e.toggleSelector()),r=br.query(t,e.bodySelector());e.changeHeight(r,t),n.addEventListener("click",(function(){e.handleClick(t,n,r)}))})),this}},{key:"setState",value:function(e){return y(r,"setState",this,3)([Object.assign({},e,{modifier:this.verticalConfigId})])}},{key:"handleClick",value:function(e,t,n){var r=new rr(this.isCollapsed(e)?"ROW_EXPAND":"ROW_COLLAPSE").addOptions({verticalKey:this.verticalConfigId,entityId:t.dataset.entityId});e.classList.toggle(this.collapsedClass),this.changeHeight(n,e),t.setAttribute("aria-expanded",this.isCollapsed(e)?"false":"true"),this.analyticsReporter.report(r)}},{key:"isCollapsed",value:function(e){return!!e&&e.classList.contains(this.collapsedClass)}},{key:"changeHeight",value:function(e,t){e.style.height="".concat(this.isCollapsed(t)?0:e.scrollHeight,"px")}},{key:"buildSelector",value:function(e){return"".concat(this._selectorBase).concat(e)}},{key:"toggleSelector",value:function(){return this.buildSelector("-toggle")}},{key:"bodySelector",value:function(){return this.buildSelector("-body")}}],[{key:"type",get:function(){return"AccordionResults"}},{key:"defaultTemplateName",value:function(e){return"results/resultsaccordion"}}])}(Zu),$u=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),(e=t(this,r,[i,o])).moduleId=pn,e._appliedFilters=f({show:!0,showFieldNames:!1,hiddenFields:["builtin.entityType"],resultsCountSeparator:"|",showChangeFilters:!1,delimiter:"|",labelText:"应用于此搜索的筛选条件:"},i.appliedFilters);var a=function(){return e.setState(e.core.storage.get(pn)||{})};return e.core.storage.registerListener({eventType:"update",storageKey:zn,callback:a}),e.core.storage.registerListener({eventType:"update",storageKey:Nn,callback:a}),e}return u(r,e),o(r,[{key:"updateContainerClass",value:function(e){var t=this;Object.values(Rt).forEach((function(e){t.removeContainerClass(mu(e))})),this.addContainerClass(mu(e))}},{key:"setState",value:function(e,t){var n=e.sections||[],i=this.core.storage.get(xn),o=e.searchState||Rt.PRE_SEARCH;if(this.updateContainerClass(o),o!==Rt.SEARCH_LOADING)return y(r,"setState",this,3)([Object.assign(e,{isPreSearch:o===Rt.PRE_SEARCH,isSearchLoading:o===Rt.SEARCH_LOADING,isSearchComplete:o===Rt.SEARCH_COMPLETE,showNoResults:0===n.length&&(i||""===i),query:i,sections:n},t)])}},{key:"addChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this._config.verticals||this._config.config||{},o=e.verticalConfigId,a=f(f({},n),r.getChildConfig(o,i[o]||{},this._appliedFilters)),s=a.useAccordion?Wu.type:t;return y(r,"addChild",this,3)([e,s,a])}}],[{key:"type",get:function(){return"UniversalResults"}},{key:"defaultTemplateName",value:function(e){return"results/universalresults"}},{key:"areDuplicateNamesAllowed",value:function(){return!0}},{key:"getChildConfig",value:function(e,t,n){return f(f({isUniversal:!0,title:t.sectionTitle||e,icon:t.sectionTitleIconName||t.sectionTitleIconUrl,verticalURL:t.url,viewMore:!0,viewMoreLabel:Ku(t,["viewMoreLabel","viewAllText"],"查看更多内容"),showResultCount:!1,useAccordion:!1},t),{},{appliedFilters:{show:Ku(t,["appliedFilters.show","showAppliedFilters"],n.show),showFieldNames:Ku(t,["appliedFilters.showFieldNames","showFieldNames"],n.showFieldNames),hiddenFields:Ku(t,["appliedFilters.hiddenFields","hiddenFields"],n.hiddenFields),resultsCountSeparator:Ku(t,["appliedFilters.resultsCountSeparator","resultsCountSeparator"],n.resultsCountSeparator),showChangeFilters:Ku(t,["appliedFilters.showChangeFilters","showChangeFilters"],n.showChangeFilters),changeFiltersText:Ku(t,["appliedFilters.changeFiltersText","changeFiltersText"],n.changeFiltersText),delimiter:Ku(t,["appliedFilters.delimiter"],n.delimiter),labelText:Ku(t,["appliedFilters.labelText"],n.labelText)}})}}])}(Bo),Yu=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,r),(e=t(this,r,[i,o]))._verticalKey=i.verticalKey||e.core.storage.get(Fn).verticalKey,"string"!=typeof e._verticalKey)throw new Dt("verticalKey not provided, but necessary for pagination","PaginationComponent");e._maxVisiblePagesDesktop=void 0===i.maxVisiblePagesDesktop?1:i.maxVisiblePagesDesktop,e._maxVisiblePagesMobile=void 0===i.maxVisiblePagesMobile?1:i.maxVisiblePagesMobile,e._showFirstAndLastPageButtons=void 0===i.showFirstAndLastButton||i.showFirstAndLastButton,e._firstPageButtonEnabled=void 0===i.showFirst?e._showFirstAndLastPageButtons:i.showFirst,e._lastPageButtonEnabled=void 0===i.showLast?e._showFirstAndLastPageButtons:i.showLast,e._pinFirstAndLastPage=void 0!==i.pinFirstAndLastPage&&i.pinFirstAndLastPage,e._icons=i.icons,e._analyticsOptions={verticalKey:e._verticalKey},e._pageLabel=void 0!==i.pageLabel?i.pageLabel:"页面",e._onPaginate=i.onPaginate||e.scrollToTop,e._limit=e.core.storage.get(Fn).limitForVertical;var a=e.core.storage.get(In)||0;return e.core.storage.set(In,Number(a)),e.core.storage.registerListener({eventType:"update",storageKey:In,callback:function(t){"number"!=typeof t&&e.core.storage.set(In,Number(t))}}),e.core.storage.registerListener({eventType:"update",storageKey:vn,callback:function(t){t.searchState===Rt.SEARCH_COMPLETE&&e.setState()}}),e._noResults=i.noResults||e.core.storage.get(Un)||{},e}return u(r,e),o(r,[{key:"shouldShowControls",value:function(e,t){var n="search-complete"===e.searchState&&e.resultsCount>t,r=e.resultsContext===rn,i="visible"in this._noResults?this._noResults.visible:this._noResults.displayAllResults;return n&&(r||i)}},{key:"onMount",value:function(){var e=this,t=this.core.storage.get(vn)||{},n=this.core.storage.get(Fn).limitForVertical,r=this.shouldShowControls(t,n),i=this.core.storage.get(In)||0;if(r){var o=br.query(this._container,".js-yxt-Pagination-previous"),a=br.query(this._container,".js-yxt-Pagination-next"),s=Math.trunc((t.resultsCount-1)/n);if(br.onClickOrEnter(o,(function(){return e.updatePage(i-n)})),br.onClickOrEnter(a,(function(){return e.updatePage(i+n)})),this._firstPageButtonEnabled){var c=br.query(this._container,".js-yxt-Pagination-first");br.onClickOrEnter(c,(function(){return e.updatePage(0)}))}if(this._lastPageButtonEnabled){var l=br.query(this._container,".js-yxt-Pagination-last");br.onClickOrEnter(l,(function(){return e.updatePage(s*n)}))}br.queryAll(".js-yxt-Pagination-link").forEach((function(t){br.onClickOrEnter(t,(function(){return e.updatePage((parseInt(t.dataset.number)-1)*n)}))}))}}},{key:"updatePage",value:function(e){var t=this.core.storage.get(vn)||{},n=(this.core.storage.get(In)||0)/this._limit+1,r=e/this._limit+1,i=this._computeMaxPage(t.resultsCount);this._onPaginate(r,n,i),this.core.storage.setWithPersist(In,e),this.core.verticalPage()}},{key:"scrollToTop",value:function(){document.documentElement.scrollTop=0,document.body.scrollTop=0}},{key:"_computeMaxPage",value:function(e){return Math.trunc((e-1)/this._limit)+1}},{key:"_allocate",value:function(e,t,n){for(var r=e,i=e,o=0;o<n;o++)o%2==0?r>0?r--:i<t&&i++:i<t?i++:r>0&&r--;return[r,i]}},{key:"_createPageNumberViews",value:function(e,t){for(var n=g(this._allocate(e,t,this._maxVisiblePagesMobile),2),r=n[0],i=n[1],o=g(this._allocate(e,t,this._maxVisiblePagesDesktop),2),a=o[0],s=o[1],c=[],l=1;l<=t;l++){var u={number:l};l===e?(u.active=!0,this._maxVisiblePagesDesktop>1&&(u.activeDesktop=!0),this._maxVisiblePagesMobile>1&&(u.activeMobile=!0)):((l<=r||l>i)&&(u.mobileHidden=!0),(l<=a||l>s)&&(u.desktopHidden=!0)),c.push(u)}return{pinnedNumbers:{mobileBack:this._pinFirstAndLastPage&&r>0,mobileFront:this._pinFirstAndLastPage&&i<t,desktopBack:this._pinFirstAndLastPage&&a>0,desktopFront:this._pinFirstAndLastPage&&s<t},ellipses:{mobileBack:this._pinFirstAndLastPage&&r>1,mobileFront:this._pinFirstAndLastPage&&i<t-1,desktopBack:this._pinFirstAndLastPage&&a>1,desktopFront:this._pinFirstAndLastPage&&s<t-1},pageNumberViews:c}}},{key:"setState",value:function(e){var t=this.core.storage.get(vn)||{},n=this.core.storage.get(In)||0,i=n/this._limit+1,o=t.resultsCount>n+this._limit,a=this._computeMaxPage(t.resultsCount),s=this._createPageNumberViews(i,a),c=s.pinnedNumbers,l=s.ellipses,u=s.pageNumberViews;return y(r,"setState",this,3)([f({showControls:this.shouldShowControls(t,this._limit),firstPageButtonEnabled:this._firstPageButtonEnabled,lastPageButtonEnabled:this._lastPageButtonEnabled,pageNumber:i,pageLabel:this._pageLabel,showFirstPageButton:i>2,showPreviousPageButton:i>1,showNextPageButton:o,showLastPageButton:i<a-1,icons:this._icons,pageNumbers:u,pinnedNumbers:c,ellipses:l,pinPages:this._pinFirstAndLastPage,nextPage:i+1,maxPage:a},e)])}}],[{key:"type",get:function(){return"Pagination"}},{key:"defaultTemplateName",value:function(){return"results/pagination"}}])}(Bo),Ju=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r);var a=(e=t(this,r,[i,o]))._config.data||{};e.result=a.result||{},e.includeLegacyClasses=e._config.includeLegacyClasses||!1,e.verticalKey=a.verticalKey,e.isUniversal=e._config.isUniversal||!1;var s=e._config.callsToAction||[];e.callsToAction=r.resolveCTAMapping.apply(r,[e.result._raw].concat(_(s)));var c=e._config._ctaModifiers||[];return 1===e.callsToAction.length&&c.push("solo"),e.callsToAction=e.callsToAction.map((function(t){return f({eventOptions:e.defaultEventOptions(e.result),_ctaModifiers:c,includeLegacyClasses:e.includeLegacyClasses},t)})),e}return u(r,e),o(r,[{key:"defaultEventOptions",value:function(e){var t={verticalKey:this.verticalKey,searcher:this._config.isUniversal?hn:dn};return e._raw.id&&(t.entityId=e._raw.id),t}},{key:"setState",value:function(e){return y(r,"setState",this,3)([f(f({},e),{},{includeLegacyClasses:this.includeLegacyClasses,callsToAction:this.callsToAction})])}}],[{key:"resolveCTAMapping",value:function(e){for(var t=[],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(n){if("function"==typeof n)t=t.concat(n(e));else if("object"===k(n)){for(var r=f({},n),i=0,o=Object.entries(n);i<o.length;i++){var a=g(o[i],2),s=a[0],c=a[1];"function"==typeof c&&(r[s]=c(e))}t.push(r)}})),(t=t.filter((function(e){return e}))).forEach((function(e){e.label||e.url?e.label?e.url||console.warn("Call to Action:",e,"is missing a url attribute and is being automatically hidden"):console.warn("Call to Action:",e,"is missing a label attribute and is being automatically hidden"):console.warn("Call to Action:",e,"is missing both a label and url attribute and is being automatically hidden")})),t.filter((function(e){return e.url&&e.url.trim()&&e.label&&e.label.trim()}))}},{key:"hasCTAs",value:function(e,t){return r.resolveCTAMapping.apply(r,[e].concat(_(t))).length>0}},{key:"type",get:function(){return"CTACollection"}},{key:"defaultTemplateName",value:function(){return"ctas/ctacollection"}}])}(Bo),Xu=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t);var r=t.data||{},i=r.result||{},o=i._raw||{};Object.assign(this,Bu.applyDataMappings(o,t.dataMappings||{})),this.result=t.data||{},this.title=this.title||i.title||o.name||"",this.details=null===this.details?null:this.details||i.details||o.description||"",this.url=null===this.url?"":this.url||i.link||o.website,this.showMoreText=this.showMoreText||"显示更多内容",this.showLessText=this.showLessText||"显示较少内容",this.showMoreLimit=this.showMoreLimit,this.target=this.target,this.image=this.image,this.subtitle=this.subtitle;var a=this.details.length>this.showMoreLimit;this.showToggle=this.showMoreLimit&&a,this.callsToAction=this.callsToAction||[],this.showOrdinal=this.showOrdinal||!1,this.isUniversal=this.isUniversal||!1,this._index=t._index||0})),eh=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),(e=t(this,r,[new Xu(i),o])).hideExcessDetails=e._config.showToggle;var a=i.data||{};return e.verticalKey=a.verticalKey,e.result=a.result||{},e}return u(r,e),o(r,[{key:"setState",value:function(e){var t=this._config.details;return this._config.showMoreLimit&&(t=this.hideExcessDetails?"".concat(this._config.details.substring(0,this._config.showMoreLimit),"..."):this._config.details),y(r,"setState",this,3)([f(f({},e),{},{hideExcessDetails:this.hideExcessDetails,result:this.result,hasCTAs:Ju.hasCTAs(this.result._raw,this._config.callsToAction),entityId:this.result._raw.id,verticalKey:this.verticalKey,details:t})])}},{key:"onMount",value:function(){var e=this;if(this._config.showToggle){var t=br.query(this._container,".js-yxt-StandardCard-toggle");br.on(t,"click",(function(){e.hideExcessDetails=!e.hideExcessDetails,e.setState()}))}}},{key:"addChild",value:function(e,t,n){if(t===Ju.type){var i={verticalKey:this.verticalKey,result:e};return y(r,"addChild",this,3)([i,t,f({callsToAction:this._config.callsToAction,isUniversal:this._config.isUniversal,_ctaModifiers:["StandardCard"]},n)])}return y(r,"addChild",this,3)([e,t,n])}}],[{key:"type",get:function(){return Nu.Standard}},{key:"defaultTemplateName",value:function(){return Ru}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(Bo),th=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t);var r=t.data||{},i=r.result||{},o=i._raw||{},a=t.dataMappings||{};Object.assign(this,Bu.applyDataMappings(o,a)),this.verticalKey=t.verticalKey,this.title=this.title||i.title||o.name||"",this.subtitle=this.subtitle,this.details=null===this.details?null:this.details||i.details||o.description||"",this.expanded=this.expanded||!1,this.callsToAction=this.callsToAction||[],this.isUniversal=t.isUniversal||!1})),nh=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),(e=t(this,r,[new th(i),o])).isExpanded=e._config.expanded&&0===i._index;var a=i.data||{};return e.verticalKey=a.verticalKey,e.result=a.result||{},e}return u(r,e),o(r,[{key:"setState",value:function(e){var t=this.result.id||this.result.ordinal;return y(r,"setState",this,3)([f(f({},e),{},{result:this.result,isExpanded:this.isExpanded,id:"".concat(this.name,"-").concat(t,"-").concat(this.verticalKey),hasCTAs:Ju.hasCTAs(this.result._raw,this._config.callsToAction)})])}},{key:"handleClick",value:function(e,t,n){this.isExpanded=!this.isExpanded,n.classList.toggle("yxt-AccordionCard--expanded"),t.style.height="".concat(this.isExpanded?t.scrollHeight:0,"px"),e.setAttribute("aria-expanded",this.isExpanded?"true":"false"),t.setAttribute("aria-hidden",this.isExpanded?"false":"true");var r=new rr(this.isExpanded?"ROW_EXPAND":"ROW_COLLAPSE").addOptions({verticalKey:this.verticalKey,entityId:this.result._raw.id});this.analyticsReporter.report(r)}},{key:"onMount",value:function(){var e=this;if(this._config.details){var t=br.query(this._container,".js-yxt-AccordionCard-toggle"),n=br.query(this._container,".js-yxt-AccordionCard-body"),r=br.query(this._container,".js-yxt-AccordionCard");n.style.height="".concat(this.isExpanded?n.scrollHeight:0,"px"),br.on(t,"click",(function(){return e.handleClick(t,n,r)}))}}},{key:"addChild",value:function(e,t,n){if(t===Ju.type){var i={verticalKey:this.verticalKey,result:e};return y(r,"addChild",this,3)([i,t,f({callsToAction:this._config.callsToAction,_ctaModifiers:["AccordionCard"],isUniversal:this._config.isUniversal},n)])}return y(r,"addChild",this,3)([e,t,n])}}],[{key:"type",get:function(){return Nu.Accordion}},{key:"defaultTemplateName",value:function(){return ju}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(Bo),rh=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t);var r=t.data||{},i=r.result||{},o=i._raw||{};Object.assign(this,Bu.applyDataMappings(o,t.dataMappings||{})),this.result=t.data||{},this.title=this.title||i.title||o.name||"",this.details=null===this.details?null:this.details||i.details||o.description||"",this.url=null===this.url?"":this.url||i.link||o.website,this.target=this.target,this.image=this.image,this.subtitle=this.subtitle,this.callsToAction=this.callsToAction||[],this.showOrdinal=this.showOrdinal||!1,this.isUniversal=this.isUniversal||!1,this._index=t._index||0})),ih=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),e=t(this,r,[new rh(i),o]);var a=i.data||{};return e.verticalKey=a.verticalKey,e.result=a.result||{},e}return u(r,e),o(r,[{key:"setState",value:function(e){return y(r,"setState",this,3)([f(f({},e),{},{eventOptions:this._legacyEventOptions(this.result._raw.id,this.result.link),result:this.result,hasCTAs:Ju.hasCTAs(this.result._raw,this._config.callsToAction),entityId:this.result._raw.id,verticalKey:this.verticalKey})])}},{key:"_legacyEventOptions",value:function(e,t){var n={verticalConfigId:this.verticalKey,searcher:this._config.isUniversal?hn:dn};return e?n.entityId=e:n.url=t,JSON.stringify(n)}},{key:"addChild",value:function(e,t,n){if(t===Ju.type){var i={verticalKey:this.verticalKey,result:e};return y(r,"addChild",this,3)([i,t,f({callsToAction:this._config.callsToAction,isUniversal:this._config.isUniversal,_ctaModifiers:["LegacyCard"],includeLegacyClasses:!0},n)])}return y(r,"addChild",this,3)([e,t,n])}}],[{key:"type",get:function(){return Nu.Legacy}},{key:"defaultTemplateName",value:function(){return Pu}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(Bo),oh={entityId:null,formSelector:"form",emailLabel:"电子邮件",nameLabel:"名称",questionLabel:"问题",privacyPolicyText:"提交我的电子邮件地址,即表示我同意通过所提供的电子邮件地址与我联系。",buttonLabel:"提交",sectionTitle:"提问",teaser:"找不到你要找的内容?请在下方提问。",sectionTitleIconName:"support",description:"请输入问题和联系信息,我们会尽快回复你。",requiredInputPlaceholder:"(必填项)",questionInputPlaceholder:"在此处输入你的问题",questionSubmissionConfirmationText:"感谢提问!",privacyPolicyUrlLabel:"点击此处了解更多信息。",privacyPolicyUrl:"",privacyPolicyErrorText:"* 必须同意隐私政策才能提交问题。",emailFormatErrorText:"* 请输入有效的电子邮件地址。",defaultErrorText:"很抱歉,发生了错误。",emailInvalidErrorText:"电子邮件地址无效。请刷新页面,然后尝试重新提交问题。",expanded:!0},ah=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,r),(e=t(this,r,[Object.assign({},oh,i),o])).moduleId=Ln,e.locale=e.core.storage.get(Bn),e.validateConfig();var a=function(t){if(t.searchState!==Rt.SEARCH_LOADING){var n=e.core.storage.get(xn);e.setState(new er({questionText:n,expanded:e._config.expanded}))}else e.unMount()};return e.core.storage.registerListener({eventType:"update",storageKey:vn,callback:a}),e.core.storage.registerListener({eventType:"update",storageKey:pn,callback:a}),e}return u(r,e),o(r,[{key:"validateConfig",value:function(){if(null===this._config.entityId||void 0===this._config.entityId)throw new Dt("`entityId` is a required configuration option for Question Submission","QuestionSubmission")}},{key:"beforeMount",value:function(){return Object.keys(this.getState()).length>1}},{key:"onMount",value:function(){var e=br.query(this._container,".js-content-visibility-toggle");null!==e&&this.bindFormToggle(e);var t=br.query(this._container,this._config.formSelector);null!==t&&(this.bindFormFocus(t),this.bindFormSubmit(t))}},{key:"bindFormFocus",value:function(e){var t=this;if(null!==this.analyticsReporter){var n=br.query(e,".js-question-text");br.on(n,"focus",(function(){var e;null===(e=t.analyticsReporter)||void 0===e||e.report(t.getAnalyticsEvent("QUESTION_FOCUS"))}))}}},{key:"bindFormSubmit",value:function(e){var t=this;br.on(e,"submit",(function(n){var r;n.preventDefault(),null===(r=t.analyticsReporter)||void 0===r||r.report(t.getAnalyticsEvent("QUESTION_SUBMIT"));var i=t.validate(e),o=t.parse(e);if(Object.keys(i).length)return t.setState(new er(o,i));t.core.submitQuestion({entityId:t._config.entityId,site:"FIRSTPARTY",name:o.name,email:o.email,questionText:o.questionText,questionDescription:o.questionDescription}).catch((function(e){var n=t._config.defaultErrorText;throw 22===e.code&&(n=t._config.emailInvalidErrorText),t.setState(new er(o,{network:n})),e}))}))}},{key:"bindFormToggle",value:function(e){var t=this;br.on(e,"click",(function(e){var n=t.getState();t.setState(new er(f(f({},n),{},{expanded:!n.questionExpanded,submitted:n.questionSubmitted}),n.errors))}))}},{key:"parse",value:function(e){var t=br.queryAll(e,".js-question-field");if(!t||0===t.length)return{};for(var n={},r=0;r<t.length;r++){var i=t[r].value;"checkbox"===t[r].type&&(i=t[r].checked),n[t[r].name]=i}return n}},{key:"validate",value:function(e){for(var t={},n=br.queryAll(e,".js-question-field"),r=0;r<n.length;r++)if(!n[r].checkValidity())switch(0===r&&n[r].focus(),n[r].name){case"email":t.emailError=!0,n[r].validity.valueMissing||(t.emailErrorText=this._config.emailFormatErrorText);break;case"name":t.nameError=!0;break;case"privacyPolicy":t.privacyPolicyErrorText=this._config.privacyPolicyErrorText,t.privacyPolicyError=!0;break;case"questionText":t.questionTextError=!0}return t}},{key:"getAnalyticsEvent",value:function(e){var t=new rr(e);return t.addOptions({verticalKey:this._verticalKey}),t}}],[{key:"defaultTemplateName",value:function(e){return"questions/questionsubmission"}},{key:"type",get:function(){return"QASubmission"}}])}(Bo),sh=function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o])).iconName=i.iconName||"default",e.iconUrl=i.iconUrl||null,e.classNames=i.classNames||null,e.complexContentsParams=i.complexContentsParams||{},e}return u(r,e),o(r,[{key:"setState",value:function(e){return y(r,"setState",this,3)([Object.assign(e,{iconUrl:this.iconUrl,iconName:this.iconName,name:this.iconName?this.iconName:"custom",classNames:this.classNames,complexContentsParams:this.complexContentsParams})])}}],[{key:"type",get:function(){return"IconComponent"}},{key:"defaultTemplateName",value:function(e){return"icons/icon"}},{key:"areDuplicateNamesAllowed",value:function(){return!0}}])}(Bo),ch=o((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),Object.assign(this,t),this.label=t.label,this.icon=t.icon,this.iconUrl=t.iconUrl,this.includeLegacyClasses=t.includeLegacyClasses||!1,this.url=t.url,this.analyticsEventType=t.analytics||t.eventType||"CTA_CLICK",this.target=t.target||"_blank","string"==typeof t.eventOptions&&(this.eventOptions=JSON.parse(t.eventOptions)),this.eventOptions=this.eventOptions,this._ctaModifiers=t._ctaModifiers,this._isSolo=t._isSolo||!1})),lh={showFieldNames:!1,showChangeFilters:!1,removable:!1,delimiter:"|",labelText:"Filters applied to this search:",removableLabelText:"Remove this filter",hiddenFields:["builtin.entityType"]},uh=[Bo,Ra,xa,Pa,Ja,es,rs,os,hs,fs,ps,du,pu,vu,ku,Su,$u,Zu,Yu,Wu,Iu,xu,Hu,Bu,eh,nh,ih,ah,sh,function(e){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),t(this,r,[new ch(e),i])}return u(r,e),o(r,[{key:"onMount",value:function(){var e=this,t=br.query(this._container,".js-yxt-CTA");if(t&&this._config.eventOptions){var n=function(t){0!==t.button&&1!==t.button||e.reportAnalyticsEvent()};br.on(t,"click",(function(e){n(e)})),br.on(t,"auxclick",(function(e){n(e)}))}}},{key:"setState",value:function(e){return y(r,"setState",this,3)([f(f({},e),{},{hasIcon:this._config.icon||this._config.iconUrl})])}},{key:"reportAnalyticsEvent",value:function(){var e=new rr(this._config.analyticsEventType);e.addOptions(this._config.eventOptions),this.analyticsReporter.report(e)}}],[{key:"type",get:function(){return"CTA"}},{key:"defaultTemplateName",value:function(e){return"ctas/cta"}}])}(Bo),Ju,function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[i,o])).core.storage.registerListener({eventType:"update",storageKey:vn,callback:function(t){t.searchState===Rt.SEARCH_COMPLETE&&e.setState(t)}}),e._visibleForNoResults=!!(i.noResults||{}).visible,e}return u(r,e),o(r,[{key:"setState",value:function(e){var t=e||{},n=t.resultsCount||0,i=(t.results||[]).length,o=this.core.storage.get(In)||0,a=t.resultsContext===on,s=0===n,c=!this._visibleForNoResults&&a||s;return y(r,"setState",this,3)([f(f({},e),{},{total:n,pageStart:o+1,pageEnd:o+i,isHidden:c})])}}],[{key:"areDuplicateNamesAllowed",value:function(){return!0}},{key:"type",get:function(){return"VerticalResultsCount"}},{key:"defaultTemplateName",value:function(e){return"results/verticalresultscount"}}])}(Bo),function(e){function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),(e=t(this,r,[f(f({},lh),i),o]))._verticalKey=e._config.verticalKey||e.core.storage.get(Fn).verticalKey,e.moduleId=Gn,e.core.storage.registerListener({eventType:"update",storageKey:vn,callback:function(t){t.searchState===Rt.SEARCH_COMPLETE&&e.setState()}}),e}return u(r,e),o(r,[{key:"onMount",value:function(){var e=this;br.queryAll(this._container,".js-yxt-AppliedFilters-removableFilterTag").forEach((function(t){br.on(t,"click",(function(){return e._removeFilterTag(t)}))}))}},{key:"_removeFilterTag",value:function(e){var t=e.dataset.filterId;this.appliedFilterNodes[t].remove(),this.core.triggerSearch(tr.FILTER_COMPONENT)}},{key:"_getPrunedNlpFilterNodes",value:function(){var e=this;return Vu(this.nlpFilterNodes.filter((function(t){return!e.appliedFilterNodes.find((function(e){return e.hasSameFilterAs(t)}))})),this._config.hiddenFields)}},{key:"_groupAppliedFilters",value:function(){var e=this,t=function(e){return e.getMetadata().fieldName},n=as(this.appliedFilterNodes,t,(function(t,n){return{displayValue:t.getMetadata().displayValue,dataFilterId:n,removable:e._config.removable}}));return as(this._getPrunedNlpFilterNodes(),t,(function(e){return{displayValue:e.getMetadata().displayValue}}),n)}},{key:"_createAppliedFiltersArray",value:function(){var e=this._groupAppliedFilters();return Object.keys(e).map((function(t){return{label:t,filterDataArray:e[t]}}))}},{key:"_calculateAppliedFilterNodes",value:function(){return Vu(Uu(this.core.filterRegistry.getAllFilterNodes()),this._config.hiddenFields)}},{key:"setState",value:function(e){var t=(this.core.storage.get(vn)||{}).appliedQueryFilters||[];this.nlpFilterNodes=qu(t),this.appliedFilterNodes=this._calculateAppliedFilterNodes();var n=this._createAppliedFiltersArray();return y(r,"setState",this,3)([f(f({},e),{},{appliedFiltersArray:n})])}}],[{key:"areDuplicateNamesAllowed",value:function(){return!0}},{key:"type",get:function(){return"AppliedFilters"}},{key:"defaultTemplateName",value:function(e){return"results/appliedfilters"}}])}(Bo)].reduce((function(e,t){return e[t.type]=t,e}),{});var hh="RESULTS_HIDDEN",dh="RESULTS_UNHIDDEN",fh=function(){return o((function e(t,r){n(this,e),this._previousResultsVisibilityEvent=void 0,this._analyticsReporterService=t,this._verticalKey=r}),[{key:"initVisibilityChangeListeners",value:function(e){var t=this;document.addEventListener("visibilitychange",(function(){t._resultsVisibilityChangeToHidden()?(t._previousResultsVisibilityEvent=hh,t._reportVisibilityChangeEvent(hh)):t._resultsVisibilityChangeToVisible()&&(t._previousResultsVisibilityEvent=dh,t._reportVisibilityChangeEvent(dh))})),"Internet Explorer"===ea.parse(navigator.userAgent).browser.name&&window.addEventListener("unload",(function(){t._previousResultsVisibilityEvent!==hh&&t._reportVisibilityChangeEvent(hh)})),window.addEventListener("popstate",(function(){var n,r=null===(n=e.get(Qn))||void 0===n?void 0:n.get("pop-state-queryId"),i=t._analyticsReporterService.getQueryId();t._analyticsReporterService.setQueryId(r),t._previousResultsVisibilityEvent=hh,t._reportVisibilityChangeEvent(hh),t._analyticsReporterService.setQueryId(i)})),e.registerListener({eventType:"update",storageKey:An,callback:function(e){t._resultsVisibilityChangeToVisible()&&(t._previousResultsVisibilityEvent=dh,t._reportVisibilityChangeEvent(dh))}})}},{key:"_resultsVisibilityChangeToHidden",value:function(){return"hidden"===document.visibilityState&&this._previousResultsVisibilityEvent!==hh}},{key:"_resultsVisibilityChangeToVisible",value:function(){return"visible"===document.visibilityState&&this._previousResultsVisibilityEvent!==dh}},{key:"_reportVisibilityChangeEvent",value:function(e){if(this._analyticsReporterService.getQueryId()){var t=new rr(e);this._analyticsReporterService.report(t)}}}])}(),ph={environment:"production",locale:"zh-Hans",querySource:"STANDARD",analyticsEventsEnabled:!0};return new(function(){return o((function e(){var t=this;if(n(this,e),!e.setInstance(this))return e.getInstance();this.Component=Bo,this.AnalyticsEvent=rr,this.FilterNodeFactory=dr,this.renderer=new mi.Handlebars,this.formatRichText=Oi.format,this.formatDistance=function(e){return vi(e,t.core.storage.get(Bn))},this.components=new Ho(uh),this.core=null,this._onReady=function(){},this._eligibleForAnalytics=!1,this._services=null,this._analyticsReporterService=null}),[{key:"_initStorage",value:function(e){var t=this,n=new Do({updateListener:function(t,n){e.onStateChange&&e.onStateChange(Object.fromEntries(t),n)},resetListener:function(e){var n=e.get(xn),r=n||""===n;t.core.storage.delete(Cn),t.core.storage.delete(kn),t.core.storage.delete(On),t.core.storage.delete(qn),t.core.filterRegistry.clearAllFilterNodes();var i=t.core.storage.get(An);e.set("pop-state-queryId",i),r?t.core.storage.set(Kn,tr.QUERY_PARAMETER):t.core.clearResults(),e.get(In)||t.core.storage.set(In,0),e.forEach((function(e,n){if(n!==xn){var r=t._parsePersistentStorageValue(n,e);t.core.storage.set(n,r)}})),t.core.storage.set(Qn,e),r&&t.core.storage.set(xn,n)},persistedValueParser:this._parsePersistentStorageValue});n.init(window.location.search),n.set(Fn,e.search),n.set(Dn,e.verticalPages),n.set(Bn,e.locale),n.set(Zn,e.querySource);var r=n.get(Nn);r?n.set(Nn,{value:/^true$/i.test(r),setDynamically:!0}):n.set(Nn,{value:e.sessionTrackingEnabled,setDynamically:!1}),e.noResults&&n.set(Un,e.noResults);var i=n.get(Kn)===tr.SUGGEST;n.has(xn)&&!i&&n.set(Kn,tr.QUERY_PARAMETER);var o=n.get(zn);return o&&!Zo(o)&&(n.delete(zn),console.error('Context parameter "'.concat(o,'" is invalid, omitting from the search.'))),void 0===n.get(Hn)&&n.set(Hn,document.referrer.split("?")[0].split("#")[0]),n}},{key:"init",value:function(e){var t=this;window.performance.mark("yext.answers.initStart");var n=this.parseConfig(e);this.validateConfig(n),n.search=new zo(n.search),n.verticalPages=new Go(n.verticalPages);var r,i,o,a=this._initStorage(n);if(this._services=n.mock?{errorReporterService:new Vo}:function(e,t){return{errorReporterService:new Uo({apiKey:e.apiKey,experienceKey:e.experienceKey,experienceVersion:e.experienceVersion,printVerbose:e.debug,sendToServer:!e.suppressErrorReports,environment:e.environment},t)}}(n,a),this._eligibleForAnalytics=null!=n.businessId,this._eligibleForAnalytics&&n.mock)this._analyticsReporterService=new Ro;else if(this._eligibleForAnalytics){var s;this._analyticsReporterService=new Io(n.experienceKey,n.experienceVersion,n.businessId,n.analyticsEventsEnabled,n.eventsApiKey,n.analyticsOptions,n.environment,n.cloudChoice),a.registerListener({eventType:"update",storageKey:An,callback:function(e){return t._analyticsReporterService.setQueryId(e)}}),a.registerListener({eventType:"update",storageKey:Wn,callback:function(e){return t._analyticsReporterService.setSearchId(e)}}),a.registerListener({eventType:"update",storageKey:xn,callback:function(e){return t._analyticsReporterService.setSearchTerm(e)}}),this.components.setAnalyticsReporter(this._analyticsReporterService),r=this._analyticsReporterService,i=null,o=function(){if(window.innerHeight+window.pageYOffset>=document.body.scrollHeight){var e=new rr("SCROLL_TO_BOTTOM_OF_PAGE");r.getQueryId()&&r.report(e)}},document.addEventListener("scroll",(function(){clearTimeout(i),i=setTimeout(o,100)})),new fh(this._analyticsReporterService,null===(s=n.search)||void 0===s?void 0:s.verticalKey).initVisibilityChangeListeners(a)}return this.core=new Fi({token:n.token,apiKey:n.apiKey,storage:a,experienceKey:n.experienceKey,fieldFormatters:n.fieldFormatters,experienceVersion:n.experienceVersion,locale:n.locale,analyticsReporter:this._analyticsReporterService,onVerticalSearch:n.onVerticalSearch,onUniversalSearch:n.onUniversalSearch,environment:n.environment,componentManager:this.components,additionalHttpHeaders:n.additionalHttpHeaders,cloudChoice:n.cloudChoice}),n.onStateChange&&"function"==typeof n.onStateChange&&n.onStateChange(Object.fromEntries(a.getAll()),this.core.storage.getCurrentStateUrlMerged()),this.components.setCore(this.core).setRenderer(this.renderer),this._setDefaultInitialSearch(n.search),n.visitor?this.setVisitor(n.visitor):this.core.init(),this._onReady=n.onReady||function(){},this._loadAsyncDependencies(n).finally((function(){t._onReady();var e,r,i,o,a,s=!!t.components.getActiveComponent(xa.type);if(s&&t._analyticsReporterService){var c,l=t.components.getNumActiveComponents(),u=(e={verticalKey:null===(c=n.search)||void 0===c?void 0:c.verticalKey,standAlone:l>=1&&l<=2},r=e.verticalKey,i=void 0===r?void 0:r,o=e.standAlone,a=void 0!==o&&o,rr.fromData(f(f({type:"SEARCH_BAR_IMPRESSION",searcher:i?dn:hn},i&&{verticalConfigId:i}),{},{standAlone:a})));t._analyticsReporterService.report(u,{includeQueryId:!1})}s||t._initQueryUpdateListener(n.search),n.useGenerativeDirectAnswers&&t._initResultsUpdateListener(),t._searchOnLoad()}))}},{key:"_initQueryUpdateListener",value:function(e){var t=e.verticalKey,n=e.defaultInitialSearch,r=new Wo(this.core,{defaultInitialSearch:n,verticalKey:t});this.core.setQueryUpdateListener(r)}},{key:"_initResultsUpdateListener",value:function(){var e=new Aa(this.core);this.core.setResultsUpdateListener(e)}},{key:"_searchOnLoad",value:function(){var e=this.components._activeComponents.filter((function(e){return e.constructor.type===xa.type}));e.length?e.forEach((function(e){return e.searchAfterAnswersOnReady&&e.searchAfterAnswersOnReady()})):this.core.storage.has(xn)&&this.core.triggerSearch(this.core.storage.get(Kn))}},{key:"_loadAsyncDependencies",value:function(e){var t=this._loadTemplates(e),n=this._handlePonyfillCssVariables(e.disableCssVariablesPonyfill);return Promise.all([t,n])}},{key:"_loadTemplates",value:function(e){var t=this,n=e.useTemplates,r=e.templateBundle;return!1===n||r?r?(this.renderer.init(r,this._getInitLocale()),Promise.resolve()):void 0:(this.templates=new yi((function(e){t.renderer.init(e,t._getInitLocale())})),this.templates.fetchTemplates())}},{key:"domReady",value:function(e){br.onReady(e)}},{key:"onReady",value:function(e){return this._onReady=e,this}},{key:"parseConfig",value:function(e){var t=Object.assign({},ph,e),n=!0;"boolean"==typeof e.sessionTrackingEnabled&&(n=e.sessionTrackingEnabled),t.sessionTrackingEnabled=n;var r=!1;if("boolean"==typeof e.useGenerativeDirectAnswers&&(r=e.useGenerativeDirectAnswers),t.useGenerativeDirectAnswers=r,t.apiKey){var i="".concat("sandbox","-");e.environment||(t.apiKey.includes(i)?t.environment="sandbox":t.environment="production"),t.apiKey=t.apiKey.replace(i,"")}return t}},{key:"validateConfig",value:function(e){if("string"!=typeof e.apiKey&&"string"!=typeof e.token)throw new Error("Missing required `apiKey` or `token`. Type must be {string}");if("string"==typeof e.apiKey&&"string"==typeof e.token)throw new Error("Both apiKey and token are present. Only one authentication method should be provided");if("string"!=typeof e.experienceKey)throw new Error("Missing required `experienceKey`. Type must be {string}");if(e.onVerticalSearch&&"function"!=typeof e.onVerticalSearch)throw new Error("onVerticalSearch must be a function. Current type is: "+k(e.onVerticalSearch));if(e.onUniversalSearch&&"function"!=typeof e.onUniversalSearch)throw new Error("onUniversalSearch must be a function. Current type is: "+k(e.onUniversalSearch))}},{key:"registerComponentType",value:function(e){this.components.register(e)}},{key:"addComponent",value:function(e,t){"string"==typeof t&&(t={container:t});try{this.components.create(e,t).mount()}catch(t){console.error("Failed to add component",e,"\n\n",t)}return this}},{key:"removeComponent",value:function(e){this.components.removeByName(e)}},{key:"createComponent",value:function(e){return this.components.create("Component",e).mount()}},{key:"search",value:function(e){this.core.storage.setWithPersist(xn,e)}},{key:"registerHelper",value:function(e,t){return this.renderer.registerHelper(e,t),this}},{key:"registerTemplate",value:function(e,t){this.renderer.registerTemplate(e,t)}},{key:"registerPartial",value:function(e,t){this.renderer.registerPartial(e,t)}},{key:"getAnalyticsOptIn",value:function(){var e;return null===(e=this._analyticsReporterService)||void 0===e?void 0:e.getAnalyticsOptIn()}},{key:"setAnalyticsOptIn",value:function(e){this._analyticsReporterService.setAnalyticsOptIn(e)}},{key:"setSessionsOptIn",value:function(e){this.core.storage.set(Nn,{value:e,setDynamically:!0})}},{key:"setQuerySource",value:function(e){this.core.storage.set(Zn,e)}},{key:"_setDefaultInitialSearch",value:function(e){null!=e.defaultInitialSearch&&(null==this.core.storage.get(xn)&&(this.core.storage.set(Kn,tr.INITIALIZE),this.core.storage.set(xn,e.defaultInitialSearch)))}},{key:"setGeolocation",value:function(e,t){this.core.storage.set(Tn,{lat:e,lng:t,radius:0})}},{key:"_handlePonyfillCssVariables",value:function(e){var t=this;return window.performance.mark("yext.answers.ponyfillStart"),e?(window.performance.mark("yext.answers.ponyfillEnd"),Promise.resolve()):new Promise((function(e,n){t.ponyfillCssVariables({onFinally:function(){window.performance.mark("yext.answers.ponyfillEnd"),e()}})}))}},{key:"ponyfillCssVariables",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oo({onlyLegacy:!0,onError:e.onError||function(){},onSuccess:e.onSuccess||function(){},onFinally:e.onFinally||function(){},onBeforeSend:function(e,t,n){try{var r=new URL(n),i=new kr(r.search);i.set("_",(new Date).getTime()),r.search=i.toString(),e.open("GET",r.toString())}catch(e){}}})}},{key:"setContext",value:function(e){var t=JSON.stringify(e);Zo(t)?this.core.storage.set(zn,t):console.error('Context parameter "'.concat(e,'" is invalid, omitting from the search.'))}},{key:"processTranslation",value:function(e,t,n,r){var i=this._getInitLocale(),o=li(null!=r?r:i).language;if(!this.renderer)return console.error("The renderer must be initialized before translations can be processed"),"";var a=this.renderer.escapeExpression.bind(this.renderer);return ci.process(e,t,n,o,a)}},{key:"_getInitLocale",value:function(){return this.core.storage.get(Bn)}},{key:"_parsePersistentStorageValue",value:function(e,t){switch(e){case kn:return Yt.from(JSON.parse(t));case Cn:return parseFloat(t);case On:case qn:return JSON.parse(t);default:return t}}},{key:"setVisitor",value:function(e){var t;e.id?(null===(t=this._analyticsReporterService)||void 0===t||t.setVisitor(e),this.core.init({visitor:e})):(console.error('Invalid visitor. Visitor was not set because "'.concat(JSON.stringify(e),'" does not have an id.')),this.core.init())}}],[{key:"setInstance",value:function(e){return!this.instance&&(this.instance=e,!0)}},{key:"getInstance",value:function(){return this.instance}}])}())}));
//# sourceMappingURL=zh-Hans-answers-modern.min.js.map