1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12592,e=>{"use strict";e.s(["Tracer",0,class{static startTrace(e,t){return t(void 0)}static startSpan(e,t=!1,r){return{span:void 0,ctx:void 0}}static traceWidget(e,t=!1){return this.startSpan(e.model.Name,t,e.traceContext)}static endSpan(e){return null}static withContext(e,t){return e()}static logEvent(e,t,r){}}])},867385,e=>{"use strict";var t=e.i(510154);e.s(["getCustomAttributes",0,(e,t)=>{if(!e||!e[t])return{};let r={};return e[t].forEach(e=>{r[e.Key]=e.Value}),r},"htmlAttributes",0,function(e,r){if(!e.requestContext.isEdit)return{};let a=e.model,i=e.metadata,n=i?.editorMetadata,o={"data-sfname":a.Name,"data-sftitle":t.SanitizerService.getInstance().sanitizeHtml(a.Caption||n?.Title||a.Name),"data-sfid":a.Id,"data-sfisorphaned":a.Orphaned?"true":"false","data-sficonname":n?.IconName,"data-sficonurl":n?.IconUrl};return o["data-sfisemptyvisualhidden"]=!1,o["data-sfisempty"]=!1,o.draggable=!0,n&&(n.EmptyIcon&&(o["data-sfemptyicon"]=n.EmptyIcon),n.EmptyIconAction&&(o["data-sfemptyiconaction"]=n.EmptyIconAction),n.EmptyIconText&&(o["data-sfemptyicontext"]=n.EmptyIconText),n.HideEmptyVisual&&(o["data-sfisemptyvisualhidden"]=n.HideEmptyVisual),n.HasQuickEditOperation&&(o["data-sfhasquickeditoperation"]=!0),n.IsEmptyEntity&&(o["data-sfisemptyentity"]=!0),o["data-sfiscontentwidget"]="Layout & Presets"!==n.Category&&"Layout"!==n.Category),r&&(o["data-sferror"]=r),o}])},685727,269453,e=>{"use strict";function t(e){return JSON.parse(JSON.stringify(e))}function r(e){return{...e,...{layout:{Culture:e.layout.Culture,SiteId:e.layout.SiteId,Id:e.layout.Id,MetaInfo:e.layout.MetaInfo,UrlParameters:e.layout.UrlParameters,Fields:e.layout.Fields,Site:e.layout.Site}}}}e.s(["deepCopy",0,t],269453),e.s(["getMinimumRequestContext",0,r,"getMinimumWidgetContext",0,function(e){return t({model:e.model,requestContext:r(e.requestContext),metadata:e.metadata,traceContext:null})}],685727)},851370,206771,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(867385);function i(e){let r=(0,a.htmlAttributes)(e.context,e.error);return(0,t.jsx)("div",{...r})}e.s(["WidgetExecutionError",0,i],206771);class n extends r.default.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){if(this.state.error){if(this.props.context.requestContext.isEdit){let e={context:this.props.context,error:this.state.error.message};return r.default.createElement(i,e)}if((this.state.error?.digest??this.state.error?.message)?.startsWith("NEXT_HTTP_ERROR_FALLBACK"))throw this.state.error;return(0,t.jsx)(t.Fragment,{})}return this.props.children}}e.s(["ErrorBoundaryCustom",0,function({children:e,context:r}){return(0,t.jsx)(n,{context:r,children:e})}],851370)},424964,e=>{"use strict";e.s(["RenderWidgetService",()=>d],424964);var t=e.i(271645),r=e.i(685727),a=e.i(843476),i=e.i(94174),n=e.i(935059);async function o(e){let t=e.model.Name,r=d.widgetRegistry.widgets[t];return r&&!r.ssr?(0,a.jsx)(i.RenderLazyForCSR,{id:e.model.Id,requestContext:e.requestContext}):(0,a.jsx)(n.RenderLazyForSSR,{id:e.model.Id,requestContext:e.requestContext})}var l=e.i(269453),s=e.i(423403),c=e.i(12592),u=e.i(851370),p=e.i(206771);class d{static widgetRegistry;static createComponent(e,a,i){c.Tracer.logEvent(`render widget start: ${e.Caption||e.Name}`);let n=d.widgetRegistry.widgets[e.Name],s={metadata:a.isEdit?(0,l.deepCopy)({designerMetadata:n?.designerMetadata,defaultValues:n?.defaultValues,editorMetadata:n?.editorMetadata,ssr:n?.ssr}):{ssr:n?.ssr},model:(0,l.deepCopy)(e),requestContext:(0,r.getMinimumRequestContext)((0,l.deepCopy)(a)),traceContext:n?.ssr?i:null};try{if(!n)throw Error(`No widget named "${e.Name}" found in the registry`);s.model.Properties=d.parseProperties(s.model.Properties,n);let i=n.componentType;!a.isEdit&&e.Lazy&&(i=o);let l=t.default.createElement(i,{key:e.Id,...s}),c=(0,r.getMinimumWidgetContext)(s);return t.default.createElement(u.ErrorBoundaryCustom,{key:"err"+e.Id,children:l,context:c})}catch(e){if(a.isEdit){let r={context:s,error:e.message};return t.default.createElement(p.WidgetExecutionError,r)}return null}}static parseProperties(e,t){return Object.assign({},t.defaultValues||{}
1,t?.designerMetadata?s.EntityMetadataGenerator.parseValues(e,t.designerMetadata):{})}}},94174,e=>{"use strict";e.s(["RenderLazyForCSR",()=>a]);var t=e.i(117785),r=e.i(424964);function a(e){let[a]=(0,t.useSfEvents)(t.EVENTS.PERSONALIZED_WIDGETS_LOADED,!0);return a&&a[e.id]&&!a[e.id].ssr&&r.RenderWidgetService.createComponent(a[e.id].data,e.requestContext)}},935059,117785,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let a={PERSONALIZED_WIDGETS_LOADED:"widgetPersnalizationLoaded"};function i(e,t=!0){let[a,n]=(0,r.useState)(null),o=(0,r.useCallback)(t=>{let r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},[e]);return(0,r.useEffect)(()=>{if(t){let t=e=>{n(e.detail)};return document.addEventListener(e,t),()=>{document.removeEventListener(e,t)}}},[t,e]),[a,o]}e.s(["EVENTS",0,a,"useSfEvents",0,i],117785),e.s(["RenderLazyForSSR",0,function(e){let[n]=i(a.PERSONALIZED_WIDGETS_LOADED,!0),[o,l]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(n&&n[e.id]&&n[e.id].ssr){let t=document.createElement("div");t.innerHTML=n[e.id].data;let r=[];t.childNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName.toLowerCase(),a=function(e){let t={};for(let r of e){let e=r.name,a=r.value;switch(e){case"class":e="className";break;case"novalidate":e="noValidate";break;case"for":e="htmlFor";break;case"style":a=function(e){let t={};return e&&e.split(";").forEach(e=>{let[r,a]=e.split(":").map(e=>e.trim());r&&a&&(r.startsWith("--")?t[r]=a:t[r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=a)}),t}(r.value)}t[e]=a}return t}(e.attributes);r.push({tag:t,innterHtml:e.innerHTML,attributes:a})}}),l(r)}},[n]),n&&n[e.id]&&n[e.id].ssr&&o?.length&&(0,t.jsx)(t.Fragment,{children:o.map((t,a)=>r.default.createElement(t.tag,{dangerouslySetInnerHTML:{__html:t.innterHtml},key:`lazy-${e.id}-${a}`,...t.attributes}))})}],935059)},625696,(e,t,r)=>{"use strict";var a,i,n,o,l;Object.defineProperty(r,"__esModule",{value:!0}),r.BasicValueTypes=r.ComplexType=r.KnownFieldTypes=void 0,(o=a||(r.KnownFieldTypes=a={})).Html="html",o.TextArea="textArea",o.RadioChoice="radioChoices",o.Choices="choices",o.ChipChoice="chipchoice",o.CheckBox="choiceYesNo",o.ChoiceList="choiceList",o.MultipleChoiceChip="multipleChoiceChip",o.ChoiceMultiple="choiceMultiple",o.Color="color",o.Password="password",o.Range="range",o.RangeLimitation="rangeLimitation",o.Attributes="attributes",o.FileTypes="fileTypes",o.PencilButton="pencilButton",o.Complex="complex",o.LinkInsert="linkInsert",o.LinkSelector="linkSelector",o.DateTime="datetime",o.DropdownWithText="dropdownWithText",o.ContentTypeSelector="contentTypeSelector",o.DateTimePeriodSelector="dateTimeSelector",(l=i||(r.ComplexType=i={})).Complex="complex",l.Enumerable="enumerable",l.Dictionary="dictionary",(n||(r.BasicValueTypes=n={})).StringArray="System.String[]"},68093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.contentPropertyDefaultValue=r.formatValue=r.getBasicType=void 0,r.getBasicType=function(e){if("string"===e||"number"===e||"boolean"===e)return"boolean"===e&&(e="bool"),e},r.formatValue=function(e,t=!1){return"boolean"==typeof e?e?"True":"False":t||"number"!=typeof e?"object"==typeof e&&null!==e?JSON.stringify(e):e:e.toString()},r.contentPropertyDefaultValue=function(e){return e?.includes(",")?{ItemIdsOrdered:null,Content:[]}:{ItemIdsOrdered:null,Content:[{Type:e,Variations:null}]}}},562555,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EntityMetadataGenerator=void 0;let a=e.r(68093),i=e.r(57770),n=e.r(625696);class o{static extractMetadata(e){if(null==e)return;let t=this.mergePrototypes(e);if(!t)throw Error(`The provided entity class does not have registered ${i.keys.metadata}`);return this.buildMetadata(t)}static extractDefaultValues(e){let t=[];if(!(t=Array.isArray(e.PropertyMetadataFlat)?e.PropertyMetadataFlat:this.extractPropertiesMetadataFromHierarchy(e)))throw Error(`Missing PropertyMetadata or PropertyMetadataFlat metadata for type ${e.Name}`);let r=Object.fromEntries(t.map(e=>[e.Name,e.DefaultValue]));return t.forEach(e=>{let t=this.extractPropertyDefaultValue(e);null!=t&&(r[e.Name]=t)}),r}static parseValues(e,t){let r=[];if(!(r=Array.isArray(t.PropertyMetadataFlat)?t.PropertyMetadataFlat:this.extractPropertiesMetadataFromHierarchy(t)))throw Error(`Missing PropertyMetadata or PropertyMetadataFlat metadata for type ${t.Name}`);return this.deserializeProperties(e,r)}static extractPropertyDefaultValue(e){if(void 0!==e.DefaultValue){if("bool"===e.Type||"boolean"===e.Type||e.Type===n.KnownFieldTypes.CheckBox)return this.parseBooleanValue(e.DefaultValue);else if("date-time"===e.Type||"datetime"===e.Type){if(!isNaN(Date.parse(e.DefaultValue)))return new Date(e.DefaultValue)}else if(e.Type===n.ComplexType.Complex||e.Type===n.ComplexType.Enumerable||e.Type===n.ComplexType.Dictionary||e.Type===n.KnownFieldTypes.PencilButton){let t;try{t=JSON.parse(e.DefaultValue)}catch{}return null==t&&(e.Type===n.ComplexType.Complex||e.Type===n.KnownFieldTypes.PencilButton)&&(t=this.getDefaultValuesForComplexType(e)),t}else if(e.Type===n.KnownFieldTypes.ChoiceList||e.Type===n.KnownFieldTypes.ChoiceMultiple||e.Type===n.KnownFieldTypes.Choices||e.Type===n.KnownFieldTypes.ChipChoice||e.Type===n.KnownFieldTypes.RadioChoice||e.Type===n.KnownFieldTypes.MultipleChoiceChip||"multipleChoices"===e.Type)if(this.isMultipleChoice(e))return this.parseMultipleChoicesValue(e.DefaultValue);else return this.parseChoiceBooleanValue(e.DefaultValue);else if(e.DefaultValue===n.BasicValueTypes.StringArray)return[];else if("number"===e.Type){if(null!=e.DefaultValue)if(null!=e.Properties.Validations_DecimalPlaces)return parseFloat(e.DefaultValue);else return parseInt(e.DefaultValue,10);return e.DefaultValue}else if("string"==typeof e.DefaultValue){let t=e.DefaultValue;try{t=JSON.parse(e.DefaultValue)}catch{}return t}else if(e.TypeChildProperties?.length)return this.getDefaultValuesForComplexType(e)}if("content"===e.Type&&null==e.DefaultValue)return(0,a.contentPropertyDefaultValue)(e.Properties.Meta_Content_Type)}static parsePropertyValue(e,t){let r=t[i.keys.type],a=e;switch(r){case"number":null!=a&&(a=null!=t.Properties.Validations_DecimalPlaces?parseFloat(a):parseInt(a,10));break;case"bool":case"boolean":case n.KnownFieldTypes.CheckBox:a=this.parseBooleanValue(a);break;case"date-time":case"datetime":isNaN(Date.parse(a))||(a=new Date(a));break;case n.ComplexType.Complex:case n.ComplexType.Dictionary:case n.ComplexType.Enumerable:case n.KnownFieldTypes.PencilButton:"string"==typeof a&&(a=JSON.parse(a)),t.TypeChildProperties?.length>0&&(a=this.deserializeProperties(a,t.TypeChildProperties));break;case n.KnownFieldTypes.ChoiceList:case n.KnownFieldTypes.ChoiceMultiple:case n.KnownFieldTypes.Choices:case n.KnownFieldTypes.ChipChoice:case n.KnownFieldTypes.RadioChoice:case n.KnownFieldTypes.MultipleChoiceChip:case"multipleChoices":a=this.isMultipleChoice(t)?this.parseMultipleChoicesValue(a):this.parseChoiceBooleanValue(a);break;case"content":{let e=a;"string"==typeof a&&(e=JSON.parse(a));let r=t.Properties.Meta_Content_Type;if(e?.Content?.length&&!e.Content[0].Type&&(e.Content[0].Type=r),e?.ManualSelectionItems?.length&&t.Properties.Meta_Content_ManualSelection)try{let r=JSON.parse(t.Properties.Meta_Content_ManualSelection),a=r?.FieldsMetadata;if(a?.PropertyMetadataFlat){let t=a.PropertyMetadataFlat;e.ManualSelectionItems.map(e=>{let r={};for(let a in e.Item)Object.prototype.hasOwnProperty.call(e.Item,a)&&t.find(e=>e.Name===a)&&(r[a]=e.Item[a]&&"string"!=typeof e.Item[a]?JSON.stringify(e.Item[a]):e.Item[a]);e.Item=o.deserializeProperties(r,t)})}}catch{}a=e}break;default:if("string"==typeof a)try{a=JSON.parse(a)}catch{}}return a}static getDefaultValuesForComplexType(e){if(!e.TypeChildProperties.length)return null;let t={},r=!1;
1return(e.TypeChildProperties.forEach(e=>{let a=this.extractPropertyDefaultValue(e);void 0!==a&&(t[e.Name]=a,r=!0)}),r)?t:e.DefaultValue||null}static deserializeProperties(e,t){let r=Array.isArray(e)?e:[e];return r.forEach(e=>{for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let a=e[r],i=t.find(e=>e.Name===r);i&&(a=this.parsePropertyValue(a,i),e[r]=a)}}),Array.isArray(e)?r:r[0]}static buildMetadata(e){let t={Name:e[i.keys.name],Caption:e[i.keys.caption],PropertyMetadata:[],PropertyMetadataFlat:[]},r=e[i.keys.sectionsOrder];r&&(r=JSON.parse(JSON.stringify(r)));let a=Object.keys(e).filter(e=>e!==i.keys.name&&e!==i.keys.caption&&e!==i.keys.sectionsOrder),n=[];a.forEach(t=>{let r=e[t];if("object"==typeof r){let e=this.compileProperty(r,!0);e&&n.push(e)}});let o=this.generateCategory("Basic"),l=this.generateCategory("Advanced"),s=this.generateCategory("QuickEdit"),c={},u=[];return n.forEach(e=>{let t=e[i.keys.sectionName],r=e[i.keys.categoryName]||"Basic";this.createSectionIfNotExists(r,t,u,c),"QuickEdit"===r&&this.createSectionIfNotExists("Basic",t,u,c)}),r&&(u=u.sort((e,t)=>r.indexOf(e.Name)-r.indexOf(t.Name))),u.forEach(e=>{"Advanced"===e.CategoryName?"AdvancedMain"===e.Name?l.Sections.splice(0,0,e):l.Sections.push(e):"QuickEdit"===e.CategoryName?"Main"===e.Name?s.Sections.splice(0,0,e):s.Sections.push(e):"Main"===e.Name?o.Sections.splice(0,0,e):o.Sections.push(e)}),n.forEach(e=>{let t,r=e[i.keys.categoryName]||"Basic",a=e[i.keys.sectionName];"Advanced"===r?t=l:"QuickEdit"===r?(t=s,this.addPropertyToSection(o,a,e)):t=o,this.addPropertyToSection(t,a,e)}),this.pushIfHasSections(o,t.PropertyMetadata),this.pushIfHasSections(l,t.PropertyMetadata),this.pushIfHasSections(s,t.PropertyMetadata),t.PropertyMetadataFlat=JSON.parse(JSON.stringify(n)),t}static createSectionIfNotExists(e,t,r,a){let i=a[e];if(i||(a[e]=i=[]),!i.includes(t)){i.push(t);let a=this.generateSection(t,e);r.push(a)}}static addPropertyToSection(e,t,r){let a=e.Sections.find(e=>e.Name===t||"Main"===t&&"Advanced"===e.CategoryName&&"AdvancedMain"===e.Name);if(!a)throw Error(`Section ${t} was not found on ${e.Name}`);a.Properties.push(r)}static pushIfHasSections(e,t){e.Sections.length>0&&(e.Sections=e.Sections.map(e=>(e.Properties=e.Properties.sort((e,t)=>e.Position-t.Position),e.Properties.forEach(e=>{e.TypeChildProperties.length>0&&(e.TypeChildProperties=this.sortPropertiesByPosition(e.TypeChildProperties))}),e)),t.push(e))}static compileProperty(e,t=!1,r=!1){let o={[i.keys.categoryName]:null,[i.keys.defaultValue]:null,[i.keys.name]:void 0,[i.keys.position]:0,[i.keys.sectionName]:null,[i.keys.title]:void 0,[i.keys.type]:void 0,[i.keys.typeChildProperties]:[],[i.keys.properties]:{}};this.modifyPropertyMeta(e);let l=Object.keys(e);if(l.includes(i.keys.browsable))return null;if(l.forEach(t=>{let r=e[t];if(null!=r&&"object"==typeof r&&t!==i.keys.dataModel)o[i.keys.properties]=Object.assign(o[i.keys.properties],this.compileSpecialProperties(t,r));else if(null!=r&&"object"==typeof r&&t===i.keys.dataModel){let e=r?.value||r;o[i.keys.typeChildProperties]=o.TypeChildProperties.concat(this.unpackDataModel(e));let t=o[i.keys.type];null==t?o[i.keys.type]=e[i.keys.modelType]||n.ComplexType.Complex:"not-supported"===t?o[i.keys.type]=null:void 0!==e[i.keys.modelType]&&"string"===t&&(o[i.keys.type]=e[i.keys.modelType])}else{if(t===i.keys.defaultValue){let t=e[i.keys.type];if(void 0===t){let e=(0,a.getBasicType)(typeof r);e&&(o[i.keys.type]||=e)}else if("not-supported"===t)o[i.keys.type]=null;else if(t===n.KnownFieldTypes.DateTime){if(isNaN(new Date(e[i.keys.defaultValue]).valueOf())){e[i.keys.defaultValue]=null;return}}else if(t===n.KnownFieldTypes.Choices&&null!=r){let a=e[i.keys.choices];if(a){let o=[];try{o=JSON.parse(a?.Choices)}catch(e){}if(t===n.KnownFieldTypes.Choices&&o.length&&!o.find(e=>e.Value===r)){e[i.keys.defaultValue]=null;return}}}}o[t]=(0,a.formatValue)(r)}}),r){let e=o[i.keys.name]===o[i.keys.title];o[i.keys.name]=this.capitalize(o[i.keys.name]),e&&(o[i.keys.title]=this.capitalize(o[i.keys.title]))}return t&&this.assignIfEmpty(o,i.keys.sectionName,"Advanced"===o[i.keys.categoryName]?"AdvancedMain":"Main"),void 0===o[i.keys.type]&&(o[i.keys.type]="string"),o}static sortPropertiesByPosition(e){return e.sort((e,t)=>
1null==e.Position&&null==e.Position?0:0===e.Position&&t.Position>0?1:e.Position>0&&0===t.Position?-1:e.Position-t.Position)}static unpackDataModel(e){let t=[],r=!0===e[i.keys.capitalizeModelProperties];return Object.keys(e).forEach(a=>{let n=e[a];if(a.startsWith("__"))return;let o=this.compileProperty(n,!1,r);if(o){let e={[i.keys.categoryName]:null,[i.keys.defaultValue]:null,[i.keys.name]:null,[i.keys.position]:0,[i.keys.sectionName]:null,[i.keys.title]:null,[i.keys.typeChildProperties]:[],[i.keys.properties]:{}};e=Object.assign(e,o),t.push(e)}}),t}static assignIfEmpty(e,t,r){e[t]=e[t]||r}static modifyPropertyMeta(e){let t=e[i.keys.choices],r=e[i.keys.type];t&&((null==r||"string"===r)&&r!==n.KnownFieldTypes.ChipChoice&&r!==n.KnownFieldTypes.RadioChoice&&(e[i.keys.type]=n.KnownFieldTypes.Choices),t?.AllowMultiple&&(e[i.keys.type]="multipleChoices")),r===n.ComplexType.Dictionary?e[i.keys.lengthDependsOn]||(e[i.keys.type]="not-supported",e[i.keys.defaultValue]=null):r!==n.ComplexType.Enumerable||e[i.keys.dataModel]||("string"!==e[i.keys.subType]&&e[i.keys.subType]!==n.KnownFieldTypes.LinkSelector?e[i.keys.type]=null:e[i.keys.subType]===n.KnownFieldTypes.LinkSelector&&(e[i.keys.type]=n.KnownFieldTypes.LinkSelector,e[i.keys.dataModel]={value:{Length:{[i.keys.type]:"number",[i.keys.name]:"Length",[i.keys.defaultValue]:0}}})),void 0===e[i.keys.title]&&(e[i.keys.title]=e[i.keys.name])}static compileSpecialProperties(e,t){let r={};return Object.keys(t).forEach(n=>{r[this.skipMetaKeyword.includes(e)?`${e}_${n}`:e===i.keys.choices&&"Choices"===n||"_"===n||e===i.keys.isNullable?`Meta_${e}`:(e===i.keys.fieldMappings||e===i.keys.cssClasses)&&"ViewMetaData"===n||"ColorPaletteColors"===n?`Meta_${n}`:`Meta_${e}_${n}`]=(0,a.formatValue)(t[n])}),r}static generateCategory(e){return{Name:e,Sections:[]}}static generateSection(e,t){return{Name:e,Title:(null==t||"Basic"===t)&&"Main"===e||"Advanced"===t&&"AdvancedMain"===e||"QuickEdit"===t&&"Main"===e?null:e,Properties:[],CategoryName:t||"Basic"}}static capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}static parseBooleanValue(e){return"True"===e||"true"===e||!0===e}static parseChoiceBooleanValue(e){return"True"===e||"true"===e||!0===e||"False"!==e&&"false"!==e&&!1!==e&&e}static parseMultipleChoicesValue(e){if("string"==typeof e)try{e=JSON.parse(e)}catch{}return"string"==typeof e?e=e.split(",").map(e=>e.trim()):"object"!=typeof e||Array.isArray(e)||(e=[e]),Array.isArray(e)&&(e=e.map(e=>this.parseChoiceBooleanValue(e))),e}static isMultipleChoice(e){return"True"===e.Properties.Meta_Choices_AllowMultiple||"true"===e.Properties.Meta_Choices_AllowMultiple||!0===e.Properties.Meta_Choices_AllowMultiple}static extractPropertiesMetadataFromHierarchy(e){let t=[];return null==e.PropertyMetadata?null:(e.PropertyMetadata.forEach(e=>{e.Sections.forEach(e=>{t.push(...e.Properties)})}),t)}static skipMetaKeyword=[i.keys.validations];static mergePrototypes(e){let t=[],r=e.prototype;for(;r?.constructor?.name?.length;){let e=Object.getOwnPropertyDescriptors(r)[i.keys.metadata],a=e?.value;a&&t.push(a),r=Object.getPrototypeOf(r)}t.reverse();let a={};return t.forEach(e=>{Object.keys(e).forEach(t=>{let r=e[t];if("object"!=typeof r||Array.isArray(r))a[t]=r;else{a[t]||(a[t]={});let e=!1;a[t]&&a[t][i.keys.title]&&r[i.keys.name]===r[i.keys.title]&&(e=!0);let n=Object.keys(r),o=Object.keys(a[t]).find(e=>this.isChoiceKey(e));n.forEach(n=>{e&&n===i.keys.title||(o&&this.isChoiceKey(n)&&delete a[t][o],a[t][n]=r[n])})}})}),a}static isChoiceKey(e){return e===i.keys.choice||e===i.keys.choices}}r.EntityMetadataGenerator=o},423403,(e,t,r)=>{"use strict";var a=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,i)}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),i=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e.r(562555),r),i(e.r(495010),r)},495010,(e,t,r)=>{"use strict";var a,i;
1Object.defineProperty(r,"__esModule",{value:!0}),r.WidgetMetadata=r.PropertyMergeStrategy=void 0;let n=e.r(57770);(i=a||(r.PropertyMergeStrategy=a={})).Skip="skip",i.Override="override",i.Merge="merge",r.WidgetMetadata=class{static registerPrototype(e){this.register(e.prototype)}static registerProperty(e,t,r){e[n.keys.metadata][t]=r}static registerPrototypeProperty(e,t,r){this.registerProperty(e.prototype,t,r)}static registerPropertyMetadata(e,t,r,i,o=a.Override){this.register(e),this.registerPropertyObject(e,t);let l=e[n.keys.metadata][t][r];(void 0===l||o===a.Override)&&(e[n.keys.metadata][t][r]=i),o===a.Merge&&(e[n.keys.metadata][t][r]=Object.assign({},l,i))}static registerPrototypePropertyMetadata(e,t,r,i,n=a.Override){this.registerPropertyMetadata(e.prototype,t,r,i,n)}static register(e){Object.hasOwn(e,n.keys.metadata)||Object.defineProperty(e,n.keys.metadata,{enumerable:!0,writable:!0,value:{}})}static registerPropertyObject(e,t){e[n.keys.metadata][t]||(e[n.keys.metadata][t]={[n.keys.name]:t})}}},57770,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.keys=void 0,r.keys={metadata:"model-metadata",categoryName:"CategoryName",sectionName:"SectionName",position:"Position",properties:"Properties",typeChildProperties:"TypeChildProperties",maxLength:"MaxLength",title:"Title",description:"Description",defaultValue:"DefaultValue",type:"Type",dataModel:"DataModel",content:"Content",conditionalVisibility:"ConditionalVisibility",colorPaletteColors:"ColorPaletteColors",choices:"Choices",choice:"Choice",cssClasses:"CssFieldMappings",lengthDependsOn:"LengthDependsOn",emptyValues:"EmptyValues",name:"Name",caption:"Caption",placeholder:"Placeholder",validations:"Validations",tableView:"TableView",mediaItem:"MediaItem",dateSettings:"DateSettings",displaySettings:"DisplaySettings",dialog:"Dialog",group:"Group",contentContainer:"ContentContainer",fieldMappings:"FieldMappings",suffix:"Suffix",dynamicLinksContainer:"DynamicLinksContainer",copy:"Copy",mirror:"Mirror",isNullable:"IsNullable",sectionsOrder:"__SectionsOrder",capitalizeModelProperties:"__capitalizeProperties",subType:"__subType",modelType:"__type",browsable:"__browsable",dateTimeMode:"DateTimeMode",fromToMode:"FromToMode",rangeLimitation:"RangeLimitation",contentTypeSelector:"ContentTypeSelector"}},872036,(e,t,r)=>{"use strict";var a;function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}let n=Object.entries,o=Object.setPrototypeOf,l=Object.isFrozen,s=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,p=Object.seal,d=Object.create,f="u">typeof Reflect&&Reflect,m=f.apply,y=f.construct;u||(u=function(e){return e}),p||(p=function(e){return e}),m||(m=function(e,t){for(var r=arguments.length,a=Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];return e.apply(t,a)}),y||(y=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return new e(...r)});let h=L(Array.prototype.forEach),g=L(Array.prototype.lastIndexOf),T=L(Array.prototype.pop),b=L(Array.prototype.push),C=L(Array.prototype.splice),S=Array.isArray,E=L(String.prototype.toLowerCase),A=L(String.prototype.toString),_=L(String.prototype.match),k=L(String.prototype.replace),N=L(String.prototype.indexOf),O=L(String.prototype.trim),w=L(Number.prototype.toString),P=L(Boolean.prototype.toString),M="u"<typeof BigInt?null:L(BigInt.prototype.toString),D="u"<typeof Symbol?null:L(Symbol.prototype.toString),v=L(Object.prototype.hasOwnProperty),x=L(Object.prototype.toString),I=L(RegExp.prototype.test),R=(a=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return y(a,t)});function L(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return m(e,t,a)}}function F(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(o&&o(e,null),!S(t))return e;let a=t.length;for(;a--;){let i=t[a];if("string"==typeof i){let e=r(i);e!==i&&(l(t)||(t[a]=e),i=e)}e[i]=!0}return e}function V(e){let t=d(null);for(let a of n(e)){var r=function(e){if(Array.isArray(e))return e}(a)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,i,n,o=[],l=!0,s=!1;try{i=(t=t.call(e)).next,!1;for(;!(l=(r=i.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){s=!0,a=e}
1finally{try{if(!l&&null!=t.return&&(n=t.return(),Object(n)!==n))return}finally{if(s)throw a}}return o}}(a)||function(e){if(e){if("string"==typeof e)return i(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,2):void 0}}(a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let n=r[0],o=r[1];v(e,n)&&(S(o)?t[n]=function(e){for(let t=0;t<e.length;t++)v(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=V(o):t[n]=o)}return t}function z(e,t){for(;null!==e;){let r=c(e,t);if(r){if(r.get)return L(r.get);if("function"==typeof r.value)return L(r.value)}e=s(e)}return function(){return null}}let j=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),K=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=u(["#text"]),Y=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),q=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),J=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=p(/{{[\w\W]*|^[\w\W]*}}/g),Q=p(/<%[\w\W]*|^[\w\W]*%>/g),Z=p(/\${[\w\W]*/g),ee=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),et=p(/^aria-[\-\w]+$/),er=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ea=p(/^(?:\w+script|data):/i),ei=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),en=p(/^html$/i),eo=p(/^[a-z][.\w]*(-[.\w]+)+$/i),el=p(/<[/\w!]/g),es=p(/<[/\w]/g),ec=p(/<\/no(script|embed|frames)/i),eu=p(/\/>/i),ep=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(r=t.getAttribute(a));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ed=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ef=function(e,t,r,a){return v(e,t)&&S(e[t])?F(a.base?V(a.base):{},e[t],a.transform):r};t.exports=function e(){let t,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=t=>e(t);if(i.version="3.4.13",i.removed=[],!a||!a.document||9!==a.document.nodeType||!a.Element)return i.isSupported=!1,i;let o=a.document,l=o,s=l.currentScript;a.DocumentFragment;let c=a.HTMLTemplateElement,f=a.Node,m=a.Element,y=a.NodeFilter;void 0===a.NamedNodeMap&&(a.NamedNodeMap||a.MozNamedAttrMap),a.HTMLFormElement;let L=a.DOMParser,em=a.trustedTypes,ey=m.prototype,eh=z(ey,"cloneNode"),eg=z(ey,"remove"),eT=z(ey,"nextSibling"),eb=z(ey,"childNodes"),eC=z(ey,"parentNode"),eS=z(ey,"shadowRoot"),eE=z(ey,"attributes"),eA=f&&f.prototype?z(f.prototype,"nodeType"):null,e_=f&&f.prototype?z(f.prototype,"nodeName"):null,ek=f&&f.prototype?z(f.prototype,"ownerDocument"):null;if("function"==typeof c){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let eN="",eO=!1,ew=0,eP=function(){if(ew>0)throw R('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eM=function(e){eP(),ew++;try{return t.createHTML(e)}finally{ew--}},eD=function(e){eP(),ew++;try{return t.createScriptURL(e)}finally{ew--}},ev=o,ex=ev.implementation,eI=ev.createNodeIterator,eR=ev.createDocumentFragment,eL=ev.getElementsByTagName,eF=l.importNode,eV=ed();i.isSupported="function"==typeof n&&"function"==typeof eC&&ex&&void 0!==ex.createHTMLDocument;let ez=er,ej=null,eU=F({},[...j,...U,...B,...W,...G]),eB=null,eH=F({},[...Y,...q,...$,...J]),eW=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eK=null,eG=null,eY=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eq=!0,e$=!0,eJ=!1,eX=!0,eQ=!1,eZ=!0,e0=!1,e1=!1,e2=null,e7=null,e5=!1,e3=!1,e4=!1,e6=!1,e9=!0,e8=!1,te="user-content-",tt=!0,tr=!1,ta={},ti=null,tn=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),to=null,tl=F({},["audio","video","img","source","image","track"]),ts=null,tc=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tu="http://www.w3.org/1998/Math/MathML",tp="http://www.w3.org/2000/svg",td="http://www.w3.org/1999/xhtml",tf=td,tm=!1,ty=null,th=F({},[tu,tp,td],A),tg=u(["mi","mo","mn","ms","mtext"]),tT=F({},tg),tb=u(["annotation-xml"]),tC=F({},tb),tS=F({}
1,["title","style","font","a","script"]),tE=null,tA=["application/xhtml+xml","text/html"],t_=null,tk=null,tN=o.createElement("form"),tO=function(e){return e instanceof RegExp||e instanceof Function},tw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tk&&tk===e)return;e&&"object"==typeof e||(e={}),e=V(e),t_="application/xhtml+xml"===(tE=-1===tA.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?A:E,ej=ef(e,"ALLOWED_TAGS",eU,{transform:t_}),eB=ef(e,"ALLOWED_ATTR",eH,{transform:t_}),ty=ef(e,"ALLOWED_NAMESPACES",th,{transform:A}),ts=ef(e,"ADD_URI_SAFE_ATTR",tc,{transform:t_,base:tc}),to=ef(e,"ADD_DATA_URI_TAGS",tl,{transform:t_,base:tl}),ti=ef(e,"FORBID_CONTENTS",tn,{transform:t_}),eK=ef(e,"FORBID_TAGS",V({}),{transform:t_}),eG=ef(e,"FORBID_ATTR",V({}),{transform:t_}),ta=!!v(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?V(e.USE_PROFILES):e.USE_PROFILES),eq=!1!==e.ALLOW_ARIA_ATTR,e$=!1!==e.ALLOW_DATA_ATTR,eJ=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eX=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eQ=e.SAFE_FOR_TEMPLATES||!1,eZ=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e3=e.RETURN_DOM||!1,e4=e.RETURN_DOM_FRAGMENT||!1,e6=e.RETURN_TRUSTED_TYPE||!1,e5=e.FORCE_BODY||!1,e9=!1!==e.SANITIZE_DOM,e8=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tr=e.IN_PLACE||!1,ez=!function(e){try{return I(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?er:e.ALLOWED_URI_REGEXP,tf="string"==typeof e.NAMESPACE?e.NAMESPACE:td,tT=v(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?V(e.MATHML_TEXT_INTEGRATION_POINTS):F({},tg),tC=v(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?V(e.HTML_INTEGRATION_POINTS):F({},tb);let a=v(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?V(e.CUSTOM_ELEMENT_HANDLING):d(null);if(eW=d(null),v(a,"tagNameCheck")&&tO(a.tagNameCheck)&&(eW.tagNameCheck=a.tagNameCheck),v(a,"attributeNameCheck")&&tO(a.attributeNameCheck)&&(eW.attributeNameCheck=a.attributeNameCheck),v(a,"allowCustomizedBuiltInElements")&&"boolean"==typeof a.allowCustomizedBuiltInElements&&(eW.allowCustomizedBuiltInElements=a.allowCustomizedBuiltInElements),p(eW),eQ&&(e$=!1),e4&&(e3=!0),ta&&(ej=F({},G),eB=d(null),!0===ta.html&&(F(ej,j),F(eB,Y)),!0===ta.svg&&(F(ej,U),F(eB,q),F(eB,J)),!0===ta.svgFilters&&(F(ej,B),F(eB,q),F(eB,J)),!0===ta.mathMl&&(F(ej,W),F(eB,$),F(eB,J))),eY.tagCheck=null,eY.attributeCheck=null,v(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eY.tagCheck=e.ADD_TAGS:S(e.ADD_TAGS)&&(ej===eU&&(ej=V(ej)),F(ej,e.ADD_TAGS,t_))),v(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eY.attributeCheck=e.ADD_ATTR:S(e.ADD_ATTR)&&(eB===eH&&(eB=V(eB)),F(eB,e.ADD_ATTR,t_))),v(e,"ADD_URI_SAFE_ATTR")&&S(e.ADD_URI_SAFE_ATTR)&&F(ts,e.ADD_URI_SAFE_ATTR,t_),v(e,"FORBID_CONTENTS")&&S(e.FORBID_CONTENTS)&&(ti===tn&&(ti=V(ti)),F(ti,e.FORBID_CONTENTS,t_)),v(e,"ADD_FORBID_CONTENTS")&&S(e.ADD_FORBID_CONTENTS)&&(ti===tn&&(ti=V(ti)),F(ti,e.ADD_FORBID_CONTENTS,t_)),tt&&(ej["#text"]=!0),e0&&F(ej,["html","head","body"]),ej.table&&(F(ej,["tbody"]),delete eK.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=t;t=e.TRUSTED_TYPES_POLICY;try{eN=eM("")}catch(e){throw t=r,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eN=""):(void 0===t&&(eO||(r=ep(em,s),eO=!0),t=r),t&&"string"==typeof eN&&(eN=eM("")));u&&u(e),tk=e},tP=F({},[...U,...B,...H]),tM=F({},[...W,...K]),tD=function(e){var t,r,a;let i=eC(e);i&&i.tagName||(i={namespaceURI:tf,tagName:"template"});let n=E(e.tagName),o=E(i.tagName);return!!ty[e.namespaceURI]&&(e.namespaceURI===tp?(t=i).namespaceURI===td?"svg"===n:t.namespaceURI===tu?"svg"===n&&("annotation-xml"===o||tT[o]):!!tP[n]:e.namespaceURI===tu?(r=i).namespaceURI===td?"math"===n:r.namespaceURI===tp?"math"===n&&tC[o]:!!tM[n]:e.namespaceURI===td?((a=i).namespaceURI!==tp||!!tC[o])&&(a.namespaceURI!==tu||!!tT[o])&&!tM[n]&&(tS[n]||
1!tP[n]):"application/xhtml+xml"===tE&&!!ty[e.namespaceURI])},tv=function(e){b(i.removed,{element:e});try{eC(e).removeChild(e)}catch(t){if(eg(e),!eC(e))throw R("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tx=function(e){tL(e);let t=eb(e);if(t){let e=[];h(t,t=>{b(e,t)}),h(e,e=>{try{eg(e)}catch(e){}})}let r=eE(e);if(r)for(let t=r.length-1;t>=0;--t){let a=r[t],i=a&&a.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},tI=function(e,t){try{b(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e3||e4)try{tv(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tR=function(e){let t=eE(e);if(t)for(let r=t.length-1;r>=0;--r){let a=t[r],i=a&&a.name;if("string"==typeof i&&!eB[t_(i)])try{e.removeAttribute(i)}catch(e){}}},tL=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eA?eA(e):e.nodeType)===1&&tR(e);let r=eb(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tF=function(e){if(!eZ)return;let t=[e];for(;t.length>0;){let e=t.pop(),r=eA?eA(e):e.nodeType;if(7===r||8===r&&I(es,e.data)){try{eg(e)}catch(e){}continue}if(1===r){let t=t_(e_?e_(e):e.nodeName);try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&"label"!==t&&"output"!==t&&e.removeAttribute("for")}catch(e){}}let a=eb(e);if(a)for(let e=a.length-1;e>=0;--e)t.push(a[e])}},tV=function(e){let r=null,a=null;if(e5)e="<remove></remove>"+e;else{let t=_(e,/^[\r\n\t ]+/);a=t&&t[0]}"application/xhtml+xml"===tE&&tf===td&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eM(e):e;if(tf===td)try{r=new L().parseFromString(i,tE)}catch(e){}if(!r||!r.documentElement){r=ex.createDocument(tf,"template",null);try{r.documentElement.innerHTML=tm?eN:i}catch(e){}}let n=r.body||r.documentElement;return(e&&a&&n.insertBefore(o.createTextNode(a),n.childNodes[0]||null),tf===td)?eL.call(r,e0?"html":"body")[0]:e0?r.documentElement:n},tz=function(e){let t=ek?ek(e):e.ownerDocument;return eI.call(t||e,e,y.SHOW_ELEMENT|y.SHOW_COMMENT|y.SHOW_TEXT|y.SHOW_PROCESSING_INSTRUCTION|y.SHOW_CDATA_SECTION,null)},tj=function(e){return e=k(e,X," "),e=k(e,Q," "),e=k(e,Z," ")},tU=function(e){var t;e.normalize();let r=ek?ek(e):e.ownerDocument,a=eI.call(r||e,e,y.SHOW_TEXT|y.SHOW_COMMENT|y.SHOW_CDATA_SECTION|y.SHOW_PROCESSING_INSTRUCTION,null),i=a.nextNode();for(;i;)i.data=tj(i.data),i=a.nextNode();let n=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");n&&h(n,e=>{tH(e.content)&&tU(e.content)})},tB=function(e){let t=e_?e_(e):null;return"string"==typeof t&&"form"===t_(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eE(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eA(e)||e.childNodes!==eb(e))},tH=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return 11===eA(e)}catch(e){return!1}},tW=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eA(e)}catch(e){return!1}};function tK(e,t,r){0!==e.length&&h(e,e=>{e.call(i,t,r,tk)})}let tG=function(e,t,r){if(!eK[t]&&tX(t)&&(eW.tagNameCheck instanceof RegExp&&I(eW.tagNameCheck,t)||eW.tagNameCheck instanceof Function&&eW.tagNameCheck(t)))return!1;if(tt&&!ti[t]){let t=eC(e),a=eb(e);if(a&&t){let i=a.length;for(let n=i-1;n>=0;--n){let i=e===r?eh(a[n],!0):a[n];t.insertBefore(i,eT(e))}}}return tv(e),!0},tY=function(e,t,r,a){return 0===e.length?t:t===r||t===a?V(t):t},tq=function(e,t){if(tK(eV.beforeSanitizeElements,e,null),e!==t&&null===eC(e))return tr&&tL(e),!0;if(tB(e))return tv(e),!0;let r=t_(e_?e_(e):e.nodeName);if(ej=tY(eV.uponSanitizeElement,ej,eU,e2),tK(eV.uponSanitizeElement,e,{tagName:r,allowedTags:ej}),e!==t&&null===eC(e))return tr&&tL(e),!0;if(eZ&&e.hasChildNodes()&&!tW(e.firstElementChild)&&I(el,e.textContent)&&I(el,e.innerHTML)||eZ&&e.namespaceURI===td&&"style"===r&&tW(e.firstElementChild)||7===e.nodeType||eZ&&8===e.n
1odeType&&I(es,e.data))return tv(e),!0;if(eK[r]||!(eY.tagCheck instanceof Function&&eY.tagCheck(r))&&!ej[r]){let a=tG(e,r,t);return!1===a&&tK(eV.afterSanitizeElements,e,null),a}if((eA?eA(e):e.nodeType)===1&&!tD(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&I(ec,e.innerHTML))return tv(e),!0;if(eQ&&3===e.nodeType){let t=tj(e.textContent);e.textContent!==t&&(b(i.removed,{element:e.cloneNode()}),e.textContent=t)}return tK(eV.afterSanitizeElements,e,null),!1},t$=function(e,t,r){if(eG[t]||eZ&&"patchsrc"===t||eZ&&"for"===t&&"label"!==e&&"output"!==e||e9&&("id"===t||"name"===t)&&(r in o||r in tN))return!1;let a=eB[t]||eY.attributeCheck instanceof Function&&eY.attributeCheck(t,e);if(e$&&I(ee,t));else if(eq&&I(et,t));else if(a){if(ts[t]);else if(I(ez,k(r,ei,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===N(r,"data:")&&to[e]);else if(eJ&&!I(ea,k(r,ei,"")));else if(r)return!1}else if(!(tX(e)&&(eW.tagNameCheck instanceof RegExp&&I(eW.tagNameCheck,e)||eW.tagNameCheck instanceof Function&&eW.tagNameCheck(e))&&(eW.attributeNameCheck instanceof RegExp&&I(eW.attributeNameCheck,t)||eW.attributeNameCheck instanceof Function&&eW.attributeNameCheck(t,e))||"is"===t&&eW.allowCustomizedBuiltInElements&&(eW.tagNameCheck instanceof RegExp&&I(eW.tagNameCheck,r)||eW.tagNameCheck instanceof Function&&eW.tagNameCheck(r))))return!1;return!0},tJ=F({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tX=function(e){return!tJ[E(e)]&&I(eo,e)},tQ=function(e,r,a,i){if(t&&"object"==typeof em&&"function"==typeof em.getAttributeType&&!a)switch(em.getAttributeType(e,r)){case"TrustedHTML":return eM(i);case"TrustedScriptURL":return eD(i)}return i},tZ=function(e,t,r,a){try{r?e.setAttributeNS(r,t,a):e.setAttribute(t,a),tB(e)?tv(e):T(i.removed)}catch(r){tI(t,e)}},t0=function(e){tK(eV.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tB(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eB=tY(eV.uponSanitizeAttribute,eB,eH,e7),forceKeepAttr:void 0},a=t.length,i=t_(e.nodeName);for(;a--;){let n=t[a],o=n.name,l=n.namespaceURI,s=n.value,c=t_(o),u="value"===o?s:O(s);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,tK(eV.uponSanitizeAttribute,e,r),u=r.attrValue,e8&&("id"===c||"name"===c)&&0!==N(u,te)&&(tI(o,e),u=te+u),eZ&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&_(u,"href")){tI(o,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!eX&&I(eu,u)||(eQ&&(u=tj(u)),!t$(i,c,u))){tI(o,e);continue}(u=tQ(i,c,l,u))!==s&&tZ(e,o,l,u)}}tK(eV.afterSanitizeAttributes,e,null)},t1=function(e){let t=null,r=tz(e);for(tK(eV.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(tK(eV.uponSanitizeShadowNode,t,null),tq(t,e),t0(t),tH(t.content)&&t1(t.content),(eA?eA(t):t.nodeType)===1){let e=eS(t);tH(e)&&(t2(e),t1(e))}tK(eV.afterSanitizeShadowDOM,e,null)},t2=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){t1(e.shadow);continue}let r=e.node,a=(eA?eA(r):r.nodeType)===1,i=eb(r);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(a){let e=e_?e_(r):null;if("string"==typeof e&&"template"===t_(e)){let e=r.content;tH(e)&&t.push({node:e,shadow:null})}}if(a){let e=eS(r);tH(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,n=null,o=null,s=null;if((tm=!e)&&(e="<!-->"),"string"!=typeof e&&!tW(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return w(e);case"boolean":return P(e);case"bigint":return M?M(e):"0";case"symbol":return D?D(e):"Symbol()";case"undefined":default:return x(e);case"function":case"object":{if(null===e)return x(e);let t=z(e,"toString");if("function"==typeof t){let r=t(e);return"string"==typeof r?r:x(r)}return x(e)}}}(e)))throw R("dirty is not a string, aborting");if(!i.isSupported)return e;e1?(ej=e2,eB=e7):tw(r),(eV.uponSanitizeElement.length>0||eV.uponSanitizeAttribute.length>0)&&(ej=V(ej)),eV.uponSanitizeAttribute.length>0&&(eB=V(eB)),i.removed=[];let c=tr&&"string"!=typeof e&&tW(e);if(c){tF(e);let t=e_?e_(e):e.nodeName;if("string"==typeof t){let r=t_(t);if(!ej[r]||eK[r])throw tx(e),R("root node is forbidden and cannot be sanitized in-place")}if(tB(e))throw tx(e),R("root node is clobbered and cannot be sanitized in-place");try{t2(e)}catch(t){throw tx(e),t}}else if(tW(e))1===(n=(a=tV("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?a=n:a.appendChild(n),t2(n);else{if(!e3&&!eQ&&!e0&&-1===e.indexOf("<"))return t&&e6?eM(e):e;if(!(a=tV(e)))return e3?null:e6?eN:""}a&&e5&&tv(a.firstChild);let u=c?e:a;try{let e=tz(u);for(;o=e.nextNode();)tq(o,u),t0(o),tH(o.content)&&t1(o.content)}catch(t){throw c&&(tx(e),h(i.removed,e=>{e.element&&tL(e.element)})),t}if(c)return h(i.removed,e=>{e.element&&tL(e.element)}),eQ&&tU(e),e;if(e3){if(eQ&&tU(a),e4)for(s=eR.call(a.ownerDocument);a.firstChild;)s.appendChild(a.firstChild);else s=a;return(eB.shadowroot||eB.shadowrootmode)&&(s=eF.call(l,s,!0)),s}let p=e0?a.outerHTML:a.innerHTML;return e0&&ej["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&I(en,a.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+p),eQ&&(p=tj(p)),t&&e6?eM(p):p},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tw(e),e1=!0,e2=ej,e7=eB},i.clearConfig=function(){tk=null,e1=!1,e2=null,e7=null,t=r,eN=""},i.isValidAttribute=function(e,t,r){return tk||tw({}),t$(t_(e),t_(t),r)},i.addHook=function(e,t){"function"!=typeof t||v(eV,e)&&b(eV[e],t)},i.removeHook=function(e,t){if(v(eV,e)){if(void 0!==t){let r=g(eV[e],t);return -1===r?void 0:C(eV[e],r,1)[0]}return T(eV[e])}},i.removeHooks=function(e){v(eV,e)&&(eV[e]=[])},i.removeAllHooks=function(){eV=ed()},i}()},197301,(e,t,r)=>{t.exports=window.DOMPurify||(window.DOMPurify=e.r(872036).default||e.r(872036))},510154,e=>{"use strict";var t=e.i(197301);class r{static instance;defaultConfig={ADD_TAGS:["iframe","sf-input"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","sfref","contenteditable","target"],ALLOW_ARIA_ATTR:!0,ALLOW_DATA_ATTR:!0,ALLOW_SELF_CLOSE_IN_ATTR:!0};static getInstance(){return r.instance||(r.instance=new r,t.default.addHook("afterSanitizeAttributes",e=>{"iframe"!==e.nodeName.toLowerCase()||e.hasAttribute("sandbox")||e.setAttribute("sandbox","allow-scripts allow-same-origin allow-presentation allow-popups allow-popups-to-escape-sandbox")})),r.instance}sanitizeHtml(e,r=null){let a=null!=r?this.parseConfig(r):{},i=Object.assign({},this.defaultConfig,a);return t.default.sanitize(e||"",i)}configure(e){this.defaultConfig=this.parseConfig(e)}parseConfig(e){return Object.fromEntries(Object.entries({ADD_ATTR:e.additionalAtributes,ADD_DATA_URI_TAGS:e.additionalDataUriTags,ADD_TAGS:e.additionalTags,ADD_URI_SAFE_ATTR:e.additionalUriSafeAttributes,ALLOW_ARIA_ATTR:e.allowAriaAttributes,ALLOW_DATA_ATTR:e.allowDataAttributes,ALLOW_UNKNOWN_PROTOCOLS:e.allowUnknownProtocols,ALLOW_SELF_CLOSE_IN_ATTR:e.allowSelfcloseInAttributes,ALLOWED_ATTR:e.allowedAttributes,ALLOWED_TAGS:e.allowedTags,ALLOWED_NAMESPACES:e.allowedNamespaces,ALLOWED_URI_REGEXP:e.allowedUriRegex,FORBID_ATTR:e.forbiddenAttributes,FORBID_CONTENTS:e.forbiddenContents,FORBID_TAGS:e.forbiddenTags}).filter(([e,t])=>null!=t))}}e.s(["SanitizerService",0,r])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.