livingdocs-cli 1.3.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -30
- package/oclif.manifest.json +1 -0
- package/package.json +9 -9
- package/src/commands/cli-config/print.js +5 -8
- package/src/commands/component-library/build.js +9 -11
- package/src/commands/design-server/start.js +35 -27
- package/src/commands/project-config/download.js +13 -16
- package/src/commands/project-config/drafts.js +5 -8
- package/src/commands/project-config/import-design.js +20 -1
- package/src/commands/project-config/plan.js +12 -15
- package/src/commands/project-config/publish.js +12 -15
- package/src/commands/project-config/upload.js +16 -19
- package/src/commands/project-config/upload_assets.js +9 -12
- package/src/lib/framework/livingdocs-framework.js +4 -3
- package/src/lib/parsing/parse_design_to_v2.js +28 -7
- package/src/lib/read_channel_config.js +3 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/*! For license information please see livingdocs-framework-sdk.js.LICENSE.txt */
|
|
2
|
+
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=209)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){const r=n(159),o=n(160),{deserializeCommand:i}=n(66),s={type:"invalidCall",message:"Missing param 'componentTree'"};e.exports={eventSources:r.eventSources,execCommands({componentTree:e,commands:t=[],asProposals:n}){if(!e)return{ok:!1,conflicts:[s]};const r=[],a=n?o.handleProposal:o.handle;for(const n of t){const{conflicts:t,command:o}=i(n,e);if(t.length>0)r.push(...t);else try{a(o,e)}catch(e){r.push({type:e.conflictType||"Error",message:e.message})}}return{ok:!r.length,conflicts:r}},execProposals({componentTree:t,commands:n}){e.exports.execCommands({componentTree:t,commands:n,asProposals:!0})},execTrusted(e,t){const n=r[e](t),i=function(e){if(e.componentTree)return e.componentTree;const t=e.component&&e.component.parentContainer,n="insertComponent"===e.type?e.position.parentContainer:t;if(n)return n.getComponentTree()}(n);i&&i.inProposalMode?o.handleProposal(n,i):o.handle(n,i)}}},function(e,t,n){const r=n(156),o=n(6);e.exports={log:r,assert:o}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(60);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(116),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){const r=n(156);function o(e,t){e||r.error(t)}e.exports=o,o.param=function(e,t,n){if(!e)return r.error(`${t}: param '${n}' is missing`)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){const r=n(149);e.exports={loadResources:!0,ignoreInteraction:".ld-control",livingdocsCssFile:"/assets/css/livingdocs.css",wordSeparators:"./\\()\"':,.;<>~!#%^&*|+=[]{}`~?",singleLineBreak:/^<br\s*\/?>\s*$/,editable:{allowNewline:!0,changeDelay:0,browserSpellcheck:!1,mouseMoveSelectionChanges:!1,formatting:{pastedHtmlRules:{keepInternalRelativeLinks:!0}}},css:{section:"doc-section",component:"doc-component",editable:"doc-editable",noPlaceholder:"doc-no-placeholder",emptyImage:"doc-image-empty",emptyVideo:"doc-video-empty",emptyAudio:"doc-audio-empty",emptyHtml:"doc-html-empty",interface:"doc-ui",insertProposal:"doc-proposed-insert",updateProposal:"doc-proposed-update",removeProposal:"doc-proposed-removal",componentHighlight:"doc-component-highlight",containerHighlight:"doc-container-highlight",dragged:"doc-dragged",draggedPlaceholder:"doc-dragged-placeholder",draggedPlaceholderCounter:"doc-drag-counter",dragBlocker:"doc-drag-blocker",dropMarker:"doc-drop-marker",beforeDrop:"doc-before-drop",noDrop:"doc-drag-no-drop",afterDrop:"doc-after-drop",longpressIndicator:"doc-longpress-indicator",preventSelection:"doc-no-selection",maximizedContainer:"doc-js-maximized-container",interactionBlocker:"doc-interaction-blocker",diffComponentAdded:"ld-diff-component-added",diffComponentRemoved:"ld-diff-component-removed",diffComponentModified:"ld-diff-component-modified",diffComponentMoved:"ld-diff-component-moved",diffRemovedText:"ld-diff-text-removed",diffAddedText:"ld-diff-text-added",diffOriginalText:"ld-diff-text-original",diffComponentConflict:"ld-diff-component-conflict"},attr:{component:"doc-component",placeholder:"doc-placeholder"},directives:{container:{attr:"doc-container"},editable:{attr:"doc-editable"},html:{attr:"doc-html"},image:{attr:"doc-image"},video:{attr:"doc-video"},audio:{attr:"doc-audio"},link:{attr:"doc-link"},optional:{attr:"doc-optional"},include:{attr:"doc-include"}},imagePlaceholder:`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(r`
|
|
2
3
|
<svg xmlns="http://www.w3.org/2000/svg" width="620" height="350" \
|
|
3
4
|
viewBox="0 0 620 350" preserveAspectRatio="none"> \
|
|
4
5
|
<rect width="620" height="350" fill="#D4D4CE"/> \
|
|
5
6
|
<line x1="0" y1="0" x2="620" y2="350" style="stroke:#ffffff;stroke-width:2"/> \
|
|
6
7
|
<line x1="620" y1="0" x2="0" y2="350" style="stroke:#ffffff;stroke-width:2"/> \
|
|
7
|
-
</svg>`)}`,history:{limit:1e3,groupingInterval:2e3},imageServices:{"resrc.it":{quality:75,host:"https://app.resrc.it"},liImageProxy:{host:"http://localhost:9090"},imgix:{host:"https://livingdocs.imgix.net",preferWebp:!1,backgroundImage:{maxWidth:1500},srcSet:{defaultWidth:1280,widths:[2048,1280,980,720],sizes:["(max-width: 980px) 80vw","(max-width: 720px) 100vw","100vw"]}},sz:{host:"https://sz.de",shaSecret:"please-change-me-in-the-server-configuration",hashVersion:1,srcSet:{defaultWidth:1280,widths:[2048,1280,980,720],sizes:["(max-width: 980px) 80vw","(max-width: 720px) 100vw","60vw"]}},"image.resizer":{host:"http://images.nswow.ch/remote",srcSet:{defaultWidth:1280,widths:{xlarge:2048,large:1280,medium:980,small:720},sizes:["(max-width: 980px) 80vw","(max-width: 720px) 100vw","100vw"]}}}}},function(t,e){t.exports={insertComponent:(t,e,n)=>({type:"insertComponent",component:t,position:e,eventSource:n}),transformComponent:(t,e,n)=>({type:"transformComponent",component:t,replacement:e,eventSource:n}),moveComponent:(t,e,n)=>({type:"moveComponent",component:t,position:e,eventSource:n}),removeComponent:(t,e)=>({type:"removeComponent",component:t,eventSource:e}),updateComponentStyle:(t,e,n,r)=>({type:"updateComponentStyle",component:t,name:e,value:n,eventSource:r}),updateComponentData:(t,e,n,r)=>({type:"updateComponentData",component:t,key:e,value:n,eventSource:r}),updateEditableDirective:(t,e,n,r)=>({type:"updateEditableDirective",component:t,directive:e,value:n,eventSource:r}),updateImageDirective:(t,e,n,r)=>({type:"updateImageDirective",component:t,directive:e,value:n,eventSource:r}),updateTmpImageDirective:(t,e,n)=>({type:"updateTmpImageDirective",component:t,directive:e,value:n}),updateLinkDirective:(t,e,n,r)=>({type:"updateLinkDirective",component:t,directive:e,value:n,eventSource:r}),updateHtmlDirective:(t,e,n,r)=>({type:"updateHtmlDirective",component:t,directive:e,value:n,eventSource:r}),updateToggleDirective:(t,e,n,r)=>({type:"updateToggleDirective",component:t,directive:e,value:n,eventSource:r}),updateIncludeDirective:(t,e,n,r)=>({type:"updateIncludeDirective",component:t,directive:e,value:n,eventSource:r}),updateStyleDirective:(t,e,n,r)=>({type:"updateStyleDirective",component:t,directive:e,value:n,eventSource:r}),updateDirectiveTmpData:(t,e,n,r)=>({type:"updateDirectiveTmpData",component:t,directive:e,key:n,value:r})}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(102),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){var r=n(19),i=n(182),o=n(183),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(67),i=n(64);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(262),i=n(273),o=n(45),s=n(0),a=n(274);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(101),i=n(66),o=n(11);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){var r=n(190),i=n(193);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(10),i=n(0),o=n(5);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){var r=n(83);t.exports=function(t,e){return r(t,e)}},function(t,e,n){var r=n(409),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(i,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){var r=n(9).Symbol;t.exports=r},function(t,e,n){var r=n(189),i=n(68),o=n(194),s=n(195),a=n(196),c=n(10),u=n(104),l=u(r),p=u(i),h=u(o),d=u(s),f=u(a),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||s&&"[object Set]"!=m(new s)||a&&"[object WeakMap]"!=m(new a))&&(m=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case p:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e,n){var r=n(69);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(71),i=n(36);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var u=e[a],l=o?o(n[u],t[u],u,n,t):void 0;void 0===l&&(l=t[u]),s?i(n,u,l):r(n,u,l)}return n}},function(t,e,n){var r=n(0),i=n(77),o=n(237),s=n(116);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e,n){var r=n(54);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e){t.exports={humanize(t){const e=this.trim(t).replace(/([a-z\d])([A-Z]+)/g,"$1 $2").toLowerCase();return this.titleize(e)},capitalize:t=>(t=t?String(t):"").charAt(0).toUpperCase()+t.slice(1),titleize:t=>null==t?"":String(t).replace(/(?:^|\s)\S/g,t=>t.toUpperCase()),snakeCase(t){return this.trim(t).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()},prefix:(t,e)=>0===e.indexOf(t)?e:`${t}${e}`,readableJson:t=>JSON.stringify(t,null,2),camelize(t){return this.trim(t).replace(/[-_\s]+(.)?/g,(t,e)=>e.toUpperCase())},trim:t=>t.replace(/^\s+|\s+$/g,""),collapseWhitespace:t=>t.replace(/\s+/g," ")}},function(t,e,n){var r=n(10),i=n(5);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,e,n){const r=n(58),i=n(174);t.exports={name:"default",hasBrowserPlugin:!1,supportsCrop:!1,getUrl:function(t){return t},getUncroppedUrl:function(t){return this.getUrl(t)},canProcessAsset:function(t,e){return!0},set:function(t,e){let n="";if(e.isTemporaryImage()){const t=e.getTemporaryUrl();t&&(n=t)}else{const t=e.getOriginalUrl();t&&(n=t)}e.isInlineImage()?i(t,n):e.isBackgroundImage()&&r(t,n)}}},function(t,e,n){try{var r=n(407);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(408)}},function(t,e,n){var r=n(18).Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,s=this._len,a=0;a<o;){for(var c=s%i,u=Math.min(o-a,i-c),l=0;l<u;l++)n[c+l]=t[a+l];a+=u,(s+=u)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){var r=n(178),i=n(187)(r);t.exports=i},function(t,e,n){var r=n(181),i=n(5),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){(function(t){var r=n(9),i=n(184),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c}).call(this,n(63)(t))},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(105);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){const r=n(1),i=n(250),o=n(55),{booleanAttributes:s,unencodedElements:a,singleTags:c,blockElements:u}=i;function l(t,e){return t.reduce((n,i,d)=>{let f;switch(i.type){case"text":n+=function(t,e){let n=t.data||"";!e.encodeXML||t.parent&&a[t.parent.name]?e.decodeHTML&&(n=o.decodeHTML(n)):n=o.encodeXML(n);return n}(i,e);break;case"tag":case"script":case"style":f=t[d+1],n+=function(t,e,n){let i,a;if(t.doNotRender)return"";if(e.plainText)return l(t.children,e);if(e.editableValidator){if(e.editableValidator.isProhibited(t)&&t.children)return l(t.children,e)}"svg"===t.name&&(e={encodeXML:e.encodeXML,renderDirectiveInfo:e.renderDirectiveInfo,xmlMode:!0});let d=function(t,e){let n=`<${t.name}`;const i=function(t,e){if(!t)return;let n="";for(const r of Object.keys(t)){let i=t[r];n&&(n+=" "),!i&&s[r]?n+=r:(e.encodeXML&&(i=o.encodeXML(i)),n+=`${r}="${i}"`)}return n}(t.attribs,e);i&&(n+=` ${i}`);const a=function(t,e){let n;if(!t)return;if(e.renderDirectiveInfo){n="";for(const e of Object.keys(t)){const r=t[e];n&&(n+=" "),n+=`doc-${e}="${r}"`}}return n}(t.directives,e);a&&(n+=` ${a}`);e.xmlMode&&!r(t,"children",!1)?n+="/>":n+=">";return n}(t,e);if(e.prettyHtml){const e=h(n),r=function(t){return!(!t.children||!t.children.length)&&h(t.children[0])}(t),o=u[t.name];a=o&&t.children&&!r,i=n&&!e}!function(t,e){if(e.xmlMode&&!r(t,"children.length",!1))return!0;return!!c[t.name]}(t,e)?(t.children&&(a&&(d+=function(t){t.indentLevel||(t.indentLevel=0);return t.indentLevel+=1,p(t)}(e)),d+=l(t.children,e),a&&(d+=function(t){t.indentLevel||(t.indentLevel=0);t.indentLevel>0&&(t.indentLevel-=1);return p(t)}(e))),d+=`</${t.name}>`,i&&(d+=p(e))):i&&(d+=p(e));return d}(i,e,f);break;case"root":n+=l(i.children,e);break;case"comment":n+=function(t){return`\x3c!--${t.data}--\x3e`}(i);break;case"directive":n+=function(t){return`<${t.data}>`}(i);break;case"cdata":n+=function(t){return`<![CDATA[${t.children[0].data}]]>`}(i)}return n},"")}t.exports=function(t,e={}){return Array.isArray(t)||t.cheerio||(t=[t]),e.prettyHtml&&(e.tabSize||(e.tabSize=2),e.decodeHTML=!0),l(t,e)};function p(t){return`\n${function(t){t.indentLevel||(t.indentLevel=0);if(t.indentLevel<0)return"";const e=t.indentLevel*t.tabSize;return" ".repeat(e)}(t)}`}function h(t){return!!t&&("text"===t.type&&/\n/.test(t.data))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(282);e.isTag=function(t){return r.isTag(t)},e.isCDATA=function(t){return"cdata"===t.type},e.isText=function(t){return"text"===t.type},e.isComment=function(t){return"comment"===t.type},e.hasChildren=function(t){return Object.prototype.hasOwnProperty.call(t,"children")}},function(t,e,n){const r=n(21),i=n(1),o=n(3),s=n(7),a=n(4);t.exports=class{constructor({component:t,structureDirective:e}){this.component=t,this.structureDirective=e;for(const[t,n]of Object.entries(e||{}))"placeholder"!==t&&(this[t]=n);this.content={}}getContent(){return this.content.value}hasDifferentContent(t){return""===t&&(t=void 0),this.content.value!==t}copyTo(t){this.assertCompatibility(t),t.content=r(this.content)}assertCompatibility(t){const e=this.type===t.type;o(e,`Incompatible directives: ${this.type} <-> ${t.type}`)}isEmpty(){return!this.getContent()}setData(t,e){const n=`_${this.name}Directive`;let i=r(this.component.getData(n));null==i&&(i={}),i[t]=e,this.component.setData(n,i)}removeData(t){const e=`_${this.name}Directive`,n=r(this.component.getData(e));n&&(delete n[t],this.component.setData(e,n))}getData(t){return t?null!=this.component.dataValues[`_${this.name}Directive`]?this.component.dataValues[`_${this.name}Directive`][t]:void 0:this.component.dataValues[`_${this.name}Directive`]}setTmp(t,e){const n=s.updateDirectiveTmpData(this.component,this,t,e);a.handle(n)}getTmp(t){return i(this.tmp,t)}getId(){return`${this.component.id}:${this.name}`}serialize(){return this.content.value}deserialize(t){this.content.value=t}}},function(t,e,n){const r=n(312),i=n(313),o=n(56),{log:s,assert:a}=n(2),c=n(25),u=n(157),l=n(158),p=n(318),{createSkinForComponent:h}=n(41),d={editable:"defaultParagraph",paragraph:"defaultParagraph",image:"defaultImage",html:"defaultHtml"};t.exports=class t{constructor({name:e,version:n,label:i,author:o,description:s}){this.name=e,this.author=o,this.description=s,this.version=r.valid(n),a(this.name,"Design: param 'name' is required"),a(this.version,`Design: missing or invalid param 'version' ${n}`),this.label=i||c.humanize(this.name),this.identifier=t.getIdentifier(this.name,this.version),this.imageRatios={},this.dependencies=new l,this.components=new u,this.defaultParagraph={name:void 0,directiveName:void 0},this.defaultImage={name:void 0,directiveName:void 0},this.defaultHtml={name:void 0,directiveName:void 0},this.transforms=new p(this),this.groups=[]}equals(t){return t.name===this.name&&t.version===this.version}isInRange(t){return r.satisfies(this.version,t)}isNewerThan(t){return!t||this.name===t.name&&r.gt(this.version,t.version)}hasComponent(t){return this.components.has(t)}getMissingComponents(...t){const e=[];for(const n of t)n&&!this.components.has(n)&&e.push(n);return!!e.length&&e}getComponent(t){return this.components.get(t)}getComponentStructure(t){const e=this.components.get(t);if(e)return e.structure}getComponentSkin(t){const e=this.components.get(t);if(e)return e.skin}updateComponentSkin(t,e){const n=this.components.get(t),{structure:r}=n,{skin:i,skinDirectives:o,violations:s}=h({structure:r,html:e});if(s)return{ok:!1,violations:s};n.skin=i;for(const t of o)if(t.placeholder){r.directives.get(t.name).placeholder=t.placeholder}return{ok:!0}}addComponent({structure:t,skin:e}){t.setDesign(this);const n=t.name;if(this.components.get(n)){const t=new Error("Design.addComponent(): "+`duplicate component '${n}'`);throw t.name="DuplicateComponentError",t}this.components.push(n,{structure:t,skin:e})}eachStructure(t){for(const e of this.components)t(e.structure)}getComponentNameFromIdentifier(e){return t.parseComponentIdentifier(e).name}setDefaultComponent(t,e,n){const r=n?{name:e,directiveName:n}:this.getDirectiveLocator({name:e,directiveType:t});this[d[t]]=r}setDefaultParagraph({name:t,directiveName:e}){this.setDefaultComponent("paragraph",t,e)}setDefaultImage({name:t,directiveName:e}){this.setDefaultComponent("image",t,e)}setDefaultHtml({name:t,directiveName:e}){this.setDefaultComponent("html",t,e)}getDirectiveLocator({name:t,directiveType:e}){"paragraph"===e&&(e="editable");const n=this.getComponentStructure(t);if(!n)return{name:t,directiveName:void 0};const r=n.directives.firstOfType(e);return{name:t,directiveName:r?r.name:void 0}}getLayout(t=this.defaultLayout){return this.layouts?t||this.defaultLayout?o(this.layouts,{name:t}):i(this.layouts):{wrapper:this.wrapper}}static getIdentifier(t,e){return`${t}@${e}`}static parseIdentifier(t){if(!t)return;const e=t.split("@");return 2===e.length?{name:e[0],version:e[1]}:a(!1,`could not parse design identifier: ${t}`)}static parseComponentIdentifier(t){if(!t)return;const e=t.split(".");return 1===e.length?{designName:void 0,name:e[0]}:2===e.length?{designName:e[0],name:e[1]}:s.error(`could not parse component template identifier: ${t}`)}}},function(t,e,n){const r=n(319),{assert:i}=n(2),o=n(322),s=n(323),a=n(324),c=n(92),u=n(343),l=n(94);function p(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.add)return{violation:n,index:e}}return{}}function h(t,e){return new s({name:t,dom:e})}function d(t,e){const n={};return t.forEach(t=>{const r=e.properties[t];i(r,`The componentProperty '${t}' was not found.`),n[t]=r}),n}t.exports={parseComponent:function(t,e){const n=t.html,s=Array.isArray(t.directives)?r(t.directives,"name"):t.directives;let p=t.properties;const{name:f,label:m,description:g,iconUrl:v,allowedParents:y}=t,_={name:f,label:m,description:g,iconUrl:v,allowedParents:y};p&&(p=d(p,e),_.properties=p);const b=a(n);_.directivesFromTemplate=b.directives,_.directivesFromConfig=s;const x=function(t,e){const{name:n,label:r,description:s,iconUrl:a,allowedParents:p}=t,{properties:h,directivesFromTemplate:f,directivesFromConfig:m}=t,g=function(t,e,n,r){const o={};return t.forEach(t=>{o[t.name]=t}),e=e||{},Object.keys(e).forEach(t=>{const s=e[t]||{},a=o[t];a||i(!1,`Directive '${t}' not present in template for component '${n}'.`),Object.keys(s).forEach(e=>{const n=s[e];switch(e){case"type":i(a.type===n,`Directive '${t}': type does not match`);break;case"imageRatios":n&&n.length&&(a[e]=function(t,e){return t.map(t=>{const n=e.imageRatios[t];return n||new l({name:t,ratio:t})})}(n,r));break;case"properties":n&&n.length&&(a[e]=d(n,r));break;default:a[e]=n}})}),t}(f,m,n,e);return function(t,e){t.forEach(t=>{Object.keys(t).forEach(e=>{const n=t[e];switch(i(function(t){return i(c.exists(t.type),`Unkown directive '${t.type}'`),u.validate(t.type,t),!u.hasErrors()}(t),u.getErrorMessages()),e){case"srcSet":!function(t,e,n){i("img"===t.tag,`${n} is only supported for inline images.`)}(t,n,e);break;case"backgroundImage":!function(t,e,n){i("img"!==t.tag,`${n} is only supported for background images.`)}(t,n,e);break;case"services":!function(t,e){i(!t.service,'Include directive can only have either "service" or "services".')}(t,n);break;case"service":!function(t,e){i(!t.services,'Include directive can only have either "service" or "services".')}(t,n)}})})}(g),new o({name:n,label:r,description:s,iconUrl:a,properties:h,allowedParents:p,directives:g})}(_,e),C=h(f,b.skin);return{structure:x,skin:C}},createSkinForComponent:function({structure:t,html:e}){const n=t.name;let r;try{r=a(e)}catch(t){return{violations:[{parseError:!0,message:`Could not parse template: ${t.message}`}]}}const i=function(t,e){const n=[],r={};e.forEach(e=>{const i=e.name;if(r[i]=e,t.directives.has(i)){t.directives.get(i).type!==e.type&&n.push({conflict:!0,directiveName:i,message:"cannot change directive type"})}else n.push({add:!0,directiveName:i,message:"cannot add directive "+`doc-${e.type}="${i}"`})});for(const e of t.directives){const t=e.name;if(!r[t]){const{violation:i,index:o}=p(n);let s=!1;if(i){r[i.directiveName].type===e.type&&(s=!0)}s?(n.splice(o,1),n.push({rename:!0,directiveName:i.directiveName,message:`cannot rename directive doc-${e.type}="${t}" `+`to doc-${e.type}="${i.directiveName}"`})):n.push({remove:!0,directiveName:t,message:`directive doc-${e.type}="${t}" is missing`})}}return n.length?n:void 0}(t,r.directives),o=h(n,r.skin);return{violations:i,skin:o,skinDirectives:r.directives}}}},function(t,e){t.exports=function(t,e,n){if(null==t)return!1;const r=t.toLowerCase(),i=-1!==e.indexOf(r),o=-1!==n.indexOf(r);return i&&!o}},function(t,e,n){var r=n(185),i=n(34),o=n(65),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(66),i=n(20),o=n(31),s=n(0),a=n(11),c=n(32),u=n(44),l=n(43),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(u(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},function(t,e,n){var r=n(48),i=n(202),o=n(203),s=n(204),a=n(205),c=n(206);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e,n){var r=n(197),i=n(198),o=n(199),s=n(200),a=n(201);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(35);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(15)(Object,"create");t.exports=r},function(t,e,n){var r=n(215);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(101),i=n(221),o=n(11);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(23),i=n(24);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(10),i=n(5);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(125),i=n(128);e.decode=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?i.encodeXML:i.encodeHTML)(t)};var o=n(128);e.encodeXML=o.encodeXML,e.encodeHTML=o.encodeHTML,e.escape=o.escape,e.encodeHTML4=o.encodeHTML,e.encodeHTML5=o.encodeHTML;var s=n(125);e.decodeXML=s.decodeXML,e.decodeHTML=s.decodeHTML,e.decodeHTMLStrict=s.decodeHTMLStrict,e.decodeHTML4=s.decodeHTML,e.decodeHTML5=s.decodeHTML,e.decodeHTML4Strict=s.decodeHTMLStrict,e.decodeHTML5Strict=s.decodeHTMLStrict,e.decodeXMLStrict=s.decodeXML},function(t,e,n){var r=n(261)(n(142));t.exports=r},function(t,e){let n,r=n;t.exports={next(t="doc"){const e=Date.now().toString(32);return n===e?r+=1:(r=0,n=e),`${t}-${e}${r}`}}},function(t,e,n){const r=n(96);t.exports=function(t,e){e?t.css("background-image",i(e)):t.css("background-image","")};const i=function(t){return`url(${t=r(t)})`}},function(t,e){t.exports=require("url")},function(t,e,n){const r=n(174);t.exports={set:function(t,e,n,i){r(t,e);const o=n.map(({width:t,url:e})=>`${e} ${t}w`).join(",");t.attr("srcset",o),t.attr("sizes",i.join(","))},reset:function(t){t.removeAttr("srcset"),t.removeAttr("sizes")}}},function(t,e,n){t.exports=n(62)},function(t,e,n){var r=n(99),i=n(30),o=n(188),s=n(0);t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){var r=n(102),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(63)(t))},function(t,e,n){var r=n(44),i=n(186),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(10),i=n(8);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(15)(n(9),"Map");t.exports=r},function(t,e,n){var r=n(47),i=n(99),o=n(71),s=n(219),a=n(220),c=n(106),u=n(107),l=n(223),p=n(224),h=n(111),d=n(75),f=n(20),m=n(225),g=n(226),v=n(115),y=n(0),_=n(32),b=n(231),x=n(8),C=n(233),w=n(14),E={};E["[object Arguments]"]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E["[object Object]"]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E["[object Function]"]=E["[object WeakMap]"]=!1,t.exports=function t(e,n,I,S,T,A){var D,O=1&n,k=2&n,N=4&n;if(I&&(D=T?I(e,S,T,A):I(e)),void 0!==D)return D;if(!x(e))return e;var P=y(e);if(P){if(D=m(e),!O)return u(e,D)}else{var R=f(e),j="[object Function]"==R||"[object GeneratorFunction]"==R;if(_(e))return c(e,O);if("[object Object]"==R||"[object Arguments]"==R||j&&!T){if(D=k||j?{}:v(e),!O)return k?p(e,a(D,e)):l(e,s(D,e))}else{if(!E[R])return T?e:{};D=g(e,R,O)}}A||(A=new r);var M=A.get(e);if(M)return M;A.set(e,D),C(e)?e.forEach((function(r){D.add(t(r,n,I,r,e,A))})):b(e)&&e.forEach((function(r,i){D.set(i,t(r,n,I,i,e,A))}));var L=N?k?d:h:k?keysIn:w,q=P?void 0:L(e);return i(q||e,(function(r,i){q&&(r=e[i=r]),o(D,i,t(r,n,I,i,e,A))})),D}},function(t,e,n){var r=n(207),i=n(214),o=n(216),s=n(217),a=n(218);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(36),i=n(35),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(108),i=n(109),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(103)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(112),i=n(110),o=n(52);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(113);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(0),i=n(54),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=require("assert")},function(t){t.exports=JSON.parse('{"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":""}')},function(t){t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(t,e,n){var r=n(11),i=n(5);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(45),i=n(123),o=n(124);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(264),i=n(5);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},function(t,e,n){var r=n(70),i=n(265),o=n(266);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){const r=n(278).Parser,i=n(295);t.exports=function(t,e){if(!t)return[];const n=new i(e),o=new r(n,{});if(o.write(t),o.done(),n.error)throw n.error;return n.dom}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=o(n(147)),a=n(133),c=new Set(["input","option","optgroup","select","button","datalist","textarea"]),u=new Set(["p"]),l={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:u,h1:u,h2:u,h3:u,h4:u,h5:u,h6:u,select:c,input:c,output:c,button:c,datalist:c,textarea:c,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:u,article:u,aside:u,blockquote:u,details:u,div:u,dl:u,fieldset:u,figcaption:u,figure:u,footer:u,form:u,header:u,hr:u,main:u,nav:u,ol:u,pre:u,section:u,table:u,ul:u,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),h=new Set(["math","svg"]),d=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=/\s|\//,m=function(t){function e(n,r){var i=t.call(this)||this;return i._tagname="",i._attribname="",i._attribvalue="",i._attribs=null,i._stack=[],i._foreignContext=[],i.startIndex=0,i.endIndex=null,i.parseChunk=e.prototype.write,i.done=e.prototype.end,i._options=r||{},i._cbs=n||{},i._tagname="",i._attribname="",i._attribvalue="",i._attribs=null,i._stack=[],i._foreignContext=[],i.startIndex=0,i.endIndex=null,i._lowerCaseTagNames="lowerCaseTags"in i._options?!!i._options.lowerCaseTags:!i._options.xmlMode,i._lowerCaseAttributeNames="lowerCaseAttributeNames"in i._options?!!i._options.lowerCaseAttributeNames:!i._options.xmlMode,i._tokenizer=new(i._options.Tokenizer||s.default)(i._options,i),i._cbs.onparserinit&&i._cbs.onparserinit(i),i}return i(e,t),e.prototype._updatePosition=function(t){null===this.endIndex?this._tokenizer._sectionStart<=t?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-t:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(t){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(t)},e.prototype.onopentagname=function(t){if(this._lowerCaseTagNames&&(t=t.toLowerCase()),this._tagname=t,!this._options.xmlMode&&t in l)for(var e=void 0;l[t].has(e=this._stack[this._stack.length-1]);this.onclosetag(e));!this._options.xmlMode&&p.has(t)||(this._stack.push(t),h.has(t)?this._foreignContext.push(!0):d.has(t)&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(t),this._cbs.onopentag&&(this._attribs={})},e.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&p.has(this._tagname)&&this._cbs.onclosetag(this._tagname),this._tagname=""},e.prototype.onclosetag=function(t){if(this._updatePosition(1),this._lowerCaseTagNames&&(t=t.toLowerCase()),(h.has(t)||d.has(t))&&this._foreignContext.pop(),!this._stack.length||!this._options.xmlMode&&p.has(t))this._options.xmlMode||"br"!==t&&"p"!==t||(this.onopentagname(t),this._closeCurrentTag());else{var e=this._stack.lastIndexOf(t);if(-1!==e)if(this._cbs.onclosetag)for(e=this._stack.length-e;e--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=e;else"p"!==t||this._options.xmlMode||(this.onopentagname(t),this._closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},e.prototype._closeCurrentTag=function(){var t=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===t&&(this._cbs.onclosetag&&this._cbs.onclosetag(t),this._stack.pop())},e.prototype.onattribname=function(t){this._lowerCaseAttributeNames&&(t=t.toLowerCase()),this._attribname=t},e.prototype.onattribdata=function(t){this._attribvalue+=t},e.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},e.prototype._getInstructionName=function(t){var e=t.search(f),n=e<0?t:t.substr(0,e);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("!"+e,"!"+t)}},e.prototype.onprocessinginstruction=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("?"+e,"?"+t)}},e.prototype.oncomment=function(t){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(t),this._cbs.oncommentend&&this._cbs.oncommentend()},e.prototype.oncdata=function(t){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(t),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+t+"]]")},e.prototype.onerror=function(t){this._cbs.onerror&&this._cbs.onerror(t)},e.prototype.onend=function(){if(this._cbs.onclosetag)for(var t=this._stack.length;t>0;this._cbs.onclosetag(this._stack[--t]));this._cbs.onend&&this._cbs.onend()},e.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},e.prototype.parseComplete=function(t){this.reset(),this.end(t)},e.prototype.write=function(t){this._tokenizer.write(t)},e.prototype.end=function(t){this._tokenizer.end(t)},e.prototype.pause=function(){this._tokenizer.pause()},e.prototype.resume=function(){this._tokenizer.resume()},e}(a.EventEmitter);e.Parser=m},function(t,e,n){const r=n(17),i=n(21),o=n(39);t.exports=class extends o{getContent(){return this.content}isEmpty(){if(this.content)for(const t of Object.values(this.content))if(t)return!1;return!0}hasDifferentContent(t){return!r(this.content,t)}hasDifferentProperty(t,e){return!r(this.content[t],e)}serialize(){return this.content}deserialize(t={}){this.content=i(t)}}},function(t,e){t.exports=function(t){t=t?flagsCache[t]||createFlags(t):{};var e,n,r,i,o,s,a=[],c=[],u=function(e){var n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n],Array.isArray(i)?u(i):"function"==typeof i&&(t.unique&&p.has(i)||a.push(i))},l=function(u,l){for(l=l||[],e=!t.memory||[u,l],n=!0,r=!0,s=i||0,i=0,o=a.length;a&&s<o;s++)if(!1===a[s].apply(u,l)&&t.stopOnFalse){e=!0;break}r=!1,a&&(t.once?!0===e?p.disable():a=[]:c&&c.length&&(e=c.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(a){var t=a.length;u(arguments),r?o=a.length:e&&!0!==e&&(i=t,l(e[0],e[1]))}return this},remove:function(){if(a)for(var e=arguments,n=0,i=e.length;n<i;n++)for(var c=0;c<a.length&&(e[n]!==a[c]||(r&&c<=o&&(o--,c<=s&&s--),a.splice(c--,1),!t.unique));c++);return this},has:function(t){if(a)for(var e=0,n=a.length;e<n;e++)if(t===a[e])return!0;return!1},empty:function(){return a=[],this},disable:function(){return a=c=e=void 0,this},disabled:function(){return!a},lock:function(){return c=void 0,e&&!0!==e||p.disable(),this},locked:function(){return!c},fireWith:function(n,i){return c&&(r?t.once||c.push([n,i]):t.once&&e||l(n,i)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!n}};return p}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e,n){var r=n(143),i=n(328),o=n(329);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports={directives:{container:{attr:"doc-container",overwritesContent:!0},editable:{attr:"doc-editable",overwritesContent:!0},html:{attr:"doc-html",overwritesContent:!0},include:{attr:"doc-include",overwritesContent:!0},link:{attr:"doc-link"},image:{attr:"doc-image"},optional:{attr:"doc-optional",modifier:!0},toggle:{attr:"doc-toggle"},style:{attr:"doc-style"}},exists(t){return!!this.directives[t]},doesOverwriteContent(t){return!!(this.directives[t]?this.directives[t].overwritesContent:void 0)}}},function(t,e){var n,r;n=Object.prototype.toString,t.exports=r={isObject:function(t){return"object"===typeof t&&!!t&&!this.isArray(t)},isBoolean:function(t){return!0===t||!1===t||"[object Boolean]"===n.call(t)}},["Function","String","Number","Date","RegExp","Array"].forEach((function(t){return r["is"+t]=function(e){return n.call(e)==="[object "+t+"]"}})),Array.isArray&&(r.isArray=Array.isArray)},function(t,e,n){const r=n(26),i=n(16),o=n(3),s=n(25),a=/(\d+)\s?[/:x]\s?(\d+)/;class c{constructor({name:t,label:e,ratio:n}){this.name=t||n,this.label=e||s.humanize(this.name),this.ratio=this.parseRatio(n)}parseRatio(t){const e=t;if(i(t)){const e=a.exec(t);t=!!e&&Number(e[1])/Number(e[2])}return o(r(t),`Could not parse image ratio '${e}'`),function(t){return parseFloat(t.toPrecision(6))}(t)}}c.prototype.ratioString=a,t.exports=c},function(t,e,n){const r=n(384);function i(t){if(t)return t.parentComponent?t.parentComponent.id:"root"}t.exports={serializeCommand(t){const e={type:t.type};if("insertComponent"===t.type||"transformComponent"===t.type){const n=t.component;e.component=n.toJson(),e.component.componentName=n.componentName}else{const n=t.component;e.component={id:n.id,componentName:n.componentName}}if(t.position){const{parentContainer:n,containerInsertIndex:r,next:o,previous:s}=t.position;e.position={parentId:i(n),parentContainerName:n?n.name:void 0,previousId:s?s.id:void 0,nextId:o?o.id:void 0,containerInsertIndex:r}}return t.directive&&(e.directiveName=t.directive.name),t.value&&(e.value=t.value),t.serviceName&&(e.serviceName=t.serviceName),t.name&&(e.name=t.name),t.key&&(e.key=t.key),t.eventSource&&(e.eventSource=t.eventSource),e},deserializeCommand(t,e){switch(t.type){case"insertComponent":return function(t,e){const n=[],i={type:t.type},{conflict:o,deserializedPosition:s}=r.adaptPositionComponent(t.position,e);o&&s.parentContainer.hasChildren()&&n.push(o);return i.position=s,i.component=r.adaptComponentToInsert(t,e),i.eventSource=t.eventSource,{conflicts:n,deserializedCommand:i}}(t,e);case"transformComponent":return function(t,e){const n=[],r={type:t.type},i=t.component.id,o=e.findById(i);if(o){r.component=o;const n=e.createComponentFromJson(t.component);r.replacement=n}else n.push({type:"NotExistingComponent",componentId:i});return{conflicts:n,deserializedCommand:r}}(t,e);case"moveComponent":return function(t,e){const n=[],i={type:t.type};if(t.component){const r=t.component.id,o=e.findById(r);o?i.component=o:n.push({type:"ComponentAlreadyRemoved",componentId:r})}const o={};t.position&&t.position.parentId&&(o.parentContainer=r.getParentContainer(t.position,e));if(t.position&&t.position.nextId){const r=e.findById(t.position.nextId);r?o.next=r:n.push({type:"ComponentAlreadyRemoved",componentId:t.position.next.id})}if(t.position&&t.position.previousId){const r=e.findById(t.position.previousId);r?r.parentContainer.parentComponent&&o.parentContainer.parentComponent&&r.parentContainer.parentComponent.id===o.parentContainer.parentComponent.id||r.parentContainer.isRoot&&o.parentContainer.isRoot?o.previous=r:o.previous=void 0:n.push({type:"ComponentAlreadyRemoved",componentId:t.position.previousId})}(o.previous&&o.previous.next!==o.next||o.next&&o.next.previous!==o.previous)&&n.push({type:"PositionObjectIsNotCorrect",componentId:i.component.id});return i.position=o,i.eventSource=t.eventSource,{conflicts:n,deserializedCommand:i}}(t,e);case"removeComponent":return function(t,e){const n=[],r={type:t.type};if(t.component){const i=t.component.id,o=e.findById(i);o?r.component=o:n.push({type:"ComponentAlreadyRemoved",componentId:i})}return r.eventSource=t.eventSource,{conflicts:n,deserializedCommand:r}}(t,e);case"updateEditableDirective":case"updateImageDirective":case"updateToggleDirective":case"updateStyleDirective":case"updateIncludeDirective":case"updateLinkDirective":case"updateHtmlDirective":return function(t,e){const n=[],i={type:t.type};if(t.component){const r=t.component.id,o=e.findById(r);o?i.component=o:n.push({type:"NotExistingComponent",componentId:r})}const{directiveConflict:o,directive:s}=r.adaptDirective(t,i.component);o?(o.commands=[t],n.push(o)):i.directive=s;return i.key=t.key,i.value=t.value,i.serviceName=t.serviceName,i.eventSource=t.eventSource,{conflicts:n,deserializedCommand:i}}(t,e);case"updateComponentStyle":case"updateComponentData":return function(t,e){const n=[],r={type:t.type},i=e.findById(t.component.id);i?r.component=i:n.push({type:"NotExistingComponent",componentId:r.component.id});return r.value=t.value,r.key=t.key,r.name=t.name,r.eventSource=t.eventSource,{conflicts:n,deserializedCommand:r}}(t,e);case"updateTmpImageDirective":case"updateDirectiveTmpData":return{skip:!0};default:return{conflicts:[{type:"InvalidCommand",commandType:t.type}]}}}}},function(t,e){t.exports=function(t){return/[()]/.test(t)?`'${t}'`:t}},function(t,e,n){const r=n(1),i=n(6);t.exports={for:function(t){const e=r(i,t);if(!e)throw new Error(`Default configuration for '${t}' not set`);return{config:e,getWidths:function(t){return o(this.config,"srcSet","widths",t)},getSizes:function(t){return o(this.config,"srcSet","sizes",t)},getDefaultWidth:function(t){return o(this.config,"srcSet","defaultWidth",t)},getBgImageMaxWidth:function(t){return o(this.config,"backgroundImage","maxWidth",t)}}}};const o=function(t,e,n,r){if(r.hasOwnProperty(e)){if(r[e].hasOwnProperty(n))return r[e][n]}let i;try{i=t[e][n]}catch(t){throw new Error(`PropertyName '${n}' for '${e}' not found`)}return i}},function(t,e,n){const r=n(61),i=n(46),o=n(21),s=n(235),a=n(236),c=n(37);function u(t,e,n){if(e)if(e.modifiesClassAttribute()){const r=e.cssClassChanges(n);r.remove&&r.remove.forEach(e=>{t.removeClass(e)}),t.addClass(r.add)}else t.css(e.cssPropertyName,n||"")}t.exports=class{static renderComponent(t,e,n,r){null==e&&(e={});const i=this.renderComponentDom(t,r);if("text/json"===e.format)return i;return c([i],{prettyHtml:e.prettyHtml,decodeHTML:e.decodeHtml,renderDirectiveInfo:e.renderDirectiveInfo})}static renderComponentDom(t,e){const n=this.getComponentDom(t,e),i={};s.eachDirective([n],(t,e)=>{r(e,(e,n)=>{i[e]=t})}),this.processComponentElem(n,t);for(const e of t.directives)this.processDirective(i,e);for(const n of t.containers){const t=this.renderContainerDom(n,e);if(t.length){const e=i[n.name];this.appendChildren(e,t)}}return n}static getComponentDom(t,e){const n=t.getSkin();return o(n.dom[0])}static renderContainerDom(t,e){const n=[];t.nestedTree&&(t=t.nestedTree);for(const r of t)n.push(this.renderComponentDom(r,e));return n}static processComponentElem(t,e){if(e.styles){const n=new a(t);for(const t in e.styles){const r=e.styles[t];u(n,e.structure.styles[t],r)}}}static processDirective(t,e){const n=t[e.name];switch(e.type){case"editable":this.processEditable(n,e);break;case"image":this.processImage(n,e);break;case"html":this.processHtml(n,e);break;case"include":this.processInclude(n,e);break;case"link":this.processLink(n,e);break;case"toggle":this.processToggle(n,e);break;case"style":this.processStyle(n,e)}}static processEditable(t,e){if(e.optional&&e.isEmpty())return void(t.doNotRender=!0);const n=e.getContent();t.children=[{type:"text",data:n}]}static processImage(t,e){if(e.isInlineImage()&&!e.getUrl()&&!e.isTemporaryImage())return void(t.doNotRender=!0);const n=e.getImageService(),r=new a(t);n.set(r,e)}static processHtml(t,e){const n=e.getContent();this.appendHtml(t,n)}static processInclude(t,e){e.isResolved()?this.appendHtml(t,e.resolvedValue):this.renderIncludePlaceholder(t,e)}static appendHtml(t,e){t.children=[{type:"text",data:e}]}static renderIncludePlaceholder(t,e){const n=e.getService(),r=e.getParams(),o=s.createElem("ld-include",{"data-include-service":n}),c=new a(o);if(!i(r)){const t=s.escapeAttributeData(r);c.attr("data-include-params",t)}t.children=[o]}static processLink(t,e){const n=e.getContent(),r=new a(t);n?r.attr("href",n):r.removeAttr("href")}static processToggle(t,e){!1===e.getContent()&&(t.doNotRender=!0)}static processStyle(t,e){const n=e.getContent(),r=new a(t);for(const t in n){const i=n[t];u(r,e.getStyleConfig(t),i)}}static appendChildren(t,e){t.children=e}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(179)();t.exports=r},function(t,e,n){var r=n(180),i=n(31),o=n(0),s=n(32),a=n(33),c=n(43),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),p=!n&&!l&&s(t),h=!n&&!l&&!p&&c(t),d=n||l||p||h,f=d?r(t.length,String):[],m=f.length;for(var g in t)!e&&!u.call(t,g)||d&&("length"==g||p&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(15),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){(function(t){var r=n(9),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(63)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(73),i=n(74),o=n(72),s=n(109),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=a},function(t,e,n){var r=n(112),i=n(72),o=n(14);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(73),i=n(0);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e,n){var r=n(9).Uint8Array;t.exports=r},function(t,e,n){var r=n(76);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(230),i=n(74),o=n(44);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(117);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(19),i=n(13),o=n(0),s=n(54),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(53),i=n(119),o=n(23);t.exports=function(t,e,n){for(var s=-1,a=e.length,c={};++s<a;){var u=e[s],l=r(t,u);n(l,u)&&i(c,o(u,t),l)}return c}},function(t,e,n){var r=n(71),i=n(23),o=n(33),s=n(8),a=n(24);t.exports=function(t,e,n,c){if(!s(t))return t;for(var u=-1,l=(e=i(e,t)).length,p=l-1,h=t;null!=h&&++u<l;){var d=a(e[u]),f=n;if(u!=p){var m=h[d];void 0===(f=c?c(m,d,h):void 0)&&(f=s(m)?m:o(e[u+1])?[]:{})}r(h,d,f),h=h[d]}return t}},function(t,e,n){var r=n(242),i=n(243);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e,n){var r=n(244),i=n(123),o=n(124);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(73),i=n(245);t.exports=function t(e,n,o,s,a){var c=-1,u=e.length;for(o||(o=i),a||(a=[]);++c<u;){var l=e[c];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},function(t,e,n){var r=n(246),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s<a;)c[s]=o[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=o[s];return u[e]=n(c),r(t,this,u)}}},function(t,e,n){var r=n(247),i=n(249)(r);t.exports=i},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(79)),o=r(n(126)),s=r(n(80)),a=r(n(127));function c(t){var e=Object.keys(t).join("|"),n=l(t),r=new RegExp("&(?:"+(e+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(t){return String(t).replace(r,n)}}e.decodeXML=c(s.default),e.decodeHTMLStrict=c(i.default);var u=function(t,e){return t<e?1:-1};function l(t){return function(e){return"#"===e.charAt(1)?"X"===e.charAt(2)||"x"===e.charAt(2)?a.default(parseInt(e.substr(3),16)):a.default(parseInt(e.substr(2),10)):t[e.slice(1,-1)]}}e.decodeHTML=function(){for(var t=Object.keys(o.default).sort(u),e=Object.keys(i.default).sort(u),n=0,r=0;n<e.length;n++)t[r]===e[n]?(e[n]+=";?",r++):e[n]+=";";var s=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=l(i.default);function c(t){return";"!==t.substr(-1)&&(t+=";"),a(t)}return function(t){return String(t).replace(s,c)}}()},function(t){t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(251));e.default=function(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in i.default&&(t=i.default[t]);var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=c(r(n(80)).default),o=u(i);e.encodeXML=f(i,o);var s=c(r(n(79)).default),a=u(s);function c(t){return Object.keys(t).sort().reduce((function(e,n){return e[t[n]]="&"+n+";",e}),{})}function u(t){var e=[],n=[];return Object.keys(t).forEach((function(t){return 1===t.length?e.push("\\"+t):n.push(t)})),n.unshift("["+e.join("")+"]"),new RegExp(n.join("|"),"g")}e.encodeHTML=f(s,a);var l=/[^\0-\x7F]/g,p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function h(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}function d(t,e){return"&#x"+(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function f(t,e){return function(n){return n.replace(e,(function(e){return t[e]})).replace(p,d).replace(l,h)}}var m=u(i);e.escape=function(t){return t.replace(m,h).replace(p,d).replace(l,h)}},function(t,e,n){var r=n(36),i=n(35);t.exports=function(t,e,n){(void 0===n||i(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(10),i=n(74),o=n(5),s=Function.prototype,a=Object.prototype,c=s.toString,u=a.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){"use strict";t.exports=function(t){var e=void 0;e="string"==typeof t?[t]:t.raw;for(var n="",r=0;r<e.length;r++)n+=e[r].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),r<(arguments.length<=1?0:arguments.length-1)&&(n+=arguments.length<=r+1?void 0:arguments[r+1]);var i=n.split("\n"),o=null;return i.forEach((function(t){var e=t.match(/^(\s+)\S+/);if(e){var n=e[1].length;o=o?Math.min(o,n):n}})),null!==o&&(n=i.map((function(t){return" "===t[0]?t.slice(o):t})).join("\n")),(n=n.trim()).replace(/\\n/g,"\n")}},function(t,e){t.exports=require("events")},function(t,e){const n=function(){return console||(window?window.console:void 0)},r=function(t,e="error"){if("critical"===e||"error"===e)throw t||(t="no error message provided"),t instanceof Error?t:new Error(t);i(t)};function i(...t){const e=n();e&&(t.length&&"trace"===t[t.length-1]&&(t.pop(),e.trace&&e.trace()),e.log.apply(e,t))}i.debug=t=>{if(!i.debugDisabled)return r(t,"debug")},i.warn=t=>{if(!i.warningsDisabled)return r(t,"warning")},i.error=t=>r(t,"error"),t.exports=i},function(t,e,n){const r=n(16),i=n(46),o=n(3),s=n(136),a=n(297),c=n(152),u=n(311),l=n(40),p=n(89),h=n(348);function d(t){this.root.componentTree=void 0,t(),this.root.componentTree=this,this.root.descendants(t=>this.attachComponent(t))}t.exports=class t{constructor({content:t,design:e,handleViolation:n}={}){this.violationHandler=new h,n&&this.violationHandler.setHandleFunction(n),this.design=e,o(this.design,"new ComponentTree(): param 'design' is missing"),o(this.design instanceof l,"new ComponentTree(): param 'design' must be a Design instance"),this.componentById={},this.root=new s({isRoot:!0}),this.root.componentTree=this,this.executedCommands=[],t&&this.initializeContent(t,"suppressEvents"),this.initializeEvents()}prepend(t){return(t=this.getComponent(t))&&this.root.prepend(t),this}append(t){return(t=this.getComponent(t))&&this.root.append(t),this}getComponent(t){return r(t)?this.createComponent(t):t}createComponent(t,e={}){const n=this.getStructure(t);if(n){const t=n.createModel();return t.setContent(e),t}}createComponentFromJson(t){return c.fromJson(t,this.design,this.violationHandler)}getStructure(t){const e=this.design.getComponentStructure(t);return o(e,`Design ${this.design.identifier}: Could not find component '${t}'`),e}initializeEvents(){this.beforeComponentAdded=p(),this.componentAdded=p(),this.beforeComponentRemoved=p(),this.componentRemoved=p(),this.beforeComponentMoved=p(),this.componentMoved=p(),this.beforeComponentTransformed=p(),this.componentTransformed=p(),this.beforeComponentContentChanged=p(),this.componentContentChanged=p(),this.beforeComponentHtmlChanged=p(),this.componentHtmlChanged=p(),this.beforeComponentSettingsChanged=p(),this.componentSettingsChanged=p(),this.beforeComponentDataChanged=p(),this.componentDataChanged=p(),this.viewUpdateRequested=p(),this.ruleViolated=p(),this.changed=p(),this.commandExecuted=p()}getIterator(){return new u({componentTree:this})}each(t){this.root.descendants(t)}descendants(t){this.root.descendants(t)}descendantsIterator(){return this.root.descendantsIterator()}eachContainer(t){this.root.eachContainer(t)}children(t){this.root.children(t)}[Symbol.iterator](){return this.root[Symbol.iterator]()}childAt(t){return this.root.childAt(t)}first(){return this.root.first}getAllComponents(){return this._componentsArrayCache||(this._componentsArrayCache=[...this.descendantsIterator()]),this._componentsArrayCache}eq(t){let e=0;for(const n of this.descendantsIterator())if(t===e++)return n}indexOf(t){let e=0;for(const n of this.descendantsIterator()){if(n===t)return e;e+=1}return-1}all(t){return this.root.all(t)}find(t){if("string"==typeof t){const e=[];for(const n of this.descendantsIterator())n.componentName===t&&e.push(n);return new a(e)}return new a}findById(t){return this.componentById[t]}detach(){this.root.componentTree=void 0,this.each(t=>this.detachComponent(t));const t=this.root;return this.root=new s({isRoot:!0}),t}attachComponent(t){t.componentTree=this,this.componentById[t.id]=t}detachComponent(t){t.componentTree=void 0,this.componentById[t.id]=void 0}setMainView({renderer:t}){o(t,"componentTree.setMainView: view does not have an initialized renderer"),o(t.componentTree===this,"componentTree.setMainView: Cannot set renderer from different componentTree"),this.mainRenderer=t}getMainComponentView(t){return this.mainRenderer?this.mainRenderer.getComponentViewById(t):void 0}isDropAllowed(t,e){const{target:n,componentView:r,containerName:i,position:o}=e;if("component"===n){const e={};"before"===o&&(e.previous=r.model.previous,e.next=r.model),"after"===o&&(e.previous=r.model,e.next=r.model.next);const n=t.isValidPosition(e);if(!1===n.valid)return n}if("root"===n)return this.root.isAllowedAsChild(t);if("component"===n){return r.model.isAllowedAsSibling(t)}if("container"===n){return r.model.isAllowedAsChild(i,t)}return!1}print(){let t="ComponentTree\n-----------\n";const e=(e,n=0)=>(t+=`${Array(n+1).join(" ")}${e}\n`,t),n=(t,r=0)=>{const{structure:i}=t;e(`- ${i.label} (${i.name})`,r);for(const i of t.containers)e(`${i.name}:`,r+2),i.first&&n(i.first,r+4);t.next&&n(t.next,r)};return this.root.first&&n(this.root.first),t}attachingComponent(t,e,n){t.componentTree===this?(this.fireBeforeEvent("beforeComponentMoved",t,n),e(),delete this._componentsArrayCache,this.fireEvent("componentMoved",t)):(this.fireBeforeEvent("beforeComponentAdded",t,n),t.componentTree&&t.remove(),t.descendantsAndSelf(t=>this.attachComponent(t)),e(),delete this._componentsArrayCache,this.fireEvent("componentAdded",t))}fireEvent(t,...e){this[t].fire(...e),this.changed.fire()}fireBeforeEvent(t,...e){this[t].fire(...e)}detachingComponent(t,e,n){o(t.componentTree===this,"cannot remove component from another ComponentTree"),this.fireBeforeEvent("beforeComponentRemoved",t,n),t.descendantsAndSelf(t=>this.detachComponent(t)),e(),delete this._componentsArrayCache,this.fireEvent("componentRemoved",t)}contentChanging(t,e,n){this.fireEvent("componentContentChanged",t,e,n)}requestViewUpdate(t,e){this.fireEvent("viewUpdateRequested",t,e)}htmlChanging(t){this.fireEvent("componentHtmlChanged",t)}reportExecutedCommand(t){this.executedCommands.push(t),this.commandExecuted.fire(t)}dataChanging(t,e){this.fireEvent("componentDataChanged",t,e)}reportViolation(t){this.fireEvent("ruleViolated",t)}serialize({omitIds:t}={}){const e=[],n={omitId:!!t,deep:!0};for(const t of this)e.push(t.toJson(n));return{content:e,design:{name:this.design.name,version:this.design.version}}}initializeContent(t,e=!0){e?d.call(this,()=>this.addContent(t)):this.addContent(t)}fromJson({content:t}){this.initializeContent(t)}clone(){const e=this.serialize();return e.design=this.design,new t(e)}addData(t){this.addContent(t.content)}addContent(t,e=this.root){if(!i(t))for(const n of t){const t=c.fromJson(n,this.design,this.violationHandler);e.append(t)}}addDataWithAnimation(t,e=200){o(this.design,"Error adding data. ComponentTree has no design");let n=Number(e);for(const r of Array.from(t.content)){const t=r;setTimeout(()=>{const e=c.fromJson(t,this.design,this.violationHandler);this.root.append(e)},n),n+=Number(e)}}toData(){return this.serialize()}toJson(...t){return this.toData.apply(this,t)}}},function(t,e,n){const r=n(1),i=n(3),o=n(132),{createInvalidChildViolation:s,createInvalidPositionViolation:a}=n(137),c=n(7),u=n(4);function l(){return this.value=this.value.next,{value:this.value,done:!this.value}}t.exports=class{constructor({parentComponent:t,name:e,isRoot:n,config:r}){this.parentComponent=t,this.name=e,this.isRoot=!!n,this.first=this.last=void 0,this.allowedChildren=void 0,this.nestedTree=void 0,this.parseConfig(r)}[Symbol.iterator](){return{value:{next:this.first},next:l}}parseConfig(t){if(t){for(const e of t.allowedChildren||[])this.allowedChildren||(this.allowedChildren={}),this.allowedChildren[e]=!0;this.defaultContent=t.defaultContent,this.defaultComponents=t.defaultComponents}}isAllowedAsChild(t){if(!!!(this.isAcceptingComponents()&&this.canBeNested(t.id)&&this.compliesWithContentRules(t)))return!1;let e=!0;return t.descendants(t=>{e=e&&t.parentContainer.isAllowedAsChild(t)}),e}isValidOperation(t){return!(!this.isAcceptingComponents()||!this.canBeNested(t.id))}compliesWithContentRules(t){return!(!this.isChildAllowed(t.structure)||!this.isAllowedAsParent(t.structure))}isTypeAllowedAsChild(t){return!!t&&!(!this.isChildAllowed(t)||!this.isAllowedAsParent(t))}isAcceptingComponents(){return!this.nestedTree}canBeNested(t){let e=this.parentComponent;for(;e;){if(e.id===t)return!1;e=e.getParent()}return!0}isChildAllowed(t){return void 0===this.allowedChildren||this.allowedChildren[t.name]}isAllowedAsParent(t){const e=t.allowedParents;if(!e)return!0;const n=this.isRoot?"root":r(this.parentComponent,"componentName");for(const t of e)if(n===t)return!0;return!1}hasChildren(){return!!this.first}getComponentTree(){return this.componentTree||r(this.parentComponent,"componentTree")}prepend(t){const e=c.insertComponent(t,{next:this.first,parentContainer:this});return u.handle(e),this}append(t){this.parentComponent&&i(t!==this.parentComponent,"cannot append component to itself");const e=c.insertComponent(t,{previous:this.last,parentContainer:this});return u.handle(e),this}appendTree(t){if(this.first)throw new Error("a componentTree can only be appended to an empty container");this.nestedTree=t}insertBefore(t,e){const n=c.insertComponent(e,{next:t,parentContainer:this});u.handle(n)}insertAfter(t,e){const n=c.insertComponent(e,{previous:t,parentContainer:this});u.handle(n)}up(t){t.previous&&this.insertBefore(t.previous,t)}down(t){t.next&&this.insertAfter(t.next,t)}remove(t){const e=c.removeComponent(t);u.handle(e)}getNextContainer(){if(!this.parentComponent)return;const{containers:t}=this.parentComponent,e=t.getIndex(this.name);i(e>=0,"container not part of component");const n=e+1;return t.length>n?t[n]:void 0}each(t){this.descendants(t)}descendants(t){let e=this.first;for(;e;)e.descendantsAndSelf(t),e=e.next}descendantsIterator(){return new p(this)}children(t){for(const e of this)t(e)}childAt(t){let e=this.first,n=0;for(;e;){if(n===t)return e;e=e.next,n+=1}}eachContainer(t){t(this);for(const e of this.descendantsIterator())for(const n of e.containers)t(n)}all(t){t(this);for(const e of this.descendantsIterator()){t(e);for(const n of e.containers)t(n)}}getDefaultParagraph(){const t=this.getComponentTree();if(!t||!t.design)return{};const e=t.design,n=r(this.defaultComponents,"paragraph");return n?e.getDirectiveLocator({name:n,directiveType:"editable"}):e.defaultParagraph}getDefaultImage(){const t=this.getComponentTree();if(!t||!t.design)return{};const e=t.design,n=r(this.defaultComponents,"image");return n?e.getDirectiveLocator({name:n,directiveType:"image"}):e.defaultImage}attachComponent(t,e={},n){if(i(this.isValidOperation(t),o`
|
|
8
|
+
</svg>`)}`,history:{limit:1e3,groupingInterval:2e3},imageServices:{"resrc.it":{quality:75,host:"https://app.resrc.it",imgTagRenderStrategy:"resrcit",anyTagRenderStrategy:"resrcit"},liImageProxy:{host:"http://localhost:9090"},imgix:{host:"https://livingdocs.imgix.net",preferWebp:!1,backgroundImage:{maxWidth:1500},srcSet:{defaultWidth:1280,widths:[2048,1280,980,720],sizes:["(max-width: 980px) 80vw","(max-width: 720px) 100vw","100vw"]}},sz:{host:"https://sz.de",shaSecret:"please-change-me-in-the-server-configuration",hashVersion:1,srcSet:{defaultWidth:1280,widths:[2048,1280,980,720],sizes:["(max-width: 980px) 80vw","(max-width: 720px) 100vw","60vw"]}},"image.resizer":{host:"http://images.nswow.ch/remote",srcSet:{defaultWidth:1280,widths:{xlarge:2048,large:1280,medium:980,small:720},sizes:["(max-width: 980px) 80vw","(max-width: 720px) 100vw","100vw"]}}}}},function(e,t,n){var r=n(19),o=n(214),i=n(215),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(317),o=n(328),i=n(22),s=n(0),a=n(329);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?o(e[0],e[1]):r(e):a(e)}},function(e,t,n){var r=n(50),o=n(73);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(97);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(115),o=n(48),i=n(12);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(221),o=n(75),i=n(226),s=n(227),a=n(119),c=n(9),u=n(118),l=u(r),p=u(o),d=u(i),h=u(s),f=u(a),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||s&&"[object Set]"!=m(new s)||a&&"[object WeakMap]"!=m(new a))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(222),o=n(225);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(26);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(473),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s),i(o,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(5).Symbol;e.exports=r},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(52);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(77),o=n(35);e.exports=function(e,t,n,i){var s=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var u=t[a],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),s?o(n,u,l):r(n,u,l)}return n}},function(e,t,n){var r=n(0),o=n(84),i=n(131),s=n(85);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(s(e))}},function(e,t,n){var r=n(9),o=n(3);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(9),o=n(0),i=n(3);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t){e.exports={humanize(e){const t=this.trim(e).replace(/([a-z\d])([A-Z]+)/g,"$1 $2").toLowerCase();return this.titleize(t)},capitalize:e=>(e=e?String(e):"").charAt(0).toUpperCase()+e.slice(1),titleize:e=>null==e?"":String(e).replace(/(?:^|\s)\S/g,e=>e.toUpperCase()),snakeCase(e){return this.trim(e).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()},prefix:(e,t)=>0===t.indexOf(e)?t:`${e}${t}`,readableJson:e=>JSON.stringify(e,null,2),camelize(e){return this.trim(e).replace(/[-_\s]+(.)?/g,(e,t)=>t.toUpperCase())},trim:e=>e.replace(/^\s+|\s+$/g,""),collapseWhitespace:e=>e.replace(/\s+/g," ")}},function(e,t,n){try{var r=n(471);if("function"!=typeof r.inherits)throw"";e.exports=r.inherits}catch(t){e.exports=n(472)}},function(e,t,n){var r=n(18).Buffer;function o(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,o=this._blockSize,i=e.length,s=this._len,a=0;a<i;){for(var c=s%o,u=Math.min(i-a,o-c),l=0;l<u;l++)n[c+l]=e[a+l];a+=u,(s+=u)%o==0&&this._update(n)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){var r=n(210),o=n(219)(r);e.exports=o},function(e,t,n){var r=n(213),o=n(3),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(5),o=n(216),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;e.exports=c}).call(this,n(72)(e))},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(120);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(280);t.isTag=function(e){return r.isTag(e)},t.isCDATA=function(e){return"cdata"===e.type},t.isText=function(e){return"text"===e.type},t.isComment=function(e){return"comment"===e.type},t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")}},function(e,t,n){const r=n(4),o=n(295),i=n(62),{booleanAttributes:s,unencodedElements:a,singleTags:c,blockElements:u}=o;function l(e,t){return e.reduce((n,o,h)=>{let f;switch(o.type){case"text":n+=function(e,t){let n=e.data||"";!t.encodeXML||e.parent&&a[e.parent.name]?t.decodeHTML&&(n=i.decodeHTML(n)):n=i.encodeXML(n);return n}(o,t);break;case"tag":case"script":case"style":f=e[h+1],n+=function(e,t,n){let o,a;if(e.doNotRender)return"";if(t.plainText)return l(e.children,t);if(t.editableValidator){if(t.editableValidator.isProhibited(e)&&e.children)return l(e.children,t)}"svg"===e.name&&(t={encodeXML:t.encodeXML,renderDirectiveInfo:t.renderDirectiveInfo,xmlMode:!0});let h=function(e,t){let n=`<${e.name}`;const o=function(e,t){if(!e)return;let n="";for(const r of Object.keys(e)){let o=e[r];n&&(n+=" "),!o&&s[r]?n+=r:(t.encodeXML&&(o=i.encodeXML(o)),n+=`${r}="${o}"`)}return n}(e.attribs,t);o&&(n+=` ${o}`);const a=function(e,t){let n;if(!e)return;if(t.renderDirectiveInfo){n="";for(const t of Object.keys(e)){const r=e[t];n&&(n+=" "),n+=`doc-${t}="${r}"`}}return n}(e.directives,t);a&&(n+=` ${a}`);t.xmlMode&&!r(e,"children",!1)?n+="/>":n+=">";return n}(e,t);if(t.prettyHtml){const t=d(n),r=function(e){return!(!e.children||!e.children.length)&&d(e.children[0])}(e),i=u[e.name];a=i&&e.children&&!r,o=n&&!t}!function(e,t){if(t.xmlMode&&!r(e,"children.length",!1))return!0;return!!c[e.name]}(e,t)?(e.children&&(a&&(h+=function(e){e.indentLevel||(e.indentLevel=0);return e.indentLevel+=1,p(e)}(t)),h+=l(e.children,t),a&&(h+=function(e){e.indentLevel||(e.indentLevel=0);e.indentLevel>0&&(e.indentLevel-=1);return p(e)}(t))),h+=`</${e.name}>`,o&&(h+=p(t))):o&&(h+=p(t));return h}(o,t,f);break;case"root":n+=l(o.children,t);break;case"comment":n+=function(e){return`\x3c!--${e.data}--\x3e`}(o);break;case"directive":n+=function(e){return`<${e.data}>`}(o);break;case"cdata":n+=function(e){return`<![CDATA[${e.children[0].data}]]>`}(o)}return n},"")}e.exports=function(e,t={}){return Array.isArray(e)||e.cheerio||(e=[e]),t.prettyHtml&&(t.tabSize||(t.tabSize=2),t.decodeHTML=!0),l(e,t)};function p(e){return`\n${function(e){e.indentLevel||(e.indentLevel=0);if(e.indentLevel<0)return"";const t=e.indentLevel*e.tabSize;return" ".repeat(t)}(e)}`}function d(e){return!!e&&("text"===e.type&&/\n/.test(e.data))}},function(e,t,n){var r=n(9),o=n(80),i=n(3),s=Function.prototype,a=Object.prototype,c=s.toString,u=a.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},function(e,t,n){const r=n(6),o=n(148),i={};e.exports={add:(e,t)=>("string"!=typeof e&&(e=(t=e)&&t.name),r(e,"You must define an image service name"),r("function"==typeof t.getUrl,`Image Service ${e} `+"is missing the getUrl() function"),t.set||(t.set=(e,n,r)=>o(t,e,n,r)),Object.freeze(t),i[e]=t,t),has:(e="default")=>!!i[e],get(e="default"){return r(this.has(e),`Could not find image service ${e}`),i[e]},eachService(e){for(const t in i){e(t,i[t])}}}},function(e,t,n){const r=n(4),o=n(23),i=n(6),s=n(1);e.exports=class{constructor({component:e,structureDirective:t}){this.component=e,this.structureDirective=t,this.name=t.name,this.type=t.type,this.index=t.index,this.content={}}get tag(){return this.structureDirective.tag}getContent(){return this.content.value}hasDifferentContent(e){return""===e&&(e=void 0),this.content.value!==e}copyTo(e){this.assertCompatibility(e),e.content=o(this.content)}assertCompatibility(e){const t=this.type===e.type;i(t,`Incompatible directives: ${this.type} <-> ${e.type}`)}isEmpty(){return!this.getContent()}setData(e,t){const n=`_${this.name}Directive`;let r=o(this.component.getData(n));null==r&&(r={}),r[e]=t,this.component.setData(n,r)}removeData(e){const t=`_${this.name}Directive`,n=o(this.component.getData(t));n&&(delete n[e],this.component.setData(t,n))}getData(e){return e?null!=this.component.dataValues[`_${this.name}Directive`]?this.component.dataValues[`_${this.name}Directive`][e]:void 0:this.component.dataValues[`_${this.name}Directive`]}setTmp(e,t){s.execTrusted("updateDirectiveTmpData",{component:this.component,directive:this,key:e,value:t})}getTmp(e){return r(this.tmp,e)}getId(){return`${this.component.id}:${this.name}`}serialize(){return this.content.value}deserialize(e){this.content.value=e}correctValueType(e){return!e||"string"==typeof e||e instanceof String}}},function(e,t,n){const r=n(100),o=n(13),i=n(23),s=n(39),a=n(41);function c(e){return null!=e}e.exports=class extends a{getContent(){return this.content}isEmpty(){if(this.content)for(const e of Object.values(this.content))if(e)return!1;return!0}hasDifferentContent(e){return!o(this.content,e)}hasDifferentProperty(e,t){return!o(this.content[e],t)}serialize(){return r(this.content,c)}deserialize(e={}){this.content=i(e)}correctValueType(e){return null==e||s(e)}}},function(e,t,n){const r=n(197),o=n(8),{assert:i}=n(2),s=n(415),a=n(416),c=n(417),u=n(108),l=n(434),p=n(110);function d(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.add)return{violation:n,index:t}}return{}}function h(e,t){return new a({name:e,dom:t})}function f(e,t){const n={};return e.forEach(e=>{i(t.properties,`The componentProperty '${e}' was not found.`);const r=t.properties[e];i(r,`The componentProperty '${e}' was not found.`),n[e]=r}),n}function m(e,t,n){i(e.tag===t,`${n} is only supported on <${t}> elements.`)}e.exports={parseComponent:function(e,t){const n=e.html,a=Array.isArray(e.directives)?r(e.directives,"name"):e.directives;let d=e.properties;const{name:g,label:v,description:y,iconUrl:b,allowedParents:x}=e,{excludeFromTextCount:_}=e,w={name:g,label:v,description:y,iconUrl:b,allowedParents:x,excludeFromTextCount:_};d&&(d=f(d,t),w.properties=d);const C=c(n);w.directivesFromTemplate=C.directives,w.directivesFromConfig=a;const T=function(e,t){const{name:n,label:r,description:a,iconUrl:c,allowedParents:d}=e,{excludeFromTextCount:h}=e,{properties:g,directivesFromTemplate:v,directivesFromConfig:y}=e,b=t&&t.mediaRendering,x=function(e,t,n,r){const o={};return e.forEach(e=>{o[e.name]=e}),t=t||{},Object.keys(t).forEach(e=>{const s=t[e]||{},a=o[e];a||i(!1,`Directive '${e}' not present in template for component '${n}'.`),Object.keys(s).forEach(t=>{const n=s[t];switch(t){case"type":i(a.type===n,`Directive '${e}': type does not match`);break;case"imageRatios":n&&n.length&&(a[t]=function(e,t){return e.map(e=>{const n=t.imageRatios[e];return n||new p({name:e,ratio:e})})}(n,r));break;case"properties":n&&n.length&&(a[t]=f(n,r));break;default:a[t]=n}})}),e}(v,y,n,t);return function(e,t){e.forEach(e=>{const t=o.directives[e.type];switch(e.type){case"video":m(e,"video",t.attr);break;case"audio":m(e,"audio",t.attr)}Object.keys(e).forEach(t=>{const n=e[t];switch(i(function(e){return i(u.exists(e.type),`Unkown directive '${e.type}'`),l.validate(e.type,e),!l.hasErrors()}(e),l.getErrorMessages()),t){case"srcSet":m(e,"img",t);break;case"picture":m(e,"picture",t);break;case"backgroundImage":!function(e,t,n){i("img"!==e.tag&&"picture"!==e.tag,`${n} is only supported for background images.`)}(e,n,t);break;case"services":!function(e,t){i(!e.service,'Include directive can only have either "service" or "services".')}(e,n);break;case"service":!function(e,t){i(!e.services,'Include directive can only have either "service" or "services".')}(e,n)}})})}(x),new s({name:n,label:r,description:a,iconUrl:c,properties:g,allowedParents:d,directives:x,excludeFromTextCount:h,mediaRenderingBaseConfig:b})}(w,t),S=h(g,C.skin);return{structure:T,skin:S}},createSkinForComponent:function({structure:e,html:t}){const n=e.name;let r;try{r=c(t)}catch(e){return{violations:[{parseError:!0,message:`Could not parse template: ${e.message}`}]}}const o=function(e,t){const n=[],r={};t.forEach(t=>{const o=t.name;if(r[o]=t,e.directives.has(o)){e.directives.get(o).type!==t.type&&n.push({conflict:!0,directiveName:o,message:"cannot change directive type"})}else n.push({add:!0,directiveName:o,message:"cannot add directive "+`doc-${t.type}="${o}"`})});for(const t of e.directives){const e=t.name;if(!r[e]){const{violation:o,index:i}=d(n);let s=!1;if(o){r[o.directiveName].type===t.type&&(s=!0)}s?(n.splice(i,1),n.push({rename:!0,directiveName:o.directiveName,message:`cannot rename directive doc-${t.type}="${e}" `+`to doc-${t.type}="${o.directiveName}"`})):n.push({remove:!0,directiveName:e,message:`directive doc-${t.type}="${e}" is missing`})}}return n.length?n:void 0}(e,r.directives),i=h(n,r.skin);return{violations:o,skin:i,skinDirectives:r.directives}}}},function(e,t,n){var r=n(9),o=n(3);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t,n){e.exports=n(71)},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(217),o=n(21),i=n(74),s=i&&i.isTypedArray,a=s?o(s):r;e.exports=a},function(e,t,n){var r=n(49),o=n(218),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(9),o=n(7);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(48),o=n(15),i=n(32),s=n(0),a=n(12),c=n(33),u=n(49),l=n(47),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t,n){var r=n(53),o=n(46),i=n(77),s=n(121),a=n(250),c=n(122),u=n(36),l=n(253),p=n(254),d=n(126),h=n(81),f=n(15),m=n(255),g=n(256),v=n(130),y=n(0),b=n(33),x=n(260),_=n(7),w=n(262),C=n(14),T={};T["[object Arguments]"]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T["[object Object]"]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T["[object Function]"]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,S,E,I,A){var D,k=1&n,N=2&n,P=4&n;if(S&&(D=I?S(t,E,I,A):S(t)),void 0!==D)return D;if(!_(t))return t;var O=y(t);if(O){if(D=m(t),!k)return u(t,D)}else{var j=f(t),R="[object Function]"==j||"[object GeneratorFunction]"==j;if(b(t))return c(t,k);if("[object Object]"==j||"[object Arguments]"==j||R&&!I){if(D=N||R?{}:v(t),!k)return N?p(t,a(D,t)):l(t,s(D,t))}else{if(!T[j])return I?t:{};D=g(t,j,k)}}A||(A=new r);var L=A.get(t);if(L)return L;A.set(t,D),w(t)?t.forEach((function(r){D.add(e(r,n,S,r,t,A))})):x(t)&&t.forEach((function(r,o){D.set(o,e(r,n,S,o,t,A))}));var M=P?N?h:d:N?keysIn:C,q=O?void 0:M(t);return o(q||t,(function(r,o){q&&(r=t[o=r]),i(D,o,e(r,n,S,o,t,A))})),D}},function(e,t,n){var r=n(54),o=n(233),i=n(234),s=n(235),a=n(236),c=n(237);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(228),o=n(229),i=n(230),s=n(231),a=n(232);function c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,n){var r=n(34);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(16)(Object,"create");e.exports=r},function(e,t,n){var r=n(246);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(115),o=n(251),i=n(12);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(7),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(25),o=n(17);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){const r=n(275).Parser,o=n(293);e.exports=function(e,t){if(!e)return[];const n=new o(t),i=new r(n,{});if(i.write(e),i.done(),n.error)throw n.error;return n.dom}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(145),o=n(146);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?o.encodeXML:o.encodeHTML)(e)};var i=n(146);t.encodeXML=i.encodeXML,t.encodeHTML=i.encodeHTML,t.escape=i.escape,t.encodeHTML4=i.encodeHTML,t.encodeHTML5=i.encodeHTML;var s=n(145);t.decodeXML=s.decodeXML,t.decodeHTML=s.decodeHTML,t.decodeHTMLStrict=s.decodeHTMLStrict,t.decodeHTML4=s.decodeHTML,t.decodeHTML5=s.decodeHTML,t.decodeHTML4Strict=s.decodeHTMLStrict,t.decodeHTML5Strict=s.decodeHTMLStrict,t.decodeXMLStrict=s.decodeXML},function(e,t,n){var r=n(22),o=n(136),i=n(89);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(316)(n(165));e.exports=r},function(e,t,n){var r=n(331);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){const r=n(334),{createComponent:o,getComponent:i,getPosition:s}=r,a=n(335)(e=>null!=e);function c(e){const t=e.toJson();return t.component=e.componentName,t}function u(e){if(!e)return;const{parentContainer:t,next:n,previous:r}=e,{containerInsertIndex:o}=e,i="bottom"===n?"bottom":n&&n.id,s="top"===r?"top":r&&r.id,a=t&&t.name,c={parentId:t?t.componentId||"root":void 0,previousId:s,nextId:i};return void 0!==o&&(c.containerInsertIndex=o),a&&(c.parentContainerName=a),c}e.exports={serializeCommand(e){const t=e.type,n="insertComponent"===t||"transformComponent"===t?c(e.component):function(e){return{id:e.id,component:e.componentName}}(e.component),r="transformComponent"===t?c(e.replacement):void 0;return a({type:e.type,component:n,replacement:r,position:u(e.position),directiveName:e.directive&&e.directive.name,value:e.value,serviceName:e.serviceName,name:e.name,key:e.key,eventSource:"remote"===e.eventSource?"remote":void 0})},deserializeCommand(e,t){switch(e.type){case"insertComponent":return function(e,t){const n=[],r=s(e.position,t,n);if(!r.ok)return{conflicts:n};const i=o(e,t,n);return i.ok?{ok:!0,command:{type:e.type,component:i.component,position:r.position,eventSource:e.eventSource},conflicts:n}:{conflicts:n}}(e,t);case"transformComponent":return function(e,t){const n=[],r={type:e.type},{ok:s,component:a}=i(e,t,n);if(!s)return{conflicts:n};const{ok:c,component:u}=o({component:e.replacement},t,n);return c?(r.component=a,r.replacement=u,{command:r}):{conflicts:n}}(e,t);case"moveComponent":return function(e,t){const n=[],r={type:e.type},{ok:o,component:a}=i(e,t,n);if(!o)return{conflicts:n};const c=e.position,{ok:u,position:l}=s(c,t,n);if(!u)return{conflicts:n};(l.previous&&l.previous.next!==l.next||l.next&&l.next.previous!==l.previous)&&n.push({type:"PositionObjectIsNotCorrect",componentId:a.id});return r.component=a,r.position=l,r.eventSource=e.eventSource,{conflicts:n,command:r}}(e,t);case"removeComponent":return function(e,t){const n=[],r={type:e.type};if(e.component){const o=e.component.id,i=t.findById(o);i?r.component=i:n.push({type:"ComponentAlreadyRemoved",componentId:o})}return r.eventSource=e.eventSource,{conflicts:n,command:r}}(e,t);case"updateEditableDirective":case"updateImageDirective":case"updateToggleDirective":case"updateStyleDirective":case"updateIncludeDirective":case"updateLinkDirective":case"updateHtmlDirective":return function(e,t){const n=[],{ok:o,component:s}=i(e,t,n);if(!o)return{conflicts:n};const a={component:s,type:e.type,key:e.key,value:e.value,serviceName:e.serviceName,eventSource:e.eventSource},{conflict:c,directive:u}=r.directive(e,a.component);c?n.push(c):a.directive=u;return{conflicts:n,command:a}}(e,t);case"updateComponentStyle":case"updateComponentData":return function(e,t){const n=[],r={type:e.type},o=t.findById(e.component.id);o?r.component=o:n.push({type:"NotExistingComponent",componentId:r.component.id});return r.value=e.value,r.key=e.key,r.name=e.name,r.eventSource=e.eventSource,{conflicts:n,command:r}}(e,t);case"updateTmpImageDirective":case"updateDirectiveTmpData":return{skip:!0};case"proposeInsert":case"proposeUpdate":case"proposeRemoval":case"updateProposal":return function(e,t){const{type:n,proposalStatus:r,proposalData:i,componentId:a,position:c}=e,u=[];if("updateProposal"===n){const l={type:n,componentId:a,proposalStatus:r,proposalData:i};if(c){const e=s(c,t,u,!0);if(!e.ok)return{conflicts:u};l.position=e.position}if(e.component){const n=o(e,t,u);if(!n.ok)return{conflicts:u};l.component=n.component}return{command:l,conflicts:u}}if("proposeInsert"===n||"proposeUpdate"===n){const a=o(e,t,u);if(!a.ok)return{conflicts:u};const l={type:n,proposalStatus:r,proposalData:i,component:a.component};if(c){const e=s(c,t,u,!0);if(!e.ok)return{conflicts:u};l.position=e.position}return{command:l,conflicts:u}}if("proposeRemoval"===n){return{command:{type:n,proposalStatus:r,proposalData:i,componentId:a},conflicts:u}}}(e,t);case"rejectProposal":return function(e,t){const{type:n,componentId:r}=e;return{command:{type:n,componentId:r},conflicts:[]}}(e);default:return{conflicts:[{type:"InvalidCommandType",command:e}]}}},serializePosition:u}},function(e,t){e.exports={ok:()=>({ok:!0}),notOk:e=>({ok:!1,conflicts:Array.isArray(e)?e:[e]}),getError(e){const t=Array.isArray(e)?e[0]:e;return new Error(`${t.type}: ${t.message}`)},componentViolation:({id:e,componentName:t})=>({type:"componentViolation",componentId:e,componentName:t,message:`unknown component '${t}'`}),directiveViolation:({id:e,componentName:t,directiveName:n})=>({type:"directiveViolation",componentId:e,componentName:t,directiveName:n,message:`unknown directive '${n}' in component '${t}'`}),directiveTypeViolation:({id:e,componentName:t,directiveName:n})=>({type:"directiveTypeViolation",componentId:e,componentName:t,directiveName:n,message:`invalid value for directive '${n}' in component '${t}'`}),containerViolation:({id:e,containerName:t})=>({type:"containerViolation",componentId:e,containerName:t,message:`unknown container '${t}'`}),dataFormatViolation:({id:e,containerName:t})=>({type:"dataFormatViolation",componentId:e,containerName:t,message:`data for container '${t}' cannot be parsed`}),corruptPositionViolation:({id:e,message:t})=>({type:"corruptPositionViolation",componentId:e,message:t})}},function(e,t,n){var r=n(59),o=n(7);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},function(e,t){let n,r=n;e.exports={next(e="doc"){const t=Date.now().toString(32);return n===t?r+=1:(r=0,n=t),`${e}-${t}${r}`}}},function(e,t,n){var r=n(382),o=n(31),i=n(11),s=n(383),a=n(0);e.exports=function(e,t,n){var c=a(e)?r:s,u=arguments.length<3;return c(e,i(t,4),n,u,o)}},function(e,t,n){var r=n(46),o=n(31),i=n(220),s=n(0);e.exports=function(e,t){return(s(e)?r:o)(e,i(t))}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(116),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(this,n(72)(e))},function(e,t,n){var r=n(16)(n(5),"Map");e.exports=r},function(e,t,n){var r=n(238),o=n(245),i=n(247),s=n(248),a=n(249);function c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,n){var r=n(35),o=n(34),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(123),o=n(124),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return i.call(e,t)})))}:o;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(117)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(127),o=n(125),i=n(58);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(128);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){const r=n(4),o=n(27),i=n(267),s=n(138),a=n(61),{toString:c}=Object.prototype,u={type:void 0,name:void 0,attribs:void 0,children:void 0,data:void 0},l=/\s+/;function p(e){return(e=(e||"").trim())?e.split(";").reduce((e,t)=>{const n=t.indexOf(":");return n<1||n===t.length-1||(e[t.slice(0,n).trim()]=t.slice(n+1).trim()),e},{}):{}}function d(e={}){return Object.keys(e).reduce((t,n)=>{const r=t?" ":"",o=e[n];return o?`${t}${r}${n}: ${o};`:t},"")}e.exports=class{static get parseCssStyles(){return p}static get stringifyCssStyles(){return d}constructor(e){this.elem=e}get liDomElement(){return!0}attr(e,t){if(1===arguments.length)return this.getAttr(e);this.setAttr(e,t)}getAttr(e){return r(this,["elem","attribs",e],void 0)}setAttr(e,t){null==t?this.removeAttr(e):(this.elem.attribs||(this.elem.attribs={}),this.elem.attribs[e]=`${t}`)}removeAttr(e){((e,t)=>!!e.attribs&&e.attribs.hasOwnProperty(t))(this.elem,e)&&delete this.elem.attribs[e]}addClass(e){if(!e||"string"!=typeof e)return;const t=e.split(l),n=this.getAttr("class");if(n){let e=` ${n} `;t.forEach(t=>{t+=" ",-1===e.indexOf(` ${t}`)&&(e+=t)}),this.setAttr("class",e.trim())}else this.setAttr("class",t.join(" ").trim())}removeClass(e){if(!e||"string"!=typeof e)return;s(-1===e.trim().indexOf(" ")&&arguments.length<2,"DomElement#removeClass can only remove one class at a time");let t=this.getAttr("class");if(t){t=` ${t} `;const n=t.replace(` ${e} `," ");this.setAttr("class",n.trim())}}css(e,t){return 2===arguments.length?this.setCss(e,t):"[object Object]"===c.call(e)?this.setCss(e):this.getCss(e)}setCss(e,t){if(2===arguments.length){const n=this.getCss();n[e]=t,this.setAttr("style",d(n)||void 0)}else{if(!e)return;const t={...this.getCss(),...e};this.setAttr("style",d(t)||void 0)}}getCss(e){if(!this.elem.attribs)return{};const t=p(this.elem.attribs.style);return o(e)?t[e]:Array.isArray(e)?i(t,e):t}changeTag(e){"tag"===this.elem.type&&(this.elem.name=e)}replaceWith(e){const t=a(e,{withReferences:!1});t&&1===t.length&&Object.assign(this.elem,u,t[0])}html(e){const t=a(e,{withReferences:!1});this.elem.children=t}}},function(e,t,n){var r=n(0),o=n(26),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(132);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(271),o=n(136),i=n(89);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(79),o=n(272);e.exports=function e(t,n,i,s,a){var c=-1,u=t.length;for(i||(i=o),a||(a=[]);++c<u;){var l=t[c];n>0&&i(l)?n>1?e(l,n-1,i,s,a):r(a,l):s||(a[a.length]=l)}return a}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(273),o=n(137)(r);e.exports=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(139)),a=n(93),c=new Set(["input","option","optgroup","select","button","datalist","textarea"]),u=new Set(["p"]),l={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:u,h1:u,h2:u,h3:u,h4:u,h5:u,h6:u,select:c,input:c,output:c,button:c,datalist:c,textarea:c,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:u,article:u,aside:u,blockquote:u,details:u,div:u,dl:u,fieldset:u,figcaption:u,figure:u,footer:u,form:u,header:u,hr:u,main:u,nav:u,ol:u,pre:u,section:u,table:u,ul:u,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),d=new Set(["math","svg"]),h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=/\s|\//,m=function(e){function t(n,r){var o=e.call(this)||this;return o._tagname="",o._attribname="",o._attribvalue="",o._attribs=null,o._stack=[],o._foreignContext=[],o.startIndex=0,o.endIndex=null,o.parseChunk=t.prototype.write,o.done=t.prototype.end,o._options=r||{},o._cbs=n||{},o._tagname="",o._attribname="",o._attribvalue="",o._attribs=null,o._stack=[],o._foreignContext=[],o.startIndex=0,o.endIndex=null,o._lowerCaseTagNames="lowerCaseTags"in o._options?!!o._options.lowerCaseTags:!o._options.xmlMode,o._lowerCaseAttributeNames="lowerCaseAttributeNames"in o._options?!!o._options.lowerCaseAttributeNames:!o._options.xmlMode,o._tokenizer=new(o._options.Tokenizer||s.default)(o._options,o),o._cbs.onparserinit&&o._cbs.onparserinit(o),o}return o(t,e),t.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},t.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},t.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in l)for(var t=void 0;l[e].has(t=this._stack[this._stack.length-1]);this.onclosetag(t));!this._options.xmlMode&&p.has(e)||(this._stack.push(e),d.has(e)?this._foreignContext.push(!0):h.has(e)&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},t.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&p.has(this._tagname)&&this._cbs.onclosetag(this._tagname),this._tagname=""},t.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(d.has(e)||h.has(e))&&this._foreignContext.pop(),!this._stack.length||!this._options.xmlMode&&p.has(e))this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},t.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},t.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},t.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},t.prototype.onattribdata=function(e){this._attribvalue+=e},t.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},t.prototype._getInstructionName=function(e){var t=e.search(f),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},t.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},t.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},t.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},t.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},t.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},t.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.write=function(e){this._tokenizer.write(e)},t.prototype.end=function(e){this._tokenizer.end(e)},t.prototype.pause=function(){this._tokenizer.pause()},t.prototype.resume=function(){this._tokenizer.resume()},t}(a.EventEmitter);t.Parser=m},function(e){e.exports=JSON.parse('{"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":""}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t){e.exports=require("events")},function(e,t){e.exports=function(e){return`url(${function(e){return/[()]/.test(e)?`'${e}'`:e}(e)})`}},function(e,t,n){var r=n(12),o=n(3);e.exports=function(e){return o(e)&&r(e)}},function(e,t){e.exports={invalidChildViolation({component:e}){const{componentName:t}=e;return{type:"ruleViolation",rule:"invalidChild",componentId:e.id,componentName:t,message:`component '${t}' is an invalid child component`}},prohibitedPositionViolation({component:e,message:t}){const{componentName:n}=e;return{type:"ruleViolation",rule:"invalidPosition",componentId:e.id,componentName:n,message:t||"component violates positioning rules"}},fixedPositionViolation({component:e}){const{componentName:t}=e;return{type:"ruleViolation",rule:"fixedPosition",componentId:e.id,componentName:t,message:"component is fixed and cannot be moved or removed"}}}},function(e,t,n){var r=n(319),o=n(3);e.exports=function e(t,n,i,s,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,s,e,a))}},function(e,t,n){var r=n(76),o=n(320),i=n(321);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,e.exports=s},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(10),o=n(11),i=n(133),s=n(81);e.exports=function(e,t){if(null==e)return{};var n=r(s(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(172),o=n(341),i=n(342),s=n(174),a=n(356),c=n(178),u=n(357),l=n(180),p=n(181),d=n(65),h=Math.max;e.exports=function(e,t,n,f,m,g,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var x=f?f.length:0;if(x||(t&=-97,f=m=void 0),v=void 0===v?v:h(d(v),0),y=void 0===y?y:d(y),x-=m?m.length:0,64&t){var _=f,w=m;f=m=void 0}var C=b?void 0:c(e),T=[e,t,n,f,m,_,w,g,v,y];if(C&&u(T,C),e=T[0],t=T[1],n=T[2],f=T[3],m=T[4],!(y=T[9]=void 0===T[9]?b?0:e.length:h(T[9]-x,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||16==t?i(e,t,y):32!=t&&33!=t||m.length?s.apply(void 0,T):a(e,t,n,f);else var S=o(e,t,n);return p((C?r:l)(S,T),e,t)}},function(e,t,n){var r=n(59),o=n(103);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(105);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(166),o=n(353),i=n(354);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&"__lodash_placeholder__"!==s||(e[n]="__lodash_placeholder__",i[o++]=n)}return i}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t){e.exports={directives:{container:{attr:"doc-container",overwritesContent:!0},editable:{attr:"doc-editable",overwritesContent:!0},html:{attr:"doc-html",overwritesContent:!0},include:{attr:"doc-include",overwritesContent:!0},link:{attr:"doc-link"},image:{attr:"doc-image"},video:{attr:"doc-video",overwritesContent:!0},audio:{attr:"doc-audio",overwritesContent:!0},optional:{attr:"doc-optional",modifier:!0},toggle:{attr:"doc-toggle"},style:{attr:"doc-style"}},exists(e){return!!this.directives[e]},doesOverwriteContent(e){return!!(this.directives[e]?this.directives[e].overwritesContent:void 0)}}},function(e,t){var n,r;n=Object.prototype.toString,e.exports=r={isObject:function(e){return"object"===typeof e&&!!e&&!this.isArray(e)},isBoolean:function(e){return!0===e||!1===e||"[object Boolean]"===n.call(e)}},["Function","String","Number","Date","RegExp","Array"].forEach((function(e){return r["is"+e]=function(t){return n.call(t)==="[object "+e+"]"}})),Array.isArray&&(r.isArray=Array.isArray)},function(e,t,n){const r=n(44),o=n(27),i=n(6),s=n(28),a=/([0-9]*[.]?[0-9]+)\s?[/:x]\s?([0-9]*[.]?[0-9]+)/;class c{constructor({name:e,label:t,ratio:n}){this.name=e||n,this.label=t||s.humanize(this.name),this.ratio=this.parseRatio(n)}parseRatio(e){const t=e;if(o(e)){const t=a.exec(e);e=!!t&&Number(t[1])/Number(t[2])}return i(r(e),`Could not parse image ratio '${t}'`),function(e){return parseFloat(e.toPrecision(6))}(e)}}c.prototype.ratioString=a,e.exports=c},function(e,t,n){const r=n(441),o=n(442),i=n(64),{log:s,assert:a}=n(2),c=n(28),u=n(188),l=n(191),p=n(444),{createSkinForComponent:d}=n(43),h={editable:"defaultParagraph",paragraph:"defaultParagraph",image:"defaultImage",video:"defaultVideo",audio:"defaultAudio",html:"defaultHtml"};e.exports=class e{constructor({name:t,version:n,label:o,author:i,description:s}){this.name=t,this.author=i,this.description=s,this.version=r.valid(n),a(this.name,"Design: param 'name' is required"),a(this.version,`Design: missing or invalid param 'version' ${n}`),this.label=o||c.humanize(this.name),this.identifier=e.getIdentifier(this.name,this.version),this.imageRatios={},this.dependencies=new l,this.components=new u,this.defaultParagraph={name:void 0,directiveName:void 0},this.defaultImage={name:void 0,directiveName:void 0},this.defaultVideo={name:void 0,directiveName:void 0},this.defaultAudio={name:void 0,directiveName:void 0},this.defaultHtml={name:void 0,directiveName:void 0},this.transforms=new p(this),this.groups=[]}get isLiDesign(){return!0}equals(e){return e.name===this.name&&e.version===this.version}isInRange(e){return r.satisfies(this.version,e)}isNewerThan(e){return!e||this.name===e.name&&r.gt(this.version,e.version)}hasComponent(e){return this.components.has(e)}getComponentNames(){return this.components.keys()}getMissingComponents(...e){const t=[];for(const n of e)n&&!this.components.has(n)&&t.push(n);return!!t.length&&t}getComponent(e){return this.components.get(e)}getComponentStructure(e){const t=this.components.get(e);if(t)return t.structure}getComponentSkin(e){const t=this.components.get(e);if(t)return t.skin}updateComponentSkin(e,t){const n=this.components.get(e),{structure:r}=n,{skin:o,skinDirectives:i,violations:s}=d({structure:r,html:t});if(s)return{ok:!1,violations:s};n.skin=o;for(const e of i)if(e.placeholder){r.directives.get(e.name).placeholder=e.placeholder}return{ok:!0}}addComponent({structure:e,skin:t}){e.setDesign(this);const n=e.name;if(this.components.get(n)){const e=new Error("Design.addComponent(): "+`duplicate component '${n}'`);throw e.name="DuplicateComponentError",e}this.components.push(n,{structure:e,skin:t})}eachStructure(e){for(const t of this.components)e(t.structure)}getComponentNameFromIdentifier(t){return e.parseComponentIdentifier(t).name}setDefaultComponent(e,t,n){const r=n?{name:t,directiveName:n}:this.getDirectiveLocator({name:t,directiveType:e});this[h[e]]=r}setDefaultParagraph({name:e,directiveName:t}){this.setDefaultComponent("paragraph",e,t)}setDefaultImage({name:e,directiveName:t}){this.setDefaultComponent("image",e,t)}setDefaultVideo({name:e,directiveName:t}){this.setDefaultComponent("video",e,t)}setDefaultAudio({name:e,directiveName:t}){this.setDefaultComponent("audio",e,t)}setDefaultHtml({name:e,directiveName:t}){this.setDefaultComponent("html",e,t)}getDirectiveLocator({name:e,directiveType:t}){"paragraph"===t&&(t="editable");const n=this.getComponentStructure(e);if(!n)return{name:e,directiveName:void 0};const r=n.directives.firstOfType(t);return{name:e,directiveName:r?r.name:void 0}}getLayout(e=this.defaultLayout){return this.layouts?e||this.defaultLayout?i(this.layouts,{name:e}):o(this.layouts):{wrapper:this.wrapper}}static getIdentifier(e,t){return`${e}@${t}`}static parseIdentifier(e){if(!e)return;const t=e.split("@");return 2===t.length?{name:t[0],version:t[1]}:a(!1,`could not parse design identifier: ${e}`)}static parseComponentIdentifier(e){if(!e)return;const t=e.split(".");return 1===t.length?{designName:void 0,name:t[0]}:2===t.length?{designName:t[0],name:t[1]}:s.error(`could not parse component template identifier: ${e}`)}}},function(e,t){e.exports=require("url")},function(e,t,n){const r=n(45),o=n(51),i=n(23),s=n(264),a=n(83),c=n(38),u=n(148);function l(e,t,n){if(t)if(t.modifiesClassAttribute()){const r=t.cssClassChanges(n);r.remove&&r.remove.forEach(t=>{e.removeClass(t)}),e.addClass(r.add)}else e.css(t.cssPropertyName,n||"")}e.exports=class{static renderComponent(e,t={},n,r){t.mediaRenderingBaseConfig=e.structure.mediaRenderingBaseConfig;const o=this.renderComponentDom(e,t,r);if("text/json"===t.format)return o;return c([o],{prettyHtml:t.prettyHtml,decodeHTML:t.decodeHtml,renderDirectiveInfo:t.renderDirectiveInfo})}static renderComponentDom(e,t,n){const o=this.getComponentDom(e,n),i={};s.eachDirective([o],(e,t)=>{r(t,(t,n)=>{i[t]=e})}),this.processComponentElem(o,e);for(const n of e.directives)this.processDirective(i,n,t);for(const r of e.containers){const e=this.renderContainerDom(r,t,n);if(e.length){const t=i[r.name];this.appendChildren(t,e)}}return o}static getComponentDom(e,t){const n=e.getSkin();return i(n.dom[0])}static renderContainerDom(e,t,n){const r=[];e.nestedTree&&(e=e.nestedTree);for(const o of e)r.push(this.renderComponentDom(o,t,n));return r}static processComponentElem(e,t){if(t.styles){const n=new a(e);for(const e in t.styles){const r=t.styles[e];l(n,t.structure.styles[e],r)}}}static processDirective(e,t,n){const r=e[t.name];switch(t.type){case"editable":this.processEditable(r,t);break;case"image":this.processImage(r,t,n);break;case"video":this.processVideo(r,t,n);break;case"audio":this.processAudio(r,t,n);break;case"html":this.processHtml(r,t);break;case"include":this.processInclude(r,t);break;case"link":this.processLink(r,t);break;case"toggle":this.processToggle(r,t);break;case"style":this.processStyle(r,t)}}static processEditable(e,t){if(t.optional&&t.isEmpty())return void(e.doNotRender=!0);const n=t.getContent();e.children=[{type:"text",data:n}]}static processImage(e,t,n){if(t.isInlineImage()&&!t.originalUrl&&!t.isTemporaryImage())return void(e.doNotRender=!0);const r=t.getImageService(),o=new a(e),i=n.mediaRendering||{};i.baseConfig=n.mediaRenderingBaseConfig,u(r,o,t,i)}static processVideo(e,t,n){if(!t.originalUrl)return;const r=t.getMediaService(),o=new a(e),i=n.mediaRendering||{};i.baseConfig=n.mediaRenderingBaseConfig,u(r,o,t,i)}static processAudio(e,t,n){if(!t.originalUrl)return;const r=t.getMediaService(),o=new a(e),i=n.mediaRendering||{};i.baseConfig=n.mediaRenderingBaseConfig,u(r,o,t,i)}static processHtml(e,t){const n=t.getContent();this.appendHtml(e,n)}static processInclude(e,t){t.isResolved()?this.appendHtml(e,t.resolvedValue):this.renderIncludePlaceholder(e,t)}static appendHtml(e,t){e.children=[{type:"text",data:t}]}static renderIncludePlaceholder(e,t){const n=t.getService(),r=t.getParams(),i=s.createElem("ld-include",{"data-include-service":n}),c=new a(i);if(!o(r)){const e=s.escapeAttributeData(r);c.attr("data-include-params",e)}e.children=[i]}static processLink(e,t){const n=t.getContent(),r=new a(e);n?r.attr("href",n):r.removeAttr("href")}static processToggle(e,t){!1===t.getContent()&&(e.doNotRender=!0)}static processStyle(e,t){const n=t.getContent(),r=new a(e);for(const e in n){const o=n[e];l(r,t.getStyleConfig(e),o)}}static appendChildren(e,t){e.children=t}}},function(e,t,n){var r=n(211)();e.exports=r},function(e,t,n){var r=n(212),o=n(32),i=n(0),s=n(33),a=n(20),c=n(47),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),p=!n&&!l&&s(e),d=!n&&!l&&!p&&c(e),h=n||l||p||d,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||h&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(16)(n(5),"WeakMap");e.exports=r},function(e,t,n){var r=n(16),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(24),o=n(14);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){(function(e){var r=n(5),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(72)(e))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(79),o=n(80),i=n(78),s=n(124),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:s;e.exports=a},function(e,t,n){var r=n(127),o=n(78),i=n(14);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(79),o=n(0);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(5).Uint8Array;e.exports=r},function(e,t,n){var r=n(82);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(59),o=n(80),i=n(49);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(265),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=s},function(e,t,n){var r=n(19),o=n(10),i=n(0),s=n(26),a=r?r.prototype:void 0,c=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(60),o=n(134),i=n(25);e.exports=function(e,t,n){for(var s=-1,a=t.length,c={};++s<a;){var u=t[s],l=r(e,u);n(l,u)&&o(c,i(u,e),l)}return c}},function(e,t,n){var r=n(77),o=n(25),i=n(20),s=n(7),a=n(17);e.exports=function(e,t,n,c){if(!s(e))return e;for(var u=-1,l=(t=o(t,e)).length,p=l-1,d=e;null!=d&&++u<l;){var h=a(t[u]),f=n;if(u!=p){var m=d[h];void 0===(f=c?c(m,h,d):void 0)&&(f=s(m)?m:i(t[u+1])?[]:{})}r(d,h,f),d=d[h]}return e}},function(e,t,n){var r=n(269),o=n(270);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(88),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),c=Array(a);++s<a;)c[s]=i[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=i[s];return u[t]=n(c),r(e,this,u)}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=require("assert")},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(140)),i=r(n(91)),s=r(n(141)),a=r(n(92));function c(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function u(e,t,n){var r=e.toLowerCase();return e===r?function(e,o){o===r?e._state=t:(e._state=n,e._index--)}:function(o,i){i===r||i===e?o._state=t:(o._state=n,o._index--)}}function l(e,t){var n=e.toLowerCase();return function(r,o){o===n||o===e?r._state=t:(r._state=3,r._index--)}}var p=u("C",23,16),d=u("D",24,16),h=u("A",25,16),f=u("T",26,16),m=u("A",27,16),g=l("R",34),v=l("I",35),y=l("P",36),b=l("T",37),x=u("R",39,1),_=u("I",40,1),w=u("P",41,1),C=u("T",42,1),T=l("Y",44),S=l("L",45),E=l("E",46),I=u("Y",48,1),A=u("L",49,1),D=u("E",50,1),k=u("#",52,53),N=u("X",55,54),P=function(){function e(e,t){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1,this._cbs=t,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}return e.prototype.reset=function(){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1},e.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=2,this._sectionStart=this._index):this._decodeEntities&&1===this._special&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=1,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||1!==this._special||c(e)?this._state=1:"!"===e?(this._state=15,this._sectionStart=this._index+1):"?"===e?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?3:31,this._sectionStart=this._index)},e.prototype._stateInTagName=function(e){("/"===e||">"===e||c(e))&&(this._emitToken("onopentagname"),this._state=8,this._index--)},e.prototype._stateBeforeCloseingTagName=function(e){c(e)||(">"===e?this._state=1:1!==this._special?"s"===e||"S"===e?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))},e.prototype._stateInCloseingTagName=function(e){(">"===e||c(e))&&(this._emitToken("onclosetag"),this._state=7,this._index--)},e.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=1,this._sectionStart=this._index+1):"/"===e?this._state=4:c(e)||(this._state=9,this._sectionStart=this._index)},e.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):c(e)||(this._state=8,this._index--)},e.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||c(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--)},e.prototype._stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this._cbs.onattribend(),this._state=8,this._index--):c(e)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)},e.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this._sectionStart=this._index+1):"'"===e?(this._state=13,this._sectionStart=this._index+1):c(e)||(this._state=14,this._sectionStart=this._index,this._index--)},e.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueNoQuotes=function(e){c(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeDeclaration=function(e){this._state="["===e?22:"-"===e?18:16},e.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeComment=function(e){"-"===e?(this._state=19,this._sectionStart=this._index+1):this._state=16},e.prototype._stateInComment=function(e){"-"===e&&(this._state=20)},e.prototype._stateAfterComment1=function(e){this._state="-"===e?21:19},e.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype._stateInCdata=function(e){"]"===e&&(this._state=29)},e.prototype._stateAfterCdata1=function(e){this._state="]"===e?30:28},e.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"]"!==e&&(this._state=28)},e.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=33:"t"===e||"T"===e?this._state=43:(this._state=3,this._index--)},e.prototype._stateBeforeSpecialEnd=function(e){2!==this._special||"c"!==e&&"C"!==e?3!==this._special||"t"!==e&&"T"!==e?this._state=1:this._state=47:this._state=38},e.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||c(e))&&(this._special=2),this._state=3,this._index--},e.prototype._stateAfterScript5=function(e){">"===e||c(e)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1},e.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||c(e))&&(this._special=3),this._state=3,this._index--},e.prototype._stateAfterStyle4=function(e){">"===e||c(e)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1},e.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?a.default:i.default;Object.prototype.hasOwnProperty.call(t,e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},e.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,n))return this._emitPartial(s.default[n]),void(this._sectionStart+=t+1);t--}},e.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(1!==this._baseState?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},e.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),i=parseInt(r,t);this._emitPartial(o.default(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},e.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},e.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},e.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(1===this._state?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},e.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},e.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);1===this._state?this._stateText(e):12===this._state?this._stateInAttributeValueDoubleQuotes(e):9===this._state?this._stateInAttributeName(e):19===this._state?this._stateInComment(e):8===this._state?this._stateBeforeAttributeName(e):3===this._state?this._stateInTagName(e):6===this._state?this._stateInCloseingTagName(e):2===this._state?this._stateBeforeTagName(e):10===this._state?this._stateAfterAttributeName(e):13===this._state?this._stateInAttributeValueSingleQuotes(e):11===this._state?this._stateBeforeAttributeValue(e):5===this._state?this._stateBeforeCloseingTagName(e):7===this._state?this._stateAfterCloseingTagName(e):31===this._state?this._stateBeforeSpecial(e):20===this._state?this._stateAfterComment1(e):14===this._state?this._stateInAttributeValueNoQuotes(e):4===this._state?this._stateInSelfClosingTag(e):16===this._state?this._stateInDeclaration(e):15===this._state?this._stateBeforeDeclaration(e):21===this._state?this._stateAfterComment2(e):18===this._state?this._stateBeforeComment(e):32===this._state?this._stateBeforeSpecialEnd(e):38===this._state?x(this,e):39===this._state?_(this,e):40===this._state?w(this,e):33===this._state?g(this,e):34===this._state?v(this,e):35===this._state?y(this,e):36===this._state?b(this,e):37===this._state?this._stateBeforeScript5(e):41===this._state?C(this,e):42===this._state?this._stateAfterScript5(e):43===this._state?T(this,e):28===this._state?this._stateInCdata(e):44===this._state?S(this,e):45===this._state?E(this,e):46===this._state?this._stateBeforeStyle4(e):47===this._state?I(this,e):48===this._state?A(this,e):49===this._state?D(this,e):50===this._state?this._stateAfterStyle4(e):17===this._state?this._stateInProcessingInstruction(e):53===this._state?this._stateInNamedEntity(e):22===this._state?p(this,e):51===this._state?k(this,e):23===this._state?d(this,e):24===this._state?h(this,e):29===this._state?this._stateAfterCdata1(e):30===this._state?this._stateAfterCdata2(e):25===this._state?f(this,e):26===this._state?m(this,e):27===this._state?this._stateBeforeCdata6(e):55===this._state?this._stateInHexEntity(e):54===this._state?this._stateInNumericEntity(e):52===this._state?N(this,e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},e.prototype.pause=function(){this._running=!1},e.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},e.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},e.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},e.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);28===this._state||29===this._state||30===this._state?this._cbs.oncdata(e):19===this._state||20===this._state||21===this._state?this._cbs.oncomment(e):53!==this._state||this._xmlMode?54!==this._state||this._xmlMode?55!==this._state||this._xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},e.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},e.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},e.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},e.prototype._emitPartial=function(e){1!==this._baseState?this._cbs.onattribdata(e):this._cbs.ontext(e)},e}();t.default=P},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(276));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in o.default&&(e=o.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(277);t.Node=r.Node,t.Element=r.Element,t.DataNode=r.DataNode,t.NodeWithChildren=r.NodeWithChildren;var o=/\s+/g,i={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},s=function(){function e(e,t,n){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=null,"function"==typeof t&&(n=t,t=i),"object"==typeof e&&(t=e,e=void 0),this._callback=e||null,this._options=t||i,this._elementCB=n||null}return e.prototype.onparserinit=function(e){this._parser=e},e.prototype.onreset=function(){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=this._parser||null},e.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this._lastNode=null;var e=this._tagStack.pop();e&&this._parser&&(this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e))},e.prototype.onopentag=function(e,t){var n=new r.Element(e,t);this.addNode(n),this._tagStack.push(n)},e.prototype.ontext=function(e){var t=this._options.normalizeWhitespace,n=this._lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(o," "):n.data+=e;else{t&&(e=e.replace(o," "));var i=new r.DataNode("text",e);this.addNode(i),this._lastNode=i}},e.prototype.oncomment=function(e){if(this._lastNode&&"comment"===this._lastNode.type)this._lastNode.data+=e;else{var t=new r.DataNode("comment",e);this.addNode(t),this._lastNode=t}},e.prototype.oncommentend=function(){this._lastNode=null},e.prototype.oncdatastart=function(){var e=new r.DataNode("text",""),t=new r.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this._lastNode=e},e.prototype.oncdataend=function(){this._lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new r.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];this._parser&&(this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex)),n.push(e),r&&(e.prev=r,r.next=e),t&&(e.parent=t),this._lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this._lastNode=e},e}();t.DomHandler=s,t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(142)),c=s(n(144)),u=n(90),l=function(e){function t(t,n){return"object"==typeof t&&null!==t&&(n=t=void 0),e.call(this,t,n)||this}return o(t,e),t.prototype.onend=function(){var e={},t=d(g,this.dom);if(t)if("feed"===t.name){var n=t.children;e.type="atom",m(e,"id","id",n),m(e,"title","title",n);var r=f("href",d("link",n));r&&(e.link=r),m(e,"description","subtitle",n),(o=h("updated",n))&&(e.updated=new Date(o)),m(e,"author","email",n,!0),e.items=p("entry",n).map((function(e){var t={},n=e.children;m(t,"id","id",n),m(t,"title","title",n);var r=f("href",d("link",n));r&&(t.link=r);var o=h("summary",n)||h("content",n);o&&(t.description=o);var i=h("updated",n);return i&&(t.pubDate=new Date(i)),t}))}else{var o;n=d("channel",t.children).children;e.type=t.name.substr(0,3),e.id="",m(e,"title","title",n),m(e,"link","link",n),m(e,"description","description",n),(o=h("lastBuildDate",n))&&(e.updated=new Date(o)),m(e,"author","managingEditor",n,!0),e.items=p("item",t.children).map((function(e){var t={},n=e.children;m(t,"id","guid",n),m(t,"title","title",n),m(t,"link","link",n),m(t,"description","description",n);var r=h("pubDate",n);return r&&(t.pubDate=new Date(r)),t}))}this.feed=e,this.handleCallback(t?null:Error("couldn't find root of feed"))},t}(a.default);function p(e,t){return c.getElementsByTagName(e,t,!0)}function d(e,t){return c.getElementsByTagName(e,t,!0,1)[0]}function h(e,t,n){return void 0===n&&(n=!1),c.getText(c.getElementsByTagName(e,t,n,1)).trim()}function f(e,t){return t?t.attribs[e]:null}function m(e,t,n,r,o){void 0===o&&(o=!1);var i=h(n,r,o);i&&(e[t]=i)}function g(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=l;var v={xmlMode:!0};t.parseFeed=function(e,t){void 0===t&&(t=v);var n=new l(t);return new u.Parser(n,t).end(e),n.feed}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(279)),r(n(284)),r(n(285)),r(n(147)),r(n(286)),r(n(287)),r(n(37))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(91)),i=r(n(141)),s=r(n(92)),a=r(n(140));function c(e){var t=Object.keys(e).join("|"),n=l(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(o.default);var u=function(e,t){return e<t?1:-1};function l(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(i.default).sort(u),t=Object.keys(o.default).sort(u),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=l(o.default);function c(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,c)}}()},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=c(r(n(92)).default),i=u(o);t.encodeXML=f(o,i);var s=c(r(n(91)).default),a=u(s);function c(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function u(e){var t=[],n=[];return Object.keys(e).forEach((function(e){return 1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=f(s,a);var l=/[^\0-\x7F]/g,p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function d(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function h(e,t){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function f(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(p,h).replace(l,d)}}var m=u(o);t.escape=function(e){return e.replace(m,d).replace(p,h).replace(l,d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37);function o(e,t,n,i){for(var s=[],a=0;a<t.length;a++){var c=t[a];if(e(c)&&(s.push(c),--i<=0))break;if(n&&r.hasChildren(c)&&c.children.length>0){var u=o(e,c.children,n,i);if(s=s.concat(u),(i-=u.length)<=0)break}}return s}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),o(e,t,n,r)},t.find=o,t.findOneChild=function(e,t){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null},t.findOne=function e(t,n,o){void 0===o&&(o=!0);for(var i=null,s=0;s<n.length&&!i;s++){var a=n[s];r.isTag(a)&&(t(a)?i=a:o&&a.children.length>0&&(i=e(t,a.children)))}return i},t.existsOne=function e(t,n){for(var o=0;o<n.length;o++){var i=n[o];if(r.isTag(i)&&(t(i)||i.children.length>0&&e(t,i.children)))return!0}return!1},t.findAll=function(e,t){for(var n=[],o=t.slice();o.length;){var i=o.shift();i&&r.isTag(i)&&(i.children&&i.children.length>0&&o.unshift.apply(o,i.children),e(i)&&n.push(i))}return n}},function(e,t,n){const r=n(4),o=n(8),i=n(296),{tmpImg:s,tmpBackgroundImage:a}=i;function c(e,t,n,r){const{strategy:o,getConfigParam:i}=u(e,n,r);if(!n.isImage||!n.isTemporaryImage())return o.render(t,n,e,i);o.reset(t,n,e,i),(n.isBackgroundImage()?a:s).render(t,n)}function u(e,t,n={}){const s=function(e,t,n,o){return function(i,s){return r(o,i,r(n,i,r(t,i,r(e,i,s))))}}(r(o,["imageServices",e.name],{}),n.baseConfig,n,t);let a=s("renderStrategy");if(!a){const e=t.tag;a="img"===e?s("imgTagRenderStrategy")||"srcSet":"picture"===e?s("pictureTagRenderStrategy")||"picture":"video"===e?s("videoTagRenderStrategy")||"video":"audio"===e?s("audioTagRenderStrategy")||"audio":s("anyTagRenderStrategy")||"backgroundImage"}return{strategy:function(e){const t=i[e];if(!t)throw new Error(`Unknown render strategy '${e}'`);return t}(a),getConfigParam:s}}c.reset=function(e,t,n,r){const{strategy:o,getConfigParam:i}=u(e,n,r);return o.reset(t,n,e,i)},e.exports=c},function(e,t,n){"use strict";e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r<t.length;r++)n+=t[r].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),r<(arguments.length<=1?0:arguments.length-1)&&(n+=arguments.length<=r+1?void 0:arguments[r+1]);var o=n.split("\n"),i=null;return o.forEach((function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;i=i?Math.min(i,n):n}})),null!==i&&(n=o.map((function(e){return" "===e[0]?e.slice(i):e})).join("\n")),(n=n.trim()).replace(/\\n/g,"\n")}},function(e,t){e.exports={render(e,t){const n=t.getOriginalUrl()||"";e.attr("src",n);const r=t.getAltText();n&&r?e.attr("alt",r):e.removeAttr("alt")},reset(e){e.removeAttr("src"),e.removeAttr("alt")}}},function(e,t,n){const r=n(298);e.exports={ensureTag(e,t){if(e.liDomElement)return e.changeTag(t),{replaced:!1};if(e.prop("tagName").toLowerCase()!==t){const n=r(`<${t}></${t}>`);return e.replaceWith(n),{replaced:!0,$replacement:n}}return{replaced:!1}}}},function(e,t,n){const{ensureTag:r}=n(151),o="Your browser does not support showing this video.";function i(e,t){return void 0!==e?e:t}e.exports={render(e,t,n,r){const s=t.originalUrl||"",a=t.isImage&&t.isGif()?n.getUrl(s,{convert:"mp4"}):s,c=r("video",{}),u=r(["video","notSupportedText"],o),l=i(c.controls,!0),p=i(c.loop,!1),d=i(c.autoplay,!1),h=i(c.muted,!1),f=i(c.preload),{width:m,height:g}=t.originalDimensions;return this.renderVideoTag(e,{url:a,width:m,height:g,controls:l,loop:p,autoplay:d,muted:h,preload:f,notSupportedText:u})},reset(e,t){e.removeAttr("src"),e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("controls"),e.removeAttr("loop"),e.removeAttr("autoplay"),e.removeAttr("muted"),e.removeAttr("preload"),e.html("")},renderVideoTag(e,t){const{url:n,width:i,height:s,controls:a,loop:c,autoplay:u,muted:l,preload:p,notSupportedText:d=o}=t,{replaced:h,$replacement:f}=r(e,"video");if(h&&(e=f),e.attr("src",n),e.attr("width",n&&i?i:null),e.attr("height",n&&s?s:null),e.attr("controls",a?"":null),e.attr("loop",c?"":null),e.attr("autoplay",u?"":null),e.attr("muted",l?"":null),e.attr("preload",p||null),e.html(`${d}`),h)return e}}},function(e,t,n){var r=n(35),o=n(34);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(34),o=n(12),i=n(20),s=n(7);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?o(n)&&i(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},function(e,t){const n=function(){return console||(window?window.console:void 0)},r=function(e,t="error"){if("critical"===t||"error"===t)throw e||(e="no error message provided"),e instanceof Error?e:new Error(e);o(e)};function o(...e){const t=n();t&&(e.length&&"trace"===e[e.length-1]&&(e.pop(),t.trace&&t.trace()),t.log.apply(t,e))}o.debug=e=>{if(!o.debugDisabled)return r(e,"debug")},o.warn=e=>{if(!o.warningsDisabled)return r(e,"warning")},o.error=e=>r(e,"error"),e.exports=o},function(e,t,n){const r=n(27),o=n(51),{EventEmitter:i}=n(93),s=n(6),a=n(315),c=n(158),u=n(368),l=n(186),p=n(380),d=n(381),h=n(1);function f(e){this.root.componentTree=void 0,e(),this.root.componentTree=this,this.root.descendants(e=>this.attachComponent(e))}e.exports=class e extends i{constructor({content:e,design:t,proposals:n,handleViolation:r}={}){super(),this.design=t,s(this.design,"new ComponentTree(): param 'design' is missing"),s(this.design.isLiDesign,"new ComponentTree(): param 'design' must be a Design instance"),this.handleViolation=r,this.inProposalMode=!1,this.componentById={},this.root=new c({isRoot:!0}),this.root.componentTree=this,e&&this.initializeContent(e,"silent"),this.proposals=new d({componentTree:this}),n&&this.initializeProposals(n,"silent")}prepend(e){return(e=this.getComponent(e))&&this.root.prepend(e),this}append(e){return(e=this.getComponent(e))&&this.root.append(e),this}getComponent(e){return r(e)?this.createComponent(e):e}createComponent(e,t={}){const n=this.getStructure(e);if(n){const e=n.createModel();return e.setContent(t),e}}createComponentFromJson(e){return l.fromJson(e,this.design,this.handleViolation)}getStructure(e){const t=this.design.getComponentStructure(e);return s(t,`Design ${this.design.identifier}: Could not find component '${e}'`),t}get beforeComponentAdded(){return a("beforeComponentAdded",this)}get componentAdded(){return a("componentAdded",this)}get beforeComponentRemoved(){return a("beforeComponentRemoved",this)}get componentRemoved(){return a("componentRemoved",this)}get beforeComponentMoved(){return a("beforeComponentMoved",this)}get componentMoved(){return a("componentMoved",this)}get beforeComponentTransformed(){return a("beforeComponentTransformed",this)}get componentTransformed(){return a("componentTransformed",this)}get beforeComponentContentChanged(){return a("beforeComponentContentChanged",this)}get componentContentChanged(){return a("componentContentChanged",this)}get beforeComponentHtmlChanged(){return a("beforeComponentHtmlChanged",this)}get componentHtmlChanged(){return a("componentHtmlChanged",this)}get beforeComponentSettingsChanged(){return a("beforeComponentSettingsChanged",this)}get componentSettingsChanged(){return a("componentSettingsChanged",this)}get beforeComponentDataChanged(){return a("beforeComponentDataChanged",this)}get componentDataChanged(){return a("componentDataChanged",this)}get viewUpdateRequested(){return a("viewUpdateRequested",this)}get changed(){return a("changed",this)}get ruleViolated(){return a("ruleViolated",this)}get commandExecuted(){return a("commandExecuted",this)}getIterator(){return new p({componentTree:this})}each(e){this.root.descendants(e)}descendants(e){this.root.descendants(e)}childrenIterator(e){return this.root.childrenIterator(e)}descendantsIterator(e){return this.root.descendantsIterator(e)}eachContainer(e){this.root.eachContainer(e)}children(e){this.root.children(e)}[Symbol.iterator](){return this.root[Symbol.iterator]()}childAt(e){return this.root.childAt(e)}first(){return this.root.first}get firstComponent(){let e=this.root.first;for(;e&&"component"!==e.nodeType;)e=e.next;return e}get lastComponent(){let e=this.root.last;for(;e&&"component"!==e.nodeType;)e=e.previous;return e}getAllComponents(){return this._componentsArrayCache||(this._componentsArrayCache=[...this.descendantsIterator()]),this._componentsArrayCache}eq(e){let t=0;for(const n of this.descendantsIterator())if(e===t++)return n}indexOf(e){let t=0;for(const n of this.descendantsIterator()){if(n===e)return t;t+=1}return-1}all(e){return this.root.all(e)}find(e){if("string"==typeof e){const t=[];for(const n of this.descendantsIterator())n.componentName===e&&t.push(n);return new u(t)}if(e&&e.id){const t=this.findById(e.id);return new u([t])}return new u}findById(e){return this.componentById[e]}findAllNodeTypesById(e){return this.componentById[e]||this.proposals.getPlaceholder(e)}detach(){this.root.componentTree=void 0,this.each(e=>this.detachComponent(e));const e=this.root;return this.root=new c({isRoot:!0}),e}attachComponent(e){e.componentTree=this,this.componentById[e.id]=e}detachComponent(e){e.componentTree=void 0,this.componentById[e.id]=void 0}attachTreeNode(e){e.componentTree=this}detachTreeNode(e){e.componentTree=void 0}setMainView({renderer:e}){s(e,"componentTree.setMainView: view does not have an initialized renderer"),s(e.componentTree===this,"componentTree.setMainView: Cannot set renderer from different componentTree"),this.mainRenderer=e}getMainComponentView(e){return this.mainRenderer?this.mainRenderer.getComponentViewById(e):void 0}isDropAllowed(e,t){const{target:n,componentView:r,containerName:o,position:i}=t;if("component"===n){const t={};"before"===i&&(t.previous=r.model.previous,t.next=r.model),"after"===i&&(t.previous=r.model,t.next=r.model.next);const{ok:n,conflicts:o}=e.isValidPosition(t);if(!n)return{valid:n,info:o[0].message}}if("root"===n)return this.root.isAllowedAsChild(e);if("component"===n){return r.model.isAllowedAsSibling(e)}if("container"===n){return r.model.isAllowedAsChild(o,e)}return!1}print(){let e="ComponentTree\n-----------\n";const t=(t,n=0)=>(e+=`${Array(n+1).join(" ")}${t}\n`,e),n=(e,r=0)=>{const{structure:o}=e;t(`- ${o.label} (${o.name})`,r);for(const o of e.containers)t(`${o.name}:`,r+2),o.first&&n(o.first,r+4);e.next&&n(e.next,r)};return this.root.first&&n(this.root.first),e}attachingComponent(e,t,n){e.componentTree===this?(this.fireBeforeEvent("beforeComponentMoved",e,n),t(),delete this._componentsArrayCache,this.fireEvent("componentMoved",e)):(this.fireBeforeEvent("beforeComponentAdded",e,n),e.componentTree&&e.remove(),e.descendantsAndSelf(e=>this.attachComponent(e)),t(),delete this._componentsArrayCache,this.fireEvent("componentAdded",e))}attachingTreeNode(e,t,n){e.componentTree===this?(t(),this.emit("treeNodeMoved",e)):(e.componentTree&&e.remove(),e.descendantsAndSelf(e=>this.attachTreeNode(e)),t(),this.emit("treeNodeAdded",e),this.emit("afterTreeNodeAdded",e))}detachingComponent(e,t,n){s(e.componentTree===this,"cannot remove component from another ComponentTree"),this.fireBeforeEvent("beforeComponentRemoved",e,n),e.descendantsAndSelf(e=>this.detachComponent(e)),t(),delete this._componentsArrayCache,this.fireEvent("componentRemoved",e)}detachingTreeNode(e,t,n){s(e.componentTree===this,"cannot remove component from another ComponentTree"),this.emit("beforeTreeNodeRemoved",e,n),e.descendantsAndSelf(e=>this.detachTreeNode(e)),t(),delete this._componentsArrayCache,this.emit("treeNodeRemoved",e)}fireEvent(e,...t){this.emit(e,...t),this.emit("changed")}fireBeforeEvent(e,...t){this.emit(e,...t)}contentChanging(e,t,n){const r=e.isProposal?"proposalContentChanged":"componentContentChanged";this.emit(r,e,t,n),e.isProposal||this.emit("changed")}requestViewUpdate(e,t){this.emit("viewUpdateRequested",e,t)}htmlChanging(e){this.fireEvent("componentHtmlChanged",e)}reportExecutedCommand(e){this.emit("commandExecuted",e)}dataChanging(e,t){this.fireEvent("componentDataChanged",e,t)}reportViolation(e){this.fireEvent("ruleViolated",e)}serialize({omitIds:e,omitProposals:t}={}){const n=[],r={omitId:!!e,deep:!0};for(const e of this)"component"===e.nodeType&&n.push(e.toJson(r));const o={content:n,design:{name:this.design.name,version:this.design.version}};return!t&&this.proposals.hasProposals&&(o.proposals=this.proposals.serialize()),o}initializeContent(e,t=!0){t?f.call(this,()=>this.addContent(e)):this.addContent(e)}fromJson({content:e}){this.initializeContent(e)}clone({omitProposals:t}={}){const n=this.serialize({omitProposals:t});return n.design=this.design,new e(n)}addData(e){this.addContent(e.content)}addContent(e,t=this.root){if(o(e))return;const{design:n,handleViolation:r}=this;for(const o of e){const e=l.fromJson(o,n,r);t.append(e)}}initializeProposals(e,t){h.execCommands({componentTree:this,commands:e})}applyProposal({component:e,eventSource:t}){e.applyProposal({eventSource:t})}addDataWithAnimation(e,t=200){s(this.design,"Error adding data. ComponentTree has no design");let n=Number(t);for(const r of Array.from(e.content)){const e=r;setTimeout(()=>{const t=l.fromJson(e,this.design,this.handleViolation);this.root.append(t)},n),n+=Number(t)}}toData(){return this.serialize()}toJson(...e){return this.toData.apply(this,e)}enterProposalMode({proposalStatus:e}={}){h.execTrusted("enterProposalMode",{componentTree:this,proposalStatus:e})}exitProposalMode(){h.execTrusted("exitProposalMode",{componentTree:this})}destroy(){this.removeAllListeners()}}},function(e,t,n){const r=n(149),o=n(4),i=n(6),{invalidChildViolation:s}=n(96),a=n(1);e.exports=class{constructor({parentComponent:e,name:t,isRoot:n,config:r}){this.parentComponent=e,this.name=t,this.isRoot=!!n,this.first=this.last=void 0,this.allowedChildren=void 0,this.nestedTree=void 0,this.parseConfig(r)}[Symbol.iterator](){return new c(this)}get componentId(){return this.parentComponent&&this.parentComponent.id}parseConfig(e){if(e){for(const t of e.allowedChildren||[])this.allowedChildren||(this.allowedChildren={}),this.allowedChildren[t]=!0;this.defaultContent=e.defaultContent,this.defaultComponents=e.defaultComponents}}isAllowedAsChild(e){if(!!!(this.isAcceptingComponents()&&this.canBeNested(e.id)&&this.compliesWithContentRules(e)))return!1;let t=!0;return e.descendants(e=>{t=t&&e.parentContainer.isAllowedAsChild(e)}),t}isValidOperation(e){return!(!this.isAcceptingComponents()||!this.canBeNested(e.id))}compliesWithContentRules(e){return!(!this.isChildAllowed(e.structure)||!this.isAllowedAsParent(e.structure))}isTypeAllowedAsChild(e){return!!e&&!(!this.isChildAllowed(e)||!this.isAllowedAsParent(e))}isAcceptingComponents(){return!this.nestedTree}canBeNested(e){let t=this.parentComponent;for(;t;){if(t.id===e)return!1;t=t.getParent()}return!0}isChildAllowed(e){return void 0===this.allowedChildren||this.allowedChildren[e.name]}isAllowedAsParent(e){const t=e.allowedParents;if(!t)return!0;const n=this.isRoot?"root":o(this.parentComponent,"componentName");for(const e of t)if(n===e)return!0;return!1}hasChildren(){return!!this.first}getComponentTree(){return this.componentTree||o(this.parentComponent,"componentTree")}prepend(e){return a.execTrusted("insertComponent",{component:e,position:{next:this.first,parentContainer:this}}),this}append(e,t=!1){return this.parentComponent&&i(e!==this.parentComponent,"cannot append component to itself"),a.execTrusted("insertComponent",{component:e,position:{previous:this.last,parentContainer:this},enforceRules:t}),this}appendTree(e){if(this.first)throw new Error("a componentTree can only be appended to an empty container");this.nestedTree=e}insertBefore(e,t){a.execTrusted("insertComponent",{component:t,position:{next:e,parentContainer:this}})}insertAfter(e,t){a.execTrusted("insertComponent",{component:t,position:{previous:e,parentContainer:this}})}up(e){e.previous&&this.insertBefore(e.previous,e)}down(e){e.next&&this.insertAfter(e.next,e)}remove(e){a.execTrusted("removeComponent",{component:e})}getNextContainer(){if(!this.parentComponent)return;const{containers:e}=this.parentComponent,t=e.getIndex(this.name);i(t>=0,"container not part of component");const n=t+1;return e.length>n?e[n]:void 0}each(e){this.descendants(e)}descendants(e){for(const t of this.descendantsIterator())e(t)}childrenIterator(e){return new c(this,e)}descendantsIterator(e){return new u(this,e)}children(e){for(const t of this.childrenIterator())e(t)}childAt(e){let t=0;for(const n of this.childrenIterator()){if(t===e)return n;t+=1}}getIndex(e){let t=0;for(const n of this.childrenIterator()){if(n===e)return t;t+=1}return-1}eachContainer(e){e(this);for(const t of this.descendantsIterator())for(const n of t.containers)e(n)}all(e){e(this);for(const t of this.descendantsIterator()){e(t);for(const n of t.containers)e(n)}}allNodes(e){e(this);for(const t of this.descendantsIterator({allTreeNodes:!0})){e(t);for(const n of t.containers)e(n)}}getDefaultParagraph(){const e=this.getComponentTree();if(!e||!e.design)return{};const t=e.design,n=o(this.defaultComponents,"paragraph");return n?t.getDirectiveLocator({name:n,directiveType:"editable"}):t.defaultParagraph}getDefaultImage(){const e=this.getComponentTree();if(!e||!e.design)return{};const t=e.design,n=o(this.defaultComponents,"image");return n?t.getDirectiveLocator({name:n,directiveType:"image"}):t.defaultImage}getDefaultVideo(){const e=this.getComponentTree();if(!e||!e.design)return{};const t=e.design,n=o(this.defaultComponents,"video");return n?t.getDirectiveLocator({name:n,directiveType:"video"}):t.defaultVideo}getDefaultAudio(){const e=this.getComponentTree();if(!e||!e.design)return{};const t=e.design,n=o(this.defaultComponents,"audio");return n?t.getDirectiveLocator({name:n,directiveType:"audio"}):t.defaultAudio}attachComponent(e,t={},n){if(i(this.isValidOperation(e),r`
|
|
8
9
|
Invalid component tree operation. \
|
|
9
|
-
Component '${t.componentName}' could not be inserted.`),!this.compliesWithContentRules(t)){const e=s(this,t);this.reportViolation(e)}if(!1===t.isValidPosition(e).valid){const n=a(t,e);this.reportViolation(n)}const r=this.getComponentTree(),c=()=>this.link(t,e);r?(this.insertDefaultContent(r,t),r.attachingComponent(t,c,n)):c()}insertDefaultContent(t,e){if(!e.insertDefaultContent)return!1;if(e.insertDefaultContent=!1,e.componentTree)return!1;for(const n of e.containers)n.defaultContent&&t.addContent(n.defaultContent,n)}_detachComponent(t,e){const n=()=>this.unlink(t),r=this.getComponentTree();r?r.detachingComponent(t,n,e):n()}link(t,e){t.parentContainer&&this.unlink(t),e.parentContainer||(e.parentContainer=this),this.setComponentPosition(t,e)}unlink(t){const e=t.parentContainer;e&&(t.previous||(e.first=t.next),t.next||(e.last=t.previous),t.next&&(t.next.previous=t.previous),t.previous&&(t.previous.next=t.next),this.setComponentPosition(t,{}))}setComponentPosition(t,{parentContainer:e,previous:n,next:r}){t.parentContainer=e,t.previous=n,t.next=r,e&&(n&&(n.next=t),r&&(r.previous=t),t.previous||(e.first=t),t.next||(e.last=t))}getContainerIdentifier(){return this.isRoot?"root":`${this.parentComponent.componentName}.containers.get('${this.name}')`}reportViolation({type:t,data:e}){const n=this.getComponentTree();n&&n.reportViolation({type:t,data:e})}};class p{constructor(t){this.value=t.first,this.descendants=void 0}[Symbol.iterator](){return this}next(){for(;this.value;){if(this.descendants){const t=this.descendants.next();if(!0!==t.done)return t}else if(void 0===this.descendants)return this.value.containers.length?this.descendants=this.value.descendantsIterator():this.descendants=!1,{value:this.value};this.value=this.value.next,this.descendants=void 0}return{done:!0}}}},function(t,e){t.exports={createInvalidChildViolation:(t,e)=>({type:"attachComponent:invalidChild",origin:t,invalidChild:e}),createInvalidPositionViolation:(t,e)=>({type:"attachComponent:invalidPosition",component:t,position:e}),createUnkownComponentViolation:(t,e)=>({type:"unknownComponent",componentName:t,designIdentifier:e,message:"deserializing component failed:"+`unknown component '${t}' in design ${e}`}),createUnkownDirectiveViolation:(t,e)=>({type:"unknownDirective",directiveName:t,componentName:e,message:"deserializing component failed: "+`unknown directive '${t}' for component '${e}'`}),createUnkownContainerViolation:t=>({type:"unknownContainer",containerName:t,message:`error while deserializing component: unknown container ${t}`}),createContainerIsNotArrayViolation:t=>({type:"containerIsNotArray",containerName:t,message:`error while deserializing component: container is not array ${t}`})}},function(t,e,n){var r=n(84),i=n(267),o=n(85);t.exports=function(t,e,n,s,a,c){var u=1&n,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(t);if(h&&c.get(e))return h==e;var d=-1,f=!0,m=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d<l;){var g=t[d],v=e[d];if(s)var y=u?s(v,g,d,e,t,c):s(g,v,d,t,e,c);if(void 0!==y){if(y)continue;f=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(g===t||a(g,t,n,s,c)))return m.push(e)}))){f=!1;break}}else if(g!==v&&!a(g,v,n,s,c)){f=!1;break}}return c.delete(t),c.delete(e),f}},function(t,e,n){var r=n(8);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(143),i=n(12),o=n(144),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var c=null==n?0:o(n);return c<0&&(c=s(a+c,0)),r(t,i(e,3),c)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(276);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(10),i=n(5);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},function(t,e){const n=["svg","script","style","font"];t.exports=class{constructor({whitelist:t,blacklist:e}={}){Array.isArray(t)?this.validate=e=>t.includes(e):Array.isArray(e)&&(this.validate=t=>!e.includes(t))}isProhibited(t){return!!n.includes(t.name)||(!!r(t)||!!this.validate&&!this.validate(t.name))}};const r=t=>"span"===t.name&&function(t){return t.attribs.style&&1===Object.keys(t.attribs).length}(t)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(127)),o=r(n(79)),s=r(n(126)),a=r(n(80));function c(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function u(t,e,n){var r=t.toLowerCase();return t===r?function(t,i){i===r?t._state=e:(t._state=n,t._index--)}:function(i,o){o===r||o===t?i._state=e:(i._state=n,i._index--)}}function l(t,e){var n=t.toLowerCase();return function(r,i){i===n||i===t?r._state=e:(r._state=3,r._index--)}}var p=u("C",23,16),h=u("D",24,16),d=u("A",25,16),f=u("T",26,16),m=u("A",27,16),g=l("R",34),v=l("I",35),y=l("P",36),_=l("T",37),b=u("R",39,1),x=u("I",40,1),C=u("P",41,1),w=u("T",42,1),E=l("Y",44),I=l("L",45),S=l("E",46),T=u("Y",48,1),A=u("L",49,1),D=u("E",50,1),O=u("#",52,53),k=u("X",55,54),N=function(){function t(t,e){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1,this._cbs=e,this._xmlMode=!(!t||!t.xmlMode),this._decodeEntities=!(!t||!t.decodeEntities)}return t.prototype.reset=function(){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1},t.prototype._stateText=function(t){"<"===t?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=2,this._sectionStart=this._index):this._decodeEntities&&1===this._special&&"&"===t&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=1,this._state=51,this._sectionStart=this._index)},t.prototype._stateBeforeTagName=function(t){"/"===t?this._state=5:"<"===t?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===t||1!==this._special||c(t)?this._state=1:"!"===t?(this._state=15,this._sectionStart=this._index+1):"?"===t?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==t&&"S"!==t?3:31,this._sectionStart=this._index)},t.prototype._stateInTagName=function(t){("/"===t||">"===t||c(t))&&(this._emitToken("onopentagname"),this._state=8,this._index--)},t.prototype._stateBeforeCloseingTagName=function(t){c(t)||(">"===t?this._state=1:1!==this._special?"s"===t||"S"===t?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))},t.prototype._stateInCloseingTagName=function(t){(">"===t||c(t))&&(this._emitToken("onclosetag"),this._state=7,this._index--)},t.prototype._stateAfterCloseingTagName=function(t){">"===t&&(this._state=1,this._sectionStart=this._index+1)},t.prototype._stateBeforeAttributeName=function(t){">"===t?(this._cbs.onopentagend(),this._state=1,this._sectionStart=this._index+1):"/"===t?this._state=4:c(t)||(this._state=9,this._sectionStart=this._index)},t.prototype._stateInSelfClosingTag=function(t){">"===t?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):c(t)||(this._state=8,this._index--)},t.prototype._stateInAttributeName=function(t){("="===t||"/"===t||">"===t||c(t))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--)},t.prototype._stateAfterAttributeName=function(t){"="===t?this._state=11:"/"===t||">"===t?(this._cbs.onattribend(),this._state=8,this._index--):c(t)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)},t.prototype._stateBeforeAttributeValue=function(t){'"'===t?(this._state=12,this._sectionStart=this._index+1):"'"===t?(this._state=13,this._sectionStart=this._index+1):c(t)||(this._state=14,this._sectionStart=this._index,this._index--)},t.prototype._stateInAttributeValueDoubleQuotes=function(t){'"'===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},t.prototype._stateInAttributeValueSingleQuotes=function(t){"'"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},t.prototype._stateInAttributeValueNoQuotes=function(t){c(t)||">"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},t.prototype._stateBeforeDeclaration=function(t){this._state="["===t?22:"-"===t?18:16},t.prototype._stateInDeclaration=function(t){">"===t&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)},t.prototype._stateInProcessingInstruction=function(t){">"===t&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)},t.prototype._stateBeforeComment=function(t){"-"===t?(this._state=19,this._sectionStart=this._index+1):this._state=16},t.prototype._stateInComment=function(t){"-"===t&&(this._state=20)},t.prototype._stateAfterComment1=function(t){this._state="-"===t?21:19},t.prototype._stateAfterComment2=function(t){">"===t?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==t&&(this._state=19)},t.prototype._stateBeforeCdata6=function(t){"["===t?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)},t.prototype._stateInCdata=function(t){"]"===t&&(this._state=29)},t.prototype._stateAfterCdata1=function(t){this._state="]"===t?30:28},t.prototype._stateAfterCdata2=function(t){">"===t?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"]"!==t&&(this._state=28)},t.prototype._stateBeforeSpecial=function(t){"c"===t||"C"===t?this._state=33:"t"===t||"T"===t?this._state=43:(this._state=3,this._index--)},t.prototype._stateBeforeSpecialEnd=function(t){2!==this._special||"c"!==t&&"C"!==t?3!==this._special||"t"!==t&&"T"!==t?this._state=1:this._state=47:this._state=38},t.prototype._stateBeforeScript5=function(t){("/"===t||">"===t||c(t))&&(this._special=2),this._state=3,this._index--},t.prototype._stateAfterScript5=function(t){">"===t||c(t)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1},t.prototype._stateBeforeStyle4=function(t){("/"===t||">"===t||c(t))&&(this._special=3),this._state=3,this._index--},t.prototype._stateAfterStyle4=function(t){">"===t||c(t)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1},t.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var t=this._buffer.substring(this._sectionStart+1,this._index),e=this._xmlMode?a.default:o.default;Object.prototype.hasOwnProperty.call(e,t)&&(this._emitPartial(e[t]),this._sectionStart=this._index+1)}},t.prototype._parseLegacyEntity=function(){var t=this._sectionStart+1,e=this._index-t;for(e>6&&(e=6);e>=2;){var n=this._buffer.substr(t,e);if(Object.prototype.hasOwnProperty.call(s.default,n))return this._emitPartial(s.default[n]),void(this._sectionStart+=e+1);e--}},t.prototype._stateInNamedEntity=function(t){";"===t?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(t<"a"||t>"z")&&(t<"A"||t>"Z")&&(t<"0"||t>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(1!==this._baseState?"="!==t&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},t.prototype._decodeNumericEntity=function(t,e){var n=this._sectionStart+t;if(n!==this._index){var r=this._buffer.substring(n,this._index),o=parseInt(r,e);this._emitPartial(i.default(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},t.prototype._stateInNumericEntity=function(t){";"===t?(this._decodeNumericEntity(2,10),this._sectionStart++):(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},t.prototype._stateInHexEntity=function(t){";"===t?(this._decodeNumericEntity(3,16),this._sectionStart++):(t<"a"||t>"f")&&(t<"A"||t>"F")&&(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},t.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(1===this._state?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},t.prototype.write=function(t){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=t,this._parse()},t.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var t=this._buffer.charAt(this._index);1===this._state?this._stateText(t):12===this._state?this._stateInAttributeValueDoubleQuotes(t):9===this._state?this._stateInAttributeName(t):19===this._state?this._stateInComment(t):8===this._state?this._stateBeforeAttributeName(t):3===this._state?this._stateInTagName(t):6===this._state?this._stateInCloseingTagName(t):2===this._state?this._stateBeforeTagName(t):10===this._state?this._stateAfterAttributeName(t):13===this._state?this._stateInAttributeValueSingleQuotes(t):11===this._state?this._stateBeforeAttributeValue(t):5===this._state?this._stateBeforeCloseingTagName(t):7===this._state?this._stateAfterCloseingTagName(t):31===this._state?this._stateBeforeSpecial(t):20===this._state?this._stateAfterComment1(t):14===this._state?this._stateInAttributeValueNoQuotes(t):4===this._state?this._stateInSelfClosingTag(t):16===this._state?this._stateInDeclaration(t):15===this._state?this._stateBeforeDeclaration(t):21===this._state?this._stateAfterComment2(t):18===this._state?this._stateBeforeComment(t):32===this._state?this._stateBeforeSpecialEnd(t):38===this._state?b(this,t):39===this._state?x(this,t):40===this._state?C(this,t):33===this._state?g(this,t):34===this._state?v(this,t):35===this._state?y(this,t):36===this._state?_(this,t):37===this._state?this._stateBeforeScript5(t):41===this._state?w(this,t):42===this._state?this._stateAfterScript5(t):43===this._state?E(this,t):28===this._state?this._stateInCdata(t):44===this._state?I(this,t):45===this._state?S(this,t):46===this._state?this._stateBeforeStyle4(t):47===this._state?T(this,t):48===this._state?A(this,t):49===this._state?D(this,t):50===this._state?this._stateAfterStyle4(t):17===this._state?this._stateInProcessingInstruction(t):53===this._state?this._stateInNamedEntity(t):22===this._state?p(this,t):51===this._state?O(this,t):23===this._state?h(this,t):24===this._state?d(this,t):29===this._state?this._stateAfterCdata1(t):30===this._state?this._stateAfterCdata2(t):25===this._state?f(this,t):26===this._state?m(this,t):27===this._state?this._stateBeforeCdata6(t):55===this._state?this._stateInHexEntity(t):54===this._state?this._stateInNumericEntity(t):52===this._state?k(this,t):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},t.prototype.pause=function(){this._running=!1},t.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},t.prototype.end=function(t){this._ended&&this._cbs.onerror(Error(".end() after done!")),t&&this.write(t),this._ended=!0,this._running&&this._finish()},t.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},t.prototype._handleTrailingData=function(){var t=this._buffer.substr(this._sectionStart);28===this._state||29===this._state||30===this._state?this._cbs.oncdata(t):19===this._state||20===this._state||21===this._state?this._cbs.oncomment(t):53!==this._state||this._xmlMode?54!==this._state||this._xmlMode?55!==this._state||this._xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this._cbs.ontext(t):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},t.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},t.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},t.prototype._emitToken=function(t){this._cbs[t](this._getSection()),this._sectionStart=-1},t.prototype._emitPartial=function(t){1!==this._baseState?this._cbs.onattribdata(t):this._cbs.ontext(t)},t}();e.default=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(279);e.Node=r.Node,e.Element=r.Element,e.DataNode=r.DataNode,e.NodeWithChildren=r.NodeWithChildren;var i=/\s+/g,o={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},s=function(){function t(t,e,n){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=null,"function"==typeof e&&(n=e,e=o),"object"==typeof t&&(e=t,t=void 0),this._callback=t||null,this._options=e||o,this._elementCB=n||null}return t.prototype.onparserinit=function(t){this._parser=t},t.prototype.onreset=function(){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=this._parser||null},t.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this._lastNode=null;var t=this._tagStack.pop();t&&this._parser&&(this._options.withEndIndices&&(t.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(t))},t.prototype.onopentag=function(t,e){var n=new r.Element(t,e);this.addNode(n),this._tagStack.push(n)},t.prototype.ontext=function(t){var e=this._options.normalizeWhitespace,n=this._lastNode;if(n&&"text"===n.type)e?n.data=(n.data+t).replace(i," "):n.data+=t;else{e&&(t=t.replace(i," "));var o=new r.DataNode("text",t);this.addNode(o),this._lastNode=o}},t.prototype.oncomment=function(t){if(this._lastNode&&"comment"===this._lastNode.type)this._lastNode.data+=t;else{var e=new r.DataNode("comment",t);this.addNode(e),this._lastNode=e}},t.prototype.oncommentend=function(){this._lastNode=null},t.prototype.oncdatastart=function(){var t=new r.DataNode("text",""),e=new r.NodeWithChildren("cdata",[t]);this.addNode(e),t.parent=e,this._lastNode=t},t.prototype.oncdataend=function(){this._lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new r.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this._tagStack[this._tagStack.length-1],n=e?e.children:this.dom,r=n[n.length-1];this._parser&&(this._options.withStartIndices&&(t.startIndex=this._parser.startIndex),this._options.withEndIndices&&(t.endIndex=this._parser.endIndex)),n.push(t),r&&(t.prev=r,r.next=t),e&&(t.parent=e),this._lastNode=null},t.prototype.addDataNode=function(t){this.addNode(t),this._lastNode=t},t}();e.DomHandler=s,e.default=s},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(148)),c=s(n(150)),u=n(87),l=function(t){function e(e,n){return"object"==typeof e&&null!==e&&(n=e=void 0),t.call(this,e,n)||this}return i(e,t),e.prototype.onend=function(){var t={},e=h(g,this.dom);if(e)if("feed"===e.name){var n=e.children;t.type="atom",m(t,"id","id",n),m(t,"title","title",n);var r=f("href",h("link",n));r&&(t.link=r),m(t,"description","subtitle",n),(i=d("updated",n))&&(t.updated=new Date(i)),m(t,"author","email",n,!0),t.items=p("entry",n).map((function(t){var e={},n=t.children;m(e,"id","id",n),m(e,"title","title",n);var r=f("href",h("link",n));r&&(e.link=r);var i=d("summary",n)||d("content",n);i&&(e.description=i);var o=d("updated",n);return o&&(e.pubDate=new Date(o)),e}))}else{var i;n=h("channel",e.children).children;t.type=e.name.substr(0,3),t.id="",m(t,"title","title",n),m(t,"link","link",n),m(t,"description","description",n),(i=d("lastBuildDate",n))&&(t.updated=new Date(i)),m(t,"author","managingEditor",n,!0),t.items=p("item",e.children).map((function(t){var e={},n=t.children;m(e,"id","guid",n),m(e,"title","title",n),m(e,"link","link",n),m(e,"description","description",n);var r=d("pubDate",n);return r&&(e.pubDate=new Date(r)),e}))}this.feed=t,this.handleCallback(e?null:Error("couldn't find root of feed"))},e}(a.default);function p(t,e){return c.getElementsByTagName(t,e,!0)}function h(t,e){return c.getElementsByTagName(t,e,!0,1)[0]}function d(t,e,n){return void 0===n&&(n=!1),c.getText(c.getElementsByTagName(t,e,n,1)).trim()}function f(t,e){return e?e.attribs[t]:null}function m(t,e,n,r,i){void 0===i&&(i=!1);var o=d(n,r,i);o&&(t[e]=o)}function g(t){return"rss"===t||"feed"===t||"rdf:RDF"===t}e.FeedHandler=l;var v={xmlMode:!0};e.parseFeed=function(t,e){void 0===e&&(e=v);var n=new l(e);return new u.Parser(n,e).end(t),n.feed}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(281)),r(n(286)),r(n(287)),r(n(151)),r(n(288)),r(n(289)),r(n(38))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(38);function i(t,e,n,o){for(var s=[],a=0;a<e.length;a++){var c=e[a];if(t(c)&&(s.push(c),--o<=0))break;if(n&&r.hasChildren(c)&&c.children.length>0){var u=i(t,c.children,n,o);if(s=s.concat(u),(o-=u.length)<=0)break}}return s}e.filter=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(e)||(e=[e]),i(t,e,n,r)},e.find=i,e.findOneChild=function(t,e){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n];return null},e.findOne=function t(e,n,i){void 0===i&&(i=!0);for(var o=null,s=0;s<n.length&&!o;s++){var a=n[s];r.isTag(a)&&(e(a)?o=a:i&&a.children.length>0&&(o=t(e,a.children)))}return o},e.existsOne=function t(e,n){for(var i=0;i<n.length;i++){var o=n[i];if(r.isTag(o)&&(e(o)||o.children.length>0&&t(e,o.children)))return!0}return!1},e.findAll=function(t,e){for(var n=[],i=e.slice();i.length;){var o=i.shift();o&&r.isTag(o)&&(o.children&&o.children.length>0&&i.unshift.apply(i,o.children),t(o)&&n.push(o))}return n}},function(t,e,n){const r=n(21),i=n(46),o=n(153),{createUnkownComponentViolation:s,createUnkownDirectiveViolation:a,createUnkownContainerViolation:c,createContainerIsNotArrayViolation:u}=n(137);o.prototype.toJson=function(t={}){const e={identifier:this.structure.identifier};t.omitId||(e.id=this.id);const n={};for(const t of this.directives)t.isEmpty()||(n[t.name]=t.serialize());i(n)||(e.content=n),i(this.styles)||(e.styles=r(this.styles)),i(this.dataValues)||(e.data=r(this.dataValues)),this.isPositionFixed&&(e.position="fixed");for(const n of this.containers)if(e.containers||(e.containers={}),e.containers[n.name]=[],t.deep)for(const r of n)e.containers[n.name].push(r.toJson(t));return e},o.prototype.deepCopy=function(e={}){const n=this.toJson({omitId:!0});return t.exports.fromJson(n,this.structure.design,this.componentTree.violationHandler)};t.exports={toJson:t=>o.prototype.toJson.call(t),fromJson(e,n,r){let i,l=e.component;if(l||(l=n.getComponentNameFromIdentifier(e.identifier)),l&&(i=n.getComponentStructure(l)),!i){const t=s(l,n.identifier);return void r.handleViolation(t)}const p=new o({structure:i,id:e.id,positionFlag:e.position});((t,e,n)=>{const r=[];for(const i in e){const o=e[i],s=t.directives.get(i);if(s)r.push(s.deserialize(o));else{const e=a(i,t.componentName);n.handleViolation(e)}}})(p,e.content,r);for(const t of Object.keys(e.styles||{})){const n=e.styles[t];p.setStyle(t,n)}return e.data&&p.data(e.data),function(e,n,r,i){if(n)for(const o of Object.keys(n)){const s=n[o];if(e.containers.has(o)){if(s)if(Array.isArray(s))for(const n of s){const s=t.exports.fromJson(n,r,i);s&&e.append(o,s)}else{const t=u(o);i.handleViolation(t)}}else{const t=c(o);i.handleViolation(t)}}}(p,e.containers,n,r),p}}},function(t,e,n){const{log:r,assert:i}=n(2),o=n(136),s=n(298),a=n(156),c=n(157),u=n(308),l=n(310),p=n(7),h=n(4);t.exports=class extends u{constructor({structure:t,id:e,insertDefaultContent:n,positionFlag:r}={}){super({id:e,type:"component"}),this.positionRules=new l(this,r),this.structure=t,this.insertDefaultContent=n,i(this.structure,"cannot instantiate component without a structure"),this.directives=new a,this.containers=new c,this.initializeDirectives(),this.styles={},this.dataValues={},this.componentName=this.structure.name}[Symbol.iterator](){return new d(this)}remove(){this.canRemove()||this.componentTree.reportViolation({type:"remove:fixedPosition",data:{component:this}}),super.remove()}initializeDirectives(){for(const t of this.structure.directives)switch(t.type){case"container":{const e=new o({name:t.name,parentComponent:this,config:t});this.containers.push(t.name,e);break}case"editable":case"image":case"html":case"link":case"include":case"toggle":case"style":this.createComponentDirective(t);break;default:r.error(`ComponentModel: unknown directive type '${t.type}'`)}}createComponentDirective(t){this.directives.add(s.create({component:this,structureDirective:t}))}getSkin(){return this.structure.getSkin()}createView(t){throw new Error("ComponentModel.createView is deprecated")}getMainView(){return this.componentTree.getMainComponentView(this.id)}isAllowedAsSibling(t){return this.parentContainer.isAllowedAsChild(t)}isTypeAllowedAsSibling(t){return!this.parentContainer||this.parentContainer.isTypeAllowedAsChild(t)}isAllowedAsChild(t,e){return this.containers.get(t).isAllowedAsChild(e)}append(t,e){return this.containers.get(t).append(e),this}prepend(t,e){return this.containers.get(t).prepend(e),this}getTransforms(){return this.structure.design?this.structure.design.transforms:void 0}getTransformOptions({oneWay:t,directives:e}={}){const n=this.getTransforms();if(n)return n.getOptionsList({structure:this.structure,oneWay:t,directives:e,filter:t=>this.isTypeAllowedAsSibling(t)})}transform(t){const e=this.getTransforms(),{design:n}=this.structure,r=n.getComponentStructure(t),o=e.isCompatible(this,r,{oneWay:!0});i(o.isCompatible,`Component ${this.componentName} can not be transformed into ${t}.`);const s=r.createModel({id:this.id}),a=o.mapping||{};for(const[t,e]of Object.entries(a)){const n=this.directives.get(t),r=s.directives.get(e);n.copyTo(r)}this.isPositionFixed&&s.setPosition("fixed");const c=p.transformComponent(this,s);return h.handle(c),s}children(t){for(const e of this)t(e)}childAt(t,e){return this.containers.get(t).childAt(e)}childrenAndSelf(t){t(this);for(const e of this)t(e)}descendants(t){for(const e of this.descendantsIterator())t(e)}descendantsIterator(){return new f(this)}descendantsAndSelf(t){t(this);for(const e of this.descendantsIterator())t(e)}descendantContainers(t){for(const e of this.containers)t(e);for(const e of this)e.descendantContainers(t)}allDescendants(t){for(const e of this.containers)t(e);for(const e of this)e.allDescendants(t)}hasContainers(){return!!this.containers.length}hasEditables(){return this.directives.count("editable")>0}hasHtml(){return this.directives.count("html")>0}hasImages(){return this.directives.count("image")>0}hasLinks(){return this.directives.count("link")>0}beforeDirectiveChanging(t,e){this.componentTree&&this.componentTree.fireBeforeEvent("beforeComponentContentChanged",this,t,e)}directiveChanging(t,e){this.componentTree&&this.componentTree.contentChanging(this,t,e)}requestDirectiveViewUpdate(t){this.componentTree&&this.componentTree.requestViewUpdate(this,t)}getContent(t){if(t){const e=this.directives.get(t);return i(e,`getContent() error: ${this.componentName} has no directive '${t}'`),e.getContent()}{const t={};for(const e of this.directives)t[e.name]=e.getContent();return t}}setContent(t,e){let n=t||{};2===arguments.length&&(n={},n[t]=e);for(const t of Object.keys(n)){const e=n[t],r=this.directives.get(t);i(r,`setContent() error: ${this.componentName} has no directive '${t}'`),r.setContent(e)}}isEmpty(t){const e=this.getContent(t);return void 0===e||""===e}data(t){if("object"!=typeof t)return this.getData(t);for(const e in t){const n=t[e];this.setData(e,n)}}setData(t,e){const n=p.updateComponentData(this,t,e);h.handle(n)}getData(t){return t?this.dataValues[t]:this.dataValues}getPluginName(){if(this.plugin)return this.plugin.name}setPlugin(t){this.plugin=t}getPlugin(t){return this.plugin}getStyle(t){return this.styles[t]}setStyle(t,e){const n=p.updateComponentStyle(this,t,e);h.handle(n)}resetPositionRules(){this.positionRules.resetPositionRules(),this.componentTree&&this.componentTree.fireEvent("componentSettingsChanged")}setPosition(t){this.positionRules.setPosition(t),this.componentTree&&this.componentTree.fireEvent("componentSettingsChanged")}isValidPosition(t){return this.positionRules.isValidPosition(t)}canRemove(){return this.positionRules.canRemove()}isParentOfFixedPosition(){return this.positionRules.isParentOfFixedPosition()}copyWithoutContent(){return this.structure.createModel()}destroy(){}set(t,e){r.warn("componentModel.set() is deprecated. Please use componentModel.setContent()."),this.setContent(t,e)}get(t){return r.warn("componentModel.get() is deprecated. Please use componentModel.getContent()."),this.getContent(t)}style(t,e){r.warn("ComponentModel.style() is deprecated. Please use #getStyle() and #setStyle()."),1===arguments.length?this.styles[t]:this.setStyle(t,e)}};class d{constructor(t){this._containers=t.containers,this._i=0}next(){for(;this._containers[this._i];){if(this.value?this.value=this.value.next:this.value=this._containers[this._i].first,this.value)return this;this._i++}return{done:!0}}}class f{constructor(t){this._containers=t.containers,this._i=0}[Symbol.iterator](){return this}next(){for(;this._containers[this._i];){this._descendants||(this._descendants=this._containers[this._i].descendantsIterator());const t=this._descendants.next();if(!0!==t.done)return t;this._i++,this._descendants=void 0}return{done:!0}}}},function(t,e,n){var r=n(13),i=n(12),o=n(118),s=n(75);t.exports=function(t,e){if(null==t)return{};var n=r(s(t),(function(t){return[t]}));return e=i(e),o(t,n,(function(t,n){return e(t,n[0])}))}},function(t,e,n){const r=n(3),i={};t.exports={add:function(t,e){return r(!this.has(t),`Image service ${t} is already registered`),i[t]=e,e},has:function(t="default"){return null!==i[t]&&void 0!==i[t]},get:function(t="default"){return r(this.has(t),`Could not load image service ${t}`),i[t]},eachService:function(t){const e=[];for(const n in i){const r=i[n];e.push(t(n,r))}return e}}},function(t,e,n){const r=n(3);class i{constructor({directives:t}={}){if(this.all={},this.length=0,t&&t.length)for(const e of t)this.add(e)}add(t){return this.assertNameNotUsed(t),this[this.length]=t,t.index=this.length,this.length+=1,this.all[t.name]=t,this[t.type]||(this[t.type]=[]),this[t.type].push(t),t}next(t){let e;return null!=t.index&&(e=t),e||(e=this.all[t]),this[e.index+=1]}nextOfType(t){let e;t.index&&(e=t),e||(e=this.all[t]);const n=e.type;for(;e=this.next(e);)if(e.type===n)return e}get(t){return this.all[t]}has(t){return!!this.all[t]}count(t){return t?this[t]?this[t].length:void 0:this.length}names(t){return 0===arguments.length?this.length?Array.from(this).map(t=>t.name):[]:this[t]&&this[t].length?Array.from(this[t]).map(t=>t.name):[]}each(t){Array.from(this).map(e=>t(e))}eachOfType(t,e){this[t]&&Array.from(this[t]).map(t=>e(t))}firstOfType(t){return this[t]?this[t][0]:void 0}eachEditable(t){this.eachOfType("editable",t)}eachImage(t){this.eachOfType("image",t)}eachToggle(t){this.eachOfType("toggle",t)}eachContainer(t){this.eachOfType("container",t)}eachHtml(t){this.eachOfType("html",t)}eachInclude(t){this.eachOfType("include",t)}clone(){const t=new i;return this.each(e=>t.add(e.clone())),t}assertNameNotUsed(t){r(t&&!this.all[t.name],`DirectiveCollection: '${t.name}' is already used.`)}}i.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],t.exports=i},function(t,e){const{hasOwnProperty:n}=Object.prototype;class r{constructor(){this.values={},this.indexes={},this.length=0}push(t,e){return this.values[t]=e,this.indexes[t]=this.length,this[this.length]=e,this.length+=1,this.length}get(t){return this.values[t]}has(t){return n.call(this.values,t)}getIndex(t){const e=this.indexes[t];return null!=e?e:-1}each(t){for(const e of this)t(e)}toArray(){return Array.from(this)}}r.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],t.exports=r},function(t,e,n){const r=n(61),i=n(16),{log:o,assert:s}=n(2),a=n(315),c=n(316),u=n(89);t.exports=class{constructor({componentTree:t}={}){this.beforeComponentRemoved=this.beforeComponentRemoved.bind(this),this.js=[],this.css=[],this.namespaces={},this.jsWaitlist=[],this.componentTree=t,this.componentTree&&this.componentTree.componentRemoved.add(this.beforeComponentRemoved),this.dependenciesAdded=u(),this.jsDependencyLoaded=u(),this.dependencyToExecute=u(),this.codeToExecute=u(),this.dependencyRemoved=u()}parseAssetsDeclaration(t){if(!t)return;const{basePath:e}=t,n=function(t){return function(e){if(i(e))return{src:e,basePath:t};{const{src:n,name:r}=e;return{basePath:t,src:n,name:r}}}}(e),o=Array.isArray(t.js)?t.js:[{src:t.js}],s=Array.isArray(t.css)?t.css:[{src:t.css}];r(o,t=>{const e=n(t);e.src&&this.addJs(e)}),r(s,t=>{const e=n(t);e.src&&this.addCss(e)})}add(t){this.convertToAbsolutePaths(t);const e=new a(t),n=this.getExisting(e);return n?t.component?n.addComponent(t.component):void 0:this.addDependency(e)}addJs(t){t.type="js",this.add(t)}addCss(t){t.type="css",this.add(t)}executeJs(t){t.isExecuteOnly=!0,this.addJs(t)}executeCode(t){this.codeToExecute.fire(t)}convertToAbsolutePaths(t){if(!t.src)return;let{src:e}=t;this.isAbsoluteUrl(e)||(s(t.basePath,`Dependencies: relative urls are not allowed: ${e}`),e=e.replace(/^[./]*/,""),t.src=`${t.basePath.replace(/\/$/,"")}/${e}`)}isAbsoluteUrl(t){return/(^\/\/|[a-z]*:\/\/)/.test(t)||/^\//.test(t)}addDependency(t){return t.isExecuteOnly?this.dependencyToExecute.fire(t):(t.namespace&&this.addToNamespace(t),t.isJs()?(this.js.push(t),this.delayedDependency(t)):(this.css.push(t),this.dependenciesAdded.fire(void 0,[t]))),t}delayedDependency(t){this.jsWaitlist.push(t),1===this.jsWaitlist.length&&setTimeout(()=>{this.dependenciesAdded.fire(this.jsWaitlist,void 0),this.jsWaitlist=[]},0)}addToNamespace(t){if(t.namespace){this.namespaces[t.namespace]||(this.namespaces[t.namespace]=[]),this.namespaces[t.namespace].push(t)}}removeFromNamespace(t){const e=this.getNamespace(t.namespace);if(e){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}getNamespaces(){return Object.keys(this.namespaces)}getNamespace(t){const e=this.namespaces[t];if(e)return e.length?e:void 0}getExisting(t){const e=t.isJs()?this.js:this.css;for(const n of Array.from(e))if(n.isSameAs(t))return n}hasCss(){return this.css.length>0}hasJs(){return this.js.length>0}beforeComponentRemoved(t){const e=[];let n;this.js.forEach(r=>{n=r.removeComponent(t),n||e.push(r)}),this.css.forEach(r=>{n=r.removeComponent(t),n||e.push(r)}),e.forEach(t=>{this.removeDependency(t)})}removeDependency(t){t.namespace&&this.removeFromNamespace(t);const e=t.isJs()?this.js:this.css,n=e.indexOf(t);n>-1&&e.splice(n,1),this.dependencyRemoved.fire(t)}serialize(){const t={};return this.js&&this.js.length&&(t.js=this.js.map(t=>t.serialize())),this.css&&this.css.length&&(t.css=this.css.map(t=>t.serialize())),t}deserialize(t){if(!t)return;const e=t.js||[],n=t.css||[];e.forEach(t=>{const e={type:"js",src:t.src,code:t.code,namespace:t.namespace,name:t.name,version:t.version};this.addDeserializedObj(e,t)}),n.forEach(t=>{const e={type:"css",src:t.src,code:t.code,namespace:t.namespace,name:t.name,version:t.version};this.addDeserializedObj(e,t)})}addDeserializedObj(t,e){if(e.componentIds&&e.componentIds.length){const n=[];if(e.componentIds.forEach(t=>{const e=this.componentTree.findById(t);e&&n.push(e)}),n.length){const e=this.add(t);n.forEach(t=>e.addComponent(t))}else o.warn("Dropped dependency: could not find components that depend on it",e)}else this.add(t)}printJs(){return c.printJs(this)}printCss(){return c.printCss(this)}}},function(t,e,n){var r=n(320),i=n(321),o=n(12),s=n(0);t.exports=function(t,e){return function(n,a){var c=s(n)?r:i,u=e?e():{};return c(n,t,o(a,2),u)}}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(23),i=n(338),o=n(339),s=n(24);t.exports=function(t,e){return e=r(e,t),null==(t=o(t,e))||delete t[s(i(e))]}},function(t,e,n){var r,i;(i=new(r=n(344))).new=function(){return new r},t.exports=i,"undefined"!=typeof window&&null!==window&&(window.jScheme=i)},function(t,e,n){var r=n(91);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e){t.exports={eventSource:{remote:"remote",local:"local"}}},function(t,e){t.exports.revert=(t,e,n)=>{const r=t.componentTree.findById(n.previous),i=t.componentTree.findById(n.next),o=n.parentContainer||t.componentTree.root;r?o.insertAfter(r,e):i?o.insertBefore(i,e):o.append(e)},t.exports.getContext=function(t,e){const n={parentContainer:t.parentContainer};return t.previous&&(n.previous=t.previous.id),t.next&&(n.next=t.next.id),n.eventSource=e,n}},function(t,e,n){const r=n(57),{parseComponent:i}=n(41),o=n(370),s=n(371);t.exports={render({wrapperHtml:t,componentTree:e},n){const a=new o({settings:n});let c;if(t){const n=function(t){const{structure:e,skin:n}=i({name:r.next("anon"),html:t});return e.setSkin(n),e.createModel()}(t);n.containers[0].appendTree(e),c=[n]}else c=e;return s.render({req:a,componentTree:c})}}},function(t,e,n){const r=n(372),i=n(374);t.exports={parse:(t,e)=>2===t.v?i(t):r.parse(t,e)}},function(t,e,n){const{log:r,assert:i}=n(2),o=n(25),s=/(^[a-zA-Z]+$)|^(#(?:[0-9a-f]{2}){2,4}|#[0-9a-f]{3}|(?:rgba?|hsla?)\((?:\d+%?(?:deg|rad|grad|turn)?(?:,|\s)+){2,3}[\s/]*[\d.]+%?\))$/i;t.exports=class{constructor({name:t,label:e,type:n,value:s,options:a,cssProperty:c}){switch(this.name=t,this.type=n,this.label=e||o.humanize(this.name),this.type){case"option":i(s,"TemplateStyle error: no 'value' provided"),this.value=s;break;case"select":i(a,"TemplateStyle error: no 'options' provided"),this.options=a;break;case"style":i(c,"TemplateStyle error: no 'cssProperty' provided"),this.cssPropertyName=c;break;default:r.error(`TemplateStyle error: unknown type '${this.type}'`)}}cssClassChanges(t){if(this.validateValue(t)){if("option"===this.type)return{remove:t?[]:[this.value],add:t||[]};if("select"===this.type)return{remove:this.otherClasses(t),add:t||[]}}else{if("option"===this.type)return{remove:currentValue||[],add:[]};if("select"===this.type)return{remove:this.otherClasses(void 0),add:[]}}}modifiesClassAttribute(){return"option"===this.type||"select"===this.type}validateValue(t){return!t||("option"===this.type?t===this.value:"select"===this.type?this.containsOption(t):"style"===this.type?this.isValidCssValue(t):void r.warn(`Not implemented: CssModificatorProperty#validateValue() for type ${this.type}`))}containsOption(t){for(const e of this.options)if(t===e.value)return!0;return!1}isValidCssValue(t){switch(this.cssPropertyName){case"color":case"background-color":return s.test(t);default:return!0}}otherOptions(t){return this.options.filter(e=>e.value!==t)}otherClasses(t){return this.otherOptions(t).filter(Boolean).map(t=>t.value)}}},function(t,e,n){var r=n(375),i=n(30),o=n(12),s=n(376),a=n(0);t.exports=function(t,e,n){var c=a(t)?r:s,u=arguments.length<3;return c(t,o(e,4),n,u,i)}},function(t,e,n){const r=n(380),{simplifyTextChanges:i}=n(385),o=n(388),s=n(389),{serializeCommand:a}=n(95);function c({versions:t,createMarkers:e}){const n=[];for(let i=t.length-1;i>0;i--){const c=t[i].componentTree,u=t[i-1].componentTree,l=new o,p=r.diff(c,u,l);if(e){const e=t[i-1].user,r=s(p,e);n.push(...r)}else n.push(...p.map(a))}return i(n),n}t.exports={createDiffCommands:({versions:t})=>c({versions:t}),createDiffMarkers:({versions:t})=>c({versions:t,createMarkers:!0})}},function(t,e,n){var r=n(108),i=n(386),o=n(12),s=n(0);t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},function(t,e,n){var r=n(12),i=n(387);t.exports=function(t,e){var n=[];if(!t||!t.length)return n;var o=-1,s=[],a=t.length;for(e=r(e,3);++o<a;){var c=t[o];e(c,o,t)&&(n.push(c),s.push(o))}return i(t,s),n}},function(t,e){t.exports=function(t,e){t.attr("src",e)}},function(t,e,n){var r=n(28),i=n(29),o=n(18).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function p(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=t.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((e=n[v-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[v-7]+d(n[v-15])+n[v-16];for(var y=0;y<64;++y){var _=g+h(c)+u(c,f,m)+s[y]+n[y]|0,b=p(r)+l(r,i,o)|0;g=m,m=f,f=c,c=a+_|0,a=o,o=i,i=r,r=_+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},function(t,e,n){var r=n(28),i=n(29),o=n(18).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}function u(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function p(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0<e>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,c=0|this._fh,y=0|this._gh,_=0|this._hh,b=0|this._al,x=0|this._bl,C=0|this._cl,w=0|this._dl,E=0|this._el,I=0|this._fl,S=0|this._gl,T=0|this._hl,A=0;A<32;A+=2)e[A]=t.readInt32BE(4*A),e[A+1]=t.readInt32BE(4*A+4);for(;A<160;A+=2){var D=e[A-30],O=e[A-30+1],k=d(D,O),N=f(O,D),P=m(D=e[A-4],O=e[A-4+1]),R=g(O,D),j=e[A-14],M=e[A-14+1],L=e[A-32],q=e[A-32+1],U=N+M|0,B=k+j+v(U,N)|0;B=(B=B+P+v(U=U+R|0,R)|0)+L+v(U=U+q|0,q)|0,e[A]=B,e[A+1]=U}for(var $=0;$<160;$+=2){B=e[$],U=e[$+1];var V=l(n,r,i),z=l(b,x,C),F=p(n,b),H=p(b,n),G=h(a,E),W=h(E,a),X=s[$],J=s[$+1],Y=u(a,c,y),Z=u(E,I,S),Q=T+W|0,K=_+G+v(Q,T)|0;K=(K=(K=K+Y+v(Q=Q+Z|0,Z)|0)+X+v(Q=Q+J|0,J)|0)+B+v(Q=Q+U|0,U)|0;var tt=H+z|0,et=F+V+v(tt,H)|0;_=y,T=S,y=c,S=I,c=a,I=E,a=o+K+v(E=w+Q|0,w)|0,o=i,w=C,i=r,C=x,r=n,x=b,n=K+et+v(b=Q+tt|0,Q)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+C|0,this._dl=this._dl+w|0,this._el=this._el+E|0,this._fl=this._fl+I|0,this._gl=this._gl+S|0,this._hl=this._hl+T|0,this._ah=this._ah+n+v(this._al,b)|0,this._bh=this._bh+r+v(this._bl,x)|0,this._ch=this._ch+i+v(this._cl,C)|0,this._dh=this._dh+o+v(this._dl,w)|0,this._eh=this._eh+a+v(this._el,E)|0,this._fh=this._fh+c+v(this._fl,I)|0,this._gh=this._gh+y+v(this._gl,S)|0,this._hh=this._hh+_+v(this._hl,T)|0},c.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},function(t,e,n){const r=n(98),i=n(252);i.ComponentRenderer=r,t.exports=i},function(t,e,n){var r=n(100),i=n(14);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(10),i=n(5);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(19),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(10),i=n(64),o=n(5),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},function(t,e,n){var r=n(103)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(11);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},function(t,e,n){var r=n(45);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(15)(n(9),"DataView");t.exports=r},function(t,e,n){var r=n(67),i=n(191),o=n(8),s=n(104),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},function(t,e,n){var r,i=n(192),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(9)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(15)(n(9),"Promise");t.exports=r},function(t,e,n){var r=n(15)(n(9),"Set");t.exports=r},function(t,e,n){var r=n(15)(n(9),"WeakMap");t.exports=r},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(49),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(49);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(49);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(49);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(48);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(48),i=n(68),o=n(70);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(208),i=n(48),o=n(68);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(209),i=n(210),o=n(211),s=n(212),a=n(213);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(50);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(50),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(50),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(50);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(51);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(51);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(51);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(51);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(22),i=n(14);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(22),i=n(52);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(8),i=n(44),o=n(222),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(22),i=n(72);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(22),i=n(110);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(76),i=n(227),o=n(228),s=n(229),a=n(114);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,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 a(t,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Set]":return new c;case"[object Symbol]":return s(t)}}},function(t,e,n){var r=n(76);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(19),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(8),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var r=n(232),i=n(34),o=n(65),s=o&&o.isMap,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(20),i=n(5);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(234),i=n(34),o=n(65),s=o&&o.isSet,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(20),i=n(5);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,e){t.exports={eachNode(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++){const r=t[n];e(r),this.eachNode(r.children,e)}},eachElement(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++){const r=t[n];"tag"===r.type&&(e(r),this.eachElement(r.children,e))}},eachDirective(t,e){if(t)for(let n=0;n<t.length;n++){const r=t[n];"tag"===r.type&&(r.directives&&e(r,r.directives),this.eachDirective(r.children,e))}},createElem(t,e,...n){const r={type:"tag",name:t};if(e&&(r.attribs=e),!n.length)return r;r.children=[];for(let t=0;t<n.length;t++){const e=n[t];r.children[t]="string"==typeof e?{type:"text",data:e}:e}return r},escapeAttributeData(t){const e=JSON.stringify(t);return this.escapeHtml(e)},escapeHtml:t=>t?`${t}`.replace(/['"<>&]/g,t=>{switch(t){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}}):""}},function(t,e,n){const r=n(1),i=n(16),o=n(240),s=n(78),{toString:a}=Object.prototype,c=/\s+/;t.exports=class{constructor(t){this.elem=t}attr(t,e){if(1===arguments.length)return this.getAttr(t);this.setAttr(t,e)}getAttr(t){return r(this,["elem","attribs",t],void 0)}setAttr(t,e){null==e?this.removeAttr(t):(this.elem.attribs||(this.elem.attribs={}),this.elem.attribs[t]=`${e}`)}removeAttr(t){((t,e)=>!!t.attribs&&t.attribs.hasOwnProperty(e))(this.elem,t)&&delete this.elem.attribs[t]}addClass(t){if(!t||"string"!=typeof t)return;const e=t.split(c),n=this.getAttr("class");if(n){let t=` ${n} `;e.forEach(e=>{e+=" ",-1===t.indexOf(` ${e}`)&&(t+=e)}),this.setAttr("class",t.trim())}else this.setAttr("class",e.join(" ").trim())}removeClass(t){if(!t||"string"!=typeof t)return;s(-1===t.trim().indexOf(" ")&&arguments.length<2,"DomElement#removeClass can only remove one class at a time");let e=this.getAttr("class");if(e){e=` ${e} `;const n=e.replace(` ${t} `," ");this.setAttr("class",n.trim())}}css(t,e){return 2===arguments.length?this.setCss(t,e):"[object Object]"===a.call(t)?this.setCss(t):this.getCss(t)}setCss(t,e){if(2===arguments.length){const n=this.getCss();""===e?delete n[t]:null!=e&&(n[t]=e),this.setAttr("style",function(t={}){return Object.keys(t).reduce((e,n)=>`${e}${e?" ":""}${n}: ${t[n]};`,"")}(n)||void 0)}else for(const e of Object.keys(t)){const n=t[e];this.setCss(e,n)}}getCss(t){if(!this.elem.attribs)return{};const e=function(t){return(t=(t||"").trim())?t.split(";").reduce((t,e)=>{const n=e.indexOf(":");return n<1||n===e.length-1||(t[e.slice(0,n).trim()]=e.slice(n+1).trim()),t},{}):{}}(this.elem.attribs.style);return i(t)?e[t]:Array.isArray(t)?o(e,t):e}}},function(t,e,n){var r=n(238),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},function(t,e,n){var r=n(239);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(70);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(241),i=n(121)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},function(t,e,n){var r=n(118),i=n(120);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(23),i=n(31),o=n(0),s=n(33),a=n(64),c=n(24);t.exports=function(t,e,n){for(var u=-1,l=(e=r(e,t)).length,p=!1;++u<l;){var h=c(e[u]);if(!(p=null!=t&&n(t,h)))break;t=t[h]}return p||++u!=l?p:!!(l=null==t?0:t.length)&&a(l)&&s(h,l)&&(o(t)||i(t))}},function(t,e,n){var r=n(122);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(19),i=n(31),o=n(0),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(248),i=n(105),o=n(45),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e){t.exports={booleanAttributes:{__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},unencodedElements:{__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},singleTags:{__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},blockElements:{h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,div:!0,p:!0,a:!0,ul:!0,ol:!0,li:!0,figure:!0,figcaption:!0,blockquote:!0,article:!0,section:!0,aside:!0,footer:!0}}},function(t){t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(t,e,n){const r=n(253),i=n(259),o=n(6),s=n(260),a=n(135),c=n(168),u=n(377),l=n(155),p=n(378),h=n(167),{createDiffMarkers:d}=n(171),{getMergeCommands:f}=n(390),{runCommandsOnComponentTree:m}=n(396),{parseComponent:g}=n(41),v=n(27),y=n(397),_=n(402),b=n(413),x=n(415),C=n(417),w={validateDesign:t=>{try{return c.parse(t,{strict:!0}),{valid:!0}}catch(t){return{valid:!1,error:t}}},design:new u,parseComponent:g,createLivingdoc({content:t,design:e,layoutName:n,componentTree:r,config:i,handleViolation:o}){return this.config(i),s.create({content:t,design:e,layoutName:n,componentTree:r,handleViolation:o})},create(){return this.createLivingdoc.apply(this,arguments)},config(t){if(r(o,t),t&&t.imageServices)for(const e of Object.keys(t.imageServices))i(o,`imageServices.${e}`,t.imageServices[e])},createDiffMarkers:t=>d({versions:t}),getMergeCommands:({baseComponentTree:t,remoteComponentTree:e,localComponentTree:n})=>f({baseComponentTree:t,remoteComponentTree:e,localComponentTree:n}),runCommandsOnComponentTree:({componentTree:t,commands:e})=>m({componentTree:t,commands:e}),rendering:h,imageServices:l,getImageService:t=>l.get(t),plugins:p,Livingdoc:s,ComponentTree:a,DesignCache:u};s.setLivingdocsApi(w),w.imageServices.add("default",v),w.imageServices.add("resrc.it",y),w.imageServices.add("sz",_),w.imageServices.add("imgix",b),w.imageServices.add("image.resizer",C),w.imageServices.add("liImageProxy",x),t.exports=w},function(t,e,n){var r=n(254),i=n(257)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){var r=n(47),i=n(129),o=n(100),s=n(255),a=n(8),c=n(52),u=n(131);t.exports=function t(e,n,l,p,h){e!==n&&o(n,(function(o,c){if(h||(h=new r),a(o))s(e,n,c,l,t,p,h);else{var d=p?p(u(e,c),o,c+"",e,n,h):void 0;void 0===d&&(d=o),i(e,c,d)}}),c)}},function(t,e,n){var r=n(129),i=n(106),o=n(114),s=n(107),a=n(115),c=n(31),u=n(0),l=n(81),p=n(32),h=n(67),d=n(8),f=n(130),m=n(43),g=n(131),v=n(256);t.exports=function(t,e,n,y,_,b,x){var C=g(t,n),w=g(e,n),E=x.get(w);if(E)r(t,n,E);else{var I=b?b(C,w,n+"",t,e,x):void 0,S=void 0===I;if(S){var T=u(w),A=!T&&p(w),D=!T&&!A&&m(w);I=w,T||A||D?u(C)?I=C:l(C)?I=s(C):A?(S=!1,I=i(w,!0)):D?(S=!1,I=o(w,!0)):I=[]:f(w)||c(w)?(I=C,c(C)?I=v(C):d(C)&&!h(C)||(I=a(w))):S=!1}S&&(x.set(w,I),_(I,w,y,b,x),x.delete(w)),r(t,n,I)}}},function(t,e,n){var r=n(22),i=n(52);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(82),i=n(258);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,s)}return e}))}},function(t,e,n){var r=n(35),i=n(11),o=n(33),s=n(8);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},function(t,e,n){var r=n(119);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){const{EventEmitter:r}=n(133),{log:i,assert:o}=n(2),s=n(6),a=n(135),c=n(158),u=n(349),l=n(359),p=n(40),h=n(360),d=n(167);class f extends r{static create({content:t,design:e,layoutName:n,componentTree:r,handleViolation:i}){if(t)o(e,"Livingdoc.create(): missing param 'design'"),e=f.loadDesignIfNeeded(e),r=new a({content:t,design:e,handleViolation:i});else if(e)e=f.loadDesignIfNeeded(e),r=new a({design:e,handleViolation:i});else{if(r)return new f({componentTree:r,layoutName:n});o(!1,"Livingdoc.create(): Insufficient params;\n pass either 'content' and 'design' or 'componentTree'")}return new f({componentTree:r,layoutName:n})}static setLivingdocsApi(t){f.api=t}static loadDesignIfNeeded(t){if(!(t instanceof p)){const{name:e,version:n}=t;t=f.api.design.get(e,n)}return t}constructor({componentTree:t,layoutName:e}){super(),this.componentTree=t,this.layoutName=e,this.interactiveView=void 0,this.readOnlyViews=[],this.design=this.componentTree.design,this.dependencies=new c({componentTree:this.componentTree}),this.fieldMapping=new l(this.design.metadata),this.metadataConfig=this.fieldMapping,this.fieldExtractor=new u(this.componentTree,this.fieldMapping),this.history=new h(this,s.history),this.forwardComponentTreeEvents()}forwardComponentTreeEvents(){this.componentTree.changed.add(()=>{this.emit("change",arguments)})}createComponent(){return this.componentTree.createComponent.apply(this.componentTree,arguments)}addJsDependency(t){this.dependencies.addJs(t)}addCssDependency(t){this.dependencies.addCss(t)}hasDependencies(){return this.dependencies&&(this.dependencies.hasJs()||this.dependencies.hasCss())}toHtml({excludeComponents:t}={}){return t&&i.warn("toHtml(): param excludeComponents is deprecated"),this.render()}render({settings:t}={}){return d.render({componentTree:this.componentTree},t)}serialize(t){const e=this.componentTree.serialize(t);return e.layout=this.layoutName,e}toJson(t){const e=this.serialize();if(t){const t=null,n=2;return JSON.stringify(e,t,n)}return JSON.stringify(e)}printModel(){this.componentTree.print()}}t.exports=f},function(t,e,n){var r=n(12),i=n(11),o=n(14);t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var c=r(n,3);e=o(e),n=function(t){return c(a[t],t,a)}}var u=t(e,n,s);return u>-1?a[c?e[u]:u]:void 0}}},function(t,e,n){var r=n(263),i=n(272),o=n(140);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(47),i=n(83);t.exports=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=n[s])[0],p=t[l],h=u[1];if(c&&u[2]){if(void 0===p&&!(l in t))return!1}else{var d=new r;if(o)var f=o(p,h,l,t,e,d);if(!(void 0===f?i(h,p,3,o,d):f))return!1}}return!0}},function(t,e,n){var r=n(47),i=n(138),o=n(268),s=n(271),a=n(20),c=n(0),u=n(32),l=n(43),p="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,f,m){var g=c(t),v=c(e),y=g?"[object Array]":a(t),_=v?"[object Array]":a(e),b=(y="[object Arguments]"==y?p:y)==p,x=(_="[object Arguments]"==_?p:_)==p,C=y==_;if(C&&u(t)){if(!u(e))return!1;g=!0,b=!1}if(C&&!b)return m||(m=new r),g||l(t)?i(t,e,n,d,f,m):o(t,e,y,n,d,f,m);if(!(1&n)){var w=b&&h.call(t,"__wrapped__"),E=x&&h.call(e,"__wrapped__");if(w||E){var I=w?t.value():t,S=E?e.value():e;return m||(m=new r),f(I,S,n,d,m)}}return!!C&&(m||(m=new r),s(t,e,n,d,f,m))}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(19),i=n(113),o=n(35),s=n(138),a=n(269),c=n(270),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,p,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var f=1&r;if(d||(d=c),t.size!=e.size&&!f)return!1;var m=h.get(t);if(m)return m==e;r|=2,h.set(t,e);var g=s(d(t),d(e),r,u,p,h);return h.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(111),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var c=1&n,u=r(t),l=u.length;if(l!=r(e).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in e:i.call(e,h)))return!1}var d=a.get(t);if(d&&a.get(e))return d==e;var f=!0;a.set(t,e),a.set(e,t);for(var m=c;++p<l;){var g=t[h=u[p]],v=e[h];if(o)var y=c?o(v,g,h,e,t,a):o(g,v,h,t,e,a);if(!(void 0===y?g===v||s(g,v,n,o,a):y)){f=!1;break}m||(m="constructor"==h)}if(f&&!m){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(f=!1)}return a.delete(t),a.delete(e),f}},function(t,e,n){var r=n(139),i=n(14);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},function(t,e,n){var r=n(83),i=n(1),o=n(120),s=n(77),a=n(139),c=n(140),u=n(24);t.exports=function(t,e){return s(t)&&a(e)?c(u(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},function(t,e,n){var r=n(141),i=n(275),o=n(77),s=n(24);t.exports=function(t){return o(t)?r(s(t)):i(t)}},function(t,e,n){var r=n(53);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(277);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(8),i=n(54),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?NaN:+t}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=n(87);e.Parser=o.Parser;var s=n(148);e.DomHandler=s.DomHandler,e.DefaultHandler=s.DomHandler,e.parseDOM=function(t,e){var n=new s.DomHandler(void 0,e);return new o.Parser(n,e).end(t),n.dom},e.createDomStream=function(t,e,n){var r=new s.DomHandler(t,e,n);return new o.Parser(r,e)};var a=n(147);e.Tokenizer=a.default;var c=i(n(280));e.ElementType=c,e.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},r(n(149)),r(n(290)),r(n(293));var u=i(n(150));e.DomUtils=u;var l=n(149);e.RssHandler=l.FeedHandler},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),s=function(){function t(t){this.type=t,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return o.get(this.type)||1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent||null},set:function(t){this.parent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev||null},set:function(t){this.prev=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next||null},set:function(t){this.next=t},enumerable:!0,configurable:!0}),t}();e.Node=s;var a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.data=n,r}return i(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!0,configurable:!0}),e}(s);e.DataNode=a;var c=function(t){function e(e,n){var r=t.call(this,"directive",n)||this;return r.name=e,r}return i(e,t),e}(a);e.ProcessingInstruction=c;var u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.children=n,r}return i(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!0,configurable:!0}),e}(s);e.NodeWithChildren=u;var l=function(t){function e(e,n){var r=t.call(this,"script"===e?"script":"style"===e?"style":"tag",[])||this;return r.name=e,r.attribs=n,r.attribs=n,r}return i(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!0,configurable:!0}),e}(u);e.Element=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(38),o=r(n(283));e.getOuterHTML=o.default,e.getInnerHTML=function(t,n){return i.hasChildren(t)?t.children.map((function(t){return e.getOuterHTML(t,n)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):i.isTag(e)?"br"===e.name?"\n":t(e.children):i.isCDATA(e)?t(e.children):i.isText(e)?e.data:""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"},function(t,e,n){var r=n(284),i=n(55),o=n(285);o.elementNames.__proto__=null,o.attributeNames.__proto__=null;var s={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},c=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var n="",i=0;i<t.length;i++){var o=t[i];"root"===o.type?n+=c(o.children,e):r.isTag(o)?n+=l(o,e):o.type===r.Directive?n+=p(o):o.type===r.Comment?n+=f(o):o.type===r.CDATA?n+=d(o):n+=h(o,e)}return n},u=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function l(t,e){"foreign"===e.xmlMode&&(t.name=o.elementNames[t.name]||t.name,t.parent&&u.indexOf(t.parent.name)>=0&&(e=Object.assign({},e,{xmlMode:!1}))),!e.xmlMode&&["svg","math"].indexOf(t.name)>=0&&(e=Object.assign({},e,{xmlMode:"foreign"}));var n="<"+t.name,r=function(t,e){if(t){var n,r="";for(var s in t)n=t[s],r&&(r+=" "),"foreign"===e.xmlMode&&(s=o.attributeNames[s]||s),r+=s,(null!==n&&""!==n||e.xmlMode)&&(r+='="'+(e.decodeEntities?i.encodeXML(n):n.replace(/\"/g,"""))+'"');return r}}(t.attribs,e);return r&&(n+=" "+r),!e.xmlMode||t.children&&0!==t.children.length?(n+=">",t.children&&(n+=c(t.children,e)),a[t.name]&&!e.xmlMode||(n+="</"+t.name+">")):n+="/>",n}function p(t){return"<"+t.data+">"}function h(t,e){var n=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in s||(n=i.encodeXML(n)),n}function d(t){return"<![CDATA["+t.children[0].data+"]]>"}function f(t){return"\x3c!--"+t.data+"--\x3e"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"},function(t){t.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},function(t,e,n){"use strict";function r(t){return t.children||null}function i(t){return t.parent||null}function o(t,e){return t.attribs&&t.attribs[e]}Object.defineProperty(e,"__esModule",{value:!0}),e.getChildren=r,e.getParent=i,e.getSiblings=function(t){var e=i(t);return e?r(e):[t]},e.getAttributeValue=o,e.hasAttrib=function(t,e){return!!o(t,e)},e.getName=function(t){return t.name}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var i=e.parent=t.parent;if(i){var o=i.children;o[o.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},e.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},e.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(151),i=n(38);function o(t){return"text"===t.type}var s={tag_name:function(t){return"function"==typeof t?function(e){return i.isTag(e)&&t(e.name)}:"*"===t?i.isTag:function(e){return i.isTag(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return o(e)&&t(e.data)}:function(e){return o(e)&&e.data===t}}};function a(t,e){return"function"==typeof e?function(n){return i.isTag(n)&&e(n.attribs[t])}:function(n){return i.isTag(n)&&n.attribs[t]===e}}function c(t,e){return function(n){return t(n)||e(n)}}function u(t){var e=Object.keys(t).map((function(e){var n=t[e];return e in s?s[e](n):a(e,n)}));return 0===e.length?null:e.reduce(c)}e.testElement=function(t,e){var n=u(t);return!n||n(e)},e.getElements=function(t,e,n,i){void 0===i&&(i=1/0);var o=u(t);return o?r.filter(o,e,n,i):[]},e.getElementById=function(t,e,n){return void 0===n&&(n=!0),Array.isArray(e)||(e=[e]),r.findOne(a("id",t),e,n)},e.getElementsByTagName=function(t,e,n,i){return void 0===i&&(i=1/0),r.filter(s.tag_name(t),e,n,i)},e.getElementsByTagType=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),r.filter(s.tag_type(t),e,n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(38);function i(t,e){var n=[],i=[];if(t===e)return 0;for(var o=r.hasChildren(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(o=r.hasChildren(e)?e:e.parent;o;)i.unshift(o),o=o.parent;for(var s=0;n[s]===i[s];)s++;if(0===s)return 1;var a=n[s-1],c=a.children,u=n[s],l=i[s];return c.indexOf(u)>c.indexOf(l)?a===e?20:4:a===t?10:2}e.removeSubsets=function(t){for(var e=t.length;--e>=0;){var n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0)t.splice(e,1);else for(var r=n.parent;r;r=r.parent)if(t.indexOf(r)>-1){t.splice(e,1);break}}return t},e.compareDocumentPosition=i,e.uniqueSort=function(t){return(t=t.filter((function(t,e,n){return!n.includes(t,e+1)}))).sort((function(t,e){var n=i(t,e);return 2&n?-1:4&n?1:0})),t}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(87),s=n(291),a=n(292);var c=function(t){function e(e,n){var r=t.call(this,{decodeStrings:!1})||this;return r._decoder=new a.StringDecoder,r._parser=new o.Parser(e,n),r}return i(e,t),e.prototype._write=function(t,e,n){(function(t,e){return"buffer"===e})(0,e)&&(t=this._decoder.write(t)),this._parser.write(t),n()},e.prototype._final=function(t){this._parser.end(this._decoder.end()),t()},e}(s.Writable);e.WritableStream=c},function(t,e){t.exports=require("stream")},function(t,e){t.exports=require("string_decoder")},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,(function(t){for(var e,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];n.events.push([t].concat(r)),n._cbs[t]&&(e=n._cbs)[t].apply(e,r)}))||this;return n._cbs=e,n.events=[],n}return i(e,t),e.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},e.prototype.restart=function(){var t;this._cbs.onreset&&this._cbs.onreset();for(var e=0;e<this.events.length;e++){var n=this.events[e],r=n[0],i=n.slice(1);this._cbs[r]&&(t=this._cbs)[r].apply(t,i)}},e}(o(n(294)).default);e.CollectingHandler=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this._func=t}return t.prototype.onattribute=function(t,e){this._func("onattribute",t,e)},t.prototype.oncdatastart=function(){this._func("oncdatastart")},t.prototype.oncdataend=function(){this._func("oncdataend")},t.prototype.ontext=function(t){this._func("ontext",t)},t.prototype.onprocessinginstruction=function(t,e){this._func("onprocessinginstruction",t,e)},t.prototype.oncomment=function(t){this._func("oncomment",t)},t.prototype.oncommentend=function(){this._func("oncommentend")},t.prototype.onclosetag=function(t){this._func("onclosetag",t)},t.prototype.onopentag=function(t,e){this._func("onopentag",t,e)},t.prototype.onopentagname=function(t){this._func("onopentagname",t)},t.prototype.onerror=function(t){this._func("onerror",t)},t.prototype.onend=function(){this._func("onend")},t.prototype.onparserinit=function(t){this._func("onparserinit",t)},t.prototype.onreset=function(){this._func("onreset")},t}();e.default=r},function(t,e,n){const r=n(296),i=/\s+/g,o={normalizeWhitespace:!1,withStartIndices:!1,withReferences:!0};t.exports=class t{constructor(t,e){this._callback=e||function(){},this._options=t||o,this._done=!1,this._tagStack=[],this._parser=this._parser||null,this.dom=[]}onparserinit(t){this._parser=t}onreset(){t.call(this,this._callback,this._options)}onend(){this._done||(this._done=!0,this._parser=null,this._callback(null,this.dom))}onerror(t){this.error=t,this._callback(t)}onopentag(t,e){let n=r.Tag;"script"===t?n=r.Script:"style"===t&&r.Style;const i={type:n,name:t,attribs:e,children:[]};this._addDomElement(i),this._tagStack.push(i)}onclosetag(){this._tagStack.pop()}ontext(t){const e=this._options.normalizeWhitespace,n=this._getLastTag();n&&n.type===r.Text?e?n.data=(n.data+t).replace(i," "):n.data+=t:(e&&(t=t.replace(i," ")),this._addDomElement({data:t,type:r.Text}))}oncomment(t){const e=this._tagStack[this._tagStack.length-1];if(e&&e.type===r.Comment)return void(e.data+=t);const n={data:t,type:r.Comment};this._addDomElement(n),this._tagStack.push(n)}oncommentend(){this._tagStack.pop()}oncdatastart(){this.onerror(new Error("cdata is not supported"))}onprocessinginstruction(t,e){this.onerror(new Error("processing instructions are not supported"))}_addDomElement(t){const e=this._tagStack[this._tagStack.length-1],n=e?e.children:this.dom;if(this._options.withStartIndices&&(t.startIndex=this._parser.startIndex),this._options.withReferences){const r=n[n.length-1];t.parent=e||null,t.next=null,r?(t.prev=r,r.next=t):t.prev=null}n.push(t)}_getLastTag(){if(this._tagStack.length){const t=this._tagStack[this._tagStack.length-1],{children:e}=t;if(e.length)return e[e.length-1]}else if(this.dom.length)return this.dom[this.dom.length-1]}}},function(t,e){t.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:t=>"tag"===t.type||"script"===t.type||"style"===t.type}},function(t,e){class n{constructor(t){this.components=t||[],this.length=t.length;for(let t=0;t<this.components.length;t++)this[t]=this.components[t]}get first(){return this[0]}get last(){return this[this.length-1]}each(t){for(const e of this.components)t(e);return this}remove(){for(const t of this.components)t.remove();return this}}n.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],t.exports=n},function(t,e,n){const r=n(3),i=n(299),o=n(300),s=n(303),a=n(304),c=n(305),u=n(306),l=n(307);t.exports={create({component:t,structureDirective:e}){return new(this.getDirectiveConstructor(e.type))({component:t,structureDirective:e})},getDirectiveConstructor(t){switch(t){case"editable":return i;case"image":return o;case"html":return s;case"link":return a;case"include":return c;case"toggle":return u;case"style":return l;default:r(!1,`Unsupported component directive: ${t}`)}}}},function(t,e,n){const r=n(39),i=n(86),o=n(37),s=n(146),a=n(7),c=n(4),u=/[\n\r]/g;class l extends r{constructor(){super(...arguments),this.tagWhitelist?this.editableValidator=new s({whitelist:this.tagWhitelist}):this.tagBlacklist&&(this.editableValidator=new s({blacklist:this.tagBlacklist}))}get placeholder(){return this.structureDirective.placeholder}getText(t={newlineReplacement:" "}){const e=this.getContent(),n=i(e),r=o(n,{plainText:!0,decodeHTML:!0});return!1===t.newlineReplacement?r:r.replace(u,t.newlineReplacement)}setContent(t){const e=a.updateEditableDirective(this.component,this,t);c.handle(e)}}l.prototype.isEditable=!0,t.exports=l},function(t,e,n){const r=n(301),i=n(3),o=n(155),s=n(88);let a=!1,c=!1;const u=n(7),l=n(4);class p extends s{setContent({originalUrl:t,url:e,width:n,height:r,mimeType:i,imageService:o,origins:s,crop:a}){const c=u.updateImageDirective(this.component,this,{originalUrl:t,url:e,width:n,height:r,mimeType:i,imageService:o,origins:s,crop:a,suppressEvents:!1});l.handle(c)}setTemporaryImage(t){const e=u.updateTmpImageDirective(this.component,this,t);l.handle(e)}setBase64Image(t){a||(a=!0,console.warn("ImageDirective.setBase64Image() is deprecated. Please use #setTemporaryImage().")),this.setTemporaryImage(t)}setImage({originalUrl:t,url:e,width:n,height:r,mimeType:i,imageService:o,origins:s},a){const c=u.updateImageDirective(this.component,this,{originalUrl:t,url:e,width:n,height:r,mimeType:i,imageService:o,origins:s,suppressEvents:a});l.handle(c)}setCrop(t,e){const n=u.updateImageDirective(this.component,this,{crop:t,suppressEvents:e});l.handle(n)}resetCrop(){this.setCrop(void 0)}hasDifferentContent(t){return this.getProcessedUrl()!==t}isBackgroundImage(){return!!this.setAsBackground}isInlineImage(){return!this.setAsBackground}isTemporaryImage(){return!!this.temporaryImage}isBase64(){return c||(c=!0,console.warn("ImageDirective.isBase64() is deprecated. Please use #isTemporaryImage().")),this.isTemporaryImage()}isGif(){return"image/gif"===this.content.mimeType}getOrigins(){return this.content.origins}getUrl(){return this.getOriginalUrl()}getOriginalUrl(){return this.content.originalUrl||this.content.url}getTemporaryUrl(){return this.temporaryImage}getMimeType(){return this.content.mimeType}getCrop(){return this.content.crop}getUncroppedUrl(){const t=this.getImageService(),e=this.getOriginalUrl();return t.getUncroppedUrl(e)}getProcessedUrl(t={}){const e=this.getOriginalUrl();if(this.hasDefaultImageService())return e;{const n=this.getImageService(),r=Object.assign({crop:this.content.crop},t);return n.getUrl(e,r)}}getImageUrl(){return console.warn("ImageDirective.getImageUrl() is deprecated. Use getProcessedUrl() instead"),this.getProcessedUrl()}getOriginalImageDimensions(){const{width:t,height:e}=this.content;return{width:t,height:e}}getImageService(){const t=this.content.imageService||void 0;return o.get(t)}getImageServiceName(){return this.getImageService().name}hasDefaultImageService(){return"default"===this.getImageServiceName()}processImageUrl(){this.hasDefaultImageService()||(this.content.originalUrl=this.getOriginalUrl(),this.content.url=this.getProcessedUrl())}setOrigins(t){t&&(Array.isArray(t)||(t=[t]),this.content.origins=t.map(t=>(i(t&&t.name&&t.identifier,"Error: setOrigins() must be called with an array name and identifier keys"),{name:t.name,identifier:t.identifier})))}setImageService(t){t&&function(t,e){i(o.has(e),`Error: could not find image service ${e}`);const n=o.get(e),r=t.getMimeType(),s=t.isBackgroundImage();return n.canProcessAsset(r,s)}(this,t)&&(this.content.imageService=t)}reset(){this.temporaryImage=void 0,this.content={}}serialize(){return r(this.content,t=>null==t)}deserialize(t){"string"==typeof t?this.content.url=t:super.deserialize(t)}}p.prototype.isImage=!0,t.exports=p},function(t,e,n){var r=n(12),i=n(302),o=n(154);t.exports=function(t,e){return o(t,i(r(e)))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},function(t,e,n){const r=n(39),i=n(7),o=n(4),s=i.updateHtmlDirective;class a extends r{get placeholder(){return this.structureDirective.placeholder}setEmbedHandler(t){this.setData("_embedHandler",t)}getEmbedHandler(){return this.getData("_embedHandler")}setContent(t){o.handle(s(this.component,this,t))}}a.prototype.isHtml=!0,t.exports=a},function(t,e,n){const r=n(39),i=n(7),o=n(4),s=i.updateLinkDirective;class a extends r{setContent(t){o.handle(s(this.component,this,t))}}a.prototype.isLink=!0,t.exports=a},function(t,e,n){const r=n(46),i=n(16),o=n(3),s=n(88),a=n(7),c=n(4),u=a.updateIncludeDirective;t.exports=class extends s{constructor(){super(arguments[0]),this.validate(),this.service?this.initService({service:this.service,defaultParams:this.defaultParams,label:this.label}):this.initServices()}initService(t){if(t){const{service:e,label:n,defaultParams:r,config:i}=t,o={service:e};n&&(o.label=n),r&&(o.params=r),i&&(this.config=i),this.content=o}else{const e={service:t.service};this.defaultParams&&(e.params=this.defaultParams),this.label&&(e.label=this.label),this.content=e}}initServices(){const t=this.services[0];return this.initService(t)}changeService(t){t!==this.getService()&&c.handle(u(this.component,this,{service:t}))}hasServices(){return!r(this.getServices())}get placeholder(){return this.structureDirective.placeholder}get isInclude(){return!0}getService(){return this.content.service}getServices(){return(this.services||[]).map(t=>({service:t.service,label:t.label}))}getParams(){return this.content.params}setContent(t){c.handle(u(this.component,this,t))}setParams(t){const e={...this.content,params:t};this.setContent(e)}addParams(t){const e=this.getParams()||{};this.setParams({...e,...t})}getLabel(){return this.content.label}refresh(){this&&this.component&&this.component.requestDirectiveViewUpdate(this.name)}validate(){const t=!r(this.service),e=!r(this.services);o(t||e,`include directive: service or services is required for directive: ${this.name}`),t?o(i(this.service),`include directive: service is expected to be a string for directive: ${this.name}`):(o(Array.isArray(this.services),`include directive: services is expected to be an array for directive: ${this.name}`),o(!r(this.services),"include directive: services is expected to contain at least "+`one service for directive ${this.name}`))}isResolved(){if(this.resolvedValue||""===this.resolvedValue)return!0}resolve(t){this.resolvedValue=t||(""===t?"":void 0)}}},function(t,e,n){const r=n(39),i=n(25),o=n(145),s=n(7),a=n(4);class c extends r{constructor(){super(...arguments),this.label=this.label||i.humanize(this.name);const t=!1!==this.default;this.deserialize(t)}setContent(t){const e=s.updateToggleDirective(this.component,this,t);a.handle(e)}deserialize(t){t=function(t){return!o(t)||t}(t),super.deserialize(t)}getLabel(){return this.label}isEmpty(){return null==this.getContent()}}c.prototype.isToggle=!0,t.exports=c},function(t,e,n){const r=n(88),i=n(7),o=n(4);t.exports=class extends r{get styles(){return this.properties}setContent(t){o.handle(i.updateStyleDirective(this.component,this,t))}setStyle(t,e){this.setContent({...this.content,[t]:e})}hasStyle(t){return!!this.properties[t]}getStyle(t){return this.content[t]}getStyleConfig(t){return this.properties[t]}listStyleNames(){return Object.keys(this.properties)}}},function(t,e,n){const r=n(1),i=n(57),o=n(7),s=n(4),a=n(309);t.exports=class{constructor({id:t,type:e}){this.id=t||i.next(),this.nodeType=e,this.parentContainer=void 0,this.next=void 0,this.previous=void 0,this.componentTree=void 0}before(t){if(t){const e=o.insertComponent(t,{next:this,parentContainer:this.parentContainer});return s.handle(e),this}return this.previous}after(t){if(t){const e=o.insertComponent(t,{previous:this,parentContainer:this.parentContainer});return s.handle(e),this}return this.next}replaceWith(t){const e=o.removeComponent(this),n=o.insertComponent(t,{next:this.next,parentContainer:this.parentContainer});return s.handle(e),s.handle(n),t}up(){const t=a.getPositionBeforeNode(this),e=o.moveComponent(this,t);return s.handle(e),this}down(){const t=a.getPositionAfterNode(this),e=o.moveComponent(this,t);return s.handle(e),this}remove(){const t=o.removeComponent(this);s.handle(t)}getParent(){return r(this.parentContainer,"parentComponent")}getParentId(){return r(this.parentContainer,["parentComponent","id"])}parents(t){let e=this;for(;e=e.getParent();)t(e)}parentContainers(t){let e=this;for(;null!=e;)t(e.parentContainer),e=e.getParent()}}},function(t,e){t.exports={getPositionAfterNode:t=>t.next?{previous:t.next,next:t.next.next?t.next.next:void 0,parentContainer:t.parentContainer}:{parentContainer:t.parentContainer},getPositionBeforeNode:t=>t.previous?{previous:t.previous.previous?t.previous.previous:void 0,next:t.previous,parentContainer:t.parentContainer}:{next:t.next,parentContainer:t.parentContainer}}},function(t,e){t.exports=class{constructor(t,e){this.component=t,this.initPositionRules(e)}initPositionRules(t){this.component.isPositionFixed="fixed"===t}resetPositionRules(){this.component.isPositionFixed=void 0}setPosition(t){this.resetPositionRules(),this.initPositionRules(t)}isValidPosition(t){let e=!0,n="A sibling";const{component:r}=this;if(r.parentContainer&&r.isPositionFixed&&(e=!1,n=r.componentName),t){const{next:n,previous:r}=t,i=n&&n.isPositionFixed,o=r&&r.isPositionFixed,s=o&&(!n||i);(i&&(!r||o)||s)&&(e=!1)}return e?{valid:!0}:{valid:!1,info:`"${n}" has a fixed position and does not allow`+" other components to be prepended or appended."}}isParentOfFixedPosition(){let t=!1;return this.component.descendants((function(e){e.isPositionFixed&&(t=!0)})),t}canRemove(){return!this.component.isPositionFixed&&!this.isParentOfFixedPosition()}}},function(t,e,n){const{assert:r}=n(2);t.exports=class{constructor({container:t,component:e,componentTree:n}){this.current=void 0,e?this.nextComponent=this.root=e:t||n?this.nextComponent=(this.root=t||n.root).first:r(!1,"new ComponentTreeIterator(): specify one of these params: container, component or componentTree")}hasNext(){return!!this.nextComponent}next({skipChildren:t}={}){if(this.current=this.nextComponent,!this.current)return;let e;if(!t)for(let t=0;t<this.current.containers.length;t++){const n=this.current.containers[t];if(n.first){e=n.first;break}}return e||(e=this.getNextComponent(this.current)),this.nextComponent=e,this.current}getNextComponent(t){if(!t||t===this.root)return;if(t.next)return t.next;const e=t.parentContainer;if(!e||e===this.root)return;let n=e;for(;n=n.getNextContainer();)if(n.first)return n.first;return this.getNextComponent(e.parentComponent)}}},function(t,e){var n;e=t.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,i=e.re=[],o=e.src=[],s=e.tokens={},a=0;function c(t){s[t]=a++}c("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",c("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",c("GTLT"),o[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",c("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[s.COERCERTL]=new RegExp(o[s.COERCE],"g"),c("LONETILDE"),o[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(o[s.TILDETRIM],"g");c("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),o[s.LONECARET]="(?:\\^)",c("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(o[s.CARETTRIM],"g");c("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(o[s.COMPARATORTRIM],"g");c("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<a;u++)n(u,o[u]),i[u]||(i[u]=new RegExp(o[u]));function l(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof p)return t;if("string"!=typeof t)return null;if(t.length>256)return null;if(!(e.loose?i[s.LOOSE]:i[s.FULL]).test(t))return null;try{return new p(t,e)}catch(t){return null}}function p(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof p){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(t,e);n("SemVer",t,e),this.options=e,this.loose=!!e.loose;var o=t.trim().match(e.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e<r)return e}return t})):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}e.parse=l,e.valid=function(t,e){var n=l(t,e);return n?n.version:null},e.clean=function(t,e){var n=l(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null},e.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(t){return n("SemVer.compare",this.version,this.options,t),t instanceof p||(t=new p(t,this.options)),this.compareMain(t)||this.comparePre(t)},p.prototype.compareMain=function(t){return t instanceof p||(t=new p(t,this.options)),d(this.major,t.major)||d(this.minor,t.minor)||d(this.patch,t.patch)},p.prototype.comparePre=function(t){if(t instanceof p||(t=new p(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var e=0;do{var r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return d(r,i)}while(++e)},p.prototype.compareBuild=function(t){t instanceof p||(t=new p(t,this.options));var e=0;do{var r=this.build[e],i=t.build[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return d(r,i)}while(++e)},p.prototype.inc=function(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(t,n).inc(e,r).version}catch(t){return null}},e.diff=function(t,e){if(v(t,e))return null;var n=l(t),r=l(e),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},e.compareIdentifiers=d;var h=/^[0-9]+$/;function d(t,e){var n=h.test(t),r=h.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1}function f(t,e,n){return new p(t,n).compare(new p(e,n))}function m(t,e,n){return f(t,e,n)>0}function g(t,e,n){return f(t,e,n)<0}function v(t,e,n){return 0===f(t,e,n)}function y(t,e,n){return 0!==f(t,e,n)}function _(t,e,n){return f(t,e,n)>=0}function b(t,e,n){return f(t,e,n)<=0}function x(t,e,n,r){switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t===n;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t!==n;case"":case"=":case"==":return v(t,n,r);case"!=":return y(t,n,r);case">":return m(t,n,r);case">=":return _(t,n,r);case"<":return g(t,n,r);case"<=":return b(t,n,r);default:throw new TypeError("Invalid operator: "+e)}}function C(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof C){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof C))return new C(t,e);n("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===w?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(t,e){return d(e,t)},e.major=function(t,e){return new p(t,e).major},e.minor=function(t,e){return new p(t,e).minor},e.patch=function(t,e){return new p(t,e).patch},e.compare=f,e.compareLoose=function(t,e){return f(t,e,!0)},e.compareBuild=function(t,e,n){var r=new p(t,n),i=new p(e,n);return r.compare(i)||r.compareBuild(i)},e.rcompare=function(t,e,n){return f(e,t,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compareBuild(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.compareBuild(r,t,n)}))},e.gt=m,e.lt=g,e.eq=v,e.neq=y,e.gte=_,e.lte=b,e.cmp=x,e.Comparator=C;var w={};function E(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof E)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new E(t.raw,e);if(t instanceof C)return new E(t.value,e);if(!(this instanceof E))return new E(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(t){return this.parseRange(t.trim())}),this).filter((function(t){return t.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);this.format()}function I(t,e){for(var n=!0,r=t.slice(),i=r.pop();n&&r.length;)n=r.every((function(t){return i.intersects(t,e)})),i=r.pop();return n}function S(t){return!t||"x"===t.toLowerCase()||"*"===t}function T(t,e,n,r,i,o,s,a,c,u,l,p,h){return((e=S(n)?"":S(r)?">="+n+".0.0":S(i)?">="+n+"."+r+".0":">="+e)+" "+(a=S(c)?"":S(u)?"<"+(+c+1)+".0.0":S(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function A(t,e,r){for(var i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(i=0;i<t.length;i++)if(n(t[i].semver),t[i].semver!==w&&t[i].semver.prerelease.length>0){var o=t[i].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}function D(t,e,n){try{e=new E(e,n)}catch(t){return!1}return e.test(t)}function O(t,e,n,r){var i,o,s,a,c;switch(t=new p(t,r),e=new E(e,r),n){case">":i=m,o=b,s=g,a=">",c=">=";break;case"<":i=g,o=_,s=m,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(D(t,e,r))return!1;for(var u=0;u<e.set.length;++u){var l=e.set[u],h=null,d=null;if(l.forEach((function(t){t.semver===w&&(t=new C(">=0.0.0")),h=h||t,d=d||t,i(t.semver,h.semver,r)?h=t:s(t.semver,d.semver,r)&&(d=t)})),h.operator===a||h.operator===c)return!1;if((!d.operator||d.operator===a)&&o(t,d.semver))return!1;if(d.operator===c&&s(t,d.semver))return!1}return!0}C.prototype.parse=function(t){var e=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],n=t.match(e);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=w},C.prototype.toString=function(){return this.value},C.prototype.test=function(t){if(n("Comparator.test",t,this.options.loose),this.semver===w||t===w)return!0;if("string"==typeof t)try{t=new p(t,this.options)}catch(t){return!1}return x(t,this.operator,this.semver,this.options)},C.prototype.intersects=function(t,e){if(!(t instanceof C))throw new TypeError("a Comparator is required");var n;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new E(t.value,e),D(this.value,n,e));if(""===t.operator)return""===t.value||(n=new E(this.value,e),D(t.semver,n,e));var r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),o=this.semver.version===t.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=x(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=x(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||i||o&&s||a||c},e.Range=E,E.prototype.format=function(){return this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim(),this.range},E.prototype.toString=function(){return this.range},E.prototype.parseRange=function(t){var e=this.options.loose;t=t.trim();var r=e?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];t=t.replace(r,T),n("hyphen replace",t),t=t.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",t,i[s.COMPARATORTRIM]),t=(t=(t=t.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=e?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=t.split(" ").map((function(t){return function(t,e){return n("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){n("caret",t,e);var r=e.loose?i[s.CARETLOOSE]:i[s.CARET];return t.replace(r,(function(e,r,i,o,s){var a;return n("caret",t,e,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(t,e)})).join(" ")}(t,e),n("caret",t),t=function(t,e){return t.trim().split(/\s+/).map((function(t){return function(t,e){var r=e.loose?i[s.TILDELOOSE]:i[s.TILDE];return t.replace(r,(function(e,r,i,o,s){var a;return n("tilde",t,e,r,i,o,s),S(r)?a="":S(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":S(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(t,e)})).join(" ")}(t,e),n("tildes",t),t=function(t,e){return n("replaceXRanges",t,e),t.split(/\s+/).map((function(t){return function(t,e){t=t.trim();var r=e.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return t.replace(r,(function(r,i,o,s,a,c){n("xRange",t,r,i,o,s,a,c);var u=S(o),l=u||S(s),p=l||S(a),h=p;return"="===i&&h&&(i=""),c=e.includePrerelease?"-0":"",u?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&h?(l&&(s=0),a=0,">"===i?(i=">=",l?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",l?o=+o+1:s=+s+1),r=i+o+"."+s+"."+a+c):l?r=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c:p&&(r=">="+o+"."+s+".0"+c+" <"+o+"."+(+s+1)+".0"+c),n("xRange return",r),r}))}(t,e)})).join(" ")}(t,e),n("xrange",t),t=function(t,e){return n("replaceStars",t,e),t.trim().replace(i[s.STAR],"")}(t,e),n("stars",t),t}(t,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(t){return!!t.match(o)}))),a=a.map((function(t){return new C(t,this.options)}),this)},E.prototype.intersects=function(t,e){if(!(t instanceof E))throw new TypeError("a Range is required");return this.set.some((function(n){return I(n,e)&&t.set.some((function(t){return I(t,e)&&n.every((function(n){return t.every((function(t){return n.intersects(t,e)}))}))}))}))},e.toComparators=function(t,e){return new E(t,e).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))},E.prototype.test=function(t){if(!t)return!1;if("string"==typeof t)try{t=new p(t,this.options)}catch(t){return!1}for(var e=0;e<this.set.length;e++)if(A(this.set[e],t,this.options))return!0;return!1},e.satisfies=D,e.maxSatisfying=function(t,e,n){var r=null,i=null;try{var o=new E(e,n)}catch(t){return null}return t.forEach((function(t){o.test(t)&&(r&&-1!==i.compare(t)||(i=new p(r=t,n)))})),r},e.minSatisfying=function(t,e,n){var r=null,i=null;try{var o=new E(e,n)}catch(t){return null}return t.forEach((function(t){o.test(t)&&(r&&1!==i.compare(t)||(i=new p(r=t,n)))})),r},e.minVersion=function(t,e){t=new E(t,e);var n=new p("0.0.0");if(t.test(n))return n;if(n=new p("0.0.0-0"),t.test(n))return n;n=null;for(var r=0;r<t.set.length;++r){t.set[r].forEach((function(t){var e=new p(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":n&&!m(n,e)||(n=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}}))}if(n&&t.test(n))return n;return null},e.validRange=function(t,e){try{return new E(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,n){return O(t,e,"<",n)},e.gtr=function(t,e,n){return O(t,e,">",n)},e.outside=O,e.prerelease=function(t,e){var n=l(t,e);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(t,e,n){return t=new E(t,n),e=new E(e,n),t.intersects(e)},e.coerce=function(t,e){if(t instanceof p)return t;"number"==typeof t&&(t=String(t));if("string"!=typeof t)return null;var n=null;if((e=e||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(t))&&(!n||n.index+n[0].length!==t.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=t.match(i[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),e)}},function(t,e,n){t.exports=n(314)},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,n){const{assert:r}=n(2);t.exports=class{constructor({type:t,src:e,code:n,name:i,version:o,namespace:s,isExecuteOnly:a,component:c}){this.type=t,this.src=e,this.code=n,this.namespace=s,this.name=i,this.version=o,this.isExecuteOnly=a,r(this.src||this.code,'Dependency: No "src" or "code" param provided'),r(!(this.src&&this.code),'Dependency: Only provide one of "src" or "code" params'),r(this.type,"Dependency: Param type must be specified"),r(["js","css"].includes(this.type),`Dependency: Unrecognized type: ${this.type}`),this.code&&(this.inline=!0),this.components={},this.componentCount=0,c&&this.addComponent(c)}isJs(){return"js"===this.type}isCss(){return"css"===this.type}hasComponent(t){return null!=this.components[t.id]}addComponent(t){this.hasComponent(t)||(this.componentCount+=1,this.components[t.id]=!0)}forceExecution(){this.isExecuteOnly=!0}removeComponent(t){return!this.hasComponent(t)||(this.componentCount-=1,this.components[t.id]=void 0,0!==this.componentCount)}isSameAs(t){return this.type===t.type&&(this.namespace===t.namespace&&(t.src?this.src===t.src:this.code===t.code))}serialize(){r(!this.isExecuteOnly,"engine//dependency.js: Cannot serialize a temporary dependency");const t={};for(const e of["src","code","inline","name","version","namespace"])this[e]&&(t[e]=this[e]);for(const e in this.components)t.componentIds||(t.componentIds=[]),t.componentIds.push(e);return t}}},function(t,e,n){const r=n(317);t.exports={printJs:function(t){let e="";for(const n of Array.from(t.js))n.inline?e+=this.printInlineScript({codeBlock:n.code}):e+=this.printScriptTag({src:n.src}),e+="\n";return e},printCss:function(t){let e="";for(const n of Array.from(t.css))n.inline?e+=this.printInlineCss({styles:n.code}):e+=this.printCssLink({src:n.src}),e+="\n";return e},printScriptTag:function({src:t}){return`<script src="${t}"><\/script>`},printInlineScript:function({codeBlock:t}){return`<script> ${t=r.prepareInlineCode(t)} <\/script>`},printCssLink:function({src:t,head:e}){"boolean"!=typeof e&&(e=!0);if(e)return`<link rel="stylesheet" type="text/css" href="${t}">`;return`<link rel="stylesheet" type="text/css" href="${t}">`},printInlineCss:function({styles:t}){return`<style> ${t=r.prepareInlineStyles(t)} </style>`},printComment:function(t){return`\x3c!-- ${t} --\x3e`}}},function(t,e){const n=/<style[^>]*>|<\/style>/gi,r=/<script[^>]*>|<\/script>/gi;t.exports={prepareInlineStyles:t=>t.replace(n,""),prepareInlineCode:t=>t.replace(r,"")}},function(t,e){t.exports=class{constructor(t){this.design=t,this.components=this.design.components}getTransformations({structure:t,componentName:e,oneWay:n=!1,directives:r,filter:i}){e&&(t=this.design.getComponentStructure(e));const o=[];return this.design.eachStructure(e=>{if(t.name===e.name)return;if(i&&!i(e))return;const s=this.isCompatible(t,e,{oneWay:n,directives:r});s.isCompatible&&(s.structure=e,o.push(s))}),o.length?o:void 0}getOptionsList({structure:t,componentName:e,oneWay:n,directives:r,filter:i}){e&&(t=this.design.getComponentStructure(e));const o=this.getTransformations({structure:t,oneWay:n,directives:r,filter:i}),s=[];for(const n of Array.from(o||[]))e=n.name,t=n.structure,s.push({label:t.label,componentName:e});return s}isCompatible(t,e,n={}){const r={name:e.name,isCompatible:!0,mapping:{}},i=this.getSelectedDirectives(t,n);for(const n of i){const{name:i,type:o}=n;if(!["editable","image","link"].includes(o)){r.isCompatible=!1;continue}const s=e.directives.get(i);1===t.directives.count(o)&&1===e.directives.count(o)?r.mapping[i]=e.directives[o][0].name:s&&s.type===o?r.mapping[i]=i:(r.mapping[i]=null,r.isCompatible=!1)}return n.oneWay||t.directives.length===e.directives.length||(r.isCompatible=!1),r}getSelectedDirectives(t,e){let n;return e.directives?(e.oneWay=!0,n=e.directives.map(e=>t.directives.get(e))):n=t.directives,n||[]}}},function(t,e,n){var r=n(36),i=n(159)((function(t,e,n){r(t,n,e)}));t.exports=i},function(t,e){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}},function(t,e,n){var r=n(30);t.exports=function(t,e,n,i){return r(t,(function(t,r,o){e(i,t,n(t),o)})),i}},function(t,e,n){const r=n(3),i=n(25),o=n(156),s=n(153);function a(t,e){return t.name>e.name?1:t.name<e.name?-1:0}t.exports=class{constructor({name:t,label:e,description:n,iconUrl:s,directives:a,properties:c,allowedParents:u}){this.name=t,this.properties=c,this.allowedParents=u,this.description=n,this.iconUrl=s,r.param(this.name,"new ComponentStructure()","name"),this.label=e||i.humanize(this.name),this.styles=this.properties=this.properties||{},this.directives=new o({directives:a}),this.allowedParents&&r(this.allowedParents.length,"AllowedParents must be an array or undefined")}setDesign(t){this.design=t,this.identifier=`${t.name}.${this.name}`}setSkin(t){this.skin=t}getSkin(){return this.skin?this.skin:this.design?this.design.getComponentSkin(this.name):void 0}createModel({id:t}={}){return new s({id:t,structure:this})}equals(t){if(this.design&&t&&t.design)return this.design.identifier===t.design.identifier&&this.name===t.name;throw new Error("Can not determine component structure equality: not implemented")}info(){const t={name:this.name,directives:[],styles:[]};for(const{name:e,type:n}of this.directives)t.directives.push({name:e,type:n});for(const e of Object.keys(this.properties))t.properties.push({name:e,type:"cssModificator"});return t.directives.sort(a),t.properties.sort(a),t}isSkinCompatible(t){}}},function(t,e,n){const r=n(3),i=n(37);t.exports=class{constructor({name:t,dom:e}){this.name=t,this.dom=e,r.param(this.name,"new ComponentSkin","name"),r.param(this.dom,"new ComponentSkin","dom"),this.assertRootElem()}assertRootElem(){r(1===this.dom.length,`Invalid HTML Template: The component '${this.name}' has more than one `+"root element in its HTML template. Please wrap your markup in one element.")}toHtml(t){return i(this.dom,t)}}},function(t,e,n){const r=n(325),i=n(86),o=n(334);t.exports=function(t){const e=i(r(t));if(!e.length)throw new Error("no template provided");if(e.length>1)throw new Error("more than one root element. Please wrap your markup in one element");const n=new o(e);return{directives:n.directives,skin:n.tree.children}}},function(t,e,n){var r=n(117),i=n(326),o=n(327),s=n(330),a=n(331),c=n(116),u=/^\s+|\s+$/g;t.exports=function(t,e,n){if((t=c(t))&&(n||void 0===e))return t.replace(u,"");if(!t||!(e=r(e)))return t;var l=a(t),p=a(e),h=s(l,p),d=o(l,p)+1;return i(l,h,d).join("")}},function(t,e,n){var r=n(90);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},function(t,e,n){var r=n(91);t.exports=function(t,e){for(var n=t.length;n--&&r(e,t[n],0)>-1;);return n}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(91);t.exports=function(t,e){for(var n=-1,i=t.length;++n<i&&r(e,t[n],0)>-1;);return n}},function(t,e,n){var r=n(332),i=n(160),o=n(333);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[o+r+"?",r,s,a,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+l+u,"g");t.exports=function(t){return t.match(p)||[]}},function(t,e,n){const r=n(335),i=n(337),o=n(1),{decodeHTML:s}=n(55),{log:a}=n(2),c=n(25),u=n(341),l=n(37),p=n(92),h=n(342);t.exports=class{constructor(t){this.directives=[],this.tree=this.parseNode({type:"fragment",children:t})}parseNode(t){switch(t.type){case"text":return this.parseTextNode(t);case"tag":case"fragment":return this.parseElementNode(t);case"comment":case"script":return;default:throw new Error(`Parsing component template: Unrecognized node type '${t.type}'`)}}parseTextNode(t){return{type:"text",data:t.data}}parseElementNode(t){let e=!1;const n={type:t.type};if(t.name&&(n.name=t.name),t.attribs){const r=h.parseAttributes(t.attribs),i=r.attributes;if(i&&(n.attribs=i),r.directives){const i=this.parseDirectives(r.directives,t),o=i.directives;e=i.skipChildren;const s={};for(const t of o)s[t.type]=t.name;n.directives=s,this.directives=this.directives.concat(o)}}if(!e&&t.children&&t.children.length)for(const e of t.children){const t=this.parseNode(e);t&&(n.children||(n.children=[]),n.children.push(t))}return n}parseDirectives(t,e){let n,i={};for(const{name:r,type:o}of Array.from(t)){p.doesOverwriteContent(o)&&(n=!0);const t=this.createDirective(r,o,e);i[o]=t}return i=this.processOptionalDirective(i,e),{directives:t=r(i),skipChildren:n}}createDirective(t,e,n){const r={type:e,name:t};let i,o;switch(e){case"editable":i=this.getText(n),i=c.trim(i),i=s(i),r.placeholder=i,r.tag=n.name;break;case"image":r.tag=n.name,r.setAsBackground="img"!==n.name;break;case"html":case"include":o=this.getContentHtml(n),r.placeholder=o}return r}processOptionalDirective(t,e){if(t.optional){let n;return(n=t.editable)?n.optional=!0:a.error(`<${e.name}>: doc-optional can only be used in conjunction with doc-editable`),i(t,"optional")}return t}getText(t){let e,n="";const r=new u({firstNode:t,isRoot:!0});for(;e=r.next();)"text"===e.type&&(n+=e.data);return n}getContentHtml(t){if(o(t,"children.length"))return l(t.children)}}},function(t,e,n){var r=n(336),i=n(14);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(13);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e,n){var r=n(13),i=n(69),o=n(161),s=n(23),a=n(22),c=n(340),u=n(121),l=n(75),p=u((function(t,e){var n={};if(null==t)return n;var u=!1;e=r(e,(function(e){return e=s(e,t),u||(u=e.length>1),e})),a(t,l(t),n),u&&(n=i(n,7,c));for(var p=e.length;p--;)o(n,e[p]);return n}));t.exports=p},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(53),i=n(90);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},function(t,e,n){var r=n(130);t.exports=function(t){return r(t)?void 0:t}},function(t,e){t.exports=class{constructor({firstNode:t,isRoot:e}){this._next=t,this.current=t,e&&(this.root=t)}next(){let t=this.current=this._next;if(this.current){let e;if(t.children&&t.children.length&&(e=t.children[0]),e&&"tag"===t.type)this._next=e;else{let e;for(;t&&t!==this.root&&!(e=t.next);)t=t.parent;this._next=e}}return this.current}nextElement(){for(;this.next()&&"tag"!==this.current.type;);return this.current}detach(){this.root=null,this._next=null,this.current=null}}},function(t,e,n){const r=/^(doc-|data-doc-|x-doc-)(.*)/,i=/(^| )doc-section($| )/,o=n(92);t.exports={parseAttributes(t){let e,n;for(const r of Object.keys(t)){const i=t[r],o=this.scanAttribute(r,i,!0);o?(n||(n=[]),n.push(o)):(e||(e={}),e[r]=i)}return{attributes:e,directives:n}},getDirectiveTypes(t){if(!t||!t.length)return;const e={};let n=!1;for(const r of Array.from(t||[])){const t=r.name||r.nodeName,i=r.value||r.nodeValue,o=this.scanAttribute(t,i);o&&(n=!0,e[o.type]=o.name)}return n?e:void 0},scanAttribute(t,e,n){let s=r.exec(t);if(s){const r=s[2];if(o.exists(r))return{type:r,name:e};if(n)throw new Error(`Unrecognized directive attribute '${t}'`)}else if("class"===t&&(s=i.exec(e),s))return{type:"container",name:"content"}},convertBrowserAttributes(t){if(t&&t.length)return Array.from(t||[]).reduce((t,e)=>(t[e.name||e.nodeName]=e.value||e.nodeValue,t),{})}}},function(t,e,n){const r=n(162),i=n(94),o=r.new();t.exports=o,o.add("container",{type:"string",name:"string",allowedChildren:"array of string, optional",defaultContent:"array of object, optional",defaultComponents:{__validate:"optional",paragraph:"string, optional",image:"string, optional"},__additionalProperty:(t,e)=>!1}),o.add("editable",{type:"string",name:"string",tag:"string",placeholder:"string, optional",optional:"boolean, optional",plainText:"boolean, optional",tagWhitelist:"array of string, optional",tagBlacklist:"array of string, optional",excludeFromTextCount:"boolean, optional",__additionalProperty:(t,e)=>!1}),o.add("html",{type:"string",name:"string",placeholder:"string, optional",__additionalProperty:(t,e)=>!1}),o.add("include",{type:"string",name:"string",label:"string, optional",placeholder:"string, optional",service:"string, optional",defaultParams:"object, optional",services:"array of service, optional",config:"object, optional",__additionalProperty:(t,e)=>!1}),o.add("image",{type:"string",name:"string",tag:"string",setAsBackground:"boolean",imageRatios:"array of imageRatio, optional",allowOriginalRatio:"boolean, optional",srcSet:{__validate:"optional",defaultWidth:"number, optional",widths:"array of number, optional",sizes:"array of string, optional"},backgroundImage:{__validate:"optional",maxWidth:"number, optional"},__additionalProperty:(t,e)=>!1}),o.add("imageRatio",(function(t){return t instanceof i||"must be an ImageRatio instance"})),o.add("service",{service:"string",label:"string",defaultParams:"object, optional",config:"object, optional",__additionalProperty:(t,e)=>!1}),o.add("link",{type:"string",name:"string",prefill:"object, optional",__additionalProperty:(t,e)=>!1}),o.add("optional",{type:"string",name:"string, optional",__additionalProperty:(t,e)=>!1}),o.add("toggle",{type:"string",name:"string",default:"boolean, optional",label:"string, optional",__additionalProperty:(t,e)=>!1}),o.add("style",{type:"string",name:"string",properties:"object, optional",__additionalProperty:(t,e)=>!1})},function(t,e,n){var r,i,o,s;i=n(345),r=n(346),s=n(347),o=n(93),t.exports=function(){var t;function e(){this.validators=Object.create(s),this.schemas={},this.propertiesRequired=!0,this.allowAdditionalProperties=!0}return t=/^[a-zA-Z]\w*$/,e.prototype.configure=function(t){this.propertiesRequired=t.propertiesRequired,this.allowAdditionalProperties=t.allowAdditionalProperties},e.prototype.add=function(t,e){return o.isFunction(e)?this.addValidator(t,e):this.addSchema(t,this.parseConfigObj(e,void 0,t)),this},e.prototype.addSchema=function(t,e){if(null!=this.validators[t])throw new Error("A validator is alredy registered under this name: "+t);var n;return this.schemas[t]=e,this.validators[t]=(n=this,function(t){var r;return!(r=n.recursiveValidate(e,t)).hasErrors()||r}),this},e.prototype.addValidator=function(t,e){return this.validators[t]=e,this},e.prototype.validate=function(t,e){var n;return this.errors=void 0,null==(n=this.schemas[t])?(this.errors=new i,this.errors.add("missing schema",{location:t}),!1):(this.errors=this.recursiveValidate(n,e).setRoot(t),!this.errors.hasErrors())},e.prototype.hasErrors=function(){var t;return null!=(t=this.errors)?t.hasErrors():void 0},e.prototype.getErrorMessages=function(){var t;return null!=(t=this.errors)?t.getMessages():void 0},e.prototype.recursiveValidate=function(t,e){var n,r,s,a,c;for(r in s=t.__validator,n=new i,s.validate(e,n),e)c=e[r],null!=t[r]?(a=t[r].__validator).validate(c,n)&&null==a.childSchemaName&&o.isObject(c)&&n.join(this.recursiveValidate(t[r],c)):s.validateOtherProperty(r,c,n);return n},e.prototype.parseConfigObj=function(t,e){var n,i,s;for(n in null==e&&(e=new r({inputString:"object",scheme:this})),t)s=t[n],this.addParentValidator(e,n,s)||(o.isString(s)?(i=new r({inputString:s,property:n,parent:e,scheme:this}),t[n]={__validator:i}):o.isObject(s)&&(i=new r({inputString:"object",property:n,parent:e,scheme:this}),t[n]=this.parseConfigObj(s,i)));return t.__validator=e,t},e.prototype.addParentValidator=function(t,e,n){switch(e){case"__validate":t.addValidations(n);break;case"__additionalProperty":o.isFunction(n)&&(t.otherPropertyValidator=n);break;default:return!1}return!0},e.prototype.writeProperty=function(e){return t.test(e)?"."+e:"['"+e+"']"},e}()},function(t,e,n){var r;r=n(93),t.exports=function(){function t(){}return t.prototype.hasErrors=function(){return null!=this.errors},t.prototype.setRoot=function(t){return this.root=t,this},t.prototype.add=function(e,n){var i,o,s,a;if(s=(a=null!=n?n:{}).location,i=a.defaultMessage,!1===e&&(e=i),void 0===e&&(e="validator returned undefined. Check your validator implementation."),null==this.errors&&(this.errors=[]),r.isString(e))this.errors.push({path:s,message:e});else if(e instanceof t)this.join(e,{location:s});else{if(!e.path||!e.message)throw new Error("ValidationError.add() unknown error type");o=e,this.errors.push({path:s+o.path,message:o.message})}return!1},t.prototype.join=function(t,e){var n,r,i,o,s,a;if(r=t.errors,i=(null!=e?e:{}).location,null!=r&&r.length){for(null==this.errors&&(this.errors=[]),a=[],o=0,s=r.length;o<s;o++)n=r[o],a.push(this.errors.push({path:(i||"")+n.path,message:n.message}));return a}},t.prototype.getMessages=function(){var t,e,n,r,i;for(e=[],n=0,r=(i=this.errors||[]).length;n<r;n++)t=i[n],e.push(""+(this.root||"")+t.path+": "+t.message);return e},t}()},function(t,e){t.exports=function(){var t;function e(t){var e;this.inputString=t.inputString,this.scheme=t.scheme,this.property=t.property,this.parent=t.parent,this.validators=[],this.location=this.getLocation(),this.scheme.propertiesRequired&&null!=(e=this.parent)&&e.addRequiredProperty(this.property),this.addValidations(this.inputString)}return t=/\w[\w ]*\w/g,e.prototype.getLocation=function(){return null==this.property?"":null!=this.parent?this.parent.location+this.scheme.writeProperty(this.property):this.scheme.writeProperty(this.property)},e.prototype.getPropLocation=function(t){return""+this.location+this.scheme.writeProperty(t)},e.prototype.addValidations=function(e){for(var n,r;n=t.exec(e);)"optional"===(r=n[0])?this.parent.removeRequiredProperty(this.property):"required"===r?this.parent.addRequiredProperty(this.property):0===r.indexOf("array of ")?(this.validators.push("array"),this.arrayValidator=r.slice(9)):-1!==r.indexOf(" or ")?(r.split(" or "),console.log("todo")):this.validators.push(r)},e.prototype.validate=function(t,e){var n,r,i,o,s,a,c,u;if(n=!0,null==t&&this.isOptional())return n;for(s=this.scheme.validators,a=0,c=(u=this.validators||[]).length;a<c;a++){if(null==(o=s[r=u[a]]))return e.add("missing validator "+r,{location:this.location});!0!==(i=o(t))&&(e.add(i,{location:this.location,defaultMessage:r+" validator failed"}),n=!1)}return!!(n=this.validateArray(t,e))&&(!!(n=this.validateRequiredProperties(t,e))&&n)},e.prototype.validateArray=function(t,e){var n,r,i,o,s,a,c,u;if(null==this.arrayValidator)return!0;if(r=!0,null==(s=this.scheme.validators[this.arrayValidator]))return e.add("missing validator "+this.arrayValidator,{location:this.location});for(n=a=0,c=(u=t||[]).length;a<c;n=++a)!0!==(o=s(u[n]))&&(i=this.location+"["+n+"]",e.add(o,{location:i,defaultMessage:this.arrayValidator+" validator failed"}),r=!1);return r},e.prototype.validateOtherProperty=function(t,e,n){return null!=this.otherPropertyValidator?(this.scheme.errors=void 0,!!this.otherPropertyValidator.call(this,t,e)||(null!=this.scheme.errors?n.join(this.scheme.errors,{location:this.getPropLocation(t)}):n.add("additional property check failed",{location:this.getPropLocation(t)}),!1)):!!this.scheme.allowAdditionalProperties||(n.add("unspecified additional property",{location:this.getPropLocation(t)}),!1)},e.prototype.validateRequiredProperties=function(t,e){var n,r,i,o;for(i in r=!0,o=this.requiredProperties)n=o[i],null==t[i]&&n&&(e.add("required property missing",{location:this.getPropLocation(i)}),r=!1);return r},e.prototype.addRequiredProperty=function(t){return null==this.requiredProperties&&(this.requiredProperties={}),this.requiredProperties[t]=!0},e.prototype.removeRequiredProperty=function(t){var e;return null!=(e=this.requiredProperties)?e[t]=void 0:void 0},e.prototype.isOptional=function(){if(null!=this.parent)return!0==!this.parent.requiredProperties[this.property]},e}()},function(t,e,n){var r;r=n(93),t.exports={object:function(t){return r.isObject(t)},string:function(t){return r.isString(t)},boolean:function(t){return r.isBoolean(t)},number:function(t){return r.isNumber(t)},function:function(t){return r.isFunction(t)},date:function(t){return r.isDate(t)},regexp:function(t){return r.isRegExp(t)},array:function(t){return r.isArray(t)},falsy:function(t){return!1==!!t},truthy:function(t){return!0==!!t},"not empty":function(t){return!0==!!t},deprecated:function(t){return!0}}},function(t,e,n){const r=n(78);t.exports=class{setHandleFunction(t){this.handle=t}handleViolation(t){this.handle?this.handle(t):r(!1,t.message)}}},function(t,e,n){const r=n(1),i=n(17),o=n(62),s=n(350),a=n(354),c=n(357),u=n(3),l=n(89);t.exports=class{constructor(t,e){this.onTreeChange=this.onTreeChange.bind(this),this.extractAll=this.extractAll.bind(this),this.onComponentChange=this.onComponentChange.bind(this),this.componentTree=t,this.fieldMapping=e,this.metadataConfig=e,this.fields={},this.initEvents(),this.extractAll(),this.setupListeners()}setupListeners(){this.componentTree.componentAdded.add(this.onTreeChange),this.componentTree.componentRemoved.add(this.onTreeChange),this.componentTree.componentMoved.add(this.onTreeChange),this.componentTree.componentContentChanged.add(this.onComponentChange)}onTreeChange(t){const e=t.componentName,n=this.fieldMapping.getComponentMap()[e],r={};let o=!1;const s=this.extractFields(n);for(const t in s){const e=s[t];i(this.fields[t],e)||(o=!0,r[t]=this.fields[t]=e)}o&&this.fieldsChanged.fire(r,this.fields)}isFieldCandidate(t,e){const n=e.component.componentName,r=e.name;return this.fieldMapping.getFieldsBySource(n,r).includes(t)}extractAll(){const t=this.fieldMapping.getListOfFields();return this.fields=this.extractFields(t),this.fieldsChanged.fire(this.fields,this.fields),this.fields}extractFields(t){const e={},n=new Map,r=this.fieldMapping.getComponentMap();for(const e of Object.keys(r)){const i=a(r[e],t);i.length&&n.set(e,i)}for(const t of this.componentTree.descendantsIterator()){const r=t.componentName;if(0===n.size)break;const i=n.get(r);if(!i)continue;const o=this.extractFieldsFromComponent(t,i);for(const t of Object.keys(o)){const r=o[t];for(const[e,r]of n){const i=c(r,t);i.length?n.set(e,i):n.delete(e)}e[t]=r}}return e}extractFieldsFromComponent(t,e){const n={},r=t.componentName;return e.forEach(e=>{this.fieldMapping.getDirectivesByComponentAndField(r,e).forEach(r=>{if(n[e])return;const i=t.directives.get(r);if(i.isEmpty())return;const o=this.extractFieldFromDirective(i,e);n[e]=o})}),n}onComponentChange(t,e){const n=t.componentName,r=this.fieldMapping.getFieldsBySource(n,e),i={},a=[],c=t.directives.get(e);for(const e of r){const n=c.isEmpty()?void 0:this.extractFieldFromDirective(c,e),r=this.checkChangedField(e,n,t);r&&(r.needsExtraction&&a.push(e),r.hasChanged&&(this.fields[e]=i[e]=n))}a.length&&o(this.extractFields(a),(t,e)=>{i[e]=t,this.fields[e]=t}),s(i)&&this.fieldsChanged.fire(i,this.fields)}checkChangedField(t,e,n){const o=null==e,s=null==this.fields[t],a=r(this.fields[t],"component.id")===n.id,c=n.componentTree;if(o&&a)return{hasChanged:!0,needsExtraction:!0};if((()=>(s||a)&&!i(this.fields[t],e))())return{hasChanged:!0};if(!o&&!a){const e=c.indexOf(this.fields[t].component),r=c.indexOf(n),i=()=>-1!==r&&-1===e;if((()=>e>r)()||i())return{hasChanged:!0}}return{hasChanged:!1}}initEvents(){this.fieldsChanged=l()}extractFieldFromDirective(t,e){const n=this.fieldMapping.getConfigMap()[e],r=n.type;if("text"===r)return this.extractTextField(t);if("image"===r){if(!t.isTemporaryImage())return this.extractImageField(t)}else{if("cssProperty"===r)return this.extractStyleField(t,n.cssProperty);u(!1,`Unknown template type ${r}`)}}extractTextField(t){return{content:t.getContent(),component:t.component,directiveName:t.name,text:t.getText(),type:"text"}}extractImageField(t){return{component:t.component,directiveName:t.name,type:"image",image:{originalUrl:t.getOriginalUrl(),url:t.getProcessedUrl(),width:r(t.getOriginalImageDimensions(),"width"),height:r(t.getOriginalImageDimensions(),"height"),mimeType:t.getMimeType(),imageService:t.getImageServiceName()}}}extractStyleField(t,e){const n={content:t.getContent(),component:t.component,directiveName:t.name,type:"cssProperty"};return e&&(n.cssProperty=t.getStyle(e)),n}getFields(){return this.fields}}},function(t,e,n){var r=n(66),i=n(20),o=n(11),s=n(16),a=n(351);t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?a(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},function(t,e,n){var r=n(352),i=n(160),o=n(353);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e,n){var r=n(141)("length");t.exports=r},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[o+r+"?",r,s,a,n].join("|")+")",p=RegExp(i+"(?="+i+")|"+l+u,"g");t.exports=function(t){for(var e=p.lastIndex=0;p.test(t);)++e;return e}},function(t,e,n){var r=n(13),i=n(355),o=n(82),s=n(356),a=o((function(t){var e=r(t,s);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=a},function(t,e,n){var r=n(84),i=n(163),o=n(164),s=n(13),a=n(34),c=n(85),u=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,p=t[0].length,h=t.length,d=h,f=Array(h),m=1/0,g=[];d--;){var v=t[d];d&&e&&(v=s(v,a(e))),m=u(v.length,m),f[d]=!n&&(e||p>=120&&v.length>=120)?new r(d&&v):void 0}v=t[0];var y=-1,_=f[0];t:for(;++y<p&&g.length<m;){var b=v[y],x=e?e(b):b;if(b=n||0!==b?b:0,!(_?c(_,x):l(g,x,n))){for(d=h;--d;){var C=f[d];if(!(C?c(C,x):l(t[d],x,n)))continue t}_&&_.push(x),g.push(b)}}return g}},function(t,e,n){var r=n(81);t.exports=function(t){return r(t)?t:[]}},function(t,e,n){var r=n(358),i=n(82),o=n(81),s=i((function(t,e){return o(t)?r(t,e):[]}));t.exports=s},function(t,e,n){var r=n(84),i=n(163),o=n(164),s=n(13),a=n(34),c=n(85);t.exports=function(t,e,n,u){var l=-1,p=i,h=!0,d=t.length,f=[],m=e.length;if(!d)return f;n&&(e=s(e,a(n))),u?(p=o,h=!1):e.length>=200&&(p=c,h=!1,e=new r(e));t:for(;++l<d;){var g=t[l],v=null==n?g:n(g);if(g=u||0!==g?g:0,h&&v==v){for(var y=m;y--;)if(e[y]===v)continue t;f.push(g)}else p(e,v,u)||f.push(g)}return f}},function(t,e){t.exports=class{constructor(t){this.fieldsArray=[],this.fieldMap={},this.configMap={},this.componentDirectiveMap={},this.componentMap={},t&&t.length&&this.parse(t)}parse(t){for(const e of t){const t=e.identifier;this.fieldsArray.push(t),this.configMap[t]=e,this.fieldMap[t]||(this.fieldMap[t]={});for(const n of e.matches){const[e,r]=n.split(".");this.componentDirectiveMap[e]||(this.componentDirectiveMap[e]={}),this.componentDirectiveMap[e][r]||(this.componentDirectiveMap[e][r]=[]),this.componentDirectiveMap[e][r].push(t),this.componentMap[e]||(this.componentMap[e]=[]),this.componentMap[e].push(t),this.fieldMap[t][e]||(this.fieldMap[t][e]=[]),this.fieldMap[t][e].push(r)}}}getListOfFields(){return this.fieldsArray}getConfigMap(){return this.configMap}getComponentMap(){return this.componentMap}getFieldsBySource(t,e){return this.componentDirectiveMap[t]&&this.componentDirectiveMap[t][e]||[]}getDirectivesByComponentAndField(t,e){return this.fieldMap[e][t]}}},function(t,e,n){const r=n(361),i=n(363),o=n(57);t.exports=class{constructor(t,e,r){this._livingdoc=t,this._config=e,this._events=r||n(365),this.state={undo:[],redo:[],group:!1,undone:!1,redone:!1,enabled:!1}}enable(){this.state.enabled||(Object.keys(this._events).map(t=>{this._livingdoc.componentTree[t].add(r.bind(this,t,this._events[t]))}),this.state.enabled=!0)}undo(){return i.call(this,"undo")}redo(){return i.call(this,"redo")}hasUndo(){return!(!this.state.enabled||!this.state.undo.length)}hasRedo(){return!(!this.state.enabled||!this.state.redo.length)}startEventGroup(t){return this.state.group=t||o.next("event-group"),this.state.group}stopEventGroup(){return!!this.state.group&&(this.state.group=!1,!0)}}},function(t,e,n){const r=n(362),i=n(56),{eventSource:o}=n(165);t.exports=function(t,e,n,...s){const a=e.getContext(n,...s);if(!a)return;const c={context:a,event:t,model:n};c.group=this.state.grouped||this.state.group;const u=this.state.undone?"redo":"undo";return a.eventSource&&a.eventSource===o.remote&&function(t,e,n){return!i(t,t=>t.context.directive&&n.directive&&t.context.directive.component.id===n.directive.component.id&&t.context.directive.index===n.directive.index||!n.directive&&e.id===t.model.id)}(this.state[u],n,a)?void 0:("undo"!==u||this.state.redone||(this.state.redo=[]),this.state.undone=this.state.redone=this.state.grouped=!1,this.state[u].push(c),this.state[u]=r(this.state[u],this._config.limit),e)}},function(t,e,n){var r=n(90),i=n(144);t.exports=function(t,e,n){var o=null==t?0:t.length;return o?(e=n||void 0===e?1:i(e),r(t,(e=o-e)<0?0:e,o)):[]}},function(t,e,n){const{log:r}=n(2),{rollbackText:i}=n(364);t.exports=function t(e,n,o={}){if(!this.state.enabled)return r.warn("History API not enabled"),!1;const s=this.state[e];if(!s||!s.length)return!1;const a=s.pop();return!!Object.keys(this._events).includes(a.event)&&("undo"===e&&(this.state.undone=!0),"redo"===e&&(this.state.redone=!0),this.state.grouped=a.group,this._events[a.event].revert(this._livingdoc,a.model,a.context),function(t,e,n){if(!t)return!1;const r=e&&e===t;if((e||!t)&&!r)return!1;const i=n.length&&n[n.length-1],o=i?i.group:void 0;return!i||o===t}(a.group,n,s)?t.call(this,e,a.group):("undo"===e&&i(this.state,a,o,t.bind(this)),!0))}},function(t,e,n){const{decodeHTML:r}=n(55),i=n(6),o=n(57);function s(t,e,n){const r="beforeComponentContentChanged";if(function(t,e){return t.context&&e&&e.context&&t.context.directive!==e.context.directive}(t,e))return!1;if(!e||e.event!==r||t.event!==r)return!1;const o=i.history.groupingInterval;if(n.time-e.context.time>o)return!1;const s=a(n.content),c=a(e.context.content),u=s.replace(c,"");if(u.length===s.length)return!0;const l=u.replace(/(\.|,|\?|!)+\s*$/,"").split(/\.|,|\?|!/).length,p=u.split(/\s/).length;return l<2&&p<6}t.exports={rollbackText:function(t,e,n,r){const i=t.undo,a=i[i.length-1];let c=n.count+1||1;const u=n.context||e.context;if(s(e,a,u))return r("undo",e.group,{count:c,context:u});const l=o.next("event-group"),p=t.redo;for(;c;)c-=1,p[p.length-c-1]&&(p[p.length-c-1].group=l)},shouldMoreTextBeRolledback:s};const a=t=>r(t).replace(/\s/g," ")},function(t,e,n){t.exports={beforeComponentAdded:n(366),beforeComponentRemoved:n(166),beforeComponentMoved:n(166),beforeComponentContentChanged:n(367),beforeComponentHtmlChanged:n(369)}},function(t,e){t.exports.revert=(t,e)=>e.remove(),t.exports.getContext=(t,e)=>({model:t,eventSource:e})},function(t,e,n){const r=n(368);t.exports.revert=(t,e,n)=>{if(!n.directive)return!1;n.directive.setContent(n.content)},t.exports.getContext=(t,e,n)=>{const i=t.directives.all[e];if(!i)return!1;let o=i.getContent();const s=new Date;return o&&o.originalUrl&&(o=r(o),o.url=o.originalUrl),{directive:i,content:o,time:s,eventSource:n}}},function(t,e,n){var r=n(69);t.exports=function(t){return r(t,4)}},function(t,e){t.exports.revert=(t,e,n)=>e.setStyle(n.name,n.value),t.exports.getContext=(t,e,n,r)=>"style"===e&&(n.eventSource=r,n)},function(t,e){const n={format:"text/html",prettyHtml:!1,decodeHtml:!1,renderDirectiveInfo:!1};t.exports=class{constructor({settings:t}){this.settings={...n,...t}}}},function(t,e,n){const r=n(98);t.exports={render({req:t,componentTree:e}){if("text/json"===t.settings.format)return this.renderJson({req:t,componentTree:e});let n="";for(const i of e)n+=r.renderComponent(i,t.settings);return n},renderJson({req:t,componentTree:e}){const n=[];for(const i of e)n.push(r.renderComponent(i,t.settings));return n}}},function(t,e,n){const{assert:r}=n(2),i=n(169),o=n(40),s=n(94),a=n(373),{parseComponent:c}=n(41);t.exports={parse(t,e={}){this.validateSchema(t);const n=this.parseDesignInfo(t),r=new o(n);try{return this.parseDesignConfig(t,r,e)}catch(t){throw t.message=`Parsing design ${r.identifier}: ${t.message}`,t}},parseDesignInfo(t){const{name:e,label:n,version:r,author:i,description:o}=t;return{name:e,label:n,version:r,author:i,description:o}},parseDesignConfig(t,e,n){e.metadata=t.metadata,e.wrapper=t.wrapper,e.groups=t.groups,e.layouts=t.layouts,e.defaultLayout=t.defaultLayout,e.defaultContent=t.defaultContent,e.prefilledComponents=t.prefilledComponents;const{assets:r,imageRatios:i,componentProperties:o}=t;e.dependencies.parseAssetsDeclaration(r),this.addImageRatios(i,e),e.properties=this.parseComponentProperties(o);const{components:s,defaultComponents:a}=t;return this.addComponents(s,e,n),this.parseDefaultComponents(a,e),e},parseComponentProperties:t=>t?Object.keys(t).reduce((e,n)=>{const r=t[n];return r.name=n,e[n]=new i(r),e},{}):{},addImageRatios(t,e){if(t)for(const n of Object.keys(t)){const{ratio:r,label:i}=t[n];e.imageRatios[n]=new s({name:n,label:i,ratio:r})}},addComponents(t,e,{strict:n}={}){t.forEach(t=>{try{const n=c(t,e);e.addComponent(n)}catch(e){if("DuplicateComponentError"===e.name&&!n)return;throw e.message=`component ${t.name}: ${e.message}`,e}})},parseDefaultComponents(t,e){if(!t)return;const{paragraph:n,image:r,html:i}=t,o=e.getMissingComponents(n,r,i);if(o)throw new Error(`Could not find components '${o.join("', '")}'`);e.setDefaultParagraph({name:n}),e.setDefaultImage({name:r}),e.setDefaultHtml({name:i})},assertComponent(t,e){t&&r(e.hasComponent(t),`Could not find component '${t}'`)},validateSchema(t){if(a.validate("design",t))return!0;throw new Error(a.getErrorMessages())}}},function(t,e,n){const r=n(162).new();t.exports=r,r.add("styleType",t=>"option"===t||"select"===t||"style"===t);const i=/(\d+)\.(\d+)\.(\d+)(.+)?/;r.add("semVer",t=>i.test(t)),r.add("wrapper",(function(t){return!!new RegExp("<.* (?:[^>]* |)class=(\"|')[^'\"]*doc-section[^'\"]*\\1(?: [^>]*|)>").test(t)||`design.wrapper is missing a 'doc-section' class ('${t}').`})),r.add("one empty option",(function(t){let e=0;for(const n in t){t[n].value||(e+=1)}return 1===e})),r.add("design",{name:"string",label:"string, optional",version:"string, semVer",author:"string, optional",description:"string, optional",assets:{__validate:"optional",css:"array of string",js:"array of string, optional",basePath:"string, optional"},components:"array of component",componentProperties:{__validate:"optional",__additionalProperty:(t,e)=>r.validate("componentProperty",e)},defaultComponents:{__validate:"optional",paragraph:"string, optional",image:"string, optional"},imageRatios:{__validate:"optional",__additionalProperty:(t,e)=>r.validate("imageRatio",e)},groups:"array of group, optional",metadata:"array of object, optional",wrapper:"string, wrapper, optional",layouts:"array of layout, optional",defaultLayout:"string, optional",defaultContent:"array of object, optional",prefilledComponents:"object, optional"}),r.add("component",{name:"string",label:"string, optional",description:"string, optional",iconUrl:"string, optional",html:"string",directives:"object, optional",properties:"array of string, optional",allowedParents:"array of string, optional",__additionalProperty:(t,e)=>!1}),r.add("group",{label:"string",components:"array of string"}),r.add("componentProperty",{label:"string, optional",type:"string, styleType",value:"string, optional",options:"array of styleOption, one empty option, optional"}),r.add("imageRatio",{label:"string, optional",ratio:"string"}),r.add("styleOption",{caption:"string",value:"string, optional"}),r.add("layout",{name:"string",caption:"string",wrapper:"wrapper",icon:"string, optional"})},function(t,e,n){const r=n(170),i=n(40),o=n(169),{parseComponent:s}=n(41);t.exports=function({v:t,name:e,version:n,designSettings:a={},components:c}){const{componentGroups:u,defaultComponents:l,componentProperties:p}=a,{fieldExtractor:h,assets:d}=a,f=new i({name:e,version:n});if(f.metadata=h,f.groups=u,p&&(f.properties=r(p,(t,e)=>(t[e.name]=new o(e),t),{})),c.forEach(t=>{try{const e=s(t,f);f.addComponent(e)}catch(e){throw e.message=`component ${t.name}: ${e.message}`,e}}),l){const{paragraph:t,image:e,html:n}=l,r=f.getMissingComponents(t,e,n);if(r)throw new Error(`Could not find components '${r.join("', '")}'`);f.setDefaultParagraph({name:t}),f.setDefaultImage({name:e}),f.setDefaultHtml({name:n})}return f.dependencies.parseAssetsDeclaration(d),f}},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},function(t,e,n){const r=n(3),i=n(40),o=n(168);t.exports=class{constructor(){this.designs={}}load(t,{basePath:e}={}){r(t,"design.load() was called with undefined.");const{name:n,version:s}=t;if(r(n&&s,"design.load(): The design configuration needs a name and version"),this.has(n,s))return this.get(n,s);e&&t.assets&&(t.assets.basePath=e);const a=o.parse(t);if(!a)throw new Error(i.parser.errors);return this.add(a)}add(t){return t.isNewerThan(this.designs[t.name])&&(this.designs[t.name]=t),this.designs[t.identifier]=t,this.designs[t.identifier]}has(t,e){if(!e)return!1;const n=i.getIdentifier(t,e);return!!this.designs[n]}get(t,e){r(this.has(t,e),`Error: design '${t}@${e}' is not loaded.`);const n=i.getIdentifier(t,e);return this.designs[n]}remove(t){delete this.designs[t.identifier]}resetCache(){this.designs={}}}},function(t,e,n){const r=n(379);t.exports={includes:{render(t){r.renderFunction=t}}}},function(t,e,n){const r=n(16);t.exports={renderFunction:null,renderInclude({serviceName:t,params:e},n){return!!this.renderFunction&&this.renderFunction({serviceName:t,params:e},(t,e)=>t?n(t):r(e)?n(null,{html:e}):n(null,e&&!1!==e?e:{doNotRender:!0}))}}},function(t,e,n){const r=n(17),i=n(154),o=n(381),{setPlacingOnRemovedComponentPatches:s}=n(382),a=n(383);function c(t,e,n,r,i){const o=l(e),s=l(t);if(void 0!==o&&s!==o){const e=t.name,a=n.diff_main(o,s);n.diff_cleanupSemantic(a),r.updateEditableDirective(i,e,a,s)}}function u(t,e){return t&&e&&t.id===e.id||(!t||!e)&&t===e}function l(t){return t&&t.content.value||""}function p(t,e,n,r){let i;if(t.previous){i=e.findById(t.previous.id).next}else{let n;if(t.parentContainer.isRoot)n=e.root;else{n=e.findById(t.getParentId()).containers.get(t.parentContainer.name)}i=n.first&&n.first.id!==t.id?n.first:void 0}const o={previous:t.previous,next:i,parentContainer:t.parentContainer},s=r.moveComponent(t,o);n.addCommand(s)}function h(t,e){return!(u(t.next,e.next)&&u(t.previous,e.previous)||t.previous&&t.next||e.parentContainer.parentComponent.id===t.parentContainer.parentComponent.id)}function d(t,e){return!e.parentContainer.isRoot&&e.parentContainer.parentComponent.id!==t.parentContainer.parentComponent.id}t.exports={diff(t,e,n){const l=new o,f=new a;return e.each((function(e){const o=t.findById(e.id);if(o){if(function(t,e,n){if(t.componentName!==e.componentName)return n.transformComponent(e),!0}(o,e,n))return;!function(t,e,n,r){let i=!1;t.directives.eachEditable((function(o){const s=e.directives.get(o.name);s?c(s,o,n,r,t):i=!0})),i&&e.directives.eachEditable((function(e){const i=t.directives.get(e.name);i||c(e,i,n,r,t)}))}(o,e,l,n),function(t,e,n){t.directives.each((function(o){if("image"===o.type){const i=e.directives.get(o.name);i&&(r(i.content,o.content)||n.updateImageDirective(t,o,i.content))}else if("toggle"===o.type){const i=e.directives.get(o.name);i&&(r(i.content,o.content)||n.updateToggleDirective(t,o,i.content))}else if("style"===o.type){const i=e.directives.get(o.name);i&&(r(i.content,o.content)||n.updateStyleDirective(t,o,i.content))}else if("include"===o.type){const c=e.directives.get(o.name);if(c){if(c.getService()!==o.getService()||(s=c.getParams(),a=o.getParams(),s=i(s,t=>void 0!==t),a=i(a,t=>void 0!==t),!r(s,a))){const e={service:c.getService(),params:c.getParams()};n.updateIncludeDirective(t,o,e)}}}else if("link"===o.type){const r=e.directives.get(o.name);r&&r.content.value!==o.content.value&&n.updateLinkDirective(t,o,r.content.value)}else if("html"===o.type){const r=e.directives.get(o.name);r&&r.content.value!==o.content.value&&n.updateHtmlDirective(t,o,r.content.value)}var s,a}))}(o,e,n),function(t,e,n){if(!r(t.styles,e.styles)){Object.keys({...e.styles,...t.styles}).forEach(r=>{n.updateComponentStyle(t,r,e.styles[r])})}}(o,e,n),function(t,e,n){r(t.getData(),e.getData())||Object.keys(e.getData()).forEach(r=>{n.updateComponentData(t,r,e.getData(r))})}(o,e,n)}else{const t=n.insertComponent(e);f.addCommand(t)}})),function(t,e,n,r){const i=[];t.each((function(o){if(!e.findById(o.id)){const a=o.containers.length>0,c=o.parentContainer.parentComponent,u=c&&i.includes(c.id);if(a&&i.push(o.id),!c||!u){const i=n.removeComponent(o);s(e,t,i),r.addCommand(i)}}}))}(t,e,n,f),function(t,e,n,r){const i=t.clone(),o=e.getAllComponents();for(;!r.isCommandExecutionCorrect(i,e);){for(let t=0;t<o.length;t++){const e=o[t],s=i.findById(e.id);if(s&&(!u(e.next,s.next)&&!u(e.previous,s.previous)||d(e,s))){p(e,i,r,n);break}}if(0===r.createdCommands.length){for(let t=0;t<o.length;t++){const e=o[t],s=i.findById(e.id);if(h(e,s)||d(e,s)){p(e,i,r,n);break}}if(0===r.createdCommands.length)throw new Error("failed to create commands for componentTree")}}}(t,e,n,f),n.getAll()}}},function(t,e){function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}n.Diff,n.prototype.diff_main=function(t,e,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=r;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===n&&(n=!0);var o=n,s=this.diff_commonPrefix(t,e),a=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=this.diff_commonSuffix(t,e);var c=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var u=this.diff_compute_(t,e,o,i);return a&&u.unshift([0,a]),c&&u.push([0,c]),this.diff_cleanupMerge(u),u},n.prototype.diff_compute_=function(t,e,n,r){var i;if(!t)return[[1,e]];if(!e)return[[-1,t]];var o=t.length>e.length?t:e,s=t.length>e.length?e:t,a=o.indexOf(s);if(-1!=a)return i=[[1,o.substring(0,a)],[0,s],[1,o.substring(a+s.length)]],t.length>e.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[[-1,t],[1,e]];var c=this.diff_halfMatch_(t,e);if(c){var u=c[0],l=c[1],p=c[2],h=c[3],d=c[4],f=this.diff_main(u,p,n,r),m=this.diff_main(l,h,n,r);return f.concat([[0,d]],m)}return n&&t.length>100&&e.length>100?this.diff_lineMode_(t,e,r):this.diff_bisect_(t,e,r)},n.prototype.diff_lineMode_=function(t,e,n){t=(l=this.diff_linesToChars_(t,e)).chars1,e=l.chars2;var r=l.lineArray,i=this.diff_main(t,e,!1,n);this.diff_charsToLines_(i,r),this.diff_cleanupSemantic(i),i.push([0,""]);for(var o=0,s=0,a=0,c="",u="";o<i.length;){switch(i[o][0]){case 1:a++,u+=i[o][1];break;case-1:s++,c+=i[o][1];break;case 0:if(s>=1&&a>=1){i.splice(o-s-a,s+a),o=o-s-a;for(var l,p=(l=this.diff_main(c,u,!1,n)).length-1;p>=0;p--)i.splice(o,0,l[p]);o+=l.length}a=0,s=0,c="",u=""}o++}return i.pop(),i},n.prototype.diff_bisect_=function(t,e,n){for(var r=t.length,i=e.length,o=Math.ceil((r+i)/2),s=o,a=2*o,c=new Array(a),u=new Array(a),l=0;l<a;l++)c[l]=-1,u[l]=-1;c[s+1]=0,u[s+1]=0;for(var p=r-i,h=p%2!=0,d=0,f=0,m=0,g=0,v=0;v<o&&!((new Date).getTime()>n);v++){for(var y=-v+d;y<=v-f;y+=2){for(var _=s+y,b=(I=y==-v||y!=v&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-y;I<r&&b<i&&t.charAt(I)==e.charAt(b);)I++,b++;if(c[_]=I,I>r)f+=2;else if(b>i)d+=2;else if(h){if((w=s+p-y)>=0&&w<a&&-1!=u[w])if(I>=(C=r-u[w]))return this.diff_bisectSplit_(t,e,I,b,n)}}for(var x=-v+m;x<=v-g;x+=2){for(var C,w=s+x,E=(C=x==-v||x!=v&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-x;C<r&&E<i&&t.charAt(r-C-1)==e.charAt(i-E-1);)C++,E++;if(u[w]=C,C>r)g+=2;else if(E>i)m+=2;else if(!h){if((_=s+p-x)>=0&&_<a&&-1!=c[_]){var I;b=s+(I=c[_])-_;if(I>=(C=r-C))return this.diff_bisectSplit_(t,e,I,b,n)}}}}return[[-1,t],[1,e]]},n.prototype.diff_bisectSplit_=function(t,e,n,r,i){var o=t.substring(0,n),s=e.substring(0,r),a=t.substring(n),c=e.substring(r),u=this.diff_main(o,s,!1,i),l=this.diff_main(a,c,!1,i);return u.concat(l)},n.prototype.diff_linesToChars_=function(t,e){var n=[],r={};function i(t){for(var e="",i=0,o=-1,s=n.length;o<t.length-1;){-1==(o=t.indexOf("\n",i))&&(o=t.length-1);var a=t.substring(i,o+1);i=o+1,(r.hasOwnProperty?r.hasOwnProperty(a):void 0!==r[a])?e+=String.fromCharCode(r[a]):(e+=String.fromCharCode(s),r[a]=s,n[s++]=a)}return e}return n[0]="",{chars1:i(t),chars2:i(e),lineArray:n}},n.prototype.diff_charsToLines_=function(t,e){for(var n=0;n<t.length;n++){for(var r=t[n][1],i=[],o=0;o<r.length;o++)i[o]=e[r.charCodeAt(o)];t[n][1]=i.join("")}},n.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},n.prototype.diff_commonOverlap_=function(t,e){var n=t.length,r=e.length;if(0==n||0==r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var o=0,s=1;;){var a=t.substring(i-s),c=e.indexOf(a);if(-1==c)return o;s+=c,0!=c&&t.substring(i-s)!=e.substring(0,s)||(o=s,s++)}},n.prototype.diff_halfMatch_=function(t,e){if(this.Diff_Timeout<=0)return null;var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;var i=this;function o(t,e,n){for(var r,o,s,a,c=t.substring(n,n+Math.floor(t.length/4)),u=-1,l="";-1!=(u=e.indexOf(c,u+1));){var p=i.diff_commonPrefix(t.substring(n),e.substring(u)),h=i.diff_commonSuffix(t.substring(0,n),e.substring(0,u));l.length<h+p&&(l=e.substring(u-h,u)+e.substring(u,u+p),r=t.substring(0,n-h),o=t.substring(n+p),s=e.substring(0,u-h),a=e.substring(u+p))}return 2*l.length>=t.length?[r,o,s,a,l]:null}var s,a,c,u,l,p=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));return p||h?(s=h?p&&p[4].length>h[4].length?p:h:p,t.length>e.length?(a=s[0],c=s[1],u=s[2],l=s[3]):(u=s[0],l=s[1],a=s[2],c=s[3]),[a,c,u,l,s[4]]):null},n.prototype.diff_cleanupSemantic=function(t){for(var e=!1,n=[],r=0,i=null,o=0,s=0,a=0,c=0,u=0;o<t.length;)0==t[o][0]?(n[r++]=o,s=c,a=u,c=0,u=0,i=t[o][1]):(1==t[o][0]?c+=t[o][1].length:u+=t[o][1].length,i&&i.length<=Math.max(s,a)&&i.length<=Math.max(c,u)&&(t.splice(n[r-1],0,[-1,i]),t[n[r-1]+1][0]=1,r--,o=--r>0?n[r-1]:-1,s=0,a=0,c=0,u=0,i=null,e=!0)),o++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),o=1;o<t.length;){if(-1==t[o-1][0]&&1==t[o][0]){var l=t[o-1][1],p=t[o][1],h=this.diff_commonOverlap_(l,p),d=this.diff_commonOverlap_(p,l);h>=d?(h>=l.length/2||h>=p.length/2)&&(t.splice(o,0,[0,p.substring(0,h)]),t[o-1][1]=l.substring(0,l.length-h),t[o+1][1]=p.substring(h),o++):(d>=l.length/2||d>=p.length/2)&&(t.splice(o,0,[0,l.substring(0,d)]),t[o-1][0]=1,t[o-1][1]=p.substring(0,p.length-d),t[o+1][0]=-1,t[o+1][1]=l.substring(d),o++),o++}o++}},n.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var r=t.charAt(t.length-1),i=e.charAt(0),o=r.match(n.nonAlphaNumericRegex_),s=i.match(n.nonAlphaNumericRegex_),a=o&&r.match(n.whitespaceRegex_),c=s&&i.match(n.whitespaceRegex_),u=a&&r.match(n.linebreakRegex_),l=c&&i.match(n.linebreakRegex_),p=u&&t.match(n.blanklineEndRegex_),h=l&&e.match(n.blanklineStartRegex_);return p||h?5:u||l?4:o&&!a&&c?3:a||c?2:o||s?1:0}for(var r=1;r<t.length-1;){if(0==t[r-1][0]&&0==t[r+1][0]){var i=t[r-1][1],o=t[r][1],s=t[r+1][1],a=this.diff_commonSuffix(i,o);if(a){var c=o.substring(o.length-a);i=i.substring(0,i.length-a),o=c+o.substring(0,o.length-a),s=c+s}for(var u=i,l=o,p=s,h=e(i,o)+e(o,s);o.charAt(0)===s.charAt(0);){i+=o.charAt(0),o=o.substring(1)+s.charAt(0),s=s.substring(1);var d=e(i,o)+e(o,s);d>=h&&(h=d,u=i,l=o,p=s)}t[r-1][1]!=u&&(u?t[r-1][1]=u:(t.splice(r-1,1),r--),t[r][1]=l,p?t[r+1][1]=p:(t.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,n=[],r=0,i=null,o=0,s=!1,a=!1,c=!1,u=!1;o<t.length;)0==t[o][0]?(t[o][1].length<this.Diff_EditCost&&(c||u)?(n[r++]=o,s=c,a=u,i=t[o][1]):(r=0,i=null),c=u=!1):(-1==t[o][0]?u=!0:c=!0,i&&(s&&a&&c&&u||i.length<this.Diff_EditCost/2&&s+a+c+u==3)&&(t.splice(n[r-1],0,[-1,i]),t[n[r-1]+1][0]=1,r--,i=null,s&&a?(c=u=!0,r=0):(o=--r>0?n[r-1]:-1,c=u=!1),e=!0)),o++;e&&this.diff_cleanupMerge(t)},n.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,n=0,r=0,i=0,o="",s="";n<t.length;)switch(t[n][0]){case 1:i++,s+=t[n][1],n++;break;case-1:r++,o+=t[n][1],n++;break;case 0:r+i>1?(0!==r&&0!==i&&(0!==(e=this.diff_commonPrefix(s,o))&&(n-r-i>0&&0==t[n-r-i-1][0]?t[n-r-i-1][1]+=s.substring(0,e):(t.splice(0,0,[0,s.substring(0,e)]),n++),s=s.substring(e),o=o.substring(e)),0!==(e=this.diff_commonSuffix(s,o))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),o=o.substring(0,o.length-e))),0===r?t.splice(n-i,r+i,[1,s]):0===i?t.splice(n-r,r+i,[-1,o]):t.splice(n-r-i,r+i,[-1,o],[1,s]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&0==t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",s=""}""===t[t.length-1][1]&&t.pop();var a=!1;for(n=1;n<t.length-1;)0==t[n-1][0]&&0==t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),a=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),a=!0)),n++;a&&this.diff_cleanupMerge(t)},n.prototype.diff_xIndex=function(t,e){var n,r=0,i=0,o=0,s=0;for(n=0;n<t.length&&(1!==t[n][0]&&(r+=t[n][1].length),-1!==t[n][0]&&(i+=t[n][1].length),!(r>e));n++)o=r,s=i;return t.length!=n&&-1===t[n][0]?s:s+(e-o)},n.prototype.diff_prettyHtml=function(t){for(var e=[],n=/&/g,r=/</g,i=/>/g,o=/\n/g,s=0;s<t.length;s++){var a=t[s][0],c=t[s][1].replace(n,"&").replace(r,"<").replace(i,">").replace(o,"¶<br>");switch(a){case 1:e[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:e[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:e[s]="<span>"+c+"</span>"}}return e.join("")},n.prototype.diff_text1=function(t){for(var e=[],n=0;n<t.length;n++)1!==t[n][0]&&(e[n]=t[n][1]);return e.join("")},n.prototype.diff_text2=function(t){for(var e=[],n=0;n<t.length;n++)-1!==t[n][0]&&(e[n]=t[n][1]);return e.join("")},n.prototype.diff_levenshtein=function(t){for(var e=0,n=0,r=0,i=0;i<t.length;i++){var o=t[i][0],s=t[i][1];switch(o){case 1:n+=s.length;break;case-1:r+=s.length;break;case 0:e+=Math.max(n,r),n=0,r=0}}return e+=Math.max(n,r)},n.prototype.diff_toDelta=function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n][0]){case 1:e[n]="+"+encodeURI(t[n][1]);break;case-1:e[n]="-"+t[n][1].length;break;case 0:e[n]="="+t[n][1].length}return e.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(t,e){for(var n=[],r=0,i=0,o=e.split(/\t/g),s=0;s<o.length;s++){var a=o[s].substring(1);switch(o[s].charAt(0)){case"+":try{n[r++]=[1,decodeURI(a)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var c=parseInt(a,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+a);var u=t.substring(i,i+=c);"="==o[s].charAt(0)?n[r++]=[0,u]:n[r++]=[-1,u];break;default:if(o[s])throw new Error("Invalid diff operation in diff_fromDelta: "+o[s])}}if(i!=t.length)throw new Error("Delta length ("+i+") does not equal source text length ("+t.length+").");return n},n.prototype.match_main=function(t,e,n){if(null==t||null==e||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,t.length)),t==e?0:t.length?t.substring(n,n+e.length)==e?n:this.match_bitap_(t,e,n):-1},n.prototype.match_bitap_=function(t,e,n){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(e),i=this;function o(t,r){var o=t/e.length,s=Math.abs(n-r);return i.Match_Distance?o+s/i.Match_Distance:s?1:o}var s=this.Match_Threshold,a=t.indexOf(e,n);-1!=a&&(s=Math.min(o(0,a),s),-1!=(a=t.lastIndexOf(e,n+e.length))&&(s=Math.min(o(0,a),s)));var c,u,l=1<<e.length-1;a=-1;for(var p,h=e.length+t.length,d=0;d<e.length;d++){for(c=0,u=h;c<u;)o(d,n+u)<=s?c=u:h=u,u=Math.floor((h-c)/2+c);h=u;var f=Math.max(1,n-u+1),m=Math.min(n+u,t.length)+e.length,g=Array(m+2);g[m+1]=(1<<d)-1;for(var v=m;v>=f;v--){var y=r[t.charAt(v-1)];if(g[v]=0===d?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(p[v+1]|p[v])<<1|1|p[v+1],g[v]&l){var _=o(d,v-1);if(_<=s){if(s=_,!((a=v-1)>n))break;f=Math.max(1,2*n-a)}}}if(o(d+1,n)>s)break;p=g}return a},n.prototype.match_alphabet_=function(t){for(var e={},n=0;n<t.length;n++)e[t.charAt(n)]=0;for(n=0;n<t.length;n++)e[t.charAt(n)]|=1<<t.length-n-1;return e},n.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var n=e.substring(t.start2,t.start2+t.length1),r=0;e.indexOf(n)!=e.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=e.substring(t.start2-r,t.start2+t.length1+r);r+=this.Patch_Margin;var i=e.substring(t.start2-r,t.start2);i&&t.diffs.unshift([0,i]);var o=e.substring(t.start2+t.length1,t.start2+t.length1+r);o&&t.diffs.push([0,o]),t.start1-=i.length,t.start2-=i.length,t.length1+=i.length+o.length,t.length2+=i.length+o.length}},n.prototype.patch_make=function(t,e,r){var i,o;if("string"==typeof t&&"string"==typeof e&&void 0===r)i=t,(o=this.diff_main(i,e,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(t&&"object"==typeof t&&void 0===e&&void 0===r)o=t,i=this.diff_text1(o);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===r)i=t,o=e;else{if("string"!=typeof t||"string"!=typeof e||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");i=t,o=r}if(0===o.length)return[];for(var s=[],a=new n.patch_obj,c=0,u=0,l=0,p=i,h=i,d=0;d<o.length;d++){var f=o[d][0],m=o[d][1];switch(c||0===f||(a.start1=u,a.start2=l),f){case 1:a.diffs[c++]=o[d],a.length2+=m.length,h=h.substring(0,l)+m+h.substring(l);break;case-1:a.length1+=m.length,a.diffs[c++]=o[d],h=h.substring(0,l)+h.substring(l+m.length);break;case 0:m.length<=2*this.Patch_Margin&&c&&o.length!=d+1?(a.diffs[c++]=o[d],a.length1+=m.length,a.length2+=m.length):m.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(a,p),s.push(a),a=new n.patch_obj,c=0,p=h,u=l)}1!==f&&(u+=m.length),-1!==f&&(l+=m.length)}return c&&(this.patch_addContext_(a,p),s.push(a)),s},n.prototype.patch_deepCopy=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=new n.patch_obj;o.diffs=[];for(var s=0;s<i.diffs.length;s++)o.diffs[s]=i.diffs[s].slice();o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,e[r]=o}return e},n.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var n=this.patch_addPadding(t);e=n+e+n,this.patch_splitMax(t);for(var r=0,i=[],o=0;o<t.length;o++){var s,a,c=t[o].start2+r,u=this.diff_text1(t[o].diffs),l=-1;if(u.length>this.Match_MaxBits?-1!=(s=this.match_main(e,u.substring(0,this.Match_MaxBits),c))&&(-1==(l=this.match_main(e,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits))||s>=l)&&(s=-1):s=this.match_main(e,u,c),-1==s)i[o]=!1,r-=t[o].length2-t[o].length1;else if(i[o]=!0,r=s-c,u==(a=-1==l?e.substring(s,s+u.length):e.substring(s,l+this.Match_MaxBits)))e=e.substring(0,s)+this.diff_text2(t[o].diffs)+e.substring(s+u.length);else{var p=this.diff_main(u,a,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(p)/u.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(p);for(var h,d=0,f=0;f<t[o].diffs.length;f++){var m=t[o].diffs[f];0!==m[0]&&(h=this.diff_xIndex(p,d)),1===m[0]?e=e.substring(0,s+h)+m[1]+e.substring(s+h):-1===m[0]&&(e=e.substring(0,s+h)+e.substring(s+this.diff_xIndex(p,d+m[1].length))),-1!==m[0]&&(d+=m[1].length)}}}}return[e=e.substring(n.length,e.length-n.length),i]},n.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,n="",r=1;r<=e;r++)n+=String.fromCharCode(r);for(r=0;r<t.length;r++)t[r].start1+=e,t[r].start2+=e;var i=t[0],o=i.diffs;if(0==o.length||0!=o[0][0])o.unshift([0,n]),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>o[0][1].length){var s=e-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(o=(i=t[t.length-1]).diffs).length||0!=o[o.length-1][0])o.push([0,n]),i.length1+=e,i.length2+=e;else if(e>o[o.length-1][1].length){s=e-o[o.length-1][1].length;o[o.length-1][1]+=n.substring(0,s),i.length1+=s,i.length2+=s}return n},n.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,r=0;r<t.length;r++)if(!(t[r].length1<=e)){var i=t[r];t.splice(r--,1);for(var o=i.start1,s=i.start2,a="";0!==i.diffs.length;){var c=new n.patch_obj,u=!0;for(c.start1=o-a.length,c.start2=s-a.length,""!==a&&(c.length1=c.length2=a.length,c.diffs.push([0,a]));0!==i.diffs.length&&c.length1<e-this.Patch_Margin;){var l=i.diffs[0][0],p=i.diffs[0][1];1===l?(c.length2+=p.length,s+=p.length,c.diffs.push(i.diffs.shift()),u=!1):-1===l&&1==c.diffs.length&&0==c.diffs[0][0]&&p.length>2*e?(c.length1+=p.length,o+=p.length,u=!1,c.diffs.push([l,p]),i.diffs.shift()):(p=p.substring(0,e-c.length1-this.Patch_Margin),c.length1+=p.length,o+=p.length,0===l?(c.length2+=p.length,s+=p.length):u=!1,c.diffs.push([l,p]),p==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(p.length))}a=(a=this.diff_text2(c.diffs)).substring(a.length-this.Patch_Margin);var h=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==h&&(c.length1+=h.length,c.length2+=h.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=h:c.diffs.push([0,h])),u||t.splice(++r,0,c)}}},n.prototype.patch_toText=function(t){for(var e=[],n=0;n<t.length;n++)e[n]=t[n];return e.join("")},n.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var r=t.split("\n"),i=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<r.length;){var s=r[i].match(o);if(!s)throw new Error("Invalid patch string: "+r[i]);var a=new n.patch_obj;for(e.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),i++;i<r.length;){var c=r[i].charAt(0);try{var u=decodeURI(r[i].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+u)}if("-"==c)a.diffs.push([-1,u]);else if("+"==c)a.diffs.push([1,u]);else if(" "==c)a.diffs.push([0,u]);else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+u)}i++}}return e},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){for(var t,e=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:t="+";break;case-1:t="-";break;case 0:t=" "}e[n+1]=t+encodeURI(this.diffs[n][1])+"\n"}return e.join("").replace(/%20/g," ")},t.exports=n,t.exports.diff_match_patch=n,t.exports.DIFF_DELETE=-1,t.exports.DIFF_INSERT=1,t.exports.DIFF_EQUAL=0},function(t,e){t.exports={setPlacingOnRemovedComponentPatches(t,e,n){const r=e.findById(n.component.id);n.position={},r&&(function(t,e,n){if(t.previous){const r=e.findById(t.previous.id);if(r)return n.position.previousId=r.id,!0}return!1}(r,t,n)||function(t,e,n){if(t.next){const r=e.findById(t.next.id);if(r)return n.position.nextId=r.id,!0}return!1}(r,t,n)||function(t,e){if(t.next)return e.position.nextId=t.next.id,!0;return!1}(r,n)||function(t,e){if(t.previous)return e.position.previousId=t.previous.id,!0}(r,n))}}},function(t,e,n){const r=n(4),{serializeCommand:i,deserializeCommand:o}=n(95);t.exports=class{constructor(){this.createdCommands=[]}addCommand(t){this.createdCommands.push(i(t))}isCommandExecutionCorrect(t,e,n){for(let e=0;e<this.createdCommands.length;e++){const n=this.createdCommands[e],{conflicts:i,deserializedCommand:s}=o(n,t);if(0!==i.length)throw new Error("conflicts");r.handle(s)}const i=function(t,e){const n=t.getAllComponents(),r=e.getAllComponents();if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++)if(n[t].id!==r[t].id)return!1;return!0}(t,e);return this.createdCommands=[],i}}},function(t,e,n){const{fromJson:r}=n(152),i={adaptDirective(t,e){let n;if(t.directiveName&&e){const r=e.directives.get(t.directiveName);return r||(n={type:"NotExistingComponentForDirective"}),{directiveConflict:n,directive:r}}return{}},adaptComponentToInsert(t,e){if(t.component)return r(t.component,e.design)},adaptPositionComponent(t,e){let n,r,o;const s={},a=i.getParentContainer(t,e);return a&&a.hasChildren()&&(t.nextId&&(r=e.findById(t.nextId),r?s.next=r:0===t.containerInsertIndex?s.next=a.first:n={type:"NotExistingComponent",componentId:t.nextId}),t.previousId&&(o=e.findById(t.previousId),o?s.previous=o:n={type:"NotExistingComponent",componentId:t.previousId})),s.parentContainer=a,s.containerInsertIndex=t.containerInsertIndex,{conflict:n,deserializedPosition:s}},getParentContainer(t,e){if("root"===t.parentId)return e.root;if(t.parentId){return e.findById(t.parentId).containers.get(t.parentContainerName)}}};t.exports=i},function(t,e,n){const r=n(172),i=n(173),o=n(21),s=n(17),a=n(142),c=n(170),u=n(62);function l(t,e){for(let i=0;i<e.length-1;i++){const s=t[e[i]],a=t[e[i+1]],c=o(a.diffPatches);p(c,(n=s.diffPatches,r(n,t=>-1===t[0])),s.diffPatches),h(c,C(s.diffPatches),s.diffPatches),t[e[i]]=void 0,c.forEach(t=>{t.length>3&&t.pop()}),a.diffPatches=c}var n;return t}function p(t,e,n){e.forEach(e=>{const r=w(t),i=_(g(n,e,x(r),"",v),r);i.insertPosition=E(i,r,t),0!==i.matchIndex?b(t,t[i.insertPosition],i.matchIndex,e,0):t.splice(i.insertPosition,0,e)})}function h(t,e,n){e.forEach(e=>{e.push("isPreviousAddedPatch");const r=w(t),i=_(g(n,e,x(r),e[1],y),r);i.insertPosition=E(i,r,t),function(t,e,n){let r=t.insertPosition,i=m(e,n,n[r],0,t.matchIndex);for(;e[1].length-i>0;){const t=r;if(r=f(n,r),-1===r)return;const o=d(t,r,n);i=m(e,n,n[r],i+o,0)}}(i,e,t)})}function d(t,e,n){let r=0;for(let i=t+1;i<e;i++)-1===n[i][0]&&(r+=n[i][1].length);return r}function f(t,e){let n=e;for(n++;n<t.length&&0!==t[n][0];)n++;return t.length===n?-1:n}function m(t,e,n,r,i){const c=o(t);if(n&&-1!==n[0]){let t=c[1].length;return n[1].length<c[1].length-r?(c[1]=c[1].substring(r,r+n[1].length),t=r+n[1].length):c[1]=c[1].substring(r,c[1].length),0!==i&&0===r?(t=n[1].length-i,c[1]=c[1].substring(0,t),b(e,n,i,c,c[1].length)):function(t,e,n){const r=a(n,e=>s(e,t));t[1]=t[1].replace(e[1],""),""===t[1]?n.splice(r,1,e):n.splice(r,0,e)}(n,c,e),t}return n[1].length-i}function g(t,e,n,r,i){const o=a(t,t=>s(t,e));let c=0;if(t.length>o+1){const e=i(t,o+1);-1!==e&&(r+=t[e][1])}o-1>=0&&(c=r.length,c=(r=t[o-1][1]+r).length-c);let u=n.indexOf(r);return o-1>=0&&c>0&&(u+=c),u}function v(t,e){let n=e;for(;-1===t[n][0];)if(n++,t.length-1<=n)return-1;return n}function y(t,e){return t.length>e?e:-1}function _(t,e){let n="";for(let r=0;r<e.length;r++){const i=n;if(n+=e[r][1],n.length>t)return{insertPosition:r,matchIndex:t-i.length}}return{insertPosition:e.length-1,matchIndex:0}}function b(t,e,n,r,i){const c=a(t,t=>s(t,e)),u=o(e);e[1]=e[1].substring(0,n),u[1]=u[1].substring(n+i),""!==u[1]&&t.splice(c+1,0,u),t.splice(c+1,0,r)}function x(t){let e="";return t.forEach(t=>{e+=t[1]}),e}function C(t){return r(t,t=>1===t[0])}function w(t){return r(t,t=>1!==t[0]||function(t){return 4===t.length}(t))}function E(t,e,n){return a(n,n=>s(n,e[t.insertPosition]))}t.exports={simplifyTextChanges(t){const e=function(t){return c(t,(function(t,e,n){if("textChange"===e.type){const r=e.componentId+e.directiveName;(t[r]||(t[r]=[])).push(n)}return t}),{})}(t);return u(e,(function(e,n){t=l(t,e)})),function(t){i(t,t=>void 0===t)}(t),t},mergeTextChanges:l}},function(t,e,n){var r=n(30);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},function(t,e,n){var r=n(161),i=n(33),o=Array.prototype.splice;t.exports=function(t,e){for(var n=t?e.length:0,s=n-1;n--;){var a=e[n];if(n==s||a!==c){var c=a;i(a)?o.call(t,a,1):r(t,a)}}return t}},function(t,e,n){const r=n(7),{eventSource:i}=n(165),o=i.remote;function s(t){let e=0,n=t.parentContainer.first;for(;n!==t;)if(e+=1,n=n.next,e>1e3)return 0;return e}t.exports=class{constructor(){this.changes=[]}insertComponent(t){return t.previous?this.add({type:"insertComponent",component:t,position:{parentContainer:t.parentContainer,previous:t.previous,containerInsertIndex:s(t)},eventSource:o}):this.add({type:"insertComponent",component:t,position:{parentContainer:t.parentContainer,next:t.next,containerInsertIndex:s(t)},eventSource:o})}moveComponent(t,e){return this.add(r.moveComponent(t,e,o))}removeComponent(t){return this.add(r.removeComponent(t,o))}updateComponentStyle(t,e,n){this.add(r.updateComponentStyle(t,e,n,o))}updateComponentData(t,e,n){this.add(r.updateComponentData(t,e,n,o))}transformComponent(t){this.add(r.transformComponent(t,o))}updateEditableDirective(t,e,n,r){(function(t){return 1!==t.length||0!==t[0][0]})(n)&&this.add({type:"updateEditableDirective",component:t,directive:t.directives.get(e),value:r,diffPatches:n,eventSource:o})}updateImageDirective(t,e,n){this.add(r.updateImageDirective(t,e,n,o))}updateToggleDirective(t,e,n){this.add(r.updateToggleDirective(t,e,n,o))}updateIncludeDirective(t,e,n){this.add(r.updateIncludeDirective(t,e,n,o))}updateStyleDirective(t,e,n){this.add(r.updateStyleDirective(t,e,n,o))}updateLinkDirective(t,e,n){this.add(r.updateLinkDirective(t,e,n,o))}updateHtmlDirective(t,e,n){this.add(r.updateHtmlDirective(t,e,n,o))}getAll(){return this.changes}add(t){return this.changes.push(t),t}}},function(t,e){t.exports=function(t,e){if(!t)return[];const r=[];return t.forEach(t=>{const i=n[t.type](t);i&&(e&&function(t,e){t.user=e,"textChange"===t.type&&t.diffPatches.forEach(t=>{t[2]||t.push(e)})}(i,e),r.unshift(i))}),r};const n={insertComponent:({component:t})=>({type:"componentAdded",componentId:t.id}),transformComponent:({component:t})=>({type:"componentTransformed",componentId:t.id}),moveComponent:({component:t,position:e})=>({type:"componentMoved",componentId:t.id,nextId:e.next?e.next.id:void 0,previousId:e.previous?e.previous.id:void 0}),removeComponent:({component:t,position:e})=>({type:"componentRemoved",componentId:t.id,removedComponent:t.toJson({deep:!0}),nextComponentId:e.nextId,previousComponentId:e.previousId}),updateComponentStyle:({component:t})=>r(t),updateComponentData:({component:t})=>r(t),updateEditableDirective:({component:t,directive:e,diffPatches:n,value:r})=>({type:"textChange",componentId:t.id,directiveName:e.name,diffPatches:n}),updateImageDirective:({component:t,directive:e,value:n})=>r(t),updateTmpImageDirective(){},updateLinkDirective:({component:t})=>r(t),updateHtmlDirective:({component:t})=>r(t),updateToggleDirective:({component:t})=>r(t),updateIncludeDirective:({component:t})=>r(t),updateStyleDirective:({component:t})=>r(t),updateDirectiveTmpData(){}};function r(t){return{type:"componentModified",componentId:t.id}}},function(t,e,n){const{createDiffCommands:r}=n(171),i=n(391),o=n(17),s=n(393),a=n(173);t.exports={getMergeCommands({baseComponentTree:t,remoteComponentTree:e,localComponentTree:n}){const c=r({versions:[{componentTree:e,user:""},{componentTree:t,user:""}]}),u=r({versions:[{componentTree:n,user:""},{componentTree:t,user:""}]}),l=i(u,c),p=s(l,t=>t.commands);return a(c,t=>p.some(e=>o(e,t))),{localCommands:u,remoteCommands:c,conflicts:l}}}},function(t,e,n){const r=n(392),i=n(172),o=n(56),s=n(17);t.exports=function(t,e){const n=[],a=function(t,e){const n=r(e,t=>t.type),i=r(t,t=>t.type),s=[];n.moveComponent&&n.moveComponent.forEach(t=>{const e=o(i.moveComponent,e=>e.component.id===t.component.id&&e.position.previousId===t.position.previousId&&e.position.nextId===t.position.nextId);if(e)s.push({type:"DuplicatedCommand",componentId:t.component.id,commands:[t],localCommand:e});else{const e=o(i.moveComponent,e=>e.component.id===t.component.id||e.component.id===t.position.nextId||e.component.id===t.position.previousId||e.position.previousId===t.component.id||e.position.nextId===t.component.id);e&&s.push({type:"ComponentAlreadyMoved",componentId:t.component.id,commands:[t],localCommand:e})}});return s}(t,e),c=function(t,e){const n=[];return t.forEach(t=>{const r=i(e,e=>e.component.id===t.component.id);if(r.length>0){let e=!1;r.forEach(r=>{s(r,t)&&(n.push({type:"DuplicatedCommand",componentId:t.component.id,commands:[r],localCommand:t}),e=!0),t.type.includes("Directive")&&!e&&t.component.id===r.component.id&&t.directiveName===r.directiveName&&n.push({type:"DirectiveAlreadyModified",componentId:t.component.id,directiveName:t.directiveName,commands:[r],localCommand:t})}),"removeComponent"!==t.type||e||n.push({type:"ComponentLocallyRemoved",componentId:t.component.id,commands:r,localCommand:t})}}),n}(t,e);return n.push(...a),n.push(...c),n}},function(t,e,n){var r=n(36),i=n(159),o=Object.prototype.hasOwnProperty,s=i((function(t,e,n){o.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=s},function(t,e,n){var r=n(122),i=n(394);t.exports=function(t,e){return r(i(t,e),1)}},function(t,e,n){var r=n(13),i=n(12),o=n(395),s=n(0);t.exports=function(t,e){return(s(t)?r:o)(t,i(e,3))}},function(t,e,n){var r=n(30),i=n(11);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){const{handle:r}=n(4),{deserializeCommand:i}=n(95);t.exports={runCommandsOnComponentTree({componentTree:t,commands:e}){const n=[];return e.forEach(e=>{const{conflicts:o,deserializedCommand:s}=i(e,t);o.length>0?n.push(...o):r(s)}),n}}},function(t,e,n){const r=n(398),i=n(399),o=n(27),s=n(401),a=n(42);t.exports={name:"resrc.it",hasBrowserPlugin:!0,supportsCrop:!0,supportsBackgroundImages:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],disabledMimeTypes:[],createBrowserPlugin:function(t){return s({window:t})},canProcessAsset:function(t,e){return!(e&&!this.supportsBackgroundImages)&&a(t,this.allowedMimeTypes,this.disabledMimeTypes)},getUrl:function(t,e){return r.getUrl(t,e)},getUncroppedUrl:function(t){return this.getUrl(t)},set:function(t,e){const n=e.getProcessedUrl();return!n||e.isTemporaryImage()?(i.resetMarkup(t,"resrc"),o.set(t,e)):e.isInlineImage()?i.setInlineImage(t,n,"resrc"):e.isBackgroundImage()&&i.setBackgroundImage(t,n,"resrc"),!1},reset:function(t,e){i.resetMarkup(t,"resrc")}}},function(t,e,n){const r=n(1),i=n(26),o=n(3),s=n(6);t.exports={getUrl:function(t,{host:e,crop:n,ratio:i,size:o,quality:p}={}){const h=n?a(n):"",d=i?c(i):"",f=o?u(o):"",m=l(p||r(s,["imageServices","resrc.it","quality"]));return`${e||r(s,["imageServices","resrc.it","host"])}${h}${d}${f}${m}/${t}`}};const a=function({x:t,y:e,width:n,height:r}={}){return o(i(t),"x should be a number"),o(i(e),"y should be a number"),o(i(n),"width should be a number"),o(i(r),"height should be a number"),`/C=W${n},H${r},X${t},Y${e}`},c=function({x:t,y:e}={}){return o(i(t),"x should be a number"),o(i(e),"y should be a number"),`/C=AR${t}x${e}`},u=function({w:t,h:e}={}){t&&o(i(t),"w should be a number"),e&&o(i(e),"h should be a number");let n="";return t&&e?n=`W${t}M,H${e}M`:t?n=`W${t}`:e&&(n=`H${e}`),`/S=${n}`},l=function(t){return`/O=${t}`}},function(t,e,n){const r=n(58),i=n(400);t.exports={setInlineImage:function(t,e,n){i(t.attr("src"))&&t.attr("src",""),n&&t.addClass(n),t.attr("data-src",e)},setBackgroundImage:function(t,e,n){t.addClass(n),r(t,e)},resetMarkup:function(t,e){t.removeClass(e),t.removeAttr("data-src"),t.css("background-image","")}}},function(t,e){t.exports=function(t){return/^(data:|blob:)/.test(t)}},function(t,e,n){const r=n(1),{log:i}=n(2),o=n(6);t.exports=function({window:t}={}){return{name:"browserPlugins.resrcit",initialized:!1,dependencies:{js:[{src:r(o,["imageServices","resrc.it","scriptUrl"])}]},init:function(){const e=r(o,["imageServices","resrc.it","quality"]),n=r(o,["imageServices","resrc.it","host"]).replace(/https?:\/\//,""),i=r(o,["imageServices","resrc.it","host"]);t.resrc&&(t.resrc.configure({imageQuality:e,server:n,ssl:/^https/.test(i)}),this.initialized=!0)},updateDirective:function(e,n){this.initialized||this.init();try{if(n.isInlineImage())t.resrc.run(e[0]);else{const r=n.getProcessedUrl();t.resrc.setImageUrl(e[0],r)}}catch(t){i(t,n)}}}}},function(t,e,n){const r=n(1),i=n(403),o=n(60),s=n(6),a=n(27),c=n(42);t.exports={name:"sz",supportsBackgroundImages:!1,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],disabledMimeTypes:[],canProcessAsset:function(t,e){return!(e&&!this.supportsBackgroundImages)&&c(t,this.allowedMimeTypes,this.disabledMimeTypes)},getUrl:function(t,e){return i.getUrl(t,e)},getUncroppedUrl:function(t){return t},set:function(t,e){if(e.isTemporaryImage())o.reset(t),a.set(t,e);else{const n=[];for(const t in r(s,"imageServices.sz.srcSet.widths")){const i=r(s,"imageServices.sz.srcSet.widths")[t],o=this.getUrl(e.getOriginalUrl(),{width:i,crop:e.getCrop()});n.push({width:i,url:o})}const i=this.getUrl(e.getOriginalUrl(),{width:r(s,"imageServices.sz.srcSet.defaultWidth"),crop:e.getCrop()}),a=r(s,"imageServices.sz.srcSet.sizes");o.set(t,i,n,a)}}}},function(t,e,n){const r=n(1),i=n(59),{log:o,assert:s}=n(2),a=n(26),c=n(6),u=n(404);t.exports={getUrl:function(t,{crop:e,width:n}={}){const{pathname:r}=h(t),i=r.split("/");if(i.length<3)return o.error(`SZ Image service: can not parse path ${r}`),"";const s=i[i.length-1],a=i[i.length-2],u=`image/${i[i.length-3]}/${a}${e?l(e):""}/${n||d(c)}/${s}`,g=p(`/${u}`);return`${f(c)}/${u}?h=${g}&hv=${m(c)}`}};const l=function({x:t,y:e,width:n,height:r}){return s(a(t),"x should be a number"),s(a(e),"y should be a number"),s(a(n),"width should be a number"),s(a(r),"height should be a number"),`/t${e}l${t}w${n}h${r}`},p=function(t){return u({secret:r(c,"imageServices.sz.shaSecret"),valueToHash:t})},h=function(t){const e=i.parse(t);return{hostname:e.hostname,pathname:e.pathname,query:e.query}},d=function(t){return r(t,"imageServices.sz.srcSet.defaultWidth")},f=function(t){return r(t,"imageServices.sz.host")},m=function(t){return r(t,"imageServices.sz.hashVersion")}},function(t,e,n){"use strict";const r=n(405),{notStrictEqual:i,strictEqual:o}=n(78);t.exports=function({secret:t,valueToHash:e,hashLength:n=32}={}){i(t,void 0,"please provide »secret«!"),i(e,void 0,"please provide »valueToHash«!"),o(typeof e,"string","»valueToHash« must be a string!");const s=`${t}/${e}`;return r("sha256").update(s,"utf-8").digest("hex").substr(0,n)}},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(406),e.sha1=n(410),e.sha224=n(411),e.sha256=n(175),e.sha384=n(412),e.sha512=n(176)},function(t,e,n){var r=n(28),i=n(29),o=n(18).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(t){return t<<30|t>>>2}function l(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,p=0;p<16;++p)n[p]=t.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var h=0;h<80;++h){var d=~~(h/20),f=0|((e=r)<<5|e>>>27)+l(d,i,o,a)+c+n[h]+s[d];c=a,a=o,o=u(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e){t.exports=require("util")},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){t.exports=require("buffer")},function(t,e,n){var r=n(28),i=n(29),o=n(18).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function p(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=(e=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|e>>>31;for(var d=0;d<80;++d){var f=~~(d/20),m=u(r)+p(f,i,o,a)+c+n[d]+s[f]|0;c=a,a=o,o=l(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,n){var r=n(28),i=n(175),o=n(29),s=n(18).Buffer,a=new Array(64);function c(){this.init(),this._w=a,o.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},function(t,e,n){var r=n(28),i=n(176),o=n(29),s=n(18).Buffer,a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},function(t,e,n){const r=n(414),i=n(60),o=n(97),s=n(58),a=n(27),c=n(42);t.exports={name:"imgix",supportsBackgroundImages:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],disabledMimeTypes:[],canProcessAsset:function(t,e){return!(e&&!this.supportsBackgroundImages)&&c(t,this.allowedMimeTypes,this.disabledMimeTypes)},getUrl:function(t,e){return r.getUrl(t,e)},getUncroppedUrl:function(t){return this.getUrl(t)},set:function(t,e){const n=o.for(["imageServices","imgix"]);if(e.isTemporaryImage())i.reset(t),a.set(t,e);else if(e.isInlineImage()){const r=[],o=n.getWidths(e);for(const t in o){const n=o[t],i=this.getUrl(e.getOriginalUrl(),{width:n,crop:e.getCrop()});r.push({width:n,url:i})}const s=this.getUrl(e.getOriginalUrl(),{width:n.getDefaultWidth(e),crop:e.getCrop()}),a=n.getSizes(e);i.set(t,s,r,a)}else if(e.isBackgroundImage()){const r=n.getBgImageMaxWidth(e),i=this.getUrl(e.getOriginalUrl(),{width:r,crop:e.getCrop()});s(t,i)}}}},function(t,e,n){const r=n(1),i=n(26),o=n(59),{assert:s}=n(2),a=n(6);t.exports={getUrl:function(t,{crop:e,width:n}={}){const i=o.parse(t),s=e?c(e):null,u={};s&&(u.rect=s),n&&(u.w=n),r(a,"imageServices.imgix.preferWebp")&&(u.auto="format");const l=o.parse(r(a,"imageServices.imgix.host"));return l.pathname=i.pathname,l.query=u,o.format(l)}};const c=function({x:t,y:e,width:n,height:r}){return s(i(t),"x should be a number"),s(i(e),"y should be a number"),s(i(n),"width should be a number"),s(i(r),"height should be a number"),`${t},${e},${n},${r}`}},function(t,e,n){const r=n(416),i=n(60),o=n(97),s=n(58),a=n(27),c=n(42);t.exports={name:"liImageProxy",supportsBackgroundImages:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],disabledMimeTypes:[],canProcessAsset:function(t,e){return!(e&&!this.supportsBackgroundImages)&&c(t,this.allowedMimeTypes,this.disabledMimeTypes)},getUrl:function(t,e){return r.getUrl(t,e)},getUncroppedUrl:function(t){return this.getUrl(t)},set:function(t,e){const n=o.for(["imageServices",this.name]);if(e.isTemporaryImage())i.reset(t),a.set(t,e);else if(e.isInlineImage()){const r=[],o=n.getWidths(e);for(const t in o){const n=o[t],i=this.getUrl(e.getOriginalUrl(),{width:n,crop:e.getCrop()});r.push({width:n,url:i})}const s=this.getUrl(e.getOriginalUrl(),{width:n.getDefaultWidth(e),crop:e.getCrop()}),a=n.getSizes(e);i.set(t,s,r,a)}else if(e.isBackgroundImage()){const r=n.getBgImageMaxWidth(e),i=this.getUrl(e.getOriginalUrl(),{width:r,crop:e.getCrop()});s(t,i)}}}},function(t,e,n){const r=n(1),i=n(26),o=n(59),{assert:s}=n(2),a=n(6);t.exports={getUrl:function(t,{crop:e,width:n}={}){const i=o.parse(t,!0),s=e?c(e):null,u=i.query;s&&(u.rect=s),n&&(u.w=n),r(a,"imageServices.liImageProxy.preferWebp")&&(u.auto="format");const l=o.parse(r(a,"imageServices.liImageProxy.host"));return l.pathname=i.pathname,l.query=u,o.format(l)}};const c=function({x:t,y:e,width:n,height:r}){return s(i(t),"x should be a number"),s(i(e),"y should be a number"),s(i(n),"width should be a number"),s(i(r),"height should be a number"),`${t},${e},${n},${r}`}},function(t,e,n){const r=n(42),i=n(418),o=n(97),s=n(60),a=n(419),c=n(420),u=n(27),l=n(421);t.exports={name:"image.resizer",hasBrowserPlugin:!0,supportsCrop:!0,supportsBackgroundImages:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],disabledMimeTypes:[],createBrowserPlugin:function(t){return l({window:t})},canProcessAsset:function(t,e){return!(e&&!this.supportsBackgroundImages)&&r(t,this.allowedMimeTypes,this.disabledMimeTypes)},getUrl:function(t,e){return i.getUrl(t,e)},getUncroppedUrl:function(t){return this.getUrl(t)},set:function(t,e){const n=o.for(["imageServices","image.resizer"]);if(e.isTemporaryImage())s.reset(t),u.set(t,e);else if(e.isInlineImage()){const r=[],i=n.getWidths(e);for(const t in i){const n=i[t],o=this.getUrl(e.getOriginalUrl(),{size:{w:n},crop:e.getCrop()});r.push({width:n,url:o})}const o=n.getDefaultWidth(e),a=this.getUrl(e.getOriginalUrl(),{size:{w:o},crop:e.getCrop()}),c=n.getSizes(e);s.set(t,a,r,c)}else if(e.isBackgroundImage()){const r=[],i=n.getWidths(e);for(const t in i){const n=i[t],o=this.getUrl(e.getOriginalUrl(),{size:{w:n},crop:e.getCrop()});r.push({name:t,url:o})}const o=n.getDefaultWidth(e),s=this.getUrl(e.getOriginalUrl(),{size:{w:o},crop:e.getCrop()});a(t,r),c(t,s)}}}},function(t,e,n){const r=n(1),i=n(26),o=n(59),{assert:s}=n(2),a=n(6);t.exports={getUrl:function(t,{host:e,crop:n,ratio:i,size:s,quality:l}={}){const p=e||r(a,["imageServices","image.resizer","host"]),h=c(t),d={};l&&(d.quality=l),s&&s.w&&(d.width=s.w),s&&s.h&&(d.height=s.h),n&&(d.crop=u(n));const f=o.parse(p);return f.pathname=f.pathname+h,f.query=d,o.format(f)}};const c=function(t){return`/${t.replace("http://","").replace("https://","")}`},u=function({x:t,y:e,width:n,height:r}){return s(i(t),"x should be a number"),s(i(e),"y should be a number"),s(i(n),"width should be a number"),s(i(r),"height should be a number"),`(${t},${e},${t+n},${e+r})`}},function(t,e,n){const r=n(96);t.exports=function(t,e){const n=e.map(({name:t,url:e})=>`--${t}-url: ${i(e)}`).join(";");t.attr("style",n)};const i=function(t){return`url(${t=r(t)})`}},function(t,e,n){const r=n(96);t.exports=function(t,e){let n=t.attr("style");n.length>0&&(n=`${n};`),e&&(n=`${n}background-image: ${i(e)}`),t.attr("style",n)};const i=function(t){return`url(${t=r(t)})`}},function(t,e,n){const r=n(1),i=n(6);t.exports=function({window:t}={}){return{name:"browserPlugins.imageresizer",dependencies:{js:[{src:r(i,["imageServices","image.resizer","scriptUrl"])}]},init:function(){},updateDirective:function(t,e){}}}}]);
|
|
10
|
+
Component '${e.componentName}' could not be inserted.`),!this.compliesWithContentRules(e)){const t=s({component:e});this.reportViolation(t)}const{ok:o,conflicts:a}=e.isValidPosition(t);o||this.reportViolation(a[0]);const c=this.getComponentTree(),u=()=>this.link(e,t);c?(this.insertDefaultContent(c,e),c.attachingComponent(e,u,n)):u()}attachTreeNode(e,t={},n){if("component"===e.type)return void this.attachComponent(e,t,n);const r=this.getComponentTree(),o=()=>this.link(e,t);r?r.attachingTreeNode(e,o,n):o()}insertDefaultContent(e,t){if(!t.insertDefaultContent)return!1;if(t.insertDefaultContent=!1,t.componentTree)return!1;for(const n of t.containers)n.defaultContent&&e.addContent(n.defaultContent,n)}_detachComponent(e,t){const n=()=>this.unlink(e),r=this.getComponentTree();r?r.detachingComponent(e,n,t):n()}_detachTreeNode(e,t){const n=()=>this.unlink(e),r=this.getComponentTree();r?r.detachingTreeNode(e,n,t):n()}link(e,t){e.parentContainer&&this.unlink(e),t.parentContainer||(t.parentContainer=this),this.setComponentPosition(e,t)}unlink(e){const t=e.parentContainer;t&&(e.previous||(t.first=e.next),e.next||(t.last=e.previous),e.next&&(e.next.previous=e.previous),e.previous&&(e.previous.next=e.next),this.setComponentPosition(e,{}))}setComponentPosition(e,{parentContainer:t,previous:n,next:r}){e.parentContainer=t,e.previous=n,e.next=r,t&&(n&&(n.next=e),r&&(r.previous=e),e.previous||(t.first=e),e.next||(t.last=e))}getContainerIdentifier(){return this.isRoot?"root":`${this.parentComponent.componentName}.containers.get('${this.name}')`}reportViolation(e){const t=this.getComponentTree();t&&t.reportViolation(e)}};class c{constructor(e,t={}){this.value=e.first,this.allTreeNodes=t.allTreeNodes}[Symbol.iterator](){return this}next(){for(;this.value;){if("component"!==this.value.nodeType){const e=this.value;if(this.value=e.next,this.allTreeNodes)return{value:e};continue}const e=this.value;return this.value=e.next,{value:e}}return{done:!0}}}class u{constructor(e,t={}){this.value=e.first,this.allTreeNodes=t.allTreeNodes,this.options=t,this.descendants=void 0}[Symbol.iterator](){return this}next(){for(;this.value;)if("component"===this.value.nodeType){if(this.descendants){const e=this.descendants.next();if(!0!==e.done)return e}else if(void 0===this.descendants)return this.value.containers.length?this.descendants=this.value.descendantsIterator(this.options):this.descendants=!1,{value:this.value};this.value=this.value.next,this.descendants=void 0}else{const e=this.value;if(this.value=e.next,this.allTreeNodes)return{value:e}}return{done:!0}}}},function(e,t){e.exports={eventSources:{local:"local",editable:"editable",remote:"remote"},insertComponent:({component:e,position:t,enforceRules:n,eventSource:r="local"})=>({type:"insertComponent",component:e,position:t,enforceRules:n,eventSource:r}),transformComponent:({component:e,replacement:t,eventSource:n="local"})=>({type:"transformComponent",component:e,replacement:t,eventSource:n}),moveComponent:({component:e,position:t,eventSource:n="local"})=>({type:"moveComponent",component:e,position:t,eventSource:n}),removeComponent:({component:e,eventSource:t="local"})=>({type:"removeComponent",component:e,eventSource:t}),updateComponentStyle:({component:e,name:t,value:n,eventSource:r="local"})=>({type:"updateComponentStyle",component:e,name:t,value:n,eventSource:r}),updateComponentData:({component:e,key:t,value:n,eventSource:r="local"})=>({type:"updateComponentData",component:e,key:t,value:n,eventSource:r}),updateEditableDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateEditableDirective",component:e,directive:t,value:n,eventSource:r}),updateImageDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateImageDirective",component:e,directive:t,value:n,eventSource:r}),updateTmpImageDirective:({component:e,directive:t,value:n})=>({type:"updateTmpImageDirective",component:e,directive:t,value:n}),updateVideoDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateVideoDirective",component:e,directive:t,value:n,eventSource:r}),updateAudioDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateAudioDirective",component:e,directive:t,value:n,eventSource:r}),updateLinkDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateLinkDirective",component:e,directive:t,value:n,eventSource:r}),updateHtmlDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateHtmlDirective",component:e,directive:t,value:n,eventSource:r}),updateToggleDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateToggleDirective",component:e,directive:t,value:n,eventSource:r}),updateIncludeDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateIncludeDirective",component:e,directive:t,value:n,eventSource:r}),updateStyleDirective:({component:e,directive:t,value:n,eventSource:r="local"})=>({type:"updateStyleDirective",component:e,directive:t,value:n,eventSource:r}),updateDirectiveTmpData:({component:e,directive:t,key:n,value:r})=>({type:"updateDirectiveTmpData",component:e,directive:t,key:n,value:r}),enterProposalMode:({componentTree:e,proposalStatus:t},n="local")=>({type:"enterProposalMode",componentTree:e,proposalStatus:t,eventSource:n}),exitProposalMode:({componentTree:e},t="local")=>({type:"exitProposalMode",componentTree:e,eventSource:t}),updateProposalStatus:({componentId:e,componentTree:t,proposalStatus:n},r="local")=>({type:"updateProposalStatus",componentId:e,componentTree:t,proposalStatus:n,eventSource:r}),updateProposalData:({componentId:e,componentTree:t,proposalData:n},r="local")=>({type:"updateProposalData",componentId:e,componentTree:t,proposalData:n,eventSource:r}),applyProposal:({componentId:e,componentTree:t},n="local")=>({type:"applyProposal",componentId:e,componentTree:t,eventSource:n}),rejectProposal:({componentId:e,componentTree:t},n="local")=>({type:"rejectProposal",componentId:e,componentTree:t,eventSource:n})}},function(e,t,n){const r=n(45),o=n(64),i=n(13),s=n(23),a=n(167),{diffComponent:c}=n(168),{log:u,assert:l}=n(2),p=n(184),d=n(61),h=n(38),{fixedPositionViolation:f}=n(96),{getError:m}=n(67),g=n(364),v=n(365),y=new p,b=Symbol("skipped"),x={handle(e,t){w[e.type](e,t)!==b&&t&&t.reportExecutedCommand(e)},handleProposal(e,t){const n=_[e.type]||e.type;w[n](e,t)!==b&&t&&t.reportExecutedCommand({...e,type:n})}},_={insertComponent:"proposeInsert",removeComponent:"proposeRemoval",updateEditableDirective:"proposeDirectiveUpdate"};e.exports=x;const w={insertComponent({component:e,position:t,enforceRules:n,eventSource:r},o){const i=new g(t);if(o&&e.componentTree!==o&&o.findById(e.id))throw new Error(`insertComponent() duplicate componentId '${e.id}'`);const{ok:s,conflicts:a}=i.insert(e,r,n);if(!s)throw new Error(m(a))},transformComponent({component:e,replacement:t,eventSource:n}){const r=e.getPosition(),{componentTree:o}=e;o.fireBeforeEvent("beforeComponentTransformed",t,e),w.removeComponent({component:e,eventSource:n}),t.id=e.id,w.insertComponent({component:t,position:r,eventSource:n}),o.fireEvent("componentTransformed",t)},moveComponent({component:e,position:t,eventSource:n}){const r=new g(t),{ok:o,conflicts:i}=r.insert(e,n,!1);if(!o)throw new Error(m(i))},removeComponent({component:e,eventSource:t},n){n&&!e.canRemove()&&n.reportViolation(f({component:e})),e.destroy(),e.parentContainer._detachComponent(e,t)},updateComponentData({component:e,key:t,value:n}){if(!t)return b;const{componentTree:r}=e;i(e.dataValues[t],n)||(r&&r.fireBeforeEvent("beforeComponentDataChanged",e,t),e.dataValues[t]=s(n),r&&r.dataChanging(e,[t]))},updateComponentStyle({component:e,name:t,value:n}){const r=e.getStyleConfig(t);if(!r)return u.warn(`'${e.componentName}' component style: `+`unknown style '${t}'`),b;if(!r.validateValue(n))return u.warn(`'${e.componentName}' component style: `+`invalid value '${n}' for style '${t}'`),b;const{componentTree:o}=e,i=e.styles[t];i!==n&&(o&&o.fireBeforeEvent("beforeComponentHtmlChanged",e,"style",{name:t,value:i}),e.styles[t]=n,o&&o.htmlChanging(e))},updateEditableDirective({component:e,directive:t,value:n,eventSource:r}){const o=""===n?void 0:n;if(o!==t.content.value){if(e.beforeDirectiveChanging(t.name,r),o){const e=d(o),n=h(e,{plainText:t.plainText||!1,editableValidator:t.editableValidator||y});t.content.value=n}else t.content.value=void 0;e.directiveChanging(t.name,r)}},updateImageDirective({component:e,directive:t,value:n={},eventSource:r}){const{originalUrl:o,url:i,width:s,height:a,mimeType:c,mediaId:u}=n,{imageService:l,origins:p,crop:d,altText:h,suppressEvents:f}=n;f||e.beforeDirectiveChanging(t.name,r),t.temporaryImage=void 0,t.content={},t.content.originalUrl=o||i||void 0,t.content.url=i||o||void 0,t.content.mediaId=u,t.content.width=s,t.content.height=a,t.content.mimeType=c,t.content.altText=h,t.content.origins=T(p),t.content.crop=function(e){if(e){const{x:t,y:n,width:r,height:o,name:i}=e;return{x:t,y:n,width:r,height:o,name:i}}}(d);const m=v(l,c);t.content.imageService=m?l:void 0,t.processImageUrl(),f||e.directiveChanging(t.name,r)},updateTmpImageDirective({component:e,directive:t,value:n}){e.beforeDirectiveChanging(t.name),t.temporaryImage=n,e.directiveChanging(t.name)},updateVideoDirective({component:e,directive:t,value:n={},eventSource:r}){const{mediaId:o,originalUrl:i,mediaService:s,mimeType:a}=n,{width:c,height:u,durationSeconds:l,origins:p}=n;e.beforeDirectiveChanging(t.name,r),t.content.mediaId=o,t.content.originalUrl=i,t.content.mimeType=a,t.content.width=c,t.content.height=u,t.content.durationSeconds=l,t.content.origins=T(p);const d=v(s,a);t.content.mediaService=d?s:void 0,e.directiveChanging(t.name,r)},updateAudioDirective({component:e,directive:t,value:n={},eventSource:r}){const{mediaId:o,originalUrl:i,mediaService:s,mimeType:a}=n,{durationSeconds:c,origins:u}=n;e.beforeDirectiveChanging(t.name,r),t.content.mediaId=o,t.content.originalUrl=i,t.content.mimeType=a,t.content.durationSeconds=c,t.content.origins=T(u);const l=v(s,a);t.content.mediaService=l?s:void 0,e.directiveChanging(t.name,r)},updateLinkDirective({component:e,directive:t,value:n,eventSource:r}){const o=""===n?void 0:n;o!==t.content.value&&(e.beforeDirectiveChanging(t.name,r),t.content.value=o,e.directiveChanging(t.name,r))},updateHtmlDirective({component:e,directive:t,value:n,eventSource:r}){const o=""===n?void 0:n;o!==t.content.value&&(e.beforeDirectiveChanging(t.name,r),t.content.value=o,e.directiveChanging(t.name,r))},updateToggleDirective({component:e,directive:t,value:n,eventSource:r}){const o=!a(n)||n;o!==t.content.value&&(e.beforeDirectiveChanging(t.name,r),t.content.value=o,e.directiveChanging(t.name,r))},updateIncludeDirective({component:e,directive:t,value:n={},eventSource:r}){const{service:i,params:s}=n;if(i!==t.getService()){const n=o(t.services,{service:i});l(n&&n.service,`Can not change to service ${i}, service not defined.`),e.beforeDirectiveChanging(t.name,r),t.initService(n),s&&(t.content.params=s),e.directiveChanging(t.name,r)}else t.hasDifferentProperty("params",s)&&(e.beforeDirectiveChanging(t.name,r),t.content.params=s,e.directiveChanging(t.name,r))},updateStyleDirective({component:e,directive:t,value:n,eventSource:o}){const i={};n&&r(n,(e,n)=>{const r=t.getStyleConfig(n);r?r.validateValue(e)?i[n]=e:u.warn(`Style directive: invalid value\n '${e}' for style '${n}'`):u.warn(`Style directive: unknown style '${n}'`)}),e.beforeDirectiveChanging(t.name,o),t.content=i,e.directiveChanging(t.name,o)},updateDirectiveTmpData({directive:e,key:t,value:n}){e.tmp=e.tmp||{},e.tmp[t]=n},enterProposalMode({componentTree:e,proposalStatus:t}){if(e.inProposalMode)return b;e.inProposalMode=!0,e.proposals._setDefaultStatus(t),e.emit("proposalModeEntered")},exitProposalMode({componentTree:e}){if(!e.inProposalMode)return b;e.inProposalMode=!1,e.proposals._restoreDefaultStatus(),e.emit("proposalModeExited")},updateProposal({componentId:e,component:t,position:n,proposalStatus:r,proposalData:o,proposalType:i,eventSource:s},a){const u=a.proposals.get(e);if(!u)return b;if(t){const e=u.component;c(e,t).all.forEach(e=>{e.eventSource=s,x.handleProposal(e,a)})}if(n){const e=new g(n),t=u.component.treeNode,r=!0,{ok:o,conflicts:i}=e.insert(t,s,r);if(!o)throw new Error(m(i));a.emit("proposalMoved",{proposal:u})}r&&u.status!==r&&(u.status=r,a.emit("proposalStatusUpdated",{proposal:u})),o&&u.data!==o&&(u.data=o,a.emit("proposalDataUpdated",{proposal:u}))},updateProposalStatus({componentId:e,proposalStatus:t,eventSource:n},r){const o=r.proposals.get(e);o&&(o.status=t,r.emit("proposalStatusUpdated",{proposal:o}))},updateProposalData({componentId:e,proposalData:t,eventSource:n},r){const o=r.proposals.get(e);o&&(o.data=t,r.emit("proposalDataUpdated",{proposal:o}))},applyProposal({componentId:e,eventSource:t},n){const r=n.proposals.get(e);delete n.proposals.proposals[r.id];const o=[];if("proposeInsert"===r.type){const e=r.component,n=e.getPosition(),i=e.treeNode;i.destroy(),i.parentContainer._detachComponent(i,t),e.revertProposalData(),o.push({type:"insertComponent",component:e,position:n,enforceRules:!0,eventSource:t})}else if("proposeUpdate"===r.type){const e=r.component,t=e.treeNode,n=c(t,e).all;o.push(...n)}else if("proposeRemoval"===r.type){const r=n.findById(e);o.push({type:"removeComponent",component:r,eventSource:t})}n.emit("proposalApproved",{componentId:e,eventSource:t}),o.forEach(e=>{e.eventSource=t,x.handle(e,n)})},rejectProposal({componentId:e,eventSource:t},n){const r=n.proposals.get(e);if(delete n.proposals.proposals[r.id],"insert"===r.type){const e=r.component.treeNode;e.destroy(),e.parentContainer._detachTreeNode(e,t)}n.emit("proposalRejected",{componentId:e,eventSource:t})},proposeInsert({component:e,proposalStatus:t,proposalData:r,position:o,eventSource:i},s){const a=new g(o);if(e.componentTree&&e.componentTree===s){const t=e.treeNode,n=!0,{ok:r,conflicts:o}=a.insert(t,i,n);if(!r)throw new Error(m(o));const c=s.proposals.get(e.id);return void(c&&s.emit("proposalMoved",{proposal:c}))}const c=e.id;if(s.proposals.get(c))throw new Error(`proposeInsert(): componentId '${c}' already exists`);const u=new(n(366))({id:c});e.componentTree=s;const l=C({component:e,proposalStatus:t,proposalData:r,placeholder:u}),{ok:p,conflicts:d}=a.insert(u,i,!0);if(!p)throw new Error(m(d));s.emit("componentInsertProposed",{proposal:l})},proposeUpdate({component:e,proposalStatus:t,proposalData:n,eventSource:r},o){const i=e.id,s=o.findById(i);if(!s)throw new Error(`proposeUpdate(): Could not find componentId '${i}'`);if(s.componentName!==e.componentName)throw new Error("proposeUpdate(): component name mismatch "+`target: '${s.componentName}' proposal: '${e.componentName}'`);e.componentTree=o;const a=C({component:e,proposalStatus:t,proposalData:n,target:s});o.emit("componentUpdateProposed",{proposal:a})},proposeRemoval({componentId:e,proposalStatus:t,proposalData:n,component:r,eventSource:o},i){if(e&&!(r=i.findById(e)))throw new Error(`proposeRemoval(): Could not find componentId '${e}'`);if("component"===r.nodeType){if(r.isProposal)throw new Error("proposeRemoval(): cannot propose to remove a propsal");const e=i.proposals._removeComponent({id:r.id,proposalStatus:t,proposalData:n});i.emit("componentRemovalProposed",{proposal:e})}},proposeDirectiveUpdate(e,t){if((""===e.value?void 0:e.value)!==e.directive.content.value){const n={...e};if(e.component&&!e.component.isProposal){const r=e.component;if(r.hasContainers())return void console.warn("Cannot propose updates for a component with containers");let o=t.proposals.getProposalComponent(e.component.id);if(!o){o=r.deepClone(),o.componentTree=t;const e=C({component:o,target:r});t.emit("componentUpdateProposed",{proposal:e})}n.component=o,e.directive&&(n.directive=o.directives.get(e.directive.name))}return w[e.type](n)}}};function C({component:e,proposalStatus:t,proposalData:n,placeholder:r,target:o}){const{componentTree:i}=e;return e.propose({placeholder:r,target:o}),i.proposals._upsertComponent({component:e,proposalStatus:t,proposalData:n})}function T(e){if(e)return Array.isArray(e)||(e=[e]),e.map(e=>(l(e&&e.name&&e.identifier,"Error: origins must be an array of objects with name and identifier keys"),{name:e.name,identifier:e.identifier}))}},function(e,t,n){var r=n(98),o=n(322),i=n(99);e.exports=function(e,t,n,s,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var h=-1,f=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var g=e[h],v=t[h];if(s)var y=u?s(v,g,h,t,e,c):s(g,v,h,e,t,c);if(void 0!==y){if(y)continue;f=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(g===e||a(g,e,n,s,c)))return m.push(t)}))){f=!1;break}}else if(g!==v&&!a(g,v,n,s,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},function(e,t,n){var r=n(7);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(166),o=n(11),i=n(65),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var c=null==n?0:i(n);return c<0&&(c=s(a+c,0)),r(e,o(t,3),c)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(9),o=n(3);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},function(e,t,n){const r=n(100),o=n(13),i=n(333),s=n(169);function a(e,t){const n=t.directives.get(e.name);if(n&&!o(n.content,e.content))return{content:n.content}}function c(e,t,n,r,o){const i=u(t),s=u(e);if(void 0!==i&&s!==i){const t=e.name,a=n.diff_main(i,s);n.diff_cleanupSemantic(a),r.updateEditableDirective(o,t,a,s)}}function u(e){return e&&e.content.value||""}e.exports={diffComponent(e,t,n){if(!function(e,t,n){if(e.componentName!==t.componentName)return n.transformComponent(t,e),!0}(e,t,n=n||new s))return function(e,t,n){const r=new i;let o=!1;e.directives.eachEditable((function(i){const s=t.directives.get(i.name);s?c(s,i,r,n,e):o=!0})),o&&t.directives.eachEditable((function(t){const o=e.directives.get(t.name);o||c(t,o,r,n,e)}))}(e,t,n),function(e,t,n){e.directives.each((function(i){if("image"===i.type){const r=a(i,t);r&&n.updateImageDirective(e,i,r.content)}else if("video"===i.type){const r=a(i,t);r&&n.updateVideoDirective(e,i,r.content)}else if("audio"===i.type){const r=a(i,t);r&&n.updateAudioDirective(e,i,r.content)}else if("toggle"===i.type){const r=t.directives.get(i.name);r&&(o(r.content,i.content)||n.updateToggleDirective(e,i,r.content))}else if("style"===i.type){const r=t.directives.get(i.name);r&&(o(r.content,i.content)||n.updateStyleDirective(e,i,r.content))}else if("include"===i.type){const a=t.directives.get(i.name);if(a){if(a.getService()!==i.getService()||(s=a.getParams(),c=i.getParams(),s=r(s,e=>void 0!==e),c=r(c,e=>void 0!==e),!o(s,c))){const t={service:a.getService(),params:a.getParams()};n.updateIncludeDirective(e,i,t)}}}else if("link"===i.type){const r=t.directives.get(i.name);r&&r.content.value!==i.content.value&&n.updateLinkDirective(e,i,r.content.value)}else if("html"===i.type){const r=t.directives.get(i.name);r&&r.content.value!==i.content.value&&n.updateHtmlDirective(e,i,r.content.value)}var s,c}))}(e,t,n),function(e,t,n){if(!o(e.styles,t.styles)){Object.keys({...t.styles,...e.styles}).forEach(r=>{n.updateComponentStyle(e,r,t.styles[r])})}}(e,t,n),function(e,t,n){o(e.getData(),t.getData())||Object.keys(t.getData()).forEach(r=>{n.updateComponentData(e,r,t.getData(r))})}(e,t,n),n}}},function(e,t,n){const r=n(159),o=r.eventSources.remote,{serializeCommand:i}=n(66);function s(e,t){return r[e]({...t,eventSource:o})}e.exports=class{constructor({serialize:e=!0}={}){this.commands=[],this.serialized=e&&[],this.shouldSerialize=e}get all(){return this.commands}get allSerialized(){return this.serialized}insertComponent(e,t,n){return t.containerInsertIndex=n,this.add({type:"insertComponent",component:e,position:t,eventSource:o})}moveComponent(e,t){return this.add(s("moveComponent",{component:e,position:t}))}removeComponent(e){return this.add(s("removeComponent",{component:e}))}updateComponentStyle(e,t,n){this.add(s("updateComponentStyle",{component:e,name:t,value:n}))}updateComponentData(e,t,n){this.add(s("updateComponentData",{component:e,key:t,value:n}))}transformComponent(e,t){this.add(s("transformComponent",{replacement:e,component:t}))}updateEditableDirective(e,t,n,r){(function(e){return 1!==e.length||0!==e[0][0]})(n)&&this.add({type:"updateEditableDirective",component:e,directive:e.directives.get(t),value:r,diffPatches:n,eventSource:o})}updateImageDirective(e,t,n){this.add(s("updateImageDirective",{component:e,directive:t,value:n}))}updateVideoDirective(e,t,n){this.add(s("updateVideoDirective",{component:e,directive:t,value:n}))}updateAudioDirective(e,t,n){this.add(s("updateAudioDirective",{component:e,directive:t,value:n}))}updateToggleDirective(e,t,n){this.add(s("updateToggleDirective",{component:e,directive:t,value:n}))}updateIncludeDirective(e,t,n){this.add(s("updateIncludeDirective",{component:e,directive:t,value:n}))}updateStyleDirective(e,t,n){this.add(s("updateStyleDirective",{component:e,directive:t,value:n}))}updateLinkDirective(e,t,n){this.add(s("updateLinkDirective",{component:e,directive:t,value:n}))}updateHtmlDirective(e,t,n){this.add(s("updateHtmlDirective",{component:e,directive:t,value:n}))}add(e){return this.commands.push(e),this.shouldSerialize&&this.serialized.push(i(e)),e}}},function(e,t,n){const r=n(51),o=n(23),{componentViolation:i,directiveViolation:s,directiveTypeViolation:a,containerViolation:c,dataFormatViolation:u}=n(67);function l(e={}){const t={identifier:this.structure.identifier},{omitId:n,deep:i,exclude:s}=e;n||(t.id=this.id);const a={};for(const e of this.directives)e.isEmpty()||(a[e.name]=e.serialize());r(a)||(t.content=a),r(this.styles)||(t.styles=o(this.styles)),r(this.dataValues)||(t.data=o(this.dataValues)),this.isPositionFixed&&(t.position="fixed");for(const n of this.containers)if(t.containers||(t.containers={}),t.containers[n.name]=[],i)for(const r of n){!!s&&s(r)||t.containers[n.name].push(r.toJson(e))}return t}const p=e=>{throw new Error(`${e.type}: ${e.message}`)};let d;e.exports={setComponentModelConstructor(e){d=e},componentModelExtensions:{toJson:l,deepCopy:function(t={}){const n=this.toJson({deep:!0,omitId:!0});return e.exports.fromJson(n,this.structure.design)},deepClone:function({exclude:t}={}){const n=this.toJson({deep:!0,omitId:!1,exclude:t});return e.exports.fromJson(n,this.structure.design)}},toJson(e){if("component"===e.nodeType)return l.call(e)},fromJson(t,n,r=p){let o,l=t.component;if(l||(l=n.getComponentNameFromIdentifier(t.identifier)),l&&(o=n.getComponentStructure(l)),!o)return void r(i({componentName:l,id:t.id}));const h=new d({structure:o,id:t.id,positionFlag:t.position});((e,{id:t,content:n},r)=>{const o=[];for(const i in n){const c=n[i],u=e.directives.get(i);u?u.correctValueType(c)?o.push(u.deserialize(c)):r(a({id:t,componentName:e.componentName,directiveName:i})):r(s({id:t,componentName:e.componentName,directiveName:i}))}})(h,t,r);for(const e of Object.keys(t.styles||{})){const n=t.styles[e];h.setStyle(e,n)}return t.data&&h.data(t.data),function(t,{id:n,containers:r},o,i){if(r)for(const s of Object.keys(r)){const a=r[s];if(!a)continue;if(!t.containers.has(s)){i(c({id:n,containerName:s}));continue}if(!Array.isArray(a)){i(u({id:n,containerName:s}));continue}const l=t.containers.get(s);for(const t of a){const n=e.exports.fromJson(t,o,i);n&&l.append(n,!1)}}}(h,t,n,r),h}}},function(e,t){e.exports={}},function(e,t,n){var r=n(22),o=n(173),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},function(e,t,n){var r=n(119),o=r&&new r;e.exports=o},function(e,t,n){var r=n(175),o=n(176),i=n(343),s=n(68),a=n(177),c=n(182),u=n(355),l=n(106),p=n(5);e.exports=function e(t,n,d,h,f,m,g,v,y,b){var x=128&n,_=1&n,w=2&n,C=24&n,T=512&n,S=w?void 0:s(t);return function E(){for(var I=arguments.length,A=Array(I),D=I;D--;)A[D]=arguments[D];if(C)var k=c(E),N=i(A,k);if(h&&(A=r(A,h,f,C)),m&&(A=o(A,m,g,C)),I-=N,C&&I<b){var P=l(A,k);return a(t,n,e,E.placeholder,d,A,P,v,y,b-I)}var O=_?d:this,j=w?O[t]:t;return I=A.length,v?A=u(A,v):T&&I>1&&A.reverse(),x&&y<I&&(A.length=y),this&&this!==p&&this instanceof E&&(j=S||s(j)),j.apply(O,A)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,o){for(var i=-1,s=e.length,a=r.length,c=-1,u=t.length,l=n(s-a,0),p=Array(u+l),d=!o;++c<u;)p[c]=t[c];for(;++i<a;)(d||i<s)&&(p[r[i]]=e[i]);for(;l--;)p[c++]=e[i++];return p}},function(e,t){var n=Math.max;e.exports=function(e,t,r,o){for(var i=-1,s=e.length,a=-1,c=r.length,u=-1,l=t.length,p=n(s-c,0),d=Array(p+l),h=!o;++i<p;)d[i]=e[i];for(var f=i;++u<l;)d[f+u]=t[u];for(;++a<c;)(h||i<s)&&(d[f+r[a]]=e[i++]);return d}},function(e,t,n){var r=n(344),o=n(180),i=n(181);e.exports=function(e,t,n,s,a,c,u,l,p,d){var h=8&t;t|=h?32:64,4&(t&=~(h?64:32))||(t&=-4);var f=[e,t,a,h?c:void 0,h?u:void 0,h?void 0:c,h?void 0:u,l,p,d],m=n.apply(void 0,f);return r(e)&&o(m,f),m.placeholder=s,i(m,e,t)}},function(e,t,n){var r=n(173),o=n(345),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){var r=n(59),o=n(103);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){var r=n(172),o=n(137)(r);e.exports=o},function(e,t,n){var r=n(350),o=n(351),i=n(89),s=n(352);e.exports=function(e,t,n){var a=t+"";return i(e,o(a,s(r(a),n)))}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r=n(52);e.exports=function(e){return r(e,4)}},function(e,t){const n=["svg","script","style","font"];e.exports=class{constructor({whitelist:e,blacklist:t}={}){Array.isArray(e)?this.validate=t=>e.includes(t):Array.isArray(t)&&(this.validate=e=>!t.includes(e))}isProhibited(e){return!!n.includes(e.name)||(!!r(e)||!!this.validate&&!this.validate(e.name))}};const r=e=>"span"===e.name&&function(e){return e.attribs.style&&1===Object.keys(e.attribs).length}(e)},function(e,t,n){const r=n(69),o=n(1),i=n(367);e.exports=class{constructor({id:e,nodeType:t}){this.id=e||r.next(),this.nodeType=t,this.parentContainer=void 0,this.next=void 0,this.previous=void 0,this.componentTree=void 0}get treeNode(){return this}before(e){return e?(o.execTrusted("insertComponent",{component:e,position:{next:this.treeNode,parentContainer:this.treeNode.parentContainer}}),this):this.previous}after(e){return e?(o.execTrusted("insertComponent",{component:e,position:{previous:this.treeNode,parentContainer:this.treeNode.parentContainer}}),this):this.next}getPosition(){const{treeNode:e}=this,{previous:t,next:n,parentContainer:r}=e;return{previous:t,next:n,parentContainer:r}}replaceWith(e){const t=this.getPosition();return o.execTrusted("removeComponent",{component:this}),o.execTrusted("insertComponent",{component:e,position:t}),e}up(){const e=i.getPositionBeforeNode(this);return o.execTrusted("moveComponent",{component:this,position:e}),this}down(){const e=i.getPositionAfterNode(this);return o.execTrusted("moveComponent",{component:this,position:e}),this}get parentContainerName(){return this.parentContainer&&this.parentContainer.name}get parentId(){const e=this.parent;return e&&e.id}get parent(){return this.parentContainer&&this.parentContainer.parentComponent}getParent(){return this.parent}getParentId(){return this.parentId}parents(e){let t=this;for(;t=t.getParent();)e(t)}parentContainers(e){let t=this;for(;null!=t;)e(t.parentContainer),t=t.getParent()}descendantsAndSelf(e){e(this)}}},function(e,t,n){const{log:r,assert:o}=n(2),i=n(158),s=n(369),a=n(187),c=n(188),u=n(185),l=n(379),p=n(1),d=n(170),{toJson:h,deepCopy:f,deepClone:m}=d.componentModelExtensions;e.exports=class extends u{constructor({structure:e,id:t,insertDefaultContent:n,positionFlag:r}={}){super({id:t,nodeType:"component"}),this.positionRules=new l(this,r),this.structure=e,this.insertDefaultContent=n,o(this.structure,"Invalid new ComponentModel() call. Missing param 'structure'"),this.directives=new a,this.containers=new c,this.initializeDirectives(),this.styles={},this.dataValues={},this.componentName=this.structure.name}[Symbol.iterator](){return new g(this)}get treeNode(){return this.placeholder||this.proposalTarget||this}get excludeFromTextCount(){return this.structure.excludeFromTextCount}remove(){this.isProposal?this.rejectProposal():p.execTrusted("removeComponent",{component:this})}initializeDirectives(){for(const e of this.structure.directives)switch(e.type){case"container":{const t=new i({name:e.name,parentComponent:this,config:e});this.containers.push(e.name,t);break}case"editable":case"image":case"video":case"audio":case"html":case"link":case"include":case"toggle":case"style":this.createComponentDirective(e);break;default:r.error(`ComponentModel: unknown directive type '${e.type}'`)}}createComponentDirective(e){this.directives.add(s.create({component:this,structureDirective:e}))}getSkin(){return this.structure.getSkin()}createView(e){throw new Error("ComponentModel.createView is deprecated")}getMainView(){return this.componentTree.getMainComponentView(this.id)}isAllowedAsSibling(e){return!this.parentContainer||this.parentContainer.isAllowedAsChild(e)}isTypeAllowedAsSibling(e){return!this.parentContainer||this.parentContainer.isTypeAllowedAsChild(e)}isAllowedAsChild(e,t){return this.containers.get(e).isAllowedAsChild(t)}append(e,t){return this.containers.get(e).append(t),this}prepend(e,t){return this.containers.get(e).prepend(t),this}getTransforms(){return this.structure.design?this.structure.design.transforms:void 0}getTransformOptions({oneWay:e,directives:t}={}){const n=this.getTransforms();if(n)return n.getOptionsList({structure:this.structure,oneWay:e,directives:t,filter:e=>this.isTypeAllowedAsSibling(e)})}transform(e){const t=this.getTransforms(),{design:n}=this.structure,r=n.getComponentStructure(e),i=t.isCompatible(this,r,{oneWay:!0});o(i.isCompatible,`Component ${this.componentName} can not be transformed into ${e}.`);const s=r.createModel({id:this.id}),a=i.mapping||{};for(const[e,t]of Object.entries(a)){const n=this.directives.get(e),r=s.directives.get(t);n.copyTo(r)}return this.isPositionFixed&&s.setPosition("fixed"),p.execTrusted("transformComponent",{component:this,replacement:s}),s}children(e){for(const t of this)e(t)}childAt(e,t){return this.containers.get(e).childAt(t)}childrenAndSelf(e){e(this);for(const t of this)e(t)}descendants(e){for(const t of this.descendantsIterator())e(t)}childrenIterator(e={}){return e.children=!0,new v(this,e)}descendantsIterator(e){return new v(this,e)}descendantsAndSelf(e){e(this);for(const t of this.descendantsIterator())e(t)}descendantContainers(e){for(const t of this.containers)e(t);for(const t of this)t.descendantContainers(e)}allDescendants(e){for(const t of this.containers)e(t);for(const t of this)t.allDescendants(e)}getIndex(){return this.parentContainer.getIndex(this)}hasContainers(){return!!this.containers.length}hasChildren(){if(!this.containers)return!1;for(const e of this.containers)if(e.first)return!0;return!1}hasEditables(){return this.directives.count("editable")>0}hasHtml(){return this.directives.count("html")>0}hasImages(){return this.directives.count("image")>0}hasVideos(){return this.directives.count("video")>0}hasAudio(){return this.directives.count("audio")>0}hasLinks(){return this.directives.count("link")>0}beforeDirectiveChanging(e,t){if(this.componentTree){const n=this.isProposal?"beforeProposalContentChanged":"beforeComponentContentChanged";this.componentTree.fireBeforeEvent(n,this,e,t)}}directiveChanging(e,t){this.componentTree&&this.componentTree.contentChanging(this,e,t)}requestDirectiveViewUpdate(e){this.componentTree&&this.componentTree.requestViewUpdate(this,e)}getContent(e){if(e){const t=this.directives.get(e);return o(t,`getContent() error: ${this.componentName} has no directive '${e}'`),t.getContent()}{const e={};for(const t of this.directives)e[t.name]=t.getContent();return e}}setContent(e,t){let n=e||{};2===arguments.length&&(n={},n[e]=t);for(const e of Object.keys(n)){const t=n[e],r=this.directives.get(e);o(r,`setContent() error: ${this.componentName} has no directive '${e}'`),r.setContent(t)}}isEmpty(e){const t=this.getContent(e);return void 0===t||""===t}data(e){if("object"!=typeof e)return this.getData(e);for(const t in e){const n=e[t];this.setData(t,n)}}setData(e,t){p.execTrusted("updateComponentData",{component:this,key:e,value:t})}getData(e){return e?this.dataValues[e]:this.dataValues}getPluginName(){if(this.plugin)return this.plugin.name}setPlugin(e){this.plugin=e}getPlugin(e){return this.plugin}getStyle(e){return this.styles[e]}setStyle(e,t){p.execTrusted("updateComponentStyle",{component:this,name:e,value:t})}getStyleConfig(e){return this.structure.styles[e]}resetPositionRules(){this.positionRules.resetPositionRules(),this.componentTree&&this.componentTree.fireEvent("componentSettingsChanged")}setPosition(e){this.positionRules.setPosition(e),this.componentTree&&this.componentTree.fireEvent("componentSettingsChanged")}isValidPosition(e){return this.positionRules.isValidPosition(e)}canRemove(){return this.positionRules.canRemove()}isParentOfFixedPosition(){return this.positionRules.isParentOfFixedPosition()}copyWithoutContent(){return this.structure.createModel()}destroy(){}propose({placeholder:e,target:t}){this.placeholder=e,this.proposalTarget=t,this.isProposal=!0,this.isProposedUpdate=!!t}revertProposalData(){this.componentTree=void 0,this.isProposal=void 0,this.placeholder=void 0,this.proposalTarget=void 0,this.isProposedUpdate=void 0}applyProposal(){if(!this.isProposal)throw new Error("applyProposal(): can only be called on proposals");p.execTrusted("applyProposal",{componentId:this.id,componentTree:this.componentTree})}rejectProposal(e){if(!this.isProposal)throw new Error("rejectProposal(): can only be called on proposals");p.execTrusted("rejectProposal",{componentId:this.id,componentTree:this.componentTree})}set(e,t){r.warn("componentModel.set() is deprecated. Please use componentModel.setContent()."),this.setContent(e,t)}get(e){return r.warn("componentModel.get() is deprecated. Please use componentModel.getContent()."),this.getContent(e)}style(e,t){r.warn("ComponentModel.style() is deprecated. Please use #getStyle() and #setStyle()."),1===arguments.length?this.styles[e]:this.setStyle(e,t)}},e.exports.prototype.toJson=h,e.exports.prototype.deepCopy=f,e.exports.prototype.deepClone=m;class g{constructor(e){this._containers=e.containers,this._i=0}next(){for(;this._containers[this._i];){this._descendants||(this._descendants=this._containers[this._i].childrenIterator(this.options));const e=this._descendants.next();if(!0!==e.done)return e;this._i++,this._descendants=void 0}return{done:!0}}}class v{constructor(e,t={}){this._containers=e.containers,this._i=0,this.options=t,this.iteratorName=t.children?"childrenIterator":"descendantsIterator"}[Symbol.iterator](){return this}next(){for(;this._containers[this._i];){this._descendants||(this._descendants=this._containers[this._i][this.iteratorName](this.options));const e=this._descendants.next();if(!0!==e.done)return e;this._i++,this._descendants=void 0}return{done:!0}}}e.exports.fromJson=d.fromJson,d.setComponentModelConstructor(e.exports)},function(e,t,n){const r=n(6);class o{constructor({directives:e}={}){if(this.all={},this.length=0,e&&e.length)for(const t of e)this.add(t)}add(e){return this.assertNameNotUsed(e),this[this.length]=e,e.index=this.length,this.length+=1,this.all[e.name]=e,this[e.type]||(this[e.type]=[]),this[e.type].push(e),e}next(e){let t;return null!=e.index&&(t=e),t||(t=this.all[e]),this[t.index+=1]}nextOfType(e){let t;e.index&&(t=e),t||(t=this.all[e]);const n=t.type;for(;t=this.next(t);)if(t.type===n)return t}get(e){return this.all[e]}has(e){return!!this.all[e]}count(e){return e?this[e]?this[e].length:void 0:this.length}names(e){return e?this[e]&&this[e].length?Array.from(this[e]).map(e=>e.name):[]:this.length?Array.from(this).map(e=>e.name):[]}each(e){Array.from(this).map(t=>e(t))}eachOfType(e,t){this[e]&&Array.from(this[e]).map(e=>t(e))}eachSorted(e){this.names().sort().map(t=>e(this.all[t]))}firstOfType(e){return this[e]?this[e][0]:void 0}eachEditable(e){this.eachOfType("editable",e)}eachImage(e){this.eachOfType("image",e)}eachToggle(e){this.eachOfType("toggle",e)}eachContainer(e){this.eachOfType("container",e)}eachHtml(e){this.eachOfType("html",e)}eachInclude(e){this.eachOfType("include",e)}clone(){const e=new o;return this.each(t=>e.add(t.clone())),e}assertNameNotUsed(e){r(e&&!this.all[e.name],`DirectiveCollection: '${e.name}' is already used.`)}}o.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],e.exports=o},function(e,t){const{hasOwnProperty:n}=Object.prototype;class r{constructor(){this.values={},this.indexes={},this.length=0}push(e,t){return this.values[e]=t,this.indexes[e]=this.length,this[this.length]=t,this.length+=1,this.length}get(e){return this.values[e]}has(e){return n.call(this.values,e)}getIndex(e){const t=this.indexes[e];return null!=t?t:-1}keys(){return Object.keys(this.values)}map(e){return Array.from(this).map(e)}each(e){for(const t of this)e(t)}toArray(){return Array.from(this)}}r.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],e.exports=r},function(e,t,n){var r=n(10),o=n(11),i=n(190),s=n(0);e.exports=function(e,t){return(s(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(31),o=n(12);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},function(e,t,n){const r=n(45),o=n(27),{log:i,assert:s}=n(2),a=n(390),c=n(391),u=n(192);e.exports=class{constructor({componentTree:e}={}){this.beforeComponentRemoved=this.beforeComponentRemoved.bind(this),this.js=[],this.css=[],this.namespaces={},this.jsWaitlist=[],this.componentTree=e,this.componentTree&&this.componentTree.on("componentRemoved",this.beforeComponentRemoved),this.dependenciesAdded=u(),this.jsDependencyLoaded=u(),this.dependencyToExecute=u(),this.codeToExecute=u(),this.dependencyRemoved=u()}parseAssetsDeclaration(e){if(!e)return;const{basePath:t}=e,n=function(e){return function(t){if(o(t))return{src:t,basePath:e};{const{src:n,name:r}=t;return{basePath:e,src:n,name:r}}}}(t),i=Array.isArray(e.js)?e.js:[{src:e.js}],s=Array.isArray(e.css)?e.css:[{src:e.css}];r(i,e=>{const t=n(e);t.src&&this.addJs(t)}),r(s,e=>{const t=n(e);t.src&&this.addCss(t)})}add(e){this.convertToAbsolutePaths(e);const t=new a(e),n=this.getExisting(t);return n?e.component?n.addComponent(e.component):void 0:this.addDependency(t)}addJs(e){e.type="js",this.add(e)}addCss(e){e.type="css",this.add(e)}executeJs(e){e.isExecuteOnly=!0,this.addJs(e)}executeCode(e){this.codeToExecute.fire(e)}convertToAbsolutePaths(e){if(!e.src)return;let{src:t}=e;this.isAbsoluteUrl(t)||(s(e.basePath,"Dependencies: relative urls are not allowed "+`(unless 'basePath' is set): '${t}'`),t=t.replace(/^[./]*/,""),e.src=`${e.basePath.replace(/\/$/,"")}/${t}`)}isAbsoluteUrl(e){return/(^\/\/|[a-z]*:\/\/)/.test(e)||/^\//.test(e)}addDependency(e){return e.isExecuteOnly?this.dependencyToExecute.fire(e):(e.namespace&&this.addToNamespace(e),e.isJs()?(this.js.push(e),this.delayedDependency(e)):(this.css.push(e),this.dependenciesAdded.fire(void 0,[e]))),e}delayedDependency(e){this.jsWaitlist.push(e),1===this.jsWaitlist.length&&setTimeout(()=>{this.dependenciesAdded.fire(this.jsWaitlist,void 0),this.jsWaitlist=[]},0)}addToNamespace(e){if(e.namespace){this.namespaces[e.namespace]||(this.namespaces[e.namespace]=[]),this.namespaces[e.namespace].push(e)}}removeFromNamespace(e){const t=this.getNamespace(e.namespace);if(t){const n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}getNamespaces(){return Object.keys(this.namespaces)}getNamespace(e){const t=this.namespaces[e];if(t)return t.length?t:void 0}getExisting(e){const t=e.isJs()?this.js:this.css;for(const n of Array.from(t))if(n.isSameAs(e))return n}hasCss(){return this.css.length>0}hasJs(){return this.js.length>0}beforeComponentRemoved(e){const t=[];let n;this.js.forEach(r=>{n=r.removeComponent(e),n||t.push(r)}),this.css.forEach(r=>{n=r.removeComponent(e),n||t.push(r)}),t.forEach(e=>{this.removeDependency(e)})}removeDependency(e){e.namespace&&this.removeFromNamespace(e);const t=e.isJs()?this.js:this.css,n=t.indexOf(e);n>-1&&t.splice(n,1),this.dependencyRemoved.fire(e)}serialize(){const e={};return this.js&&this.js.length&&(e.js=this.js.map(e=>e.serialize())),this.css&&this.css.length&&(e.css=this.css.map(e=>e.serialize())),e}deserialize(e){if(!e)return;const t=e.js||[],n=e.css||[];t.forEach(e=>{const t={type:"js",src:e.src,code:e.code,namespace:e.namespace,name:e.name,version:e.version};this.addDeserializedObj(t,e)}),n.forEach(e=>{const t={type:"css",src:e.src,code:e.code,namespace:e.namespace,name:e.name,version:e.version};this.addDeserializedObj(t,e)})}addDeserializedObj(e,t){if(t.componentIds&&t.componentIds.length){const n=[];if(t.componentIds.forEach(e=>{const t=this.componentTree.findById(e);t&&n.push(t)}),n.length){const t=this.add(e);n.forEach(e=>t.addComponent(e))}else i.warn("Dropped dependency: could not find components that depend on it",t)}else this.add(e)}printJs(){return c.printJs(this)}printCss(){return c.printCss(this)}}},function(e,t){e.exports=function(e){e=e?flagsCache[e]||createFlags(e):{};var t,n,r,o,i,s,a=[],c=[],u=function(t){var n,r,o;for(n=0,r=t.length;n<r;n++)o=t[n],Array.isArray(o)?u(o):"function"==typeof o&&(e.unique&&p.has(o)||a.push(o))},l=function(u,l){for(l=l||[],t=!e.memory||[u,l],n=!0,r=!0,s=o||0,o=0,i=a.length;a&&s<i;s++)if(!1===a[s].apply(u,l)&&e.stopOnFalse){t=!0;break}r=!1,a&&(e.once?!0===t?p.disable():a=[]:c&&c.length&&(t=c.shift(),p.fireWith(t[0],t[1])))},p={add:function(){if(a){var e=a.length;u(arguments),r?i=a.length:t&&!0!==t&&(o=e,l(t[0],t[1]))}return this},remove:function(){if(a)for(var t=arguments,n=0,o=t.length;n<o;n++)for(var c=0;c<a.length&&(t[n]!==a[c]||(r&&c<=i&&(i--,c<=s&&s--),a.splice(c--,1),!e.unique));c++);return this},has:function(e){if(a)for(var t=0,n=a.length;t<n;t++)if(e===a[t])return!0;return!1},empty:function(){return a=[],this},disable:function(){return a=c=t=void 0,this},disabled:function(){return!a},lock:function(){return c=void 0,t&&!0!==t||p.disable(),this},locked:function(){return!c},fireWith:function(n,o){return c&&(r?e.once||c.push([n,o]):e.once&&t||l(n,o)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!n}};return p}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t){e.exports.revert=(e,t,n)=>{const r=e.componentTree.findById(n.previous),o=e.componentTree.findById(n.next),i=n.parentContainer||e.componentTree.root;r?i.insertAfter(r,t):o?i.insertBefore(o,t):i.append(t)},e.exports.getContext=function(e,t){const n={parentContainer:e.parentContainer};return e.previous&&(n.previous=e.previous.id),e.next&&(n.next=e.next.id),n.eventSource=t,n}},function(e,t,n){const r=n(69),o=n(83),{parseComponent:i}=n(43),s=n(439);e.exports={render(e,t){const{wrapperHtml:n,componentTree:o}=e,c={...a,...t||e};let u;if(n){const e=function(e){const t=r.next("anon"),{structure:n,skin:o}=i({name:t,html:e});return n.setSkin(o),n.createModel()}(n);e.containers[0].appendTree(o),u=[e]}else u=[...o.childrenIterator()];return s.render({options:c,components:u})},DomElement:o};const a={format:"text/html",prettyHtml:!1,decodeHtml:!1,renderDirectiveInfo:!1}},function(e,t,n){var r=n(35),o=n(198)((function(e,t,n){r(e,n,t)}));e.exports=o},function(e,t,n){var r=n(413),o=n(414),i=n(11),s=n(0);e.exports=function(e,t){return function(n,a){var c=s(n)?r:o,u=t?t():{};return c(n,e,i(a,2),u)}}},function(e,t,n){var r=n(25),o=n(429),i=n(430),s=n(17);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[s(o(t))]}},function(e,t,n){var r,o;(o=new(r=n(435))).new=function(){return new r},e.exports=o,"undefined"!=typeof window&&null!==window&&(window.jScheme=o)},function(e,t,n){const r=n(440),o=n(446);e.exports={parse:(e,t)=>2===e.v?o(e):r.parse(e,t)}},function(e,t,n){const{log:r,assert:o}=n(2),i=n(28),s=/(^[a-zA-Z]+$)|^(#(?:[0-9a-f]{2}){2,4}|#[0-9a-f]{3}|(?:rgba?|hsla?)\((?:\d+%?(?:deg|rad|grad|turn)?(?:,|\s)+){2,3}[\s/]*[\d.]+%?\))$/i;e.exports=class{constructor({name:e,label:t,type:n,value:s,options:a,cssProperty:c}){switch(this.name=e,this.type=n,this.label=t||i.humanize(this.name),this.type){case"option":o(s,"TemplateStyle error: no 'value' provided"),this.value=s;break;case"select":o(a,"TemplateStyle error: no 'options' provided"),this.options=a;break;case"style":o(c,"TemplateStyle error: no 'cssProperty' provided"),this.cssPropertyName=c;break;default:r.error(`TemplateStyle error: unknown type '${this.type}'`)}}cssClassChanges(e){if(this.validateValue(e)){if("option"===this.type)return{remove:e?[]:[this.value],add:e||[]};if("select"===this.type)return{remove:this.otherClasses(e),add:e||[]}}else{if("option"===this.type)return{remove:currentValue||[],add:[]};if("select"===this.type)return{remove:this.otherClasses(void 0),add:[]}}}modifiesClassAttribute(){return"option"===this.type||"select"===this.type}validateValue(e){return!e||("option"===this.type?e===this.value:"select"===this.type?this.containsOption(e):"style"===this.type?this.isValidCssValue(e):void r.warn(`Not implemented: CssModificatorProperty#validateValue() for type ${this.type}`))}containsOption(e){for(const t of this.options)if(e===t.value)return!0;return!1}isValidCssValue(e){switch(this.cssPropertyName){case"color":case"background-color":return s.test(e);default:return!0}}otherOptions(e){return this.options.filter(t=>t.value!==e)}otherClasses(e){return this.otherOptions(e).filter(Boolean).map(e=>e.value)}}},function(e,t,n){const r=n(450),{simplifyTextChanges:o}=n(453),i=n(456);function s({versions:e,createMarkers:t}){const n=[];for(let o=e.length-1;o>0;o--){const s=e[o].componentTree,a=e[o-1].componentTree,c=r.diff(s,a);if(t){const t=e[o-1].user,r=i(c.all,t);n.push(...r)}else n.push(...c.allSerialized)}return o(n),n}e.exports={createDiffCommands:({versions:e})=>s({versions:e}),createDiffMarkers:({versions:e})=>s({versions:e,createMarkers:!0})}},function(e,t,n){var r=n(123),o=n(454),i=n(11),s=n(0);e.exports=function(e,t){return(s(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(11),o=n(455);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],a=e.length;for(t=r(t,3);++i<a;){var c=e[i];t(c,i,e)&&(n.push(c),s.push(i))}return o(e,s),n}},function(e,t,n){var r=n(29),o=n(30),i=n(18).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+h(n[v-15])+n[v-16];for(var y=0;y<64;++y){var b=g+d(c)+u(c,f,m)+s[y]+n[y]|0,x=p(r)+l(r,o,i)|0;g=m,m=f,f=c,c=a+b|0,a=i,i=o,o=r,r=b+x|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,n){var r=n(29),o=n(30),i=n(18).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}r(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,a=0|this._eh,c=0|this._fh,y=0|this._gh,b=0|this._hh,x=0|this._al,_=0|this._bl,w=0|this._cl,C=0|this._dl,T=0|this._el,S=0|this._fl,E=0|this._gl,I=0|this._hl,A=0;A<32;A+=2)t[A]=e.readInt32BE(4*A),t[A+1]=e.readInt32BE(4*A+4);for(;A<160;A+=2){var D=t[A-30],k=t[A-30+1],N=h(D,k),P=f(k,D),O=m(D=t[A-4],k=t[A-4+1]),j=g(k,D),R=t[A-14],L=t[A-14+1],M=t[A-32],q=t[A-32+1],B=P+L|0,$=N+R+v(B,P)|0;$=($=$+O+v(B=B+j|0,j)|0)+M+v(B=B+q|0,q)|0,t[A]=$,t[A+1]=B}for(var U=0;U<160;U+=2){$=t[U],B=t[U+1];var V=l(n,r,o),F=l(x,_,w),H=p(n,x),z=p(x,n),W=d(a,T),G=d(T,a),X=s[U],J=s[U+1],Y=u(a,c,y),Q=u(T,S,E),Z=I+G|0,K=b+W+v(Z,I)|0;K=(K=(K=K+Y+v(Z=Z+Q|0,Q)|0)+X+v(Z=Z+J|0,J)|0)+$+v(Z=Z+B|0,B)|0;var ee=z+F|0,te=H+V+v(ee,z)|0;b=y,I=E,y=c,E=S,c=a,S=T,a=i+K+v(T=C+Z|0,C)|0,i=o,C=w,o=r,w=_,r=n,_=x,n=K+te+v(x=Z+ee|0,Z)|0}this._al=this._al+x|0,this._bl=this._bl+_|0,this._cl=this._cl+w|0,this._dl=this._dl+C|0,this._el=this._el+T|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+I|0,this._ah=this._ah+n+v(this._al,x)|0,this._bh=this._bh+r+v(this._bl,_)|0,this._ch=this._ch+o+v(this._cl,w)|0,this._dh=this._dh+i+v(this._dl,C)|0,this._eh=this._eh+a+v(this._el,T)|0,this._fh=this._fh+c+v(this._fl,S)|0,this._gh=this._gh+y+v(this._gl,E)|0,this._hh=this._hh+b+v(this._hl,I)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,n){const r=n(44),o=n(112),{assert:i}=n(2);e.exports={getUrl:function(e,{crop:t,width:n,preferWebp:r,host:i,convert:a,parseQuery:c}={}){const u=o.parse(e,c),l=c?u.query:{};if(a)l.fm=a;else{const e=t?s(t):null;e&&(l.rect=e),n&&(l.w=n),r&&(l.auto="format")}const p=o.parse(i);return p.pathname=u.pathname,p.query=l,o.format(p)}};const s=function({x:e,y:t,width:n,height:o}){return i(r(e),"x should be a number"),i(r(t),"y should be a number"),i(r(n),"width should be a number"),i(r(o),"height should be a number"),`${e},${t},${n},${o}`}},function(e,t,n){const r=n(113),o=n(307);o.ComponentRenderer=r,e.exports=o},function(e,t,n){var r=n(114),o=n(14);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===n(i[c],c,i))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(9),o=n(3);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(19),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[a]=n:delete e[a]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(9),o=n(73),i=n(3),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!s[r(e)]}},function(e,t,n){var r=n(117)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(12);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&!1!==o(a[s],s,a););return n}}},function(e,t,n){var r=n(22);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(16)(n(5),"DataView");e.exports=r},function(e,t,n){var r=n(50),o=n(223),i=n(7),s=n(118),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:a).test(s(e))}},function(e,t,n){var r,o=n(224),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(5)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(16)(n(5),"Promise");e.exports=r},function(e,t,n){var r=n(16)(n(5),"Set");e.exports=r},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(55),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(55);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(55);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(55);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(54);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(54),o=n(75),i=n(76);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(239),o=n(54),i=n(75);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(240),o=n(241),i=n(242),s=n(243),a=n(244);function c(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])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,n){var r=n(56);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(56),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(56),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(56);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(57);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(57);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(57);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(57);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(24),o=n(58);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(7),o=n(49),i=n(252),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(24),o=n(78);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(24),o=n(125);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(82),o=n(257),i=n(258),s=n(259),a=n(129);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(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 a(e,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Set]":return new c;case"[object Symbol]":return s(e)}}},function(e,t,n){var r=n(82);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(19),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(261),o=n(21),i=n(74),s=i&&i.isMap,a=s?o(s):r;e.exports=a},function(e,t,n){var r=n(15),o=n(3);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(263),o=n(21),i=n(74),s=i&&i.isSet,a=s?o(s):r;e.exports=a},function(e,t,n){var r=n(15),o=n(3);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t){e.exports={eachNode(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++){const r=e[n];t(r),this.eachNode(r.children,t)}},eachElement(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++){const r=e[n];"tag"===r.type&&(t(r),this.eachElement(r.children,t))}},eachDirective(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n];"tag"===r.type&&(r.directives&&t(r,r.directives),this.eachDirective(r.children,t))}},createElem(e,t,...n){const r={type:"tag",name:e};if(t&&(r.attribs=t),!n.length)return r;r.children=[];for(let e=0;e<n.length;e++){const t=n[e];r.children[e]="string"==typeof t?{type:"text",data:t}:t}return r},escapeAttributeData(e){const t=JSON.stringify(e);return this.escapeHtml(t)},escapeHtml:e=>e?`${e}`.replace(/['"<>&]/g,e=>{switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}}):""}},function(e,t,n){var r=n(266);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(76);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(268),o=n(86)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){var r=n(133),o=n(135);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(25),o=n(32),i=n(0),s=n(20),a=n(73),c=n(17);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,p=!1;++u<l;){var d=c(t[u]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++u!=l?p:!!(l=null==e?0:e.length)&&a(l)&&s(d,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(87);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(19),o=n(32),i=n(0),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(s&&e&&e[s])}},function(e,t,n){var r=n(274),o=n(120),i=n(22),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=s},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(90);t.Parser=i.Parser;var s=n(142);t.DomHandler=s.DomHandler,t.DefaultHandler=s.DomHandler,t.parseDOM=function(e,t){var n=new s.DomHandler(void 0,t);return new i.Parser(n,t).end(e),n.dom},t.createDomStream=function(e,t,n){var r=new s.DomHandler(e,t,n);return new i.Parser(r,t)};var a=n(139);t.Tokenizer=a.default;var c=o(n(278));t.ElementType=c,t.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},r(n(143)),r(n(288)),r(n(291));var u=o(n(144));t.DomUtils=u;var l=n(143);t.RssHandler=l.FeedHandler},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),s=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return i.get(this.type)||1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent||null},set:function(e){this.parent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev||null},set:function(e){this.prev=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next||null},set:function(e){this.next=e},enumerable:!0,configurable:!0}),e}();t.Node=s;var a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),t}(s);t.DataNode=a;var c=function(e){function t(t,n){var r=e.call(this,"directive",n)||this;return r.name=t,r}return o(t,e),t}(a);t.ProcessingInstruction=c;var u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!0,configurable:!0}),t}(s);t.NodeWithChildren=u;var l=function(e){function t(t,n){var r=e.call(this,"script"===t?"script":"style"===t?"style":"tag",[])||this;return r.name=t,r.attribs=n,r.attribs=n,r}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!0,configurable:!0}),t}(u);t.Element=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(37),i=r(n(281));t.getOuterHTML=i.default,t.getInnerHTML=function(e,n){return o.hasChildren(e)?e.children.map((function(e){return t.getOuterHTML(e,n)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):o.isTag(t)?"br"===t.name?"\n":e(t.children):o.isCDATA(t)?e(t.children):o.isText(t)?t.data:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t,n){var r=n(282),o=n(62),i=n(283);i.elementNames.__proto__=null,i.attributeNames.__proto__=null;var s={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},c=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",o=0;o<e.length;o++){var i=e[o];"root"===i.type?n+=c(i.children,t):r.isTag(i)?n+=l(i,t):i.type===r.Directive?n+=p(i):i.type===r.Comment?n+=f(i):i.type===r.CDATA?n+=h(i):n+=d(i,t)}return n},u=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function l(e,t){"foreign"===t.xmlMode&&(e.name=i.elementNames[e.name]||e.name,e.parent&&u.indexOf(e.parent.name)>=0&&(t=Object.assign({},t,{xmlMode:!1}))),!t.xmlMode&&["svg","math"].indexOf(e.name)>=0&&(t=Object.assign({},t,{xmlMode:"foreign"}));var n="<"+e.name,r=function(e,t){if(e){var n,r="";for(var s in e)n=e[s],r&&(r+=" "),"foreign"===t.xmlMode&&(s=i.attributeNames[s]||s),r+=s,(null!==n&&""!==n||t.xmlMode)&&(r+='="'+(t.decodeEntities?o.encodeXML(n):n.replace(/\"/g,"""))+'"');return r}}(e.attribs,t);return r&&(n+=" "+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=c(e.children,t)),a[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function p(e){return"<"+e.data+">"}function d(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in s||(n=o.encodeXML(n)),n}function h(e){return"<![CDATA["+e.children[0].data+"]]>"}function f(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e){e.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},function(e,t,n){"use strict";function r(e){return e.children||null}function o(e){return e.parent||null}function i(e,t){return e.attribs&&e.attribs[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.getChildren=r,t.getParent=o,t.getSiblings=function(e){var t=o(e);return t?r(t):[e]},t.getAttributeValue=i,t.hasAttrib=function(e,t){return!!i(e,t)},t.getName=function(e){return e.name}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(147),o=n(37);function i(e){return"text"===e.type}var s={tag_name:function(e){return"function"==typeof e?function(t){return o.isTag(t)&&e(t.name)}:"*"===e?o.isTag:function(t){return o.isTag(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.data)}:function(t){return i(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return o.isTag(n)&&t(n.attribs[e])}:function(n){return o.isTag(n)&&n.attribs[e]===t}}function c(e,t){return function(n){return e(n)||t(n)}}function u(e){var t=Object.keys(e).map((function(t){var n=e[t];return t in s?s[t](n):a(t,n)}));return 0===t.length?null:t.reduce(c)}t.testElement=function(e,t){var n=u(e);return!n||n(t)},t.getElements=function(e,t,n,o){void 0===o&&(o=1/0);var i=u(e);return i?r.filter(i,t,n,o):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),r.findOne(a("id",e),t,n)},t.getElementsByTagName=function(e,t,n,o){return void 0===o&&(o=1/0),r.filter(s.tag_name(e),t,n,o)},t.getElementsByTagType=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),r.filter(s.tag_type(e),t,n,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37);function o(e,t){var n=[],o=[];if(e===t)return 0;for(var i=r.hasChildren(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(i=r.hasChildren(t)?t:t.parent;i;)o.unshift(i),i=i.parent;for(var s=0;n[s]===o[s];)s++;if(0===s)return 1;var a=n[s-1],c=a.children,u=n[s],l=o[s];return c.indexOf(u)>c.indexOf(l)?a===t?20:4:a===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.indexOf(r)>-1){e.splice(t,1);break}}return e},t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=o(e,t);return 2&n?-1:4&n?1:0})),e}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),s=n(289),a=n(290);var c=function(e){function t(t,n){var r=e.call(this,{decodeStrings:!1})||this;return r._decoder=new a.StringDecoder,r._parser=new i.Parser(t,n),r}return o(t,e),t.prototype._write=function(e,t,n){(function(e,t){return"buffer"===t})(0,t)&&(e=this._decoder.write(e)),this._parser.write(e),n()},t.prototype._final=function(e){this._parser.end(this._decoder.end()),e()},t}(s.Writable);t.WritableStream=c},function(e,t){e.exports=require("stream")},function(e,t){e.exports=require("string_decoder")},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(function(e){for(var t,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n.events.push([e].concat(r)),n._cbs[e]&&(t=n._cbs)[e].apply(t,r)}))||this;return n._cbs=t,n.events=[],n}return o(t,e),t.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},t.prototype.restart=function(){var e;this._cbs.onreset&&this._cbs.onreset();for(var t=0;t<this.events.length;t++){var n=this.events[t],r=n[0],o=n.slice(1);this._cbs[r]&&(e=this._cbs)[r].apply(e,o)}},t}(i(n(292)).default);t.CollectingHandler=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._func=e}return e.prototype.onattribute=function(e,t){this._func("onattribute",e,t)},e.prototype.oncdatastart=function(){this._func("oncdatastart")},e.prototype.oncdataend=function(){this._func("oncdataend")},e.prototype.ontext=function(e){this._func("ontext",e)},e.prototype.onprocessinginstruction=function(e,t){this._func("onprocessinginstruction",e,t)},e.prototype.oncomment=function(e){this._func("oncomment",e)},e.prototype.oncommentend=function(){this._func("oncommentend")},e.prototype.onclosetag=function(e){this._func("onclosetag",e)},e.prototype.onopentag=function(e,t){this._func("onopentag",e,t)},e.prototype.onopentagname=function(e){this._func("onopentagname",e)},e.prototype.onerror=function(e){this._func("onerror",e)},e.prototype.onend=function(){this._func("onend")},e.prototype.onparserinit=function(e){this._func("onparserinit",e)},e.prototype.onreset=function(){this._func("onreset")},e}();t.default=r},function(e,t,n){const r=n(294),o=/\s+/g,i={normalizeWhitespace:!1,withStartIndices:!1,withReferences:!0};e.exports=class e{constructor(e,t){this._callback=t||function(){},this._options=e||i,this._done=!1,this._tagStack=[],this._parser=this._parser||null,this.dom=[]}onparserinit(e){this._parser=e}onreset(){e.call(this,this._callback,this._options)}onend(){this._done||(this._done=!0,this._parser=null,this._callback(null,this.dom))}onerror(e){this.error=e,this._callback(e)}onopentag(e,t){let n=r.Tag;"script"===e?n=r.Script:"style"===e&&r.Style;const o={type:n,name:e,attribs:t,children:[]};this._addDomElement(o),this._tagStack.push(o)}onclosetag(){this._tagStack.pop()}ontext(e){const t=this._options.normalizeWhitespace,n=this._getLastTag();n&&n.type===r.Text?t?n.data=(n.data+e).replace(o," "):n.data+=e:(t&&(e=e.replace(o," ")),this._addDomElement({data:e,type:r.Text}))}oncomment(e){const t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)return void(t.data+=e);const n={data:e,type:r.Comment};this._addDomElement(n),this._tagStack.push(n)}oncommentend(){this._tagStack.pop()}oncdatastart(){this.onerror(new Error("cdata is not supported"))}onprocessinginstruction(e,t){this.onerror(new Error("processing instructions are not supported"))}_addDomElement(e){const t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom;if(this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withReferences){const r=n[n.length-1];e.parent=t||null,e.next=null,r?(e.prev=r,r.next=e):e.prev=null}n.push(e)}_getLastTag(){if(this._tagStack.length){const e=this._tagStack[this._tagStack.length-1],{children:t}=e;if(t.length)return t[t.length-1]}else if(this.dom.length)return this.dom[this.dom.length-1]}}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:e=>"tag"===e.type||"script"===e.type||"style"===e.type}},function(e,t){e.exports={booleanAttributes:{__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},unencodedElements:{__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},singleTags:{__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},blockElements:{h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,div:!0,p:!0,a:!0,ul:!0,ol:!0,li:!0,figure:!0,figcaption:!0,blockquote:!0,article:!0,section:!0,aside:!0,footer:!0}}},function(e,t,n){e.exports={src:n(150),srcSet:n(297),tmpImg:n(299),picture:n(300),video:n(152),audio:n(301),backgroundImage:n(302),tmpBackgroundImage:n(304),resrcit:n(305)}},function(e,t,n){const{ensureTag:r}=n(151),o=n(150),i=n(152);e.exports={render(e,t,n,s){if(!1===n.supportsWidth)return o.render(e,t);const a=t.getOriginalUrl();if(!a)return this.reset(e);if(t.isGif()&&n.supportsVideoConversion&&s(["srcSet","convertGifToVideo"])){const{width:r,height:o}=t.originalDimensions;return i.renderVideoTag(e,{url:n.getUrl(a,{convert:"mp4"}),width:r,height:o,controls:!1,loop:!0,autoplay:!0})}const{replaced:c,$replacement:u}=r(e,"img");c&&(e=u);const l=s(["srcSet","defaultWidth"]),p=s(["srcSet","widths"]),d=s(["srcSet","sizes"]),h=t.getCrop(),f=n.getUrl(a,{width:l,crop:h}),m=[];for(const e in p){const t=p[e],r=n.getUrl(a,{width:t,crop:h});m.push({width:t,url:r})}return function(e,t,n,r=[],o){if(e.attr("src",t),o){const t=o.getAltText();t&&e.attr("alt",t||"")}const i=n.map(({width:e,url:t})=>`${t} ${e}w`).join(",");e.attr("srcset",i),e.attr("sizes",r.join(","))}(e,f,m,d,t),c?e:void 0},reset(e){const{replaced:t,$replacement:n}=r(e,"img");if(t&&(e=n),e.removeAttr("src"),e.removeAttr("srcset"),e.removeAttr("sizes"),e.removeAttr("alt"),t)return e}}},function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var i=[],s=n.document,a=Object.getPrototypeOf,c=i.slice,u=i.concat,l=i.push,p=i.indexOf,d={},h=d.toString,f=d.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},x={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,o,i=(n=n||s).createElement("script");if(i.text=e,t)for(r in x)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:"3.4.1",constructor:C,length:0,toArray:function(){return c.call(this)},get:function(e){return null==e?c.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:i.sort,splice:i.splice},C.extend=C.fn.extend=function(){var e,t,n,r,o,i,s=arguments[0]||{},a=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===c&&(s=this,a--);a<c;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(u&&r&&(C.isPlainObject(r)||(o=Array.isArray(r)))?(n=s[t],i=o&&!Array.isArray(n)?[]:o||C.isPlainObject(n)?n:{},o=!1,s[t]=C.extend(u,i,r)):void 0!==r&&(s[t]=r));return s},C.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){_(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?C.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:p.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,s=!n;o<i;o++)!t(e[o],o)!==s&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,s=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&s.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&s.push(o);return u.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=i[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var E=function(e){var t,n,r,o,i,s,a,c,u,l,p,d,h,f,m,g,v,y,b,x="sizzle"+1*new Date,_=e.document,w=0,C=0,T=ce(),S=ce(),E=ce(),I=ce(),A=function(e,t){return e===t&&(p=!0),0},D={}.hasOwnProperty,k=[],N=k.pop,P=k.push,O=k.push,j=k.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+M+"*("+q+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+M+"*\\]",$=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",U=new RegExp(M+"+","g"),V=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),H=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp(M+"|>"),W=new RegExp($),G=new RegExp("^"+q+"$"),X={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},se=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(k=j.call(_.childNodes),_.childNodes),k[_.childNodes.length].nodeType}catch(e){O={apply:k.length?function(e,t){P.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var i,a,u,l,p,f,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!o&&((t?t.ownerDocument||t:_)!==h&&d(t),t=t||h,m)){if(11!==w&&(p=K.exec(e)))if(i=p[1]){if(9===w){if(!(u=t.getElementById(i)))return r;if(u.id===i)return r.push(u),r}else if(y&&(u=y.getElementById(i))&&b(t,u)&&u.id===i)return r.push(u),r}else{if(p[2])return O.apply(r,t.getElementsByTagName(e)),r;if((i=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!I[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&z.test(e)){for((l=t.getAttribute("id"))?l=l.replace(re,oe):t.setAttribute("id",l=x),a=(f=s(e)).length;a--;)f[a]="#"+l+" "+be(f[a]);v=f.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return O.apply(r,y.querySelectorAll(v)),r}catch(t){I(e,!0)}finally{l===x&&t.removeAttribute("id")}}}return c(e.replace(V,"$1"),t,r,o)}function ce(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ue(e){return e[x]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,r){for(var o,i=e([],n.length,t),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},i=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},d=ae.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:_;return s!==h&&9===s.nodeType&&s.documentElement?(f=(h=s).documentElement,m=!i(h),_!==h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=le((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(h.getElementsByClassName),n.getById=le((function(e){return f.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(h.querySelectorAll))&&(le((function(e){f.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+M+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")})),le((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",$)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(f.compareDocumentPosition),b=t||Z.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===h||e.ownerDocument===_&&b(_,e)?-1:t===h||t.ownerDocument===_&&b(_,t)?1:l?R(l,e)-R(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,s=[e],a=[t];if(!o||!i)return e===h?-1:t===h?1:o?-1:i?1:l?R(l,e)-R(l,t):0;if(o===i)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?de(s[r],a[r]):s[r]===_?-1:a[r]===_?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&d(e),n.matchesSelector&&m&&!I[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){I(t,!0)}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==h&&d(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==h&&d(e);var o=r.attrHandle[t.toLowerCase()],i=o&&D.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ae.escape=function(e){return(e+"").replace(re,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],o=0,i=0;if(p=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(A),p){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return l=null,e},o=ae.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ae.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,l,p,d,h,f,m=i!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!c&&!a,b=!1;if(g){if(i){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(b=(h=(u=(l=(p=(d=g)[x]||(d[x]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===w&&u[1])&&u[2],d=h&&g.childNodes[h];d=++h&&d&&d[m]||(b=h=0)||f.pop();)if(1===d.nodeType&&++b&&d===t){l[e]=[w,h,b];break}}else if(y&&(b=h=(u=(l=(p=(d=t)[x]||(d[x]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===w&&u[1]),!1===b)for(;(d=++h&&d&&d[m]||(b=h=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((l=(p=d[x]||(d[x]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]=[w,b]),d!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,i=o(e,t),s=i.length;s--;)e[r=R(e,i[s])]=!(n[r]=i[s])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ue((function(e){var t=[],n=[],r=a(e.replace(V,"$1"));return r[x]?ue((function(e,t,n,o){for(var i,s=r(e,null,o,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return ae(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ue((function(e){return G.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,s=n&&"parentNode"===i,a=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,c){var u,l,p,d=[w,a];if(c){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(l=(p=t[x]||(t[x]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=l[i])&&u[0]===w&&u[1]===a)return d[2]=u[2];if(l[i]=d,d[2]=e(t,n,c))return!0}return!1}}function _e(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,o){for(var i,s=[],a=0,c=e.length,u=null!=t;a<c;a++)(i=e[a])&&(n&&!n(i,r,o)||(s.push(i),u&&t.push(a)));return s}function Ce(e,t,n,r,o,i){return r&&!r[x]&&(r=Ce(r)),o&&!o[x]&&(o=Ce(o,i)),ue((function(i,s,a,c){var u,l,p,d=[],h=[],f=s.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ae(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!i&&t?m:we(m,d,e,a,c),v=n?o||(i?e:f||r)?[]:s:g;if(n&&n(g,v,a,c),r)for(u=we(v,h),r(u,[],a,c),l=u.length;l--;)(p=u[l])&&(v[h[l]]=!(g[h[l]]=p));if(i){if(o||e){if(o){for(u=[],l=v.length;l--;)(p=v[l])&&u.push(g[l]=p);o(null,v=[],u,c)}for(l=v.length;l--;)(p=v[l])&&(u=o?R(i,p):d[l])>-1&&(i[u]=!(s[u]=p))}}else v=we(v===s?v.splice(f,v.length):v),o?o(null,s,v,c):O.apply(s,v)}))}function Te(e){for(var t,n,o,i=e.length,s=r.relative[e[0].type],a=s||r.relative[" "],c=s?1:0,l=xe((function(e){return e===t}),a,!0),p=xe((function(e){return R(t,e)>-1}),a,!0),d=[function(e,n,r){var o=!s&&(r||n!==u)||((t=n).nodeType?l(e,n,r):p(e,n,r));return t=null,o}];c<i;c++)if(n=r.relative[e[c].type])d=[xe(_e(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[x]){for(o=++c;o<i&&!r.relative[e[o].type];o++);return Ce(c>1&&_e(d),c>1&&be(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(V,"$1"),n,c<o&&Te(e.slice(c,o)),o<i&&Te(e=e.slice(o)),o<i&&be(e))}d.push(n)}return _e(d)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,s=ae.tokenize=function(e,t){var n,o,i,s,a,c,u,l=S[e+" "];if(l)return t?0:l.slice(0);for(a=e,c=[],u=r.preFilter;a;){for(s in n&&!(o=F.exec(a))||(o&&(a=a.slice(o[0].length)||a),c.push(i=[])),n=!1,(o=H.exec(a))&&(n=o.shift(),i.push({value:n,type:o[0].replace(V," ")}),a=a.slice(n.length)),r.filter)!(o=X[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),i.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):S(e,c).slice(0)},a=ae.compile=function(e,t){var n,o=[],i=[],a=E[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Te(t[n]))[x]?o.push(a):i.push(a);(a=E(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,s,a,c,l){var p,f,g,v=0,y="0",b=i&&[],x=[],_=u,C=i||o&&r.find.TAG("*",l),T=w+=null==_?1:Math.random()||.1,S=C.length;for(l&&(u=s===h||s||l);y!==S&&null!=(p=C[y]);y++){if(o&&p){for(f=0,s||p.ownerDocument===h||(d(p),a=!m);g=e[f++];)if(g(p,s||h,a)){c.push(p);break}l&&(w=T)}n&&((p=!g&&p)&&v--,i&&b.push(p))}if(v+=y,n&&y!==v){for(f=0;g=t[f++];)g(b,x,s,a);if(i){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=N.call(c));x=we(x)}O.apply(c,x),l&&!i&&x.length>0&&v+t.length>1&&ae.uniqueSort(c)}return l&&(w=T,u=_),b};return n?ue(i):i}(i,o))).selector=e}return a},c=ae.select=function(e,t,n,o){var i,c,u,l,p,d="function"==typeof e&&e,h=!o&&s(e=d.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(i=X.needsContext.test(e)?0:c.length;i--&&(u=c[i],!r.relative[l=u.type]);)if((p=r.find[l])&&(o=p(u.matches[0].replace(te,ne),ee.test(c[0].type)&&ve(t.parentNode)||t))){if(c.splice(i,1),!(e=o.length&&be(c)))return O.apply(n,o),n;break}}return(d||a(e,h))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(A).join("")===x,n.detectDuplicates=!!p,d(),n.sortDetached=le((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),le((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&le((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||pe(L,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ae}(n);C.find=E,C.expr=E.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=E.uniqueSort,C.text=E.getText,C.isXMLDoc=E.isXML,C.contains=E.contains,C.escapeSelector=E.escape;var I=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=C.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return y(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return p.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<r;t++)if(C.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,o[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&D.test(e)?C(e):e||[],!1).length}});var O,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:j.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),N.test(r[1])&&C.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=s.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,O=C(s);var R=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],s="string"!=typeof e&&C(e);if(!D.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?C.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?p.call(C(e),this[0]):p.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(k(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,r){var o=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=C.filter(r,o)),this.length>1&&(L[e]||C.uniqueSort(o),R.test(e)&&o.reverse()),this.pushStack(o)}}));var q=/[^\x20\t\r\n\f]+/g;function B(e){return e}function $(e){throw e}function U(e,t,n,r){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,r,o,i=[],s=[],a=-1,c=function(){for(o=o||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<i.length;)!1===i[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(a=i.length-1,s.push(n)),function t(n){C.each(n,(function(n,r){y(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,i,n))>-1;)i.splice(n,1),n<=a&&a--})),this},has:function(e){return e?C.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=s=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,r){var o=y(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function s(e,t,r,o){return function(){var a=this,c=arguments,u=function(){var n,u;if(!(e<i)){if((n=r.apply(a,c))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(u)?o?u.call(n,s(i,t,B,o),s(i,t,$,o)):(i++,u.call(n,s(i,t,B,o),s(i,t,$,o),s(i,t,B,t.notifyWith))):(r!==B&&(a=void 0,c=[n]),(o||t.resolveWith)(a,c))}},l=o?u:function(){try{u()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,l.stackTrace),e+1>=i&&(r!==$&&(a=void 0,c=[n]),t.rejectWith(a,c))}};e?l():(C.Deferred.getStackHook&&(l.stackTrace=C.Deferred.getStackHook()),n.setTimeout(l))}}return C.Deferred((function(n){t[0][3].add(s(0,n,y(o)?o:B,n.notifyWith)),t[1][3].add(s(0,n,y(e)?e:B)),t[2][3].add(s(0,n,y(r)?r:$))})).promise()},promise:function(e){return null!=e?C.extend(e,o):o}},i={};return C.each(t,(function(e,n){var s=n[2],a=n[5];o[n[1]]=s.add,a&&s.add((function(){r=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=s.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=c.call(arguments),i=C.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?c.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(U(e,i.done(s(n)).resolve,i.reject,!t),"pending"===i.state()||y(o[n]&&o[n].then)))return i.then();for(;n--;)U(o[n],s(n),i.reject);return i.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&V.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout((function(){throw e}))};var F=C.Deferred();function H(){s.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),C.ready()}C.fn.ready=function(e){return F.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||F.resolveWith(s,[C]))}}),C.ready.then=F.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(C.ready):(s.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var z=function(e,t,n,r,o,i,s){var a=0,c=e.length,u=null==n;if("object"===w(n))for(a in o=!0,n)z(e,t,a,n[a],!0,i,s);else if(void 0!==r&&(o=!0,y(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(C(e),n)})),t))for(;a<c;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):c?t(e[0],n):i},W=/^-ms-/,G=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function J(e){return e.replace(W,"ms-").replace(G,X)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=C.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[J(t)]=n;else for(r in t)o[J(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][J(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(J):(t=J(t))in r?[t]:t.match(q)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var Z=new Q,K=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}K.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return K.hasData(e)||Z.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,o,i=this[0],s=i&&i.attributes;if(void 0===e){if(this.length&&(o=K.get(i),1===i.nodeType&&!Z.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=J(r.slice(5)),ne(i,r,o[r]));Z.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){K.set(this,e)})):z(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=K.get(i,e))||void 0!==(n=ne(i,e))?n:void 0;this.each((function(){K.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,o=n.shift(),i=C._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){C.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:C.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=C.Deferred(),i=this,s=this.length,a=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Z.get(i[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),o.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],se=s.documentElement,ae=function(e){return C.contains(e.ownerDocument,e)},ce={composed:!0};se.getRootNode&&(ae=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===C.css(e,"display")},le=function(e,t,n,r){var o,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=s[i];return o};function pe(e,t,n,r){var o,i,s=20,a=r?function(){return r.cur()}:function(){return C.css(e,t,"")},c=a(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),l=e.nodeType&&(C.cssNumber[t]||"px"!==u&&+c)&&oe.exec(C.css(e,t));if(l&&l[3]!==u){for(c/=2,u=u||l[3],l=+c||1;s--;)C.style(e,t,l+u),(1-i)*(1-(i=a()/c||.5))<=0&&(s=0),l/=i;l*=2,C.style(e,t,l+u),n=n||[]}return n&&(l=+l||+c||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=o)),o}var de={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,o=de[r];return o||(t=n.body.appendChild(n.createElement(r)),o=C.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),de[r]=o,o)}function fe(e,t){for(var n,r,o=[],i=0,s=e.length;i<s;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=Z.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ue(r)&&(o[i]=he(r))):"none"!==n&&(o[i]="none",Z.set(r,"display",n)));for(i=0;i<s;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}C.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ue(this)?C(this).show():C(this).hide()}))}});var me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?C.merge([e],n):n}function xe(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td;var _e,we,Ce=/<|&#?\w+;/;function Te(e,t,n,r,o){for(var i,s,a,c,u,l,p=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===w(i))C.merge(d,i.nodeType?[i]:i);else if(Ce.test(i)){for(s=s||p.appendChild(t.createElement("div")),a=(ge.exec(i)||["",""])[1].toLowerCase(),c=ye[a]||ye._default,s.innerHTML=c[1]+C.htmlPrefilter(i)+c[2],l=c[0];l--;)s=s.lastChild;C.merge(d,s.childNodes),(s=p.firstChild).textContent=""}else d.push(t.createTextNode(i));for(p.textContent="",h=0;i=d[h++];)if(r&&C.inArray(i,r)>-1)o&&o.push(i);else if(u=ae(i),s=be(p.appendChild(i),"script"),u&&xe(s),n)for(l=0;i=s[l++];)ve.test(i.type||"")&&n.push(i);return p}_e=s.createDocumentFragment().appendChild(s.createElement("div")),(we=s.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),_e.appendChild(we),v.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue;var Se=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ie=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function De(){return!1}function ke(e,t){return e===function(){try{return s.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,r,o,i){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=De;else if(!o)return e;return 1===i&&(s=o,(o=function(e){return C().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),e.each((function(){C.event.add(this,t,o,r,n)}))}function Pe(e,t,n){n?(Z.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=c.call(arguments),Z.set(this,t,i),r=n(this,t),this[t](),i!==(o=Z.get(this,t))||r?Z.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(Z.set(this,t,{value:C.event.trigger(C.extend(i[0],C.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&C.event.add(e,t,Ae)}C.event={global:{},add:function(e,t,n,r,o){var i,s,a,c,u,l,p,d,h,f,m,g=Z.get(e);if(g)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&C.find.matchesSelector(se,o),n.guid||(n.guid=C.guid++),(c=g.events)||(c=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(q)||[""]).length;u--;)h=m=(a=Ie.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),h&&(p=C.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=C.event.special[h]||{},l=C.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:f.join(".")},i),(d=c[h])||((d=c[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,l):d.push(l),C.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,s,a,c,u,l,p,d,h,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(q)||[""]).length;u--;)if(h=m=(a=Ie.exec(t[u])||[])[1],f=(a[2]||"").split(".").sort(),h){for(p=C.event.special[h]||{},d=c[h=(r?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=d.length;i--;)l=d[i],!o&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(i,1),l.selector&&d.delegateCount--,p.remove&&p.remove.call(e,l));s&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,f,g.handle)||C.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)C.event.remove(e,h+t[u],n,r,!0);C.isEmptyObject(c)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,s,a=C.event.fix(e),c=new Array(arguments.length),u=(Z.get(this,"events")||{})[a.type]||[],l=C.event.special[a.type]||{};for(c[0]=a,t=1;t<arguments.length;t++)c[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=C.event.handlers.call(this,a,u),t=0;(o=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==i.namespace&&!a.rnamespace.test(i.namespace)||(a.handleObj=i,a.data=i.data,void 0!==(r=((C.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,c))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,o,i,s,a=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],s={},n=0;n<c;n++)void 0===s[o=(r=t[n]).selector+" "]&&(s[o]=r.needsContext?C(o,this).index(u)>-1:C.find(o,this,null,[u]).length),s[o]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return u=this,c<t.length&&a.push({elem:u,handlers:t.slice(c)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&k(t,"input")&&Pe(t,"click",Ae),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&k(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&k(t,"input")&&Z.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:De,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:De,isPropagationStopped:De,isImmediatePropagationStopped:De,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Se.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return Pe(this,e,ke),!1},trigger:function(){return Pe(this,e),!0},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||C.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=De),this.each((function(){C.event.remove(this,e,n,t)}))}});var Oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,je=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $e(e,t){var n,r,o,i,s,a,c,u;if(1===t.nodeType){if(Z.hasData(e)&&(i=Z.access(e),s=Z.set(t,i),u=i.events))for(o in delete s.handle,s.events={},u)for(n=0,r=u[o].length;n<r;n++)C.event.add(t,o,u[o][n]);K.hasData(e)&&(a=K.access(e),c=C.extend({},a),K.set(t,c))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ve(e,t,n,r){t=u.apply([],t);var o,i,s,a,c,l,p=0,d=e.length,h=d-1,f=t[0],m=y(f);if(m||d>1&&"string"==typeof f&&!v.checkClone&&Re.test(f))return e.each((function(o){var i=e.eq(o);m&&(t[0]=f.call(this,o,i.html())),Ve(i,t,n,r)}));if(d&&(i=(o=Te(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(a=(s=C.map(be(o,"script"),qe)).length;p<d;p++)c=o,p!==h&&(c=C.clone(c,!0,!0),a&&C.merge(s,be(c,"script"))),n.call(e[p],c,p);if(a)for(l=s[s.length-1].ownerDocument,C.map(s,Be),p=0;p<a;p++)c=s[p],ve.test(c.type||"")&&!Z.access(c,"globalEval")&&C.contains(l,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")}):_(c.textContent.replace(Le,""),c,l))}return e}function Fe(e,t,n){for(var r,o=t?C.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||C.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&xe(be(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e.replace(Oe,"<$1></$2>")},clone:function(e,t,n){var r,o,i,s,a=e.cloneNode(!0),c=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(s=be(a),r=0,o=(i=be(e)).length;r<o;r++)Ue(i[r],s[r]);if(t)if(n)for(i=i||be(e),s=s||be(a),r=0,o=i.length;r<o;r++)$e(i[r],s[r]);else $e(e,a);return(s=be(a,"script")).length>0&&xe(s,!c&&be(e,"script")),a},cleanData:function(e){for(var t,n,r,o=C.event.special,i=0;void 0!==(n=e[i]);i++)if(Y(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)o[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return z(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return z(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!je.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,r=[],o=C(e),i=o.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),C(o[s])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var He=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},We=new RegExp(ie.join("|"),"i");function Ge(e,t,n){var r,o,i,s,a=e.style;return(n=n||ze(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||ae(e)||(s=C.style(e,t)),!v.pixelBoxStyles()&&He.test(s)&&We.test(t)&&(r=a.width,o=a.minWidth,i=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=o,a.maxWidth=i)),void 0!==s?s+"":s}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(u).appendChild(l);var e=n.getComputedStyle(l);r="1%"!==e.top,c=12===t(e.marginLeft),l.style.right="60%",a=36===t(e.right),o=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),se.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,a,c,u=s.createElement("div"),l=s.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),i}}))}();var Je=["Webkit","Moz","ms"],Ye=s.createElement("div").style,Qe={};function Ze(e){var t=C.cssProps[e]||Qe[e];return t||(e in Ye?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in Ye)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,et=/^--/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ot(e,t,n,r,o,i){var s="width"===t?1:0,a=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=C.css(e,n+ie[s],!0,o)),r?("content"===n&&(c-=C.css(e,"padding"+ie[s],!0,o)),"margin"!==n&&(c-=C.css(e,"border"+ie[s]+"Width",!0,o))):(c+=C.css(e,"padding"+ie[s],!0,o),"padding"!==n?c+=C.css(e,"border"+ie[s]+"Width",!0,o):a+=C.css(e,"border"+ie[s]+"Width",!0,o));return!r&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-a-.5))||0),c}function it(e,t,n){var r=ze(e),o=(!v.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),i=o,s=Ge(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(He.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&o||"auto"===s||!parseFloat(s)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===C.css(e,"boxSizing",!1,r),(i=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ot(e,t,n||(o?"border":"content"),i,r,s)+"px"}function st(e,t,n,r,o){return new st.prototype.init(e,t,n,r,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,s,a=J(t),c=et.test(t),u=e.style;if(c||(t=Ze(a)),s=C.cssHooks[t]||C.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,r))?o:u[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=pe(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=o&&o[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,i,s,a=J(t);return et.test(t)||(t=Ze(a)),(s=C.cssHooks[t]||C.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Ge(e,t,r)),"normal"===o&&t in nt&&(o=nt[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):le(e,tt,(function(){return it(e,t,r)}))},set:function(e,n,r){var o,i=ze(e),s=!v.scrollboxSize()&&"absolute"===i.position,a=(s||r)&&"border-box"===C.css(e,"boxSizing",!1,i),c=r?ot(e,t,r,a,i):0;return a&&s&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ot(e,t,"border",!1,i)-.5)),c&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),rt(0,n,c)}}})),C.cssHooks.marginLeft=Xe(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-le(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(C.cssHooks[e+t].set=rt)})),C.fn.extend({css:function(e,t){return z(this,(function(e,t,n){var r,o,i={},s=0;if(Array.isArray(t)){for(r=ze(e),o=t.length;s<o;s++)i[t[s]]=C.css(e,t[s],!1,r);return i}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=st,st.prototype={constructor:st,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(C.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}},st.prototype.init.prototype=st.prototype,st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},st.propHooks.scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=st.prototype.init,C.fx.step={};var at,ct,ut=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function pt(){ct&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(pt):n.setTimeout(pt,C.fx.interval),C.fx.tick())}function dt(){return n.setTimeout((function(){at=void 0})),at=Date.now()}function ht(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ft(e,t,n){for(var r,o=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),i=0,s=o.length;i<s;i++)if(r=o[i].call(n,t,e))return r}function mt(e,t,n){var r,o,i=0,s=mt.prefilters.length,a=C.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=at||dt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,s=u.tweens.length;i<s;i++)u.tweens[i].run(r);return a.notifyWith(e,[u,r,n]),r<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),l=u.props;for(!function(e,t){var n,r,o,i,s;for(n in e)if(o=t[r=J(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(s=C.cssHooks[r])&&"expand"in s)for(n in i=s.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,u.opts.specialEasing);i<s;i++)if(r=mt.prefilters[i].call(u,e,l,u.opts))return y(r.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return C.map(l,ft,u),y(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(mt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return pe(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(q);for(var n,r=0,o=e.length;r<o;r++)n=e[r],mt.tweeners[n]=mt.tweeners[n]||[],mt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,s,a,c,u,l,p="width"in t||"height"in t,d=this,h={},f=e.style,m=e.nodeType&&ue(e),g=Z.get(e,"fxshow");for(r in n.queue||(null==(s=C._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,C.queue(e,"fx").length||s.empty.fire()}))}))),t)if(o=t[r],ut.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}h[r]=g&&g[r]||C.style(e,r)}if((c=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(r in p&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=g&&g.display)&&(u=Z.get(e,"display")),"none"===(l=C.css(e,"display"))&&(u?l=u:(fe([e],!0),u=e.style.display||u,l=C.css(e,"display"),fe([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===C.css(e,"float")&&(c||(d.done((function(){f.display=u})),null==u&&(l=f.display,u="none"===l?"":l)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),c=!1,h)c||(g?"hidden"in g&&(m=g.hidden):g=Z.access(e,"fxshow",{display:u}),i&&(g.hidden=!m),m&&fe([e],!0),d.done((function(){for(r in m||fe([e]),Z.remove(e,"fxshow"),h)C.style(e,r,h[r])}))),c=ft(m?g[r]:0,r,d),r in g||(g[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?mt.prefilters.unshift(e):mt.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=C.isEmptyObject(e),i=C.speed(t,n,r),s=function(){var t=mt(this,C.extend({},e),i);(o||Z.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=C.timers,s=Z.get(this);if(o)s[o]&&s[o].stop&&r(s[o]);else for(o in s)s[o]&&s[o].stop&<.test(o)&&r(s[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=C.timers,s=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,r,o)}})),C.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),at=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ct||(ct=!0,pt())},C.fx.stop=function(){ct=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}}))},function(){var e=s.createElement("input"),t=s.createElement("select").appendChild(s.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=s.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var gt,vt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return z(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?C.prop(e,t,n):(1===i&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(q);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=vt[t]||C.find.attr;vt[t]=function(e,t,r){var o,i,s=t.toLowerCase();return r||(i=vt[s],vt[s]=o,o=null!=n(e,t,r)?s:null,vt[s]=i),o}}));var yt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function xt(e){return(e.match(q)||[]).join(" ")}function _t(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}C.fn.extend({prop:function(e,t){return z(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,r,o,i,s,a,c=0;if(y(e))return this.each((function(t){C(this).addClass(e.call(this,t,_t(this)))}));if((t=wt(e)).length)for(;n=this[c++];)if(o=_t(n),r=1===n.nodeType&&" "+xt(o)+" "){for(s=0;i=t[s++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(a=xt(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,o,i,s,a,c=0;if(y(e))return this.each((function(t){C(this).removeClass(e.call(this,t,_t(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[c++];)if(o=_t(n),r=1===n.nodeType&&" "+xt(o)+" "){for(s=0;i=t[s++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(a=xt(r))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,_t(this),t),t)})):this.each((function(){var t,o,i,s;if(r)for(o=0,i=C(this),s=wt(e);t=s[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=_t(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+xt(_t(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;C.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=y(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,C(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=C.map(o,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=C.valHooks[o.type]||C.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Ct,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:xt(C.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,s="select-one"===e.type,a=s?null:[],c=s?i+1:o.length;for(r=i<0?c:s?i:0;r<c;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=C(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=C.makeArray(t),s=o.length;s--;)((r=o[s]).selected=C.inArray(C.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in n;var Tt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,r,o){var i,a,c,u,l,p,d,h,m=[r||s],g=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=c=r=r||s,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),l=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(r,t))){if(!o&&!d.noBubble&&!b(r)){for(u=d.delegateType||g,Tt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),c=a;c===(r.ownerDocument||s)&&m.push(c.defaultView||c.parentWindow||n)}for(i=0;(a=m[i++])&&!e.isPropagationStopped();)h=a,e.type=i>1?u:d.bindType||g,(p=(Z.get(a,"events")||{})[e.type]&&Z.get(a,"handle"))&&p.apply(a,t),(p=l&&a[l])&&p.apply&&Y(a)&&(e.result=p.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!Y(r)||l&&y(r[g])&&!b(r)&&((c=r[l])&&(r[l]=null),C.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,St),r[g](),e.isPropagationStopped()&&h.removeEventListener(g,St),C.event.triggered=void 0,c&&(r[l]=c)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Z.access(r,t);o||r.addEventListener(e,n,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var Et=n.location,It=Date.now(),At=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Dt=/\[\]$/,kt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var o;if(Array.isArray(t))C.each(t,(function(t,o){n||Dt.test(e)?r(e,o):Ot(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(o in t)Ot(e+"["+o+"]",t[o],n,r)}C.param=function(e,t){var n,r=[],o=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){o(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,o);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Pt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var jt=/%20/g,Rt=/#.*$/,Lt=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Bt=/^\/\//,$t={},Ut={},Vt="*/".concat("*"),Ft=s.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(q)||[];if(y(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zt(e,t,n,r){var o={},i=e===Ut;function s(a){var c;return o[a]=!0,C.each(e[a]||[],(function(e,a){var u=a(t,n,r);return"string"!=typeof u||i||o[u]?i?!(c=u):void 0:(t.dataTypes.unshift(u),s(u),!1)})),c}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Wt(e,t){var n,r,o=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}Ft.href=Et.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,C.ajaxSettings),t):Wt(C.ajaxSettings,e)},ajaxPrefilter:Ht($t),ajaxTransport:Ht(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,c,u,l,p,d,h,f=C.ajaxSetup({},t),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=f.statusCode||{},x={},_={},w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Mt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(e,t){return null==l&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),S(0,t),this}};if(v.promise(T),f.url=((e||f.url||Et.href)+"").replace(Bt,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(q)||[""],null==f.crossDomain){u=s.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Ft.protocol+"//"+Ft.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),zt($t,f,t,T),l)return T;for(d in(p=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qt.test(f.type),o=f.url.replace(Rt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(h=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(At.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Lt,"$1"),h=(At.test(o)?"&":"?")+"_="+It+++h),f.url=o+h),f.ifModified&&(C.lastModified[o]&&T.setRequestHeader("If-Modified-Since",C.lastModified[o]),C.etag[o]&&T.setRequestHeader("If-None-Match",C.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Vt+"; q=0.01":""):f.accepts["*"]),f.headers)T.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(m,T,f)||l))return T.abort();if(w="abort",y.add(f.complete),T.done(f.success),T.fail(f.error),r=zt(Ut,f,t,T)){if(T.readyState=1,p&&g.trigger("ajaxSend",[T,f]),l)return T;f.async&&f.timeout>0&&(c=n.setTimeout((function(){T.abort("timeout")}),f.timeout));try{l=!1,r.send(x,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,s,a){var u,d,h,x,_,w=t;l||(l=!0,c&&n.clearTimeout(c),r=void 0,i=a||"",T.readyState=e>0?4:0,u=e>=200&&e<300||304===e,s&&(x=function(e,t,n){for(var r,o,i,s,a=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}s||(s=o)}i=i||s}if(i)return i!==c[0]&&c.unshift(i),n[i]}(f,T,s)),x=function(e,t,n,r){var o,i,s,a,c,u={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=l.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(s=u[c+" "+i]||u["* "+i]))for(o in u)if((a=o.split(" "))[1]===i&&(s=u[c+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(i=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(f,x,T,u),u?(f.ifModified&&((_=T.getResponseHeader("Last-Modified"))&&(C.lastModified[o]=_),(_=T.getResponseHeader("etag"))&&(C.etag[o]=_)),204===e||"HEAD"===f.type?w="nocontent":304===e?w="notmodified":(w=x.state,d=x.data,u=!(h=x.error))):(h=w,!e&&w||(w="error",e<0&&(e=0))),T.status=e,T.statusText=(t||w)+"",u?v.resolveWith(m,[d,w,T]):v.rejectWith(m,[T,w,h]),T.statusCode(b),b=void 0,p&&g.trigger(u?"ajaxSuccess":"ajaxError",[T,f,u?d:h]),y.fireWith(m,[T,w]),p&&(g.trigger("ajaxComplete",[T,f]),--C.active||C.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,r,o){return y(n)&&(o=o||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:o,data:n,success:r},C.isPlainObject(e)&&e))}})),C._evalUrl=function(e,t){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},Xt=C.ajaxSettings.xhr();v.cors=!!Xt&&"withCredentials"in Xt,v.ajax=Xt=!!Xt,C.ajaxTransport((function(e){var t,r;if(v.cors||Xt&&!e.crossDomain)return{send:function(o,i){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);t=function(e){return function(){t&&(t=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),r=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Jt,Yt=[],Qt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||C.expando+"_"+It++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,r){var o,i,s,a=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Qt,"$1"+o):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||C.error(o+" was not called"),s[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){s=arguments},r.always((function(){void 0===i?C(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Yt.push(o)),s&&y(i)&&i(s[0]),s=i=void 0})),"script"})),v.createHTMLDocument=((Jt=s.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,t.head.appendChild(r)):t=s),i=!n&&[],(o=N.exec(e))?[t.createElement(o[1])]:(o=Te([e],t,i),i&&i.length&&C(i).remove(),C.merge([],o.childNodes)));var r,o,i},C.fn.load=function(e,t,n){var r,o,i,s=this,a=e.indexOf(" ");return a>-1&&(r=xt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,s.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var r,o,i,s,a,c,u=C.css(e,"position"),l=C(e),p={};"static"===u&&(e.style.position="relative"),a=l.offset(),i=C.css(e,"top"),c=C.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+c).indexOf("auto")>-1?(s=(r=l.position()).top,o=r.left):(s=parseFloat(i)||0,o=parseFloat(c)||0),y(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+o),"using"in t?t.using.call(e,p):l.css(p)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(r,"marginTop",!0),left:t.left-o.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||se}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return z(this,(function(e,r,o){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=Xe(v.pixelPosition,(function(e,n){if(n)return n=Ge(e,t),He.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){C.fn[r]=function(o,i){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return z(this,(function(t,n,o){var i;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?C.css(t,n,a):C.style(t,n,o,a)}),t,s?o:void 0,s)}}))})),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),C.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=c.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(c.call(arguments)))}).guid=e.guid=e.guid||C.guid++,o},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=k,C.isFunction=y,C.isWindow=b,C.camelCase=J,C.type=w,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return C}.apply(t,[]))||(e.exports=r);var Zt=n.jQuery,Kt=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=Kt),e&&n.jQuery===C&&(n.jQuery=Zt),C},o||(n.jQuery=n.$=C),C}))},function(e,t){e.exports={render(e,t){const n=t.getTemporaryUrl()||"";e.attr("src",n)},reset(e){e.removeAttr("src"),e.removeAttr("alt")}}},function(e,t){e.exports={render(e,t,n,r){const o=t.getOriginalUrl();if(!o)return this.reset(e);const i=t.getCrop(),s=r(["picture","defaultWidth"]),a=r(["picture","sources"],[]).map((e={})=>{const{media:t,urlParams:r}=e,{width:s}=r||{};if(s)return{srcSet:n.getUrl(o,{width:s,crop:i}),media:t}}),c=n.getUrl(o,{width:s,crop:i});this.renderPictureTag(e,{src:c,altText:t.getAltText(),sources:a})},reset(e,t){e.html("")},renderPictureTag(e,t){const{src:n,sources:r,altText:o=""}=t,i=[];for(const e of r){const{srcSet:t,type:n,media:r}=e,o=n?` type="${n}"`:"",s=r?` media="${r}"`:"";i.push(`<source srcSet="${t}"${o}${s}>`)}const s=o?` alt="${o}"`:"";i.push(`<img src="${n}"${s}>`),e.html(i.join("\n"))}}},function(e,t){function n(e,t){return void 0!==e?e:t}e.exports={render(e,t,r,o){const i=t.originalUrl||"",s=[];i&&s.push({src:i,type:t.mimeType});const a=o("audio",{});this.renderAudioTag(e,{controls:n(a.controls,!0),autoplay:n(a.autoplay,!1),loop:n(a.loop,!1),preload:n(a.preload,"metadata"),notSupportedText:n(a.notSupportedText,"Your browser does not support playing this."),sources:s})},reset(e,t){e.attr("controls",null),e.attr("autoplay",null),e.attr("loop",null),e.attr("preload",null),e.html("")},renderAudioTag(e,t){const{controls:n,autoplay:r,loop:o,preload:i}=t,{sources:s,notSupportedText:a}=t;e.attr("controls",n?"":null),e.attr("autoplay",r?"":null),e.attr("loop",o?"":null),e.attr("preload",i||null);const c=[];for(const e of s){const{src:t,type:n}=e;c.push(`<source src="${t}" type="${n}">`)}c.push(a),e.html(c.join("\n"))}}},function(e,t,n){const r=n(94),o=n(303);e.exports={render(e,t,n,i){const s=t.getOriginalUrl();if(!s)return;let a,c;a=i(["backgroundImage","defaultWidth"])||i(["backgroundImage","maxWidth"]),c=i(["backgroundImage","cssVars"]);let u="";"image.resizer"!==n.name||i(["backgroundImage"])||(a=i(["srcSet","defaultWidth"]),c=i(["srcSet","widths"]),u="-url");const l=t.getCrop(),p=n.getUrl(s,{width:a,crop:l}),d={"background-image":r(p)};for(const e in c||{}){const t=c[e],o=n.getUrl(s,{width:t,crop:l});d[`--${e}${u}`]=r(o)}o(e,d)},reset(e,t,n,r){let o;e.css("background-image",""),o=r(["backgroundImage","cssVars"]);let i="";"image.resizer"!==n.name||r(["backgroundImage"])||(o=r(["srcSet","widths"]),i="-url");for(const t in o||{})e.css(`--${t}${i}`,"")}}},function(e,t,n){const r=n(83);e.exports=function(e,t){if(e&&t&&Object.keys(t).length)if(e.liDomElement)e.setCss(t);else{const n={...r.parseCssStyles(e.attr("style")),...t};e.attr("style",r.stringifyCssStyles(n)||"")}}},function(e,t,n){const r=n(94);e.exports={render(e,t){const n=t.getTemporaryUrl()||"";e.css("background-image",r(n))},reset(e){e.css("background-image","")}}},function(e,t,n){const r=n(94),o=n(306);e.exports={render(e,t){const n=t.getProcessedUrl();t.isInlineImage()?function(e,t){o(e.attr("src"))&&e.attr("src","");e.addClass("resrc");e.attr("data-src",t)}(e,n):function(e,t){e.addClass("resrc"),t=t?r(t):"",e.css("background-image",t)}(e,n)},reset(e){e.removeClass("resrc"),e.removeAttr("data-src"),e.css("background-image","")}}},function(e,t){e.exports=function(e){return/^(data:|blob:)/.test(e)}},function(e,t,n){const r=n(308),o=n(313),i=n(8),s=n(314),a=n(157),c=n(201),u=n(447),l=n(40),p=n(448),d=n(196),{createDiffMarkers:h}=n(203),{getMergeCommands:f,getProposalMergeCommands:m}=n(457),{parseComponent:g}=n(43),v=n(1),y=n(462),b=n(463),x=n(466),_=n(477),w=n(478),C=n(479),T={validateDesign:e=>{try{return c.parse(e,{strict:!0}),{valid:!0}}catch(e){return{valid:!1,error:e}}},design:new u,parseComponent:g,createLivingdoc({content:e,design:t,proposals:n,layoutName:r,componentTree:o,config:i,handleViolation:a}){return this.config(i),s.create({content:e,design:t,proposals:n,layoutName:r,componentTree:o,handleViolation:a})},create(){return this.createLivingdoc.apply(this,arguments)},config(e){if(e&&(r(i,e),e.imageServices))for(const t of Object.keys(e.imageServices))o(i,`imageServices.${t}`,e.imageServices[t])},createDiffMarkers:e=>h({versions:e}),getMergeCommands:({baseComponentTree:e,remoteComponentTree:t,localComponentTree:n})=>f({baseTree:e,remoteTree:t,localTree:n}),getProposalMergeCommands:m,runCommandsOnComponentTree({componentTree:e,commands:t}){const{conflicts:n}=v.execCommands({componentTree:e,commands:t});return n||[]},rendering:d,imageServices:l,getImageService:e=>l.get(e),plugins:p,Livingdoc:s,ComponentTree:a,DesignCache:u};s.setLivingdocsApi(T),T.imageServices.add("default",y),T.imageServices.add("resrc.it",b),T.imageServices.add("sz",x),T.imageServices.add("imgix",_),T.imageServices.add("image.resizer",C),T.imageServices.add("liImageProxy",w),e.exports=T},function(e,t,n){var r=n(309),o=n(312)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r=n(53),o=n(153),i=n(114),s=n(310),a=n(7),c=n(58),u=n(154);e.exports=function e(t,n,l,p,d){t!==n&&i(n,(function(i,c){if(d||(d=new r),a(i))s(t,n,c,l,e,p,d);else{var h=p?p(u(t,c),i,c+"",t,n,d):void 0;void 0===h&&(h=i),o(t,c,h)}}),c)}},function(e,t,n){var r=n(153),o=n(122),i=n(129),s=n(36),a=n(130),c=n(32),u=n(0),l=n(95),p=n(33),d=n(50),h=n(7),f=n(39),m=n(47),g=n(154),v=n(311);e.exports=function(e,t,n,y,b,x,_){var w=g(e,n),C=g(t,n),T=_.get(C);if(T)r(e,n,T);else{var S=x?x(w,C,n+"",e,t,_):void 0,E=void 0===S;if(E){var I=u(C),A=!I&&p(C),D=!I&&!A&&m(C);S=C,I||A||D?u(w)?S=w:l(w)?S=s(w):A?(E=!1,S=o(C,!0)):D?(E=!1,S=i(C,!0)):S=[]:f(C)||c(C)?(S=w,c(w)?S=v(w):h(w)&&!d(w)||(S=a(C))):E=!1}E&&(_.set(C,S),b(S,C,y,x,_),_.delete(C)),r(e,n,S)}}},function(e,t,n){var r=n(24),o=n(58);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(63),o=n(155);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,a&&o(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,s)}return t}))}},function(e,t,n){var r=n(134);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){const{EventEmitter:r}=n(93),{assert:o}=n(2),i=n(8),s=n(157),a=n(191),c=n(393),u=n(403),l=n(404),p=n(196);class d extends r{static create({content:e,design:t,proposals:n,layoutName:r,componentTree:i,handleViolation:a}){if(e)o(t,"Livingdoc.create(): missing param 'design'"),t=d.loadDesignIfNeeded(t),i=new s({content:e,design:t,proposals:n,handleViolation:a});else if(t)t=d.loadDesignIfNeeded(t),i=new s({design:t,proposals:n,handleViolation:a});else{if(i)return new d({componentTree:i,layoutName:r});o(!1,"Livingdoc.create(): Insufficient params;\n pass either 'content' and 'design' or 'componentTree'")}return new d({componentTree:i,layoutName:r})}static setLivingdocsApi(e){d.api=e}static loadDesignIfNeeded(e){if(!e.isLiDesign){const{name:t,version:n}=e;e=d.api.design.get(t,n)}return e}constructor({componentTree:e,layoutName:t}){super(),this.componentTree=e,this.layoutName=t,this.interactiveView=void 0,this.readOnlyViews=[],this.design=this.componentTree.design,this.dependencies=new a({componentTree:e}),this.fieldMapping=new u(this.design.metadata),this.metadataConfig=this.fieldMapping,this.fieldExtractor=new c(this.componentTree,this.fieldMapping),this.history=new l(this,i.history),this.forwardComponentTreeEvents()}forwardComponentTreeEvents(){this.componentTree.on("changed",()=>{this.emit("change",arguments)})}createComponent(){return this.componentTree.createComponent.apply(this.componentTree,arguments)}addJsDependency(e){this.dependencies.addJs(e)}addCssDependency(e){this.dependencies.addCss(e)}hasDependencies(){return this.dependencies&&(this.dependencies.hasJs()||this.dependencies.hasCss())}toHtml(){return this.render()}render({settings:e}={}){return p.render({componentTree:this.componentTree},e)}serialize(e){const t=this.componentTree.serialize(e);return t.layout=this.layoutName,t}toJson(e){const t=this.serialize();if(e){const e=null,n=2;return JSON.stringify(t,e,n)}return JSON.stringify(t)}printModel(){this.componentTree.print()}}e.exports=d},function(e,t){e.exports=function(e,t){return{add(n){t.on(e,n)},remove(n){t.removeListener(e,n)},fire(...n){t.emit(e,...n)}}}},function(e,t,n){var r=n(11),o=n(12),i=n(14);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!o(t)){var c=r(n,3);t=i(t),n=function(e){return c(a[e],e,a)}}var u=e(t,n,s);return u>-1?a[c?t[u]:u]:void 0}}},function(e,t,n){var r=n(318),o=n(327),i=n(163);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(53),o=n(97);e.exports=function(e,t,n,i){var s=n.length,a=s,c=!i;if(null==e)return!a;for(e=Object(e);s--;){var u=n[s];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<a;){var l=(u=n[s])[0],p=e[l],d=u[1];if(c&&u[2]){if(void 0===p&&!(l in e))return!1}else{var h=new r;if(i)var f=i(p,d,l,e,t,h);if(!(void 0===f?o(d,p,3,i,h):f))return!1}}return!0}},function(e,t,n){var r=n(53),o=n(161),i=n(323),s=n(326),a=n(15),c=n(0),u=n(33),l=n(47),p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,f,m){var g=c(e),v=c(t),y=g?"[object Array]":a(e),b=v?"[object Array]":a(t),x=(y="[object Arguments]"==y?p:y)==p,_=(b="[object Arguments]"==b?p:b)==p,w=y==b;if(w&&u(e)){if(!u(t))return!1;g=!0,x=!1}if(w&&!x)return m||(m=new r),g||l(e)?o(e,t,n,h,f,m):i(e,t,y,n,h,f,m);if(!(1&n)){var C=x&&d.call(e,"__wrapped__"),T=_&&d.call(t,"__wrapped__");if(C||T){var S=C?e.value():e,E=T?t.value():t;return m||(m=new r),f(S,E,n,h,m)}}return!!w&&(m||(m=new r),s(e,t,n,h,f,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(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,t,n){var r=n(19),o=n(128),i=n(34),s=n(161),a=n(324),c=n(325),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,d){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||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var f=1&r;if(h||(h=c),e.size!=t.size&&!f)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var g=s(h(e),h(t),r,u,p,d);return d.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(126),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in t:o.call(t,d)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var f=!0;a.set(e,t),a.set(t,e);for(var m=c;++p<l;){var g=e[d=u[p]],v=t[d];if(i)var y=c?i(v,g,d,t,e,a):i(g,v,d,e,t,a);if(!(void 0===y?g===v||s(g,v,n,i,a):y)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(f=!1)}return a.delete(e),a.delete(t),f}},function(e,t,n){var r=n(162),o=n(14);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,r(s)]}return t}},function(e,t,n){var r=n(97),o=n(4),i=n(135),s=n(84),a=n(162),c=n(163),u=n(17);e.exports=function(e,t){return s(e)&&a(t)?c(u(e),t):function(n){var s=o(n,e);return void 0===s&&s===t?i(n,e):r(t,s,3)}}},function(e,t,n){var r=n(164),o=n(330),i=n(84),s=n(17);e.exports=function(e){return i(e)?r(s(e)):o(e)}},function(e,t,n){var r=n(60);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(332);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(7),o=n(26),i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=a.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t){function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}n.Diff,n.prototype.diff_main=function(e,t,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=r;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];void 0===n&&(n=!0);var i=n,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var u=this.diff_compute_(e,t,i,o);return a&&u.unshift([0,a]),c&&u.push([0,c]),this.diff_cleanupMerge(u),u},n.prototype.diff_compute_=function(e,t,n,r){var o;if(!e)return[[1,t]];if(!t)return[[-1,e]];var i=e.length>t.length?e:t,s=e.length>t.length?t:e,a=i.indexOf(s);if(-1!=a)return o=[[1,i.substring(0,a)],[0,s],[1,i.substring(a+s.length)]],e.length>t.length&&(o[0][0]=o[2][0]=-1),o;if(1==s.length)return[[-1,e],[1,t]];var c=this.diff_halfMatch_(e,t);if(c){var u=c[0],l=c[1],p=c[2],d=c[3],h=c[4],f=this.diff_main(u,p,n,r),m=this.diff_main(l,d,n,r);return f.concat([[0,h]],m)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},n.prototype.diff_lineMode_=function(e,t,n){e=(l=this.diff_linesToChars_(e,t)).chars1,t=l.chars2;var r=l.lineArray,o=this.diff_main(e,t,!1,n);this.diff_charsToLines_(o,r),this.diff_cleanupSemantic(o),o.push([0,""]);for(var i=0,s=0,a=0,c="",u="";i<o.length;){switch(o[i][0]){case 1:a++,u+=o[i][1];break;case-1:s++,c+=o[i][1];break;case 0:if(s>=1&&a>=1){o.splice(i-s-a,s+a),i=i-s-a;for(var l,p=(l=this.diff_main(c,u,!1,n)).length-1;p>=0;p--)o.splice(i,0,l[p]);i+=l.length}a=0,s=0,c="",u=""}i++}return o.pop(),o},n.prototype.diff_bisect_=function(e,t,n){for(var r=e.length,o=t.length,i=Math.ceil((r+o)/2),s=i,a=2*i,c=new Array(a),u=new Array(a),l=0;l<a;l++)c[l]=-1,u[l]=-1;c[s+1]=0,u[s+1]=0;for(var p=r-o,d=p%2!=0,h=0,f=0,m=0,g=0,v=0;v<i&&!((new Date).getTime()>n);v++){for(var y=-v+h;y<=v-f;y+=2){for(var b=s+y,x=(S=y==-v||y!=v&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-y;S<r&&x<o&&e.charAt(S)==t.charAt(x);)S++,x++;if(c[b]=S,S>r)f+=2;else if(x>o)h+=2;else if(d){if((C=s+p-y)>=0&&C<a&&-1!=u[C])if(S>=(w=r-u[C]))return this.diff_bisectSplit_(e,t,S,x,n)}}for(var _=-v+m;_<=v-g;_+=2){for(var w,C=s+_,T=(w=_==-v||_!=v&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-_;w<r&&T<o&&e.charAt(r-w-1)==t.charAt(o-T-1);)w++,T++;if(u[C]=w,w>r)g+=2;else if(T>o)m+=2;else if(!d){if((b=s+p-_)>=0&&b<a&&-1!=c[b]){var S;x=s+(S=c[b])-b;if(S>=(w=r-w))return this.diff_bisectSplit_(e,t,S,x,n)}}}}return[[-1,e],[1,t]]},n.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),c=t.substring(r),u=this.diff_main(i,s,!1,o),l=this.diff_main(a,c,!1,o);return u.concat(l)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,i=-1,s=n.length;i<e.length-1;){-1==(i=e.indexOf("\n",o))&&(i=e.length-1);var a=e.substring(o,i+1);o=i+1,(r.hasOwnProperty?r.hasOwnProperty(a):void 0!==r[a])?t+=String.fromCharCode(r[a]):(t+=String.fromCharCode(s),r[a]=s,n[s++]=a)}return t}return n[0]="",{chars1:o(e),chars2:o(t),lineArray:n}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],o=[],i=0;i<r.length;i++)o[i]=t[r.charCodeAt(i)];e[n][1]=o.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var o=Math.min(n,r);if(e==t)return o;for(var i=0,s=1;;){var a=e.substring(o-s),c=t.indexOf(a);if(-1==c)return i;s+=c,0!=c&&e.substring(o-s)!=t.substring(0,s)||(i=s,s++)}},n.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var o=this;function i(e,t,n){for(var r,i,s,a,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,l="";-1!=(u=t.indexOf(c,u+1));){var p=o.diff_commonPrefix(e.substring(n),t.substring(u)),d=o.diff_commonSuffix(e.substring(0,n),t.substring(0,u));l.length<d+p&&(l=t.substring(u-d,u)+t.substring(u,u+p),r=e.substring(0,n-d),i=e.substring(n+p),s=t.substring(0,u-d),a=t.substring(u+p))}return 2*l.length>=e.length?[r,i,s,a,l]:null}var s,a,c,u,l,p=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));return p||d?(s=d?p&&p[4].length>d[4].length?p:d:p,e.length>t.length?(a=s[0],c=s[1],u=s[2],l=s[3]):(u=s[0],l=s[1],a=s[2],c=s[3]),[a,c,u,l,s[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],r=0,o=null,i=0,s=0,a=0,c=0,u=0;i<e.length;)0==e[i][0]?(n[r++]=i,s=c,a=u,c=0,u=0,o=e[i][1]):(1==e[i][0]?c+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(s,a)&&o.length<=Math.max(c,u)&&(e.splice(n[r-1],0,[-1,o]),e[n[r-1]+1][0]=1,r--,i=--r>0?n[r-1]:-1,s=0,a=0,c=0,u=0,o=null,t=!0)),i++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),i=1;i<e.length;){if(-1==e[i-1][0]&&1==e[i][0]){var l=e[i-1][1],p=e[i][1],d=this.diff_commonOverlap_(l,p),h=this.diff_commonOverlap_(p,l);d>=h?(d>=l.length/2||d>=p.length/2)&&(e.splice(i,0,[0,p.substring(0,d)]),e[i-1][1]=l.substring(0,l.length-d),e[i+1][1]=p.substring(d),i++):(h>=l.length/2||h>=p.length/2)&&(e.splice(i,0,[0,l.substring(0,h)]),e[i-1][0]=1,e[i-1][1]=p.substring(0,p.length-h),e[i+1][0]=-1,e[i+1][1]=l.substring(h),i++),i++}i++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),o=t.charAt(0),i=r.match(n.nonAlphaNumericRegex_),s=o.match(n.nonAlphaNumericRegex_),a=i&&r.match(n.whitespaceRegex_),c=s&&o.match(n.whitespaceRegex_),u=a&&r.match(n.linebreakRegex_),l=c&&o.match(n.linebreakRegex_),p=u&&e.match(n.blanklineEndRegex_),d=l&&t.match(n.blanklineStartRegex_);return p||d?5:u||l?4:i&&!a&&c?3:a||c?2:i||s?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var o=e[r-1][1],i=e[r][1],s=e[r+1][1],a=this.diff_commonSuffix(o,i);if(a){var c=i.substring(i.length-a);o=o.substring(0,o.length-a),i=c+i.substring(0,i.length-a),s=c+s}for(var u=o,l=i,p=s,d=t(o,i)+t(i,s);i.charAt(0)===s.charAt(0);){o+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=t(o,i)+t(i,s);h>=d&&(d=h,u=o,l=i,p=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=l,p?e[r+1][1]=p:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,o=null,i=0,s=!1,a=!1,c=!1,u=!1;i<e.length;)0==e[i][0]?(e[i][1].length<this.Diff_EditCost&&(c||u)?(n[r++]=i,s=c,a=u,o=e[i][1]):(r=0,o=null),c=u=!1):(-1==e[i][0]?u=!0:c=!0,o&&(s&&a&&c&&u||o.length<this.Diff_EditCost/2&&s+a+c+u==3)&&(e.splice(n[r-1],0,[-1,o]),e[n[r-1]+1][0]=1,r--,o=null,s&&a?(c=u=!0,r=0):(i=--r>0?n[r-1]:-1,c=u=!1),t=!0)),i++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,r=0,o=0,i="",s="";n<e.length;)switch(e[n][0]){case 1:o++,s+=e[n][1],n++;break;case-1:r++,i+=e[n][1],n++;break;case 0:r+o>1?(0!==r&&0!==o&&(0!==(t=this.diff_commonPrefix(s,i))&&(n-r-o>0&&0==e[n-r-o-1][0]?e[n-r-o-1][1]+=s.substring(0,t):(e.splice(0,0,[0,s.substring(0,t)]),n++),s=s.substring(t),i=i.substring(t)),0!==(t=this.diff_commonSuffix(s,i))&&(e[n][1]=s.substring(s.length-t)+e[n][1],s=s.substring(0,s.length-t),i=i.substring(0,i.length-t))),0===r?e.splice(n-o,r+o,[1,s]):0===o?e.splice(n-r,r+o,[-1,i]):e.splice(n-r-o,r+o,[-1,i],[1,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,i="",s=""}""===e[e.length-1][1]&&e.pop();var a=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),a=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),a=!0)),n++;a&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,r=0,o=0,i=0,s=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),-1!==e[n][0]&&(o+=e[n][1].length),!(r>t));n++)i=r,s=o;return e.length!=n&&-1===e[n][0]?s:s+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,o=/>/g,i=/\n/g,s=0;s<e.length;s++){var a=e[s][0],c=e[s][1].replace(n,"&").replace(r,"<").replace(o,">").replace(i,"¶<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,o=0;o<e.length;o++){var i=e[o][0],s=e[o][1];switch(i){case 1:n+=s.length;break;case-1:r+=s.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+=Math.max(n,r)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var n=[],r=0,o=0,i=t.split(/\t/g),s=0;s<i.length;s++){var a=i[s].substring(1);switch(i[s].charAt(0)){case"+":try{n[r++]=[1,decodeURI(a)]}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var c=parseInt(a,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+a);var u=e.substring(o,o+=c);"="==i[s].charAt(0)?n[r++]=[0,u]:n[r++]=[-1,u];break;default:if(i[s])throw new Error("Invalid diff operation in diff_fromDelta: "+i[s])}}if(o!=e.length)throw new Error("Delta length ("+o+") does not equal source text length ("+e.length+").");return n},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,s=Math.abs(n-r);return o.Match_Distance?i+s/o.Match_Distance:s?1:i}var s=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(s=Math.min(i(0,a),s),-1!=(a=e.lastIndexOf(t,n+t.length))&&(s=Math.min(i(0,a),s)));var c,u,l=1<<t.length-1;a=-1;for(var p,d=t.length+e.length,h=0;h<t.length;h++){for(c=0,u=d;c<u;)i(h,n+u)<=s?c=u:d=u,u=Math.floor((d-c)/2+c);d=u;var f=Math.max(1,n-u+1),m=Math.min(n+u,e.length)+t.length,g=Array(m+2);g[m+1]=(1<<h)-1;for(var v=m;v>=f;v--){var y=r[e.charAt(v-1)];if(g[v]=0===h?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(p[v+1]|p[v])<<1|1|p[v+1],g[v]&l){var b=i(h,v-1);if(b<=s){if(s=b,!((a=v-1)>n))break;f=Math.max(1,2*n-a)}}}if(i(h+1,n)>s)break;p=g}return a},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),r=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var o=t.substring(e.start2-r,e.start2);o&&e.diffs.unshift([0,o]);var i=t.substring(e.start2+e.length1,e.start2+e.length1+r);i&&e.diffs.push([0,i]),e.start1-=o.length,e.start2-=o.length,e.length1+=o.length+i.length,e.length2+=o.length+i.length}},n.prototype.patch_make=function(e,t,r){var o,i;if("string"==typeof e&&"string"==typeof t&&void 0===r)o=e,(i=this.diff_main(o,t,!0)).length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)i=e,o=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)o=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");o=e,i=r}if(0===i.length)return[];for(var s=[],a=new n.patch_obj,c=0,u=0,l=0,p=o,d=o,h=0;h<i.length;h++){var f=i[h][0],m=i[h][1];switch(c||0===f||(a.start1=u,a.start2=l),f){case 1:a.diffs[c++]=i[h],a.length2+=m.length,d=d.substring(0,l)+m+d.substring(l);break;case-1:a.length1+=m.length,a.diffs[c++]=i[h],d=d.substring(0,l)+d.substring(l+m.length);break;case 0:m.length<=2*this.Patch_Margin&&c&&i.length!=h+1?(a.diffs[c++]=i[h],a.length1+=m.length,a.length2+=m.length):m.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(a,p),s.push(a),a=new n.patch_obj,c=0,p=d,u=l)}1!==f&&(u+=m.length),-1!==f&&(l+=m.length)}return c&&(this.patch_addContext_(a,p),s.push(a)),s},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;r<e.length;r++){var o=e[r],i=new n.patch_obj;i.diffs=[];for(var s=0;s<o.diffs.length;s++)i.diffs[s]=o.diffs[s].slice();i.start1=o.start1,i.start2=o.start2,i.length1=o.length1,i.length2=o.length2,t[r]=i}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,o=[],i=0;i<e.length;i++){var s,a,c=e[i].start2+r,u=this.diff_text1(e[i].diffs),l=-1;if(u.length>this.Match_MaxBits?-1!=(s=this.match_main(t,u.substring(0,this.Match_MaxBits),c))&&(-1==(l=this.match_main(t,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits))||s>=l)&&(s=-1):s=this.match_main(t,u,c),-1==s)o[i]=!1,r-=e[i].length2-e[i].length1;else if(o[i]=!0,r=s-c,u==(a=-1==l?t.substring(s,s+u.length):t.substring(s,l+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[i].diffs)+t.substring(s+u.length);else{var p=this.diff_main(u,a,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(p)/u.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(p);for(var d,h=0,f=0;f<e[i].diffs.length;f++){var m=e[i].diffs[f];0!==m[0]&&(d=this.diff_xIndex(p,h)),1===m[0]?t=t.substring(0,s+d)+m[1]+t.substring(s+d):-1===m[0]&&(t=t.substring(0,s+d)+t.substring(s+this.diff_xIndex(p,h+m[1].length))),-1!==m[0]&&(h+=m[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),o]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",r=1;r<=t;r++)n+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=t,e[r].start2+=t;var o=e[0],i=o.diffs;if(0==i.length||0!=i[0][0])i.unshift([0,n]),o.start1-=t,o.start2-=t,o.length1+=t,o.length2+=t;else if(t>i[0][1].length){var s=t-i[0][1].length;i[0][1]=n.substring(i[0][1].length)+i[0][1],o.start1-=s,o.start2-=s,o.length1+=s,o.length2+=s}if(0==(i=(o=e[e.length-1]).diffs).length||0!=i[i.length-1][0])i.push([0,n]),o.length1+=t,o.length2+=t;else if(t>i[i.length-1][1].length){s=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,s),o.length1+=s,o.length2+=s}return n},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=t)){var o=e[r];e.splice(r--,1);for(var i=o.start1,s=o.start2,a="";0!==o.diffs.length;){var c=new n.patch_obj,u=!0;for(c.start1=i-a.length,c.start2=s-a.length,""!==a&&(c.length1=c.length2=a.length,c.diffs.push([0,a]));0!==o.diffs.length&&c.length1<t-this.Patch_Margin;){var l=o.diffs[0][0],p=o.diffs[0][1];1===l?(c.length2+=p.length,s+=p.length,c.diffs.push(o.diffs.shift()),u=!1):-1===l&&1==c.diffs.length&&0==c.diffs[0][0]&&p.length>2*t?(c.length1+=p.length,i+=p.length,u=!1,c.diffs.push([l,p]),o.diffs.shift()):(p=p.substring(0,t-c.length1-this.Patch_Margin),c.length1+=p.length,i+=p.length,0===l?(c.length2+=p.length,s+=p.length):u=!1,c.diffs.push([l,p]),p==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(p.length))}a=(a=this.diff_text2(c.diffs)).substring(a.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(c.length1+=d.length,c.length2+=d.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=d:c.diffs.push([0,d])),u||e.splice(++r,0,c)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var r=e.split("\n"),o=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<r.length;){var s=r[o].match(i);if(!s)throw new Error("Invalid patch string: "+r[o]);var a=new n.patch_obj;for(t.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),o++;o<r.length;){var c=r[o].charAt(0);try{var u=decodeURI(r[o].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+u)}if("-"==c)a.diffs.push([-1,u]);else if("+"==c)a.diffs.push([1,u]);else if(" "==c)a.diffs.push([0,u]);else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+u)}o++}}return t},n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},n.patch_obj.prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},function(e,t,n){const{fromJson:r}=n(170),o={createComponent(e,t,n){const o=e.component;return o?{ok:!0,component:r(o,t.design)}:(n.push({type:"InvalidCommand",command:e}),{ok:!1})},getComponent(e,t,n){if(!e.component)return n.push({type:"InvalidCommand",command:e}),{ok:!1};const r=e.component.id,o=t.findById(r);return o?{ok:!0,component:o}:(n.push({type:"NotExistingComponent",command:e}),{ok:!1})},directive(e,t){if(e.directiveName&&t){const n=t.directives.get(e.directiveName);return n?{directive:n}:{conflict:{type:"NotExistingComponentForDirective",command:e}}}return{}},getPosition(e,t,n,r=!1){const i=o.getParentContainer(e,t);if(!i){const t="could not deserialize parent container";return n.push({type:"InvalidPosition",description:t,position:e}),{ok:!1}}const{previousId:s,nextId:a,containerInsertIndex:c}=e,u={parentContainer:i,containerInsertIndex:c};if("bottom"===a)u.next="bottom";else if("top"===s)u.previous="top";else if(i.hasChildren()){if(a&&!r){const r=t.findById(a);if(r)u.next=r;else{if(0!==c){const t="could not find 'next' component";return n.push({type:"InvalidPosition",description:t,position:e}),{ok:!1}}u.next=i.first}}if(s){const o=r?t.findAllNodeTypesById(s):t.findById(s);if(!o){const t="could not find 'previous' component";return n.push({type:"InvalidPosition",description:t,position:e}),{ok:!1}}u.previous=o}else r&&(u.previous="top")}return{ok:!0,position:u}},getParentContainer(e,t){const{parentId:n,parentContainerName:r}=e;if("root"===n)return t.root;if(n){const e=t.findById(n);if(!e)return;return e.containers.get(r)}}};e.exports=o},function(e,t,n){var r=n(336)("pickBy",n(100));r.placeholder=n(171),e.exports=r},function(e,t,n){var r=n(337),o=n(339);e.exports=function(e,t,n){return r(o,e,t,n)}},function(e,t,n){var r=n(338),o=n(171),i=Array.prototype.push;function s(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function a(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,u,l){var p="function"==typeof n,d=n===Object(n);if(d&&(l=u,u=n,n=void 0),null==u)throw new TypeError;l||(l={});var h=!("cap"in l)||l.cap,f=!("curry"in l)||l.curry,m=!("fixed"in l)||l.fixed,g=!("immutable"in l)||l.immutable,v=!("rearg"in l)||l.rearg,y=p?u:o,b="curry"in l&&l.curry,x="fixed"in l&&l.fixed,_="rearg"in l&&l.rearg,w=p?u.runInContext():void 0,C=p?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},T=C.ary,S=C.assign,E=C.clone,I=C.curry,A=C.forEach,D=C.isArray,k=C.isError,N=C.isFunction,P=C.isWeakMap,O=C.keys,j=C.rearg,R=C.toInteger,L=C.toPath,M=O(r.aryMethod),q={castArray:function(e){return function(){var t=arguments[0];return D(t)?e(a(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),o=r.length;return h&&"number"==typeof n?(n=n>2?n-2:1,o&&o<=n?r:s(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!N(n))return e(n,Object(t));var r=[];return A(O(t),(function(e){N(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),A(r,(function(e){var t=e[1];N(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:R(t)+1;return I(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return I(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),l)}}};function B(e,t){if(h){var n=r.iterateeRearg[e];if(n)return function(e,t){return H(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(j(s(e,n),t),n)}))}(t,n);var o=!p&&r.iterateeAry[e];if(o)return function(e,t){return H(e,(function(e){return"function"==typeof e?s(e,t):e}))}(t,o)}return t}function $(e,t,n){if(m&&(x||!r.skipFixed[e])){var o=r.methodSpread[e],s=o&&o.start;return void 0===s?T(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var s=o[t],a=o.slice(0,t);return s&&i.apply(a,s),t!=r&&i.apply(a,o.slice(t+1)),e.apply(this,a)}}(t,s)}return t}function U(e,t,n){return v&&n>1&&(_||!r.skipRearg[e])?j(t,r.methodRearg[e]||r.aryRearg[n]):t}function V(e,t){for(var n=-1,r=(t=L(t)).length,o=r-1,i=E(Object(e)),s=i;null!=s&&++n<r;){var a=t[n],c=s[a];null==c||N(c)||k(c)||P(c)||(s[a]=E(n==o?c:Object(c))),s=s[a]}return i}function F(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,s=l;return function(t){var r=p?w:C,a=p?w[i]:n,c=S(S({},s),t);return e(r,o,a,c)}}function H(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=v?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function z(e,t,n){var o,i=r.aliasToReal[e]||e,s=t,u=q[i];return u?s=u(t):g&&(r.mutate.array[i]?s=c(t,a):r.mutate.object[i]?s=c(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(s=c(t,V))),A(M,(function(e){return A(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],a=n&&n.afterRearg;return o=a?$(i,U(i,s,e),e):U(i,$(i,s,e),e),o=function(e,t,n){return b||f&&n>1?I(t,n):t}(0,o=B(i,o),e),!1}})),!o})),o||(o=s),o==t&&(o=b?I(o,1):function(){return t.apply(this,arguments)}),o.convert=F(i,t),o.placeholder=t.placeholder=n,o}if(!d)return z(n,u,y);var W=u,G=[];return A(M,(function(e){A(r.aryMethod[e],(function(e){var t=W[r.remap[e]||e];t&&G.push([e,z(e,t,W)])}))})),A(O(W),(function(e){var t=W[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=F(e,t),G.push([e,t])}})),A(G,(function(e){W[e[0]]=e[1]})),W.convert=function(e){return W.runInContext.convert(e)(void 0)},W.placeholder=W,A(O(W),(function(e){A(r.realToAlias[e]||[],(function(t){W[t]=W[e]}))})),W}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,n){e.exports={ary:n(340),assign:n(121),clone:n(183),curry:n(358),forEach:n(46),isArray:n(0),isError:n(359),isFunction:n(50),isWeakMap:n(360),iteratee:n(361),keys:n(48),rearg:n(362),toInteger:n(65),toPath:n(363)}},function(e,t,n){var r=n(101);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},function(e,t,n){var r=n(68),o=n(5);e.exports=function(e,t,n){var i=1&t,s=r(e);return function t(){var r=this&&this!==o&&this instanceof t?s:e;return r.apply(i?n:this,arguments)}}},function(e,t,n){var r=n(88),o=n(68),i=n(174),s=n(177),a=n(182),c=n(106),u=n(5);e.exports=function(e,t,n){var l=o(e);return function o(){for(var p=arguments.length,d=Array(p),h=p,f=a(o);h--;)d[h]=arguments[h];var m=p<3&&d[0]!==f&&d[p-1]!==f?[]:c(d,f);if((p-=m.length)<n)return s(e,t,i,o.placeholder,void 0,d,m,void 0,void 0,n-p);var g=this&&this!==u&&this instanceof o?l:e;return r(g,this,d)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t,n){var r=n(102),o=n(178),i=n(346),s=n(348);e.exports=function(e){var t=i(e),n=s[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var a=o(n);return!!a&&e===a[0]}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(347),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var s=n[i],a=s.func;if(null==a||a==e)return s.name}return t}},function(e,t){e.exports={}},function(e,t,n){var r=n(102),o=n(179),i=n(103),s=n(0),a=n(3),c=n(349),u=Object.prototype.hasOwnProperty;function l(e){if(a(e)&&!s(e)&&!(e instanceof r)){if(e instanceof o)return e;if(u.call(e,"__wrapped__"))return c(e)}return new o(e)}l.prototype=i.prototype,l.prototype.constructor=l,e.exports=l},function(e,t,n){var r=n(102),o=n(179),i=n(36);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(46),o=n(104),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,(function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)})),e.sort()}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(36),o=n(20),i=Math.min;e.exports=function(e,t){for(var n=e.length,s=i(t.length,n),a=r(e);s--;){var c=t[s];e[s]=o(c,n)?a[c]:void 0}return e}},function(e,t,n){var r=n(88),o=n(68),i=n(5);e.exports=function(e,t,n,s){var a=1&t,c=o(e);return function t(){for(var o=-1,u=arguments.length,l=-1,p=s.length,d=Array(p+u),h=this&&this!==i&&this instanceof t?c:e;++l<p;)d[l]=s[l];for(;u--;)d[l++]=arguments[++o];return r(h,a?n:this,d)}}},function(e,t,n){var r=n(175),o=n(176),i=n(106),s=Math.min;e.exports=function(e,t){var n=e[1],a=t[1],c=n|a,u=c<131,l=128==a&&8==n||128==a&&256==n&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!u&&!l)return e;1&a&&(e[2]=t[2],c|=1&n?0:4);var p=t[3];if(p){var d=e[3];e[3]=d?r(d,p,t[4]):p,e[4]=d?i(e[3],"__lodash_placeholder__"):t[4]}return(p=t[5])&&(d=e[5],e[5]=d?o(d,p,t[6]):p,e[6]=d?i(e[5],"__lodash_placeholder__"):t[6]),(p=t[7])&&(e[7]=p),128&a&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},function(e,t,n){var r=n(101);function o(e,t,n){var i=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},function(e,t,n){var r=n(9),o=n(3),i=n(39);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},function(e,t,n){var r=n(15),o=n(3);e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},function(e,t,n){var r=n(52),o=n(11);e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},function(e,t,n){var r=n(101),o=n(86),i=o((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=i},function(e,t,n){var r=n(10),o=n(36),i=n(0),s=n(26),a=n(131),c=n(17),u=n(85);e.exports=function(e){return i(e)?r(e,c):s(e)?[e]:o(a(u(e)))}},function(e,t,n){const{notOk:r,getError:o,corruptPositionViolation:i}=n(67);e.exports=class{constructor(e){const{ok:t,conflicts:n}=function(e){const{parentContainer:t,previous:n,next:o}=e;if(!t)return r(i({message:"missing a parentContainer"}));if("string"==typeof n||"string"==typeof o)return n&&o?r(i({message:"previous and next cannot both be set when 'top' or 'bottom' are used"})):"top"===n||"bottom"===o?{ok:!0}:r(i({message:"previous can only be set to 'top' and next to 'bottom' no other values are allowed"}));if(function(e,t,n){return e&&e.parentContainer!==n||t&&t.parentContainer!==n}(n,o,t))return r(i({message:"parentContainer does not match component container"}));if(n&&o){if(!(n.next===o&&o.previous===n))return r(i({message:"previous and next are not siblings"}))}else if(!n&&!o&&t.first)return r(i({message:"next or previous must be set for a non-empty container"}));return{ok:!0}}(e);if(!t)throw o(n);e=function(e){const{parentContainer:t,previous:n,next:r}=e;return"top"===n?{parentContainer:t,previous:void 0,next:t.first}:"bottom"===r?{parentContainer:t,previous:t.last,next:void 0}:n?{parentContainer:t,previous:n,next:n.next}:r?{parentContainer:t,previous:r.previous,next:r}:{parentContainer:t}}(e);const{parentContainer:s,previous:a,next:c}=e;this.parentContainer=s,this.previous=a,this.next=c}get position(){const{parentContainer:e,previous:t,next:n}=this;return{parentContainer:e,previous:t,next:n}}get componentTree(){return this.parentContainer.getComponentTree()}isDifferentContainer(e){return this.parentContainer!==e.parentContainer}insert(e,t,n=!1){const o=this.position;if(function(e,t){const{parentContainer:n,previous:r,next:o}=e;if(r&&(r===t||r.next===t))return!0;if(o&&(o===t||o.previous===t))return!0;if(!o&&!r&&n===t.parentContainer)return!0}(o,e))return{ok:!0};const{ok:i,conflicts:s}=n?e.isValidPosition(o):{ok:!0};return i?("component"===e.nodeType?o.parentContainer.attachComponent(e,o,t):o.parentContainer.attachTreeNode(e,o,t),{ok:!0}):r(s)}}},function(e,t,n){const r=n(40);e.exports=function(e,t){if(!e||"default"===e)return!1;const n=r.get(e);return function(e,t=[],n=[]){if(!e)return!1;const r=e.toLowerCase(),o=-1!==t.indexOf(r),i=-1!==n.indexOf(r);return o&&!i}(t,n.allowedMimeTypes,n.disabledMimeTypes)}},function(e,t,n){const r=n(185),o=n(1);e.exports=class extends r{constructor({id:e}={}){super({id:e,nodeType:"placeholder"})}toJson(){return{}}canRemove(){return!0}isValidPosition(){return{ok:!0}}remove(){o.execTrusted("rejectProposal",{componentId:this.id,componentTree:this.componentTree})}destroy(){}}},function(e,t){e.exports={getPositionAfterNode:e=>(e=e.treeNode).next?{previous:e.next,next:e.next.next?e.next.next:void 0,parentContainer:e.parentContainer}:{parentContainer:e.parentContainer},getPositionBeforeNode:e=>(e=e.treeNode).previous?{previous:e.previous.previous?e.previous.previous:void 0,next:e.previous,parentContainer:e.parentContainer}:{next:e.next,parentContainer:e.parentContainer}}},function(e,t){class n{constructor(e){this.components=e||[],this.length=e.length;for(let e=0;e<this.components.length;e++)this[e]=this.components[e]}get first(){return this[0]}get last(){return this[this.length-1]}each(e){for(const t of this.components)e(t);return this}remove(){for(const e of this.components)e.remove();return this}}n.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],e.exports=n},function(e,t,n){const r=n(6),o=n(370),i=n(371),s=n(372),a=n(373),c=n(374),u=n(375),l=n(376),p=n(377),d=n(378);e.exports={create({component:e,structureDirective:t}){return new(this.getDirectiveConstructor(t.type))({component:e,structureDirective:t})},getDirectiveConstructor(e){switch(e){case"editable":return o;case"image":return i;case"video":return s;case"audio":return a;case"html":return c;case"link":return u;case"include":return l;case"toggle":return p;case"style":return d;default:r(!1,`Unsupported component directive: ${e}`)}}}},function(e,t,n){const r=n(41),o=n(61),i=n(38),s=n(184),a=n(1),c=/[\n\r]/g;class u extends r{constructor(){super(...arguments),this.tagWhitelist?this.editableValidator=new s({whitelist:this.tagWhitelist}):this.tagBlacklist&&(this.editableValidator=new s({blacklist:this.tagBlacklist}))}get placeholder(){return this.structureDirective.placeholder}get plainText(){return this.structureDirective.plainText}get optional(){return this.structureDirective.optional}get tagWhitelist(){return this.structureDirective.tagWhitelist}get tagBlacklist(){return this.structureDirective.tagBlacklist}get excludeFromTextCount(){return this.structureDirective.excludeFromTextCount}get maxLength(){return this.structureDirective.maxLength}getText(e={newlineReplacement:" "}){const t=this.getContent(),n=o(t),r=i(n,{plainText:!0,decodeHTML:!0});return!1===e.newlineReplacement?r:r.replace(c,e.newlineReplacement)}setContent(e){a.execTrusted("updateEditableDirective",{component:this.component,directive:this,value:e})}}u.prototype.isEditable=!0,e.exports=u},function(e,t,n){const r=n(39),o=n(40),i=n(42);let s=!1,a=!1;const c=n(1);class u extends i{get setAsBackground(){return this.structureDirective.setAsBackground}get imageRatios(){return this.structureDirective.imageRatios}get allowOriginalRatio(){return this.structureDirective.allowOriginalRatio}get renderStrategy(){return this.structureDirective.renderStrategy}get srcSet(){return this.structureDirective.srcSet}get backgroundImage(){return this.structureDirective.backgroundImage}setContent({mediaId:e,originalUrl:t,url:n,imageService:r,mimeType:o,altText:i,width:s,height:a,origins:u,crop:l}={}){c.execTrusted("updateImageDirective",{component:this.component,directive:this,value:{mediaId:e,originalUrl:t,url:n,imageService:r,mimeType:o,altText:i,width:s,height:a,origins:u,crop:l,suppressEvents:!1}})}setTemporaryImage(e){c.execTrusted("updateTmpImageDirective",{component:this.component,directive:this,value:e})}setBase64Image(e){s||(s=!0,console.warn("ImageDirective.setBase64Image() is deprecated. Please use #setTemporaryImage().")),this.setTemporaryImage(e)}setImage({originalUrl:e,url:t,mediaId:n,width:r,height:o,mimeType:i,imageService:s,origins:a,altText:u},l){c.execTrusted("updateImageDirective",{component:this.component,directive:this,value:{originalUrl:e,url:t,altText:u,mediaId:n,width:r,height:o,mimeType:i,imageService:s,origins:a,suppressEvents:l}})}setCrop(e,t){const n=this.getContent();c.execTrusted("updateImageDirective",{component:this.component,directive:this,value:{...n,crop:e,suppressEvents:t}})}resetCrop(){this.setCrop(void 0)}hasDifferentContent(e){return this.getProcessedUrl()!==e}isBackgroundImage(){return!!this.setAsBackground}isInlineImage(){return!this.setAsBackground}isTemporaryImage(){return!!this.temporaryImage}isBase64(){return a||(a=!0,console.warn("ImageDirective.isBase64() is deprecated. Please use #isTemporaryImage().")),this.isTemporaryImage()}isGif(){return"image/gif"===this.content.mimeType}get origins(){return this.content.origins}get originalUrl(){return this.content.originalUrl||this.content.url}get altText(){return this.content.altText}get mediaId(){return this.content.mediaId}get mimeType(){return this.content.mimeType}get crop(){return this.content.crop}getTemporaryUrl(){return this.temporaryImage}getUncroppedUrl(){const e=this.getImageService(),t=this.originalUrl;return e.getUncroppedUrl?e.getUncroppedUrl(t):e.getUrl(t)}getProcessedUrl(e={}){const t=this.originalUrl;if(this.hasDefaultImageService())return t;{const n=this.getImageService(),r=Object.assign({crop:this.content.crop},e);return n.getUrl(t,r)}}getImageUrl(){return console.warn("ImageDirective.getImageUrl() is deprecated. Use getProcessedUrl() instead"),this.getProcessedUrl()}get originalDimensions(){const{width:e,height:t}=this.content;return{width:e,height:t}}getImageService(){const e=this.imageServiceName;return o.get(e)}get imageServiceName(){return this.content.imageService||"default"}hasDefaultImageService(){return"default"===this.imageServiceName}getOriginalUrl(){return this.originalUrl}getUrl(){return this.originalUrl}getOriginalImageDimensions(){return this.originalDimensions}getCrop(){return this.crop}getMimeType(){return this.mimeType}getMediaId(){return this.mediaId}getAltText(){return this.altText}getImageServiceName(){return this.imageServiceName}getOrigins(){return this.origins}processImageUrl(){this.hasDefaultImageService()||(this.content.originalUrl=this.originalUrl,this.content.url=this.getProcessedUrl())}setImageService(e){"default"===e&&(e=void 0),e&&(this.content.imageService=e)}reset(){this.temporaryImage=void 0,this.content={}}deserialize(e){"string"==typeof e?this.content.url=e:super.deserialize(e)}correctValueType(e){return null==e||r(e)||"string"==typeof e}}u.prototype.isImage=!0,e.exports=u},function(e,t,n){const r=n(1),o=n(40),i=n(42);class s extends i{setContent({mediaId:e,originalUrl:t,mediaService:n,mimeType:o,width:i,height:s,durationSeconds:a,origins:c}={}){r.execTrusted("updateVideoDirective",{component:this.component,directive:this,value:{mediaId:e,originalUrl:t,mediaService:n,mimeType:o,width:i,height:s,durationSeconds:a,origins:c}})}get renderStrategy(){return this.structureDirective.renderStrategy}get video(){return this.structureDirective.video}get originalUrl(){return this.content.originalUrl}get mimeType(){return this.content.mimeType}get originalDimensions(){const{width:e,height:t}=this.content;return{width:e,height:t}}get mediaServiceName(){return this.content.mediaService||"default"}getMediaService(){const e=this.mediaServiceName;return o.get(e)}}s.prototype.isVideo=!0,e.exports=s},function(e,t,n){const r=n(1),o=n(40),i=n(42);class s extends i{setContent({mediaId:e,originalUrl:t,mediaService:n,mimeType:o,durationSeconds:i,origins:s}={}){r.execTrusted("updateAudioDirective",{component:this.component,directive:this,value:{mediaId:e,originalUrl:t,mediaService:n,mimeType:o,durationSeconds:i,origins:s}})}get renderStrategy(){return this.structureDirective.renderStrategy}get audio(){return this.structureDirective.audio}get mimeType(){return this.content.mimeType}get originalUrl(){return this.content.originalUrl}get mediaServiceName(){return this.content.mediaService||"default"}getMediaService(){const e=this.mediaServiceName;return o.get(e)}}s.prototype.isAudio=!0,e.exports=s},function(e,t,n){const r=n(41),o=n(1);class i extends r{get placeholder(){return this.structureDirective.placeholder}setEmbedHandler(e){this.setData("_embedHandler",e)}getEmbedHandler(){return this.getData("_embedHandler")}setContent(e){o.execTrusted("updateHtmlDirective",{component:this.component,directive:this,value:e})}}i.prototype.isHtml=!0,e.exports=i},function(e,t,n){const r=n(41),o=n(1);class i extends r{get prefill(){return this.structureDirective.prefill}setContent(e){o.execTrusted("updateLinkDirective",{component:this.component,directive:this,value:e})}}i.prototype.isLink=!0,e.exports=i},function(e,t,n){const r=n(51),o=n(6),i=n(42),s=n(1);e.exports=class extends i{constructor({component:e,structureDirective:t}){if(super({component:e,structureDirective:t}),this.label=t.label,this.placeholder=t.placeholder,this.defaultParams=t.defaultParams,this.config=t.config,this.service)this.initService({service:this.service,defaultParams:this.defaultParams,label:this.label,config:this.config});else{if(!this.services){const e=`include directive '${this.name}': service or services is required`;throw new Error(e)}this.assertServices(),this.initServices()}}get service(){return this.structureDirective.service}get services(){return this.structureDirective.services}initService(e){const{service:t,label:n,defaultParams:r,config:o}=e,i={service:t};n&&(i.label=n),r&&(i.params=r),this.config=o,this.content=i}initServices(){const e=this.services[0];return this.initService(e)}changeService(e){e!==this.getService()&&s.execTrusted("updateIncludeDirective",{component:this.component,directive:this,value:{service:e}})}hasServices(){return!r(this.getServices())}get isInclude(){return!0}getService(){return this.content.service}getServices(){return(this.services||[]).map(e=>({service:e.service,label:e.label}))}getParams(){return this.content.params}setContent(e){s.execTrusted("updateIncludeDirective",{component:this.component,directive:this,value:e})}setParams(e){const t={...this.content,params:e};this.setContent(t)}addParams(e){const t=this.getParams()||{};this.setParams({...t,...e})}getLabel(){return this.content.label}refresh(){this&&this.component&&this.component.requestDirectiveViewUpdate(this.name)}assertServices(){o(!r(this.services),"include directive: services is expected to contain at least "+`one service for directive ${this.name}`)}isResolved(){if(this.resolvedValue||""===this.resolvedValue)return!0}resolve(e){this.resolvedValue=e||(""===e?"":void 0)}}},function(e,t,n){const r=n(167),o=n(41),i=n(28),s=n(1);class a extends o{constructor({component:e,structureDirective:t}){super({component:e,structureDirective:t}),this.label=t.label||i.humanize(this.name),this.default=!1!==t.default,this.deserialize(this.default)}setContent(e){s.execTrusted("updateToggleDirective",{component:this.component,directive:this,value:e})}deserialize(e){e=function(e){return!r(e)||e}(e),super.deserialize(e)}getLabel(){return this.label}isEmpty(){return null==this.getContent()}correctValueType(e){return!e||!0===e||!1===e}}a.prototype.isToggle=!0,e.exports=a},function(e,t,n){const r=n(42),o=n(1);e.exports=class extends r{get properties(){return this.structureDirective.properties}get styles(){return this.structureDirective.properties}setContent(e){o.execTrusted("updateStyleDirective",{component:this.component,directive:this,value:e})}setStyle(e,t){this.setContent({...this.content,[e]:t})}hasStyle(e){return!!this.properties[e]}getStyle(e){return this.content[e]}getStyleConfig(e){return this.properties[e]}listStyleNames(){return Object.keys(this.properties)}}},function(e,t,n){const{notOk:r}=n(67),{fixedPositionViolation:o,prohibitedPositionViolation:i}=n(96);e.exports=class{constructor(e,t){this.component=e,this.initPositionRules(t)}initPositionRules(e){this.component.isPositionFixed="fixed"===e}resetPositionRules(){this.component.isPositionFixed=void 0}setPosition(e){this.resetPositionRules(),this.initPositionRules(e)}isValidPosition(e){const{component:t}=this;if(t.parentContainer&&t.isPositionFixed)return r(o({component:this.component}));if(e){const{next:t,previous:n}=e,o=t&&t.isPositionFixed,s=n&&n.isPositionFixed,a=s&&(!t||o);if(o&&(!n||s)||a)return r(i({component:this.component,message:"A sibling has a fixed position and does not allow other components to be prepended or appended."}))}return{ok:!0}}isParentOfFixedPosition(){let e=!1;return this.component.descendants((function(t){t.isPositionFixed&&(e=!0)})),e}canRemove(){return!this.component.isPositionFixed&&!this.isParentOfFixedPosition()}}},function(e,t,n){const{assert:r}=n(2);e.exports=class{constructor({container:e,component:t,componentTree:n}){this.current=void 0,t?this.nextComponent=this.root=t:e||n?this.nextComponent=(this.root=e||n.root).first:r(!1,"new ComponentTreeIterator(): specify one of these params: container, component or componentTree")}hasNext(){return!!this.nextComponent}next({skipChildren:e}={}){if(this.current=this.nextComponent,!this.current)return;let t;if(!e)for(let e=0;e<this.current.containers.length;e++){const n=this.current.containers[e];if(n.first){t=n.first;break}}return t||(t=this.getNextComponent(this.current)),this.nextComponent=t,this.current}getNextComponent(e){if(!e||e===this.root)return;if(e.next)return e.next;const t=e.parentContainer;if(!t||t===this.root)return;let n=t;for(;n=n.getNextContainer();)if(n.first)return n.first;return this.getNextComponent(t.parentComponent)}}},function(e,t,n){const r=n(189),o=n(70),i=n(384),s=n(389),{serializePosition:a}=n(66);function c(e){const t=[...e.descendantsIterator({allTreeNodes:!0})];return o(t,(e,t,n)=>(e[t.id]=n,e),{})}e.exports=class{constructor({componentTree:e}){this.componentTree=e,this.proposals={}}get(e){if(this.proposals[e])return this.proposals[e]}getProposalComponent(e){if(this.proposals[e])return this.proposals[e].component}getPlaceholder(e){const t=this.proposals[e];if(t&&"proposeInsert"===t.type)return t.component.treeNode}get all(){return this.proposals}get count(){return Object.keys(this.proposals).length}get hasProposals(){return!!Object.keys(this.proposals).length}applyAllProposals(){for(const e in this.proposals)this.proposals[e].apply()}rejectAllProposals(){for(const e in this.proposals)this.proposals[e].reject()}rejectProposal(e){const t=this.proposals[e.id];t&&t.reject()}setStatus(e,t){const n=this.proposals[e];n&&n.setStatus(t)}getSortedProposals(){const e=c(this.componentTree);return i(this.proposals,t=>e[t.id])}serialize(){const e=c(this.componentTree),t=i(this.proposals,t=>e[t.id]);return r(t,e=>{const t={type:e.type,componentId:e.id};if(e.status&&(t.proposalStatus=e.status),e.data&&(t.proposalData=e.data),"proposeInsert"===e.type||"proposeUpdate"===e.type){t.component=e.component.toJson();const n=e.component.placeholder;n&&(t.position=a(n.getPosition()))}return t})}_upsertComponent({component:e,proposalStatus:t,proposalData:n}){const r=e.placeholder?"proposeInsert":"proposeUpdate",o=new s({type:r,id:e.id,component:e,status:t||this.defaultStatus,data:n,componentTree:this.componentTree});return this.proposals[o.id]=o,o}_removeComponent({id:e,proposalStatus:t,proposalData:n}){const r=new s({type:"proposeRemoval",id:e,status:t||this.defaultStatus,data:n,componentTree:this.componentTree});return this.proposals[r.id]=r,r}_setDefaultStatus(e){this.defaultStatus=e}_restoreDefaultStatus(){this.defaultStatus=void 0}}},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t){e.exports=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}},function(e,t,n){var r=n(87),o=n(385),i=n(63),s=n(155),a=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=a},function(e,t,n){var r=n(10),o=n(11),i=n(190),s=n(386),a=n(21),c=n(387),u=n(22);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[u],a(o));var p=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++l,value:e}}));return s(p,(function(e,t){return c(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(388);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,s=t.criteria,a=i.length,c=n.length;++o<a;){var u=r(i[o],s[o]);if(u)return o>=c?u:u*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(26);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,s=r(e),a=void 0!==t,c=null===t,u=t==t,l=r(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||o&&a&&u||!n&&u||!i)return 1;if(!o&&!s&&!l&&e<t||l&&n&&i&&!o&&!s||c&&n&&i||!a&&i||!u)return-1}return 0}},function(e,t,n){const r=n(1);e.exports=class{constructor({type:e,id:t,status:n,data:r,component:o,componentTree:i}){this.id=t,this.type=e,this.componentTree=i,o&&(this.component=o),n&&(this.status=n),r&&(this.data=r)}setStatus(e){r.execTrusted("updateProposalStatus",{proposalStatus:e,componentId:this.id,componentTree:this.componentTree})}setData(e){r.execTrusted("updateProposalData",{proposalData:e,componentId:this.id,componentTree:this.componentTree})}get tmpData(){return this._tmpData}set tmpData(e){this._tmpData=e}apply(){r.execTrusted("applyProposal",{componentId:this.id,componentTree:this.componentTree})}reject(){r.execTrusted("rejectProposal",{componentId:this.id,componentTree:this.componentTree})}}},function(e,t,n){const{assert:r}=n(2);e.exports=class{constructor({type:e,src:t,code:n,name:o,version:i,namespace:s,isExecuteOnly:a,component:c}){this.type=e,this.src=t,this.code=n,this.namespace=s,this.name=o,this.version=i,this.isExecuteOnly=a,r(this.src||this.code,'Dependency: No "src" or "code" param provided'),r(!(this.src&&this.code),'Dependency: Only provide one of "src" or "code" params'),r(this.type,"Dependency: Param type must be specified"),r(["js","css"].includes(this.type),`Dependency: Unrecognized type: ${this.type}`),this.code&&(this.inline=!0),this.components={},this.componentCount=0,c&&this.addComponent(c)}isJs(){return"js"===this.type}isCss(){return"css"===this.type}hasComponent(e){return null!=this.components[e.id]}addComponent(e){this.hasComponent(e)||(this.componentCount+=1,this.components[e.id]=!0)}forceExecution(){this.isExecuteOnly=!0}removeComponent(e){return!this.hasComponent(e)||(this.componentCount-=1,this.components[e.id]=void 0,0!==this.componentCount)}isSameAs(e){return this.type===e.type&&(this.namespace===e.namespace&&(e.src?this.src===e.src:this.code===e.code))}serialize(){r(!this.isExecuteOnly,"engine//dependency.js: Cannot serialize a temporary dependency");const e={};for(const t of["src","code","inline","name","version","namespace"])this[t]&&(e[t]=this[t]);for(const t in this.components)e.componentIds||(e.componentIds=[]),e.componentIds.push(t);return e}}},function(e,t,n){const r=n(392);e.exports={printJs:function(e){let t="";for(const n of Array.from(e.js))n.inline?t+=this.printInlineScript({codeBlock:n.code}):t+=this.printScriptTag({src:n.src}),t+="\n";return t},printCss:function(e){let t="";for(const n of Array.from(e.css))n.inline?t+=this.printInlineCss({styles:n.code}):t+=this.printCssLink({src:n.src}),t+="\n";return t},printScriptTag:function({src:e}){return`<script src="${e}"><\/script>`},printInlineScript:function({codeBlock:e}){return`<script> ${e=r.prepareInlineCode(e)} <\/script>`},printCssLink:function({src:e,head:t}){"boolean"!=typeof t&&(t=!0);if(t)return`<link rel="stylesheet" type="text/css" href="${e}">`;return`<link rel="stylesheet" type="text/css" href="${e}">`},printInlineCss:function({styles:e}){return`<style> ${e=r.prepareInlineStyles(e)} </style>`},printComment:function(e){return`\x3c!-- ${e} --\x3e`}}},function(e,t){const n=/<style[^>]*>|<\/style>/gi,r=/<script[^>]*>|<\/script>/gi;e.exports={prepareInlineStyles:e=>e.replace(n,""),prepareInlineCode:e=>e.replace(r,"")}},function(e,t,n){const r=n(4),o=n(13),i=n(71),s=n(394),a=n(398),c=n(401),u=n(6),l=n(192);e.exports=class{constructor(e,t){this.onTreeChange=this.onTreeChange.bind(this),this.extractAll=this.extractAll.bind(this),this.onComponentChange=this.onComponentChange.bind(this),this.componentTree=e,this.fieldMapping=t,this.metadataConfig=t,this.fields={},this.initEvents(),this.extractAll(),this.setupListeners()}setupListeners(){this.componentTree.on("componentAdded",this.onTreeChange),this.componentTree.on("componentRemoved",this.onTreeChange),this.componentTree.on("componentMoved",this.onTreeChange),this.componentTree.on("componentContentChanged",this.onComponentChange)}onTreeChange(e){const t=e.componentName,n=this.fieldMapping.getComponentMap()[t],r={};let i=!1;const s=this.extractFields(n);for(const e in s){const t=s[e];o(this.fields[e],t)||(i=!0,r[e]=this.fields[e]=t)}i&&this.fieldsChanged.fire(r,this.fields)}isFieldCandidate(e,t){const n=t.component.componentName,r=t.name;return this.fieldMapping.getFieldsBySource(n,r).includes(e)}extractAll(){const e=this.fieldMapping.getListOfFields();return this.fields=this.extractFields(e),this.fieldsChanged.fire(this.fields,this.fields),this.fields}extractFields(e){const t={},n=new Map,r=this.fieldMapping.getComponentMap();for(const t of Object.keys(r)){const o=a(r[t],e);o.length&&n.set(t,o)}for(const e of this.componentTree.descendantsIterator()){const r=e.componentName;if(0===n.size)break;const o=n.get(r);if(!o)continue;const i=this.extractFieldsFromComponent(e,o);for(const e of Object.keys(i)){const r=i[e];for(const[t,r]of n){const o=c(r,e);o.length?n.set(t,o):n.delete(t)}t[e]=r}}return t}extractFieldsFromComponent(e,t){const n={},r=e.componentName;return t.forEach(t=>{this.fieldMapping.getDirectivesByComponentAndField(r,t).forEach(r=>{if(n[t])return;const o=e.directives.get(r);if(o.isEmpty())return;const i=this.extractFieldFromDirective(o,t);n[t]=i})}),n}onComponentChange(e,t){const n=e.componentName,r=this.fieldMapping.getFieldsBySource(n,t),o={},a=[],c=e.directives.get(t);for(const t of r){const n=c.isEmpty()?void 0:this.extractFieldFromDirective(c,t),r=this.checkChangedField(t,n,e);r&&(r.needsExtraction&&a.push(t),r.hasChanged&&(this.fields[t]=o[t]=n))}a.length&&i(this.extractFields(a),(e,t)=>{o[t]=e,this.fields[t]=e}),s(o)&&this.fieldsChanged.fire(o,this.fields)}checkChangedField(e,t,n){const i=null==t,s=null==this.fields[e],a=r(this.fields[e],"component.id")===n.id,c=n.componentTree;if(i&&a)return{hasChanged:!0,needsExtraction:!0};if((()=>(s||a)&&!o(this.fields[e],t))())return{hasChanged:!0};if(!i&&!a){const t=c.indexOf(this.fields[e].component),r=c.indexOf(n),o=()=>-1!==r&&-1===t;if((()=>t>r)()||o())return{hasChanged:!0}}return{hasChanged:!1}}initEvents(){this.fieldsChanged=l()}extractFieldFromDirective(e,t){const n=this.fieldMapping.getConfigMap()[t],r=n.type;if("text"===r)return this.extractTextField(e);if("image"===r){if(!e.isTemporaryImage())return this.extractImageField(e)}else{if("cssProperty"===r)return this.extractStyleField(e,n.cssProperty);u(!1,`Unknown template type ${r}`)}}extractTextField(e){return{content:e.getContent(),component:e.component,directiveName:e.name,text:e.getText(),type:"text"}}extractImageField(e){return{component:e.component,directiveName:e.name,type:"image",image:{originalUrl:e.getOriginalUrl(),url:e.getProcessedUrl(),mediaId:e.getMediaId(),width:r(e.originalDimensions,"width"),height:r(e.originalDimensions,"height"),mimeType:e.getMimeType(),imageService:e.getImageServiceName()}}}extractStyleField(e,t){const n={content:e.getContent(),component:e.component,directiveName:e.name,type:"cssProperty"};return t&&(n.cssProperty=e.getStyle(t)),n}getFields(){return this.fields}}},function(e,t,n){var r=n(48),o=n(15),i=n(12),s=n(27),a=n(395);e.exports=function(e){if(null==e)return 0;if(i(e))return s(e)?a(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},function(e,t,n){var r=n(396),o=n(193),i=n(397);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(164)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[i+r+"?",r,s,a,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+l+u,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},function(e,t,n){var r=n(10),o=n(399),i=n(63),s=n(400),a=i((function(e){var t=r(e,s);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=a},function(e,t,n){var r=n(98),o=n(104),i=n(194),s=n(10),a=n(21),c=n(99),u=Math.min;e.exports=function(e,t,n){for(var l=n?i:o,p=e[0].length,d=e.length,h=d,f=Array(d),m=1/0,g=[];h--;){var v=e[h];h&&t&&(v=s(v,a(t))),m=u(v.length,m),f[h]=!n&&(t||p>=120&&v.length>=120)?new r(h&&v):void 0}v=e[0];var y=-1,b=f[0];e:for(;++y<p&&g.length<m;){var x=v[y],_=t?t(x):x;if(x=n||0!==x?x:0,!(b?c(b,_):l(g,_,n))){for(h=d;--h;){var w=f[h];if(!(w?c(w,_):l(e[h],_,n)))continue e}b&&b.push(_),g.push(x)}}return g}},function(e,t,n){var r=n(95);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(402),o=n(63),i=n(95),s=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=s},function(e,t,n){var r=n(98),o=n(104),i=n(194),s=n(10),a=n(21),c=n(99);e.exports=function(e,t,n,u){var l=-1,p=o,d=!0,h=e.length,f=[],m=t.length;if(!h)return f;n&&(t=s(t,a(n))),u?(p=i,d=!1):t.length>=200&&(p=c,d=!1,t=new r(t));e:for(;++l<h;){var g=e[l],v=null==n?g:n(g);if(g=u||0!==g?g:0,d&&v==v){for(var y=m;y--;)if(t[y]===v)continue e;f.push(g)}else p(t,v,u)||f.push(g)}return f}},function(e,t){e.exports=class{constructor(e){this.fieldsArray=[],this.fieldMap={},this.configMap={},this.componentDirectiveMap={},this.componentMap={},e&&e.length&&this.parse(e)}parse(e){for(const t of e){const e=t.identifier;this.fieldsArray.push(e),this.configMap[e]=t,this.fieldMap[e]||(this.fieldMap[e]={});for(const n of t.matches){const[t,r]=n.split(".");this.componentDirectiveMap[t]||(this.componentDirectiveMap[t]={}),this.componentDirectiveMap[t][r]||(this.componentDirectiveMap[t][r]=[]),this.componentDirectiveMap[t][r].push(e),this.componentMap[t]||(this.componentMap[t]=[]),this.componentMap[t].push(e),this.fieldMap[e][t]||(this.fieldMap[e][t]=[]),this.fieldMap[e][t].push(r)}}}getListOfFields(){return this.fieldsArray}getConfigMap(){return this.configMap}getComponentMap(){return this.componentMap}getFieldsBySource(e,t){return this.componentDirectiveMap[e]&&this.componentDirectiveMap[e][t]||[]}getDirectivesByComponentAndField(e,t){return this.fieldMap[t][e]}}},function(e,t,n){const r=n(405),o=n(407),i=n(69);e.exports=class{constructor(e,t,r){this._livingdoc=e,this._config=t,this._events=r||n(409),this.state={undo:[],redo:[],group:!1,undone:!1,redone:!1,enabled:!1}}enable(){this.state.enabled||(Object.keys(this._events).map(e=>{this._livingdoc.componentTree.on(e,r.bind(this,e,this._events[e]))}),this.state.enabled=!0)}undo(){return o.call(this,"undo")}redo(){return o.call(this,"redo")}hasUndo(){return!(!this.state.enabled||!this.state.undo.length)}hasRedo(){return!(!this.state.enabled||!this.state.redo.length)}startEventGroup(e){return this.state.group=e||i.next("event-group"),this.state.group}stopEventGroup(){return!!this.state.group&&(this.state.group=!1,!0)}}},function(e,t,n){const r=n(406),o=n(64),{eventSources:i}=n(1);e.exports=function(e,t,n,...s){const a=t.getContext(n,...s);if(!a)return;const c={context:a,event:e,model:n};c.group=this.state.grouped||this.state.group;const u=this.state.undone?"redo":"undo";return a.eventSource===i.remote&&function(e,t,n){return!o(e,e=>e.context.directive&&n.directive&&e.context.directive.component.id===n.directive.component.id&&e.context.directive.index===n.directive.index||!n.directive&&t.id===e.model.id)}(this.state[u],n,a)?void 0:("undo"!==u||this.state.redone||(this.state.redo=[]),this.state.undone=this.state.redone=this.state.grouped=!1,this.state[u].push(c),this.state[u]=r(this.state[u],this._config.limit),t)}},function(e,t,n){var r=n(107),o=n(65);e.exports=function(e,t,n){var i=null==e?0:e.length;return i?(t=n||void 0===t?1:o(t),r(e,(t=i-t)<0?0:t,i)):[]}},function(e,t,n){const{log:r}=n(2),{rollbackText:o}=n(408);e.exports=function e(t,n,i={}){if(!this.state.enabled)return r.warn("History API not enabled"),!1;const s=this.state[t];if(!s||!s.length)return!1;const a=s.pop();return!!Object.keys(this._events).includes(a.event)&&("undo"===t&&(this.state.undone=!0),"redo"===t&&(this.state.redone=!0),this.state.grouped=a.group,this._events[a.event].revert(this._livingdoc,a.model,a.context),function(e,t,n){if(!e)return!1;const r=t&&t===e;if((t||!e)&&!r)return!1;const o=n.length&&n[n.length-1],i=o?o.group:void 0;return!o||i===e}(a.group,n,s)?e.call(this,t,a.group):("undo"===t&&o(this.state,a,i,e.bind(this)),!0))}},function(e,t,n){const{decodeHTML:r}=n(62),o=n(8),i=n(69);function s(e,t,n){const r="beforeComponentContentChanged";if(function(e,t){return e.context&&t&&t.context&&e.context.directive!==t.context.directive}(e,t))return!1;if(!t||t.event!==r||e.event!==r)return!1;const i=o.history.groupingInterval;if(n.time-t.context.time>i)return!1;const s=a(n.content),c=a(t.context.content),u=s.replace(c,"");if(u.length===s.length)return!0;const l=u.replace(/(\.|,|\?|!)+\s*$/,"").split(/\.|,|\?|!/).length,p=u.split(/\s/).length;return l<2&&p<6}e.exports={rollbackText:function(e,t,n,r){const o=e.undo,a=o[o.length-1];let c=n.count+1||1;const u=n.context||t.context;if(s(t,a,u))return r("undo",t.group,{count:c,context:u});const l=i.next("event-group"),p=e.redo;for(;c;)c-=1,p[p.length-c-1]&&(p[p.length-c-1].group=l)},shouldMoreTextBeRolledback:s};const a=e=>r(e).replace(/\s/g," ")},function(e,t,n){e.exports={beforeComponentAdded:n(410),beforeComponentRemoved:n(195),beforeComponentMoved:n(195),beforeComponentContentChanged:n(411),beforeComponentHtmlChanged:n(412)}},function(e,t){e.exports.revert=(e,t)=>t.remove(),e.exports.getContext=(e,t)=>({model:e,eventSource:t})},function(e,t,n){const r=n(183);e.exports.revert=(e,t,n)=>{if(!n.directive)return!1;n.directive.setContent(n.content)},e.exports.getContext=(e,t,n)=>{const o=e.directives.all[t];if(!o)return!1;let i=o.getContent();const s=new Date;return i&&i.originalUrl&&(i=r(i),i.url=i.originalUrl),{directive:o,content:i,time:s,eventSource:n}}},function(e,t){e.exports.revert=(e,t,n)=>t.setStyle(n.name,n.value),e.exports.getContext=(e,t,n,r)=>"style"===t&&(n.eventSource=r,n)},function(e,t){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}},function(e,t,n){var r=n(31);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},function(e,t,n){const r=n(6),o=n(28),i=n(187),s=n(186);function a(e,t){return e.name>t.name?1:e.name<t.name?-1:0}e.exports=class{constructor({name:e,label:t,description:n,iconUrl:s,directives:a,properties:c,allowedParents:u,excludeFromTextCount:l,mediaRenderingBaseConfig:p}){this.name=e,this.properties=c,this.allowedParents=u,this.description=n,this.iconUrl=s,this.excludeFromTextCount=l,this.mediaRenderingBaseConfig=p,r.param(this.name,"new ComponentStructure()","name"),this.label=t||o.humanize(this.name),this.styles=this.properties=this.properties||{},this.directives=new i({directives:a}),this.allowedParents&&r(this.allowedParents.length,"AllowedParents must be an array or undefined")}setDesign(e){this.design=e,this.identifier=`${e.name}.${this.name}`}setSkin(e){this.skin=e}getSkin(){return this.skin?this.skin:this.design?this.design.getComponentSkin(this.name):void 0}createModel({id:e}={}){return new s({id:e,structure:this})}equals(e){if(this.design&&e&&e.design)return this.design.identifier===e.design.identifier&&this.name===e.name;throw new Error("Can not determine component structure equality: not implemented")}info(){const e={name:this.name,directives:[],styles:[]};for(const{name:t,type:n}of this.directives)e.directives.push({name:t,type:n});for(const t of Object.keys(this.properties))e.properties.push({name:t,type:"cssModificator"});return e.directives.sort(a),e.properties.sort(a),e}isSkinCompatible(e){}}},function(e,t,n){const r=n(6),o=n(38);e.exports=class{constructor({name:e,dom:t}){this.name=e,this.dom=t,r.param(this.name,"new ComponentSkin","name"),r.param(this.dom,"new ComponentSkin","dom"),this.assertRootElem()}assertRootElem(){r(1===this.dom.length,`Invalid HTML Template: The component '${this.name}' has more than one `+"root element in its HTML template. Please wrap your markup in one element.")}toHtml(e){return o(this.dom,e)}}},function(e,t,n){const r=n(418),o=n(61),i=n(425);e.exports=function(e){const t=o(r(e));if(!t.length)throw new Error("no template provided");if(t.length>1)throw new Error("more than one root element. Please wrap your markup in one element");const n=new i(t);return{directives:n.directives,skin:n.tree.children}}},function(e,t,n){var r=n(132),o=n(419),i=n(420),s=n(421),a=n(422),c=n(85),u=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=r(t)))return e;var l=a(e),p=a(t),d=s(l,p),h=i(l,p)+1;return o(l,d,h).join("")}},function(e,t,n){var r=n(107);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t,n){var r=n(105);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(105);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(423),o=n(193),i=n(424);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[i+r+"?",r,s,a,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+l+u,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){const r=n(426),o=n(428),i=n(4),{decodeHTML:s}=n(62),{log:a}=n(2),c=n(28),u=n(432),l=n(38),p=n(108),d=n(433);e.exports=class{constructor(e){this.directives=[],this.tree=this.parseNode({type:"fragment",children:e})}parseNode(e){switch(e.type){case"text":return this.parseTextNode(e);case"tag":case"fragment":return this.parseElementNode(e);case"comment":case"script":return;default:throw new Error(`Parsing component template: Unrecognized node type '${e.type}'`)}}parseTextNode(e){return{type:"text",data:e.data}}parseElementNode(e){let t=!1;const n={type:e.type};if(e.name&&(n.name=e.name),e.attribs){const{attributes:r,directives:o}=d.parseAttributes(e.attribs);if(r&&(n.attribs=r),o){const r=this.parseDirectives(o,e),i=r.directives;t=r.skipChildren;const s={};for(const e of i)s[e.type]=e.name;n.directives=s,this.directives=this.directives.concat(i)}}if(!t&&e.children&&e.children.length)for(const t of e.children){const e=this.parseNode(t);e&&(n.children||(n.children=[]),n.children.push(e))}return n}parseDirectives(e,t){let n,o={};for(const{name:r,type:i}of Array.from(e)){p.doesOverwriteContent(i)&&(n=!0);const e=this.createDirective(r,i,t);o[i]=e}return o=this.processOptionalDirective(o,t),{directives:e=r(o),skipChildren:n}}createDirective(e,t,n){const r={type:t,name:e};let o,i;switch(t){case"editable":o=this.getText(n),o=c.trim(o),o=s(o),r.placeholder=o,r.tag=n.name;break;case"image":r.tag=n.name,r.setAsBackground="img"!==n.name&&"picture"!==n.name;break;case"video":case"audio":r.tag=n.name;break;case"html":case"include":i=this.getContentHtml(n),r.placeholder=i}return r}processOptionalDirective(e,t){if(e.optional){let n;return(n=e.editable)?n.optional=!0:a.error(`<${t.name}>: doc-optional can only be used in conjunction with doc-editable`),o(e,"optional")}return e}getText(e){let t,n="";const r=new u({firstNode:e,isRoot:!0});for(;t=r.next();)"text"===t.type&&(n+=t.data);return n}getContentHtml(e){if(i(e,"children.length"))return l(e.children)}}},function(e,t,n){var r=n(427),o=n(14);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(10);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(10),o=n(52),i=n(199),s=n(25),a=n(24),c=n(431),u=n(86),l=n(81),p=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=s(t,e),u||(u=t.length>1),t})),a(e,l(e),n),u&&(n=o(n,7,c));for(var p=t.length;p--;)i(n,t[p]);return n}));e.exports=p},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(60),o=n(107);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t,n){var r=n(39);e.exports=function(e){return r(e)?void 0:e}},function(e,t){e.exports=class{constructor({firstNode:e,isRoot:t}){this._next=e,this.current=e,t&&(this.root=e)}next(){let e=this.current=this._next;if(this.current){let t;if(e.children&&e.children.length&&(t=e.children[0]),t&&"tag"===e.type)this._next=t;else{let t;for(;e&&e!==this.root&&!(t=e.next);)e=e.parent;this._next=t}}return this.current}nextElement(){for(;this.next()&&"tag"!==this.current.type;);return this.current}detach(){this.root=null,this._next=null,this.current=null}}},function(e,t,n){const r=/^(doc-|data-doc-|x-doc-)(.*)/,o=/(^| )doc-section($| )/,i=n(108);e.exports={parseAttributes(e){let t,n;for(const r of Object.keys(e)){const o=e[r],i=this.scanAttribute(r,o,!0);i?(n||(n=[]),n.push(i)):(t||(t={}),t[r]=o)}return{attributes:t,directives:n}},getDirectiveTypes(e){if(!e||!e.length)return;const t={};let n=!1;for(const r of Array.from(e||[])){const e=r.name||r.nodeName,o=r.value||r.nodeValue,i=this.scanAttribute(e,o);i&&(n=!0,t[i.type]=i.name)}return n?t:void 0},scanAttribute(e,t,n){let s=r.exec(e);if(s){const r=s[2];if(i.exists(r))return{type:r,name:t};if(n)throw new Error(`Unrecognized directive attribute '${e}'`)}else if("class"===e&&(s=o.exec(t),s))return{type:"container",name:"content"}},convertBrowserAttributes(e){if(e&&e.length)return Array.from(e||[]).reduce((e,t)=>(e[t.name||t.nodeName]=t.value||t.nodeValue,e),{})}}},function(e,t,n){const r=n(200),o=n(110),i=r.new();e.exports=i,i.add("container",{type:"string",name:"string",allowedChildren:"array of string, optional",defaultContent:"array of object, optional",defaultComponents:{__validate:"optional",paragraph:"string, optional",image:"string, optional"},__additionalProperty:(e,t)=>!1}),i.add("editable",{type:"string",name:"string",tag:"string",placeholder:"string, optional",optional:"boolean, optional",plainText:"boolean, optional",tagWhitelist:"array of string, optional",tagBlacklist:"array of string, optional",excludeFromTextCount:"boolean, optional",maxLength:"number, optional",__additionalProperty:(e,t)=>!1}),i.add("html",{type:"string",name:"string",placeholder:"string, optional",__additionalProperty:(e,t)=>!1}),i.add("include",{type:"string",name:"string",label:"string, optional",placeholder:"string, optional",service:"string, optional",defaultParams:"object, optional",services:"array of service, optional",config:"object, optional",__additionalProperty:(e,t)=>!1}),i.add("service",{service:"string",label:"string",defaultParams:"object, optional",config:"object, optional",__additionalProperty:(e,t)=>!1}),i.add("image",{type:"string",name:"string",tag:"string",setAsBackground:"boolean",imageRatios:"array of imageRatio, optional",allowOriginalRatio:"boolean, optional",renderStrategy:"string, optional",srcSet:{__validate:"optional",defaultWidth:"number, optional",widths:"array of number, optional",sizes:"array of string, optional"},backgroundImage:{__validate:"optional",defaultWidth:"number, optional",maxWidth:"number, optional",cssVars:"object, optional"},__additionalProperty:(e,t)=>!1}),i.add("imageRatio",(function(e){return e instanceof o||"must be an ImageRatio instance"})),i.add("video",{type:"string",name:"string",tag:"string",video:{__validate:"optional",controls:"boolean, optional",loop:"boolean, optional",autoplay:"boolean, optional",muted:"boolean, optional",preload:"string, optional"},__additionalProperty:(e,t)=>!1}),i.add("audio",{type:"string",name:"string",tag:"string",audio:{__validate:"optional",controls:"boolean, optional",loop:"boolean, optional",autoplay:"boolean, optional",preload:"string, optional"},__additionalProperty:(e,t)=>!1}),i.add("link",{type:"string",name:"string",prefill:"object, optional",__additionalProperty:(e,t)=>!1}),i.add("optional",{type:"string",name:"string, optional",__additionalProperty:(e,t)=>!1}),i.add("toggle",{type:"string",name:"string",default:"boolean, optional",label:"string, optional",__additionalProperty:(e,t)=>!1}),i.add("style",{type:"string",name:"string",properties:"object, optional",__additionalProperty:(e,t)=>!1})},function(e,t,n){var r,o,i,s;o=n(436),r=n(437),s=n(438),i=n(109),e.exports=function(){var e;function t(){this.validators=Object.create(s),this.schemas={},this.propertiesRequired=!0,this.allowAdditionalProperties=!0}return e=/^[a-zA-Z]\w*$/,t.prototype.configure=function(e){this.propertiesRequired=e.propertiesRequired,this.allowAdditionalProperties=e.allowAdditionalProperties},t.prototype.add=function(e,t){return i.isFunction(t)?this.addValidator(e,t):this.addSchema(e,this.parseConfigObj(t,void 0,e)),this},t.prototype.addSchema=function(e,t){if(null!=this.validators[e])throw new Error("A validator is alredy registered under this name: "+e);var n;return this.schemas[e]=t,this.validators[e]=(n=this,function(e){var r;return!(r=n.recursiveValidate(t,e)).hasErrors()||r}),this},t.prototype.addValidator=function(e,t){return this.validators[e]=t,this},t.prototype.validate=function(e,t){var n;return this.errors=void 0,null==(n=this.schemas[e])?(this.errors=new o,this.errors.add("missing schema",{location:e}),!1):(this.errors=this.recursiveValidate(n,t).setRoot(e),!this.errors.hasErrors())},t.prototype.hasErrors=function(){var e;return null!=(e=this.errors)?e.hasErrors():void 0},t.prototype.getErrorMessages=function(){var e;return null!=(e=this.errors)?e.getMessages():void 0},t.prototype.recursiveValidate=function(e,t){var n,r,s,a,c;for(r in s=e.__validator,n=new o,s.validate(t,n),t)c=t[r],null!=e[r]?(a=e[r].__validator).validate(c,n)&&null==a.childSchemaName&&i.isObject(c)&&n.join(this.recursiveValidate(e[r],c)):s.validateOtherProperty(r,c,n);return n},t.prototype.parseConfigObj=function(e,t){var n,o,s;for(n in null==t&&(t=new r({inputString:"object",scheme:this})),e)s=e[n],this.addParentValidator(t,n,s)||(i.isString(s)?(o=new r({inputString:s,property:n,parent:t,scheme:this}),e[n]={__validator:o}):i.isObject(s)&&(o=new r({inputString:"object",property:n,parent:t,scheme:this}),e[n]=this.parseConfigObj(s,o)));return e.__validator=t,e},t.prototype.addParentValidator=function(e,t,n){switch(t){case"__validate":e.addValidations(n);break;case"__additionalProperty":i.isFunction(n)&&(e.otherPropertyValidator=n);break;default:return!1}return!0},t.prototype.writeProperty=function(t){return e.test(t)?"."+t:"['"+t+"']"},t}()},function(e,t,n){var r;r=n(109),e.exports=function(){function e(){}return e.prototype.hasErrors=function(){return null!=this.errors},e.prototype.setRoot=function(e){return this.root=e,this},e.prototype.add=function(t,n){var o,i,s,a;if(s=(a=null!=n?n:{}).location,o=a.defaultMessage,!1===t&&(t=o),void 0===t&&(t="validator returned undefined. Check your validator implementation."),null==this.errors&&(this.errors=[]),r.isString(t))this.errors.push({path:s,message:t});else if(t instanceof e)this.join(t,{location:s});else{if(!t.path||!t.message)throw new Error("ValidationError.add() unknown error type");i=t,this.errors.push({path:s+i.path,message:i.message})}return!1},e.prototype.join=function(e,t){var n,r,o,i,s,a;if(r=e.errors,o=(null!=t?t:{}).location,null!=r&&r.length){for(null==this.errors&&(this.errors=[]),a=[],i=0,s=r.length;i<s;i++)n=r[i],a.push(this.errors.push({path:(o||"")+n.path,message:n.message}));return a}},e.prototype.getMessages=function(){var e,t,n,r,o;for(t=[],n=0,r=(o=this.errors||[]).length;n<r;n++)e=o[n],t.push(""+(this.root||"")+e.path+": "+e.message);return t},e}()},function(e,t){e.exports=function(){var e;function t(e){var t;this.inputString=e.inputString,this.scheme=e.scheme,this.property=e.property,this.parent=e.parent,this.validators=[],this.location=this.getLocation(),this.scheme.propertiesRequired&&null!=(t=this.parent)&&t.addRequiredProperty(this.property),this.addValidations(this.inputString)}return e=/\w[\w ]*\w/g,t.prototype.getLocation=function(){return null==this.property?"":null!=this.parent?this.parent.location+this.scheme.writeProperty(this.property):this.scheme.writeProperty(this.property)},t.prototype.getPropLocation=function(e){return""+this.location+this.scheme.writeProperty(e)},t.prototype.addValidations=function(t){for(var n,r;n=e.exec(t);)"optional"===(r=n[0])?this.parent.removeRequiredProperty(this.property):"required"===r?this.parent.addRequiredProperty(this.property):0===r.indexOf("array of ")?(this.validators.push("array"),this.arrayValidator=r.slice(9)):-1!==r.indexOf(" or ")?(r.split(" or "),console.log("todo")):this.validators.push(r)},t.prototype.validate=function(e,t){var n,r,o,i,s,a,c,u;if(n=!0,null==e&&this.isOptional())return n;for(s=this.scheme.validators,a=0,c=(u=this.validators||[]).length;a<c;a++){if(null==(i=s[r=u[a]]))return t.add("missing validator "+r,{location:this.location});!0!==(o=i(e))&&(t.add(o,{location:this.location,defaultMessage:r+" validator failed"}),n=!1)}return!!(n=this.validateArray(e,t))&&(!!(n=this.validateRequiredProperties(e,t))&&n)},t.prototype.validateArray=function(e,t){var n,r,o,i,s,a,c,u;if(null==this.arrayValidator)return!0;if(r=!0,null==(s=this.scheme.validators[this.arrayValidator]))return t.add("missing validator "+this.arrayValidator,{location:this.location});for(n=a=0,c=(u=e||[]).length;a<c;n=++a)!0!==(i=s(u[n]))&&(o=this.location+"["+n+"]",t.add(i,{location:o,defaultMessage:this.arrayValidator+" validator failed"}),r=!1);return r},t.prototype.validateOtherProperty=function(e,t,n){return null!=this.otherPropertyValidator?(this.scheme.errors=void 0,!!this.otherPropertyValidator.call(this,e,t)||(null!=this.scheme.errors?n.join(this.scheme.errors,{location:this.getPropLocation(e)}):n.add("additional property check failed",{location:this.getPropLocation(e)}),!1)):!!this.scheme.allowAdditionalProperties||(n.add("unspecified additional property",{location:this.getPropLocation(e)}),!1)},t.prototype.validateRequiredProperties=function(e,t){var n,r,o,i;for(o in r=!0,i=this.requiredProperties)n=i[o],null==e[o]&&n&&(t.add("required property missing",{location:this.getPropLocation(o)}),r=!1);return r},t.prototype.addRequiredProperty=function(e){return null==this.requiredProperties&&(this.requiredProperties={}),this.requiredProperties[e]=!0},t.prototype.removeRequiredProperty=function(e){var t;return null!=(t=this.requiredProperties)?t[e]=void 0:void 0},t.prototype.isOptional=function(){if(null!=this.parent)return!0==!this.parent.requiredProperties[this.property]},t}()},function(e,t,n){var r;r=n(109),e.exports={object:function(e){return r.isObject(e)},string:function(e){return r.isString(e)},boolean:function(e){return r.isBoolean(e)},number:function(e){return r.isNumber(e)},function:function(e){return r.isFunction(e)},date:function(e){return r.isDate(e)},regexp:function(e){return r.isRegExp(e)},array:function(e){return r.isArray(e)},falsy:function(e){return!1==!!e},truthy:function(e){return!0==!!e},"not empty":function(e){return!0==!!e},deprecated:function(e){return!0}}},function(e,t,n){const r=n(113);e.exports={render({components:e,options:t}){if("text/json"===t.format)return this.renderJson({options:t,components:e});let n="";for(const o of e)n+=r.renderComponent(o,t);return n},renderJson({components:e,options:t}){const n=[];for(const o of e)n.push(r.renderComponent(o,t));return n}}},function(e,t,n){const{assert:r}=n(2),o=n(202),i=n(111),s=n(110),a=n(445),{parseComponent:c}=n(43);e.exports={parse(e,t={}){this.validateSchema(e);const n=this.parseDesignInfo(e),r=new i(n);try{return this.parseDesignConfig(e,r,t)}catch(e){throw e.message=`Parsing design ${r.identifier}: ${e.message}`,e}},parseDesignInfo(e){const{name:t,label:n,version:r,author:o,description:i}=e;return{name:t,label:n,version:r,author:o,description:i}},parseDesignConfig(e,t,n){t.metadata=e.metadata,t.wrapper=e.wrapper,t.groups=e.groups,t.layouts=e.layouts,t.defaultLayout=e.defaultLayout,t.defaultContent=e.defaultContent,t.prefilledComponents=e.prefilledComponents;const{assets:r,imageRatios:o,componentProperties:i}=e;t.dependencies.parseAssetsDeclaration(r),this.addImageRatios(o,t),t.properties=this.parseComponentProperties(i);const{components:s,defaultComponents:a}=e;return this.addComponents(s,t,n),this.parseDefaultComponents(a,t),t},parseComponentProperties:e=>e?Object.keys(e).reduce((t,n)=>{const r=e[n];return r.name=n,t[n]=new o(r),t},{}):{},addImageRatios(e,t){if(e)for(const n of Object.keys(e)){const{ratio:r,label:o}=e[n];t.imageRatios[n]=new s({name:n,label:o,ratio:r})}},addComponents(e,t,{strict:n}={}){e.forEach(e=>{try{const n=c(e,t);t.addComponent(n)}catch(t){if("DuplicateComponentError"===t.name&&!n)return;throw t.message=`component ${e.name}: ${t.message}`,t}})},parseDefaultComponents(e,t){if(!e)return;const{paragraph:n,image:r,video:o,audio:i,html:s}=e,a=t.getMissingComponents(n,r,o,i,s);if(a)throw new Error(`Could not find components '${a.join("', '")}'`);t.setDefaultParagraph({name:n}),t.setDefaultImage({name:r}),t.setDefaultVideo({name:o}),t.setDefaultAudio({name:i}),t.setDefaultHtml({name:s})},assertComponent(e,t){e&&r(t.hasComponent(e),`Could not find component '${e}'`)},validateSchema(e){if(a.validate("design",e))return!0;throw new Error(a.getErrorMessages())}}},function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],s=t.tokens={},a=0;function c(e){s[e]=a++}c("NUMERICIDENTIFIER"),i[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),i[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),i[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),i[s.MAINVERSION]="("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")\\.("+i[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),i[s.MAINVERSIONLOOSE]="("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")\\.("+i[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),i[s.PRERELEASEIDENTIFIER]="(?:"+i[s.NUMERICIDENTIFIER]+"|"+i[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),i[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[s.NUMERICIDENTIFIERLOOSE]+"|"+i[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),i[s.PRERELEASE]="(?:-("+i[s.PRERELEASEIDENTIFIER]+"(?:\\."+i[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),i[s.PRERELEASELOOSE]="(?:-?("+i[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),i[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),i[s.BUILD]="(?:\\+("+i[s.BUILDIDENTIFIER]+"(?:\\."+i[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),i[s.FULLPLAIN]="v?"+i[s.MAINVERSION]+i[s.PRERELEASE]+"?"+i[s.BUILD]+"?",i[s.FULL]="^"+i[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),i[s.LOOSEPLAIN]="[v=\\s]*"+i[s.MAINVERSIONLOOSE]+i[s.PRERELEASELOOSE]+"?"+i[s.BUILD]+"?",c("LOOSE"),i[s.LOOSE]="^"+i[s.LOOSEPLAIN]+"$",c("GTLT"),i[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),i[s.XRANGEIDENTIFIERLOOSE]=i[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),i[s.XRANGEIDENTIFIER]=i[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),i[s.XRANGEPLAIN]="[v=\\s]*("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:\\.("+i[s.XRANGEIDENTIFIER]+")(?:"+i[s.PRERELEASE]+")?"+i[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),i[s.XRANGEPLAINLOOSE]="[v=\\s]*("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[s.XRANGEIDENTIFIERLOOSE]+")(?:"+i[s.PRERELEASELOOSE]+")?"+i[s.BUILD]+"?)?)?",c("XRANGE"),i[s.XRANGE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),i[s.XRANGELOOSE]="^"+i[s.GTLT]+"\\s*"+i[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),i[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),o[s.COERCERTL]=new RegExp(i[s.COERCE],"g"),c("LONETILDE"),i[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),i[s.TILDETRIM]="(\\s*)"+i[s.LONETILDE]+"\\s+",o[s.TILDETRIM]=new RegExp(i[s.TILDETRIM],"g");c("TILDE"),i[s.TILDE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),i[s.TILDELOOSE]="^"+i[s.LONETILDE]+i[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),i[s.LONECARET]="(?:\\^)",c("CARETTRIM"),i[s.CARETTRIM]="(\\s*)"+i[s.LONECARET]+"\\s+",o[s.CARETTRIM]=new RegExp(i[s.CARETTRIM],"g");c("CARET"),i[s.CARET]="^"+i[s.LONECARET]+i[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),i[s.CARETLOOSE]="^"+i[s.LONECARET]+i[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),i[s.COMPARATORLOOSE]="^"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),i[s.COMPARATOR]="^"+i[s.GTLT]+"\\s*("+i[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),i[s.COMPARATORTRIM]="(\\s*)"+i[s.GTLT]+"\\s*("+i[s.LOOSEPLAIN]+"|"+i[s.XRANGEPLAIN]+")",o[s.COMPARATORTRIM]=new RegExp(i[s.COMPARATORTRIM],"g");c("HYPHENRANGE"),i[s.HYPHENRANGE]="^\\s*("+i[s.XRANGEPLAIN]+")\\s+-\\s+("+i[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),i[s.HYPHENRANGELOOSE]="^\\s*("+i[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),i[s.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<a;u++)n(u,i[u]),o[u]||(o[u]=new RegExp(i[u]));function l(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=l,t.valid=function(e,t){var n=l(e,t);return n?n.version:null},t.clean=function(e,t){var n=l(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=l(e),r=l(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return o+s;return i},t.compareIdentifiers=h;var d=/^[0-9]+$/;function h(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function f(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return f(e,t,n)>0}function g(e,t,n){return f(e,t,n)<0}function v(e,t,n){return 0===f(e,t,n)}function y(e,t,n){return 0!==f(e,t,n)}function b(e,t,n){return f(e,t,n)>=0}function x(e,t,n){return f(e,t,n)<=0}function _(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return v(e,n,r);case"!=":return y(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=f,t.compareLoose=function(e,t){return f(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return f(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=v,t.neq=y,t.gte=b,t.lte=x,t.cmp=_,t.Comparator=w;var C={};function T(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof T)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new T(e.raw,t);if(e instanceof w)return new T(e.value,t);if(!(this instanceof T))return new T(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function S(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function E(e){return!e||"x"===e.toLowerCase()||"*"===e}function I(e,t,n,r,o,i,s,a,c,u,l,p,d){return((t=E(n)?"":E(r)?">="+n+".0.0":E(o)?">="+n+"."+r+".0":">="+t)+" "+(a=E(c)?"":E(u)?"<"+(+c+1)+".0.0":E(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function A(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function D(e,t,n){try{t=new T(t,n)}catch(e){return!1}return t.test(e)}function k(e,t,n,r){var o,i,s,a,c;switch(e=new p(e,r),t=new T(t,r),n){case">":o=m,i=x,s=g,a=">",c=">=";break;case"<":o=g,i=b,s=m,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(D(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],d=null,h=null;if(l.forEach((function(e){e.semver===C&&(e=new w(">=0.0.0")),d=d||e,h=h||e,o(e.semver,d.semver,r)?d=e:s(e.semver,h.semver,r)&&(h=e)})),d.operator===a||d.operator===c)return!1;if((!h.operator||h.operator===a)&&i(e,h.semver))return!1;if(h.operator===c&&s(e,h.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=C},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return _(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new T(e.value,t),D(this.value,n,t));if(""===e.operator)return""===e.value||(n=new T(this.value,t),D(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=_(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=_(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&s||a||c},t.Range=T,T.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},T.prototype.toString=function(){return this.range},T.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[s.HYPHENRANGELOOSE]:o[s.HYPHENRANGE];e=e.replace(r,I),n("hyphen replace",e),e=e.replace(o[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[s.COMPARATORTRIM]),e=(e=(e=e.replace(o[s.TILDETRIM],"$1~")).replace(o[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[s.CARETLOOSE]:o[s.CARET];return e.replace(r,(function(t,r,o,i,s){var a;return n("caret",e,t,r,o,i,s),E(r)?a="":E(o)?a=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?a="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[s.TILDELOOSE]:o[s.TILDE];return e.replace(r,(function(t,r,o,i,s){var a;return n("tilde",e,t,r,o,i,s),E(r)?a="":E(o)?a=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?a=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+o+"."+i+"-"+s+" <"+r+"."+(+o+1)+".0"):a=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[s.XRANGELOOSE]:o[s.XRANGE];return e.replace(r,(function(r,o,i,s,a,c){n("xRange",e,r,o,i,s,a,c);var u=E(i),l=u||E(s),p=l||E(a),d=p;return"="===o&&d&&(o=""),c=t.includePrerelease?"-0":"",u?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(l&&(s=0),a=0,">"===o?(o=">=",l?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",l?i=+i+1:s=+s+1),r=o+i+"."+s+"."+a+c):l?r=">="+i+".0.0"+c+" <"+(+i+1)+".0.0"+c:p&&(r=">="+i+"."+s+".0"+c+" <"+i+"."+(+s+1)+".0"+c),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a=a.map((function(e){return new w(e,this.options)}),this)},T.prototype.intersects=function(e,t){if(!(e instanceof T))throw new TypeError("a Range is required");return this.set.some((function(n){return S(n,t)&&e.set.some((function(e){return S(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new T(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},T.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1},t.satisfies=D,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new T(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new T(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new T(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new T(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return k(e,t,"<",n)},t.gtr=function(e,t,n){return k(e,t,">",n)},t.outside=k,t.prerelease=function(e,t){var n=l(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new T(e,n),t=new T(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[s.COERCERTL].lastIndex=-1}else n=e.match(o[s.COERCE]);if(null===n)return null;return l(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},function(e,t,n){e.exports=n(443)},function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},function(e,t){e.exports=class{constructor(e){this.design=e,this.components=this.design.components}getTransformations({structure:e,componentName:t,oneWay:n=!1,directives:r,filter:o}){t&&(e=this.design.getComponentStructure(t));const i=[];return this.design.eachStructure(t=>{if(e.name===t.name)return;if(o&&!o(t))return;const s=this.isCompatible(e,t,{oneWay:n,directives:r});s.isCompatible&&(s.structure=t,i.push(s))}),i.length?i:void 0}getOptionsList({structure:e,componentName:t,oneWay:n,directives:r,filter:o}){t&&(e=this.design.getComponentStructure(t));const i=this.getTransformations({structure:e,oneWay:n,directives:r,filter:o}),s=[];for(const n of Array.from(i||[]))t=n.name,e=n.structure,s.push({label:e.label,componentName:t});return s}isCompatible(e,t,n={}){const r={name:t.name,isCompatible:!0,mapping:{}},o=this.getSelectedDirectives(e,n);for(const n of o){const{name:o,type:i}=n;if(!["editable","image","video","audio","link"].includes(i)){r.isCompatible=!1;continue}const s=t.directives.get(o);1===e.directives.count(i)&&1===t.directives.count(i)?r.mapping[o]=t.directives[i][0].name:s&&s.type===i?r.mapping[o]=o:(r.mapping[o]=null,r.isCompatible=!1)}return n.oneWay||e.directives.length===t.directives.length||(r.isCompatible=!1),r}getSelectedDirectives(e,t){let n;return t.directives?(t.oneWay=!0,n=t.directives.map(t=>e.directives.get(t))):n=e.directives,n||[]}}},function(e,t,n){const r=n(200).new();e.exports=r,r.add("styleType",e=>"option"===e||"select"===e||"style"===e);const o=/(\d+)\.(\d+)\.(\d+)(.+)?/;r.add("semVer",e=>o.test(e)),r.add("wrapper",(function(e){return!!new RegExp("<.* (?:[^>]* |)class=(\"|')[^'\"]*doc-section[^'\"]*\\1(?: [^>]*|)>").test(e)||`design.wrapper is missing a 'doc-section' class ('${e}').`})),r.add("one empty option",(function(e){let t=0;for(const n in e){e[n].value||(t+=1)}return 1===t})),r.add("design",{name:"string",label:"string, optional",version:"string, semVer",author:"string, optional",description:"string, optional",assets:{__validate:"optional",css:"array of string",js:"array of string, optional",basePath:"string, optional"},components:"array of component",componentProperties:{__validate:"optional",__additionalProperty:(e,t)=>r.validate("componentProperty",t)},defaultComponents:{__validate:"optional",paragraph:"string, optional",image:"string, optional",video:"string, optional",audio:"string, optional",html:"string, optional"},imageRatios:{__validate:"optional",__additionalProperty:(e,t)=>r.validate("imageRatio",t)},groups:"array of group, optional",metadata:"array of object, optional",wrapper:"string, wrapper, optional",layouts:"array of layout, optional",defaultLayout:"string, optional",defaultContent:"array of object, optional",prefilledComponents:"object, optional"}),r.add("component",{name:"string",label:"string, optional",description:"string, optional",iconUrl:"string, optional",html:"string",directives:"object, optional",properties:"array of string, optional",allowedParents:"array of string, optional",excludeFromTextCount:"boolean, optional",__additionalProperty:(e,t)=>!1}),r.add("group",{label:"string",components:"array of string"}),r.add("componentProperty",{label:"string, optional",type:"string, styleType",value:"string, optional",options:"array of styleOption, one empty option, optional"}),r.add("imageRatio",{label:"string, optional",ratio:"string"}),r.add("styleOption",{caption:"string",value:"string, optional"}),r.add("layout",{name:"string",caption:"string",wrapper:"wrapper",icon:"string, optional"})},function(e,t,n){const r=n(70),o=n(111),i=n(202),{parseComponent:s}=n(43);e.exports=function({v:e,name:t,version:n,designSettings:a={},components:c}){const{componentGroups:u,defaultComponents:l,componentProperties:p}=a,{fieldExtractor:d,assets:h,prefilledComponents:f}=a,{mediaRendering:m}=a,g=new o({name:t,version:n});if(g.metadata=d,g.groups=u,g.prefilledComponents=f,g.mediaRendering=m,p&&(g.properties=r(p,(e,t)=>{const n=new i(t);return e[n.name]=n,e},{})),c.forEach(e=>{try{const t=s(e,g);g.addComponent(t)}catch(t){throw t.message=`component ${e.name}: ${t.message}`,t}}),l){const{paragraph:e,image:t,video:n,audio:r,html:o}=l,i=g.getMissingComponents(e,t,o);if(i)throw new Error(`Could not find components '${i.join("', '")}'`);g.setDefaultParagraph({name:e}),g.setDefaultImage({name:t}),g.setDefaultVideo({name:n}),g.setDefaultAudio({name:r}),g.setDefaultHtml({name:o})}return g.dependencies.parseAssetsDeclaration(h),g}},function(e,t,n){const r=n(6),o=n(111),i=n(201);e.exports=class{constructor(){this.designs={}}load(e,{basePath:t}={}){r(e,"design.load() was called with undefined.");const{name:n,version:s}=e;if(r(n&&s,"design.load(): The design configuration needs a name and version"),this.has(n,s))return this.get(n,s);t&&e.assets&&(e.assets.basePath=t);const a=i.parse(e);if(!a)throw new Error(o.parser.errors);return this.add(a)}add(e){return e.isNewerThan(this.designs[e.name])&&(this.designs[e.name]=e),this.designs[e.identifier]=e,this.designs[e.identifier]}has(e,t){if(!t)return!1;const n=o.getIdentifier(e,t);return!!this.designs[n]}get(e,t){r(this.has(e,t),`Error: design '${e}@${t}' is not loaded.`);const n=o.getIdentifier(e,t);return this.designs[n]}remove(e){delete this.designs[e.identifier]}resetCache(){this.designs={}}}},function(e,t,n){const r=n(449);e.exports={includes:{render(e){r.setGlobalRequestProxy(e)}}}},function(e,t,n){const r=n(27);let o;e.exports={setGlobalRequestProxy(e){o=e},requestInclude:({serviceName:e,params:t},n)=>!!o&&o({serviceName:e,params:t},(e,t)=>e?n(e):r(t)?n(null,{html:t}):n(null,t&&!1!==t?t:{doNotRender:!0}))}},function(e,t,n){const{setPlacingOnRemovedComponentPatches:r}=n(451),{diffComponent:o}=n(168),i=n(452),s=n(169);function a(e,t){return e&&t&&e.id===t.id||!e&&!t}function c(e,t,n){const r=function({component:e,workingTree:t}){if(e.parentContainer.isRoot)return t.root;return t.findById(e.parentId).containers.get(e.parentContainer.name)}({component:e,workingTree:t}),o=e.previous?t.findById(e.previous.id):void 0,i={parentContainer:r,previous:o,next:o?o.next:r.first};n.moveComponent(e,i)}e.exports={diff:(e,t,n)=>(function(e,t,n){t.each((function(t){const r=e.findById(t.id);if(r)o(r,t,n);else{const r=function(e,t){const{parentContainer:n}=e.getPosition();let{previous:r,next:o}=e.getPosition();const i=e=>{const r=t.findById(e.id);return r&&!function(e,t){return e.componentId===t.componentId&&e.name===t.name}(r.parentContainer,n)};let s=0;for(;r&&i(r)&&s<1e3;)r=r.previous,s+=1;if(!r)for(;o&&i(o)&&s<2e3;)o=o.next,s+=1;return{parentContainer:n,previous:r,next:r?void 0:o||"bottom"}}(t,e),o=t.getIndex();n.insertComponent(t,r,o)}}))}(e,t,n=n||new s),function(e,t,n){const o=[];e.each((function(i){if(!t.findById(i.id)){const s=i.parentId,a=s&&o.includes(s);if(i.containers.length>0&&o.push(i.id),!a){const o=n.removeComponent(i);r(t,e,o)}}}))}(e,t,n),function(e,t,n){const r=e.clone(),o=t.getAllComponents(),s=new i(n);s.applyToWorkingTree(r);for(let e=0;e<o.length;e++){const t=o[e],i=r.findById(t.id);if(!i)throw new Error("Diff: invalid component tree structure");(a(t.next,i.next)||a(t.previous,i.previous))&&t.parentId===i.parentId||(c(t,r,n),s.applyToWorkingTree(r))}for(let e=0;e<o.length;e++){const t=o[e],i=r.findById(t.id);if(!i)throw new Error("Diff: invalid component tree structure");a(t.next,i.next)&&a(t.previous,i.previous)||(c(t,r,n),s.applyToWorkingTree(r))}if(!s.hasSameStructure(r,t))throw new Error("Diff: failed to create move commands to recreate componentTree structure")}(e,t,n),n)}},function(e,t){e.exports={setPlacingOnRemovedComponentPatches(e,t,n){const r=t.findById(n.component.id);n.position={},r&&(function(e,t,n){if(e.previous){const r=t.findById(e.previous.id);if(r)return n.position.previousId=r.id,!0}return!1}(r,e,n)||function(e,t,n){if(e.next){const r=t.findById(e.next.id);if(r)return n.position.nextId=r.id,!0}return!1}(r,e,n)||function(e,t){if(e.next)return t.position.nextId=e.next.id,!0;return!1}(r,n)||function(e,t){if(e.previous)return t.position.previousId=e.previous.id,!0}(r,n))}}},function(e,t,n){const r=n(160),{deserializeCommand:o}=n(66),i={insertComponent:!0,removeComponent:!0,moveComponent:!0};e.exports=class{constructor(e){this.diffCommands=e,this.executedIndex=0}get commands(){return this.diffCommands.serialized}applyToWorkingTree(e){const t=this.commands.length;for(let n=this.executedIndex;n<t;n++){this.executedIndex+=1;const t=this.commands[n],{type:s}=t;if(!i[s])continue;const{conflicts:a,command:c}=o(t,e);if(a.length){const[e]=a;throw new Error(`Diff: deserializing generated command error '${e.type}'`)}try{r.handle(c)}catch(e){throw e.message=`Diff applying ${c.type} command: ${e.message}`,e}}}hasSameStructure(e,t){const n=e.getAllComponents(),r=t.getAllComponents();if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=n[e],o=r[e];if(t.id!==o.id||t.parentId!==o.parentId)return!1}return!0}}},function(e,t,n){const r=n(204),o=n(205),i=n(23),s=n(13),a=n(165),c=n(70),u=n(71);function l(e,t){for(let o=0;o<t.length-1;o++){const s=e[t[o]],a=e[t[o+1]],c=i(a.diffPatches);p(c,(n=s.diffPatches,r(n,e=>-1===e[0])),s.diffPatches),d(c,w(s.diffPatches),s.diffPatches),e[t[o]]=void 0,c.forEach(e=>{e.length>3&&e.pop()}),a.diffPatches=c}var n;return e}function p(e,t,n){t.forEach(t=>{const r=C(e),o=b(g(n,t,_(r),"",v),r);o.insertPosition=T(o,r,e),0!==o.matchIndex?x(e,e[o.insertPosition],o.matchIndex,t,0):e.splice(o.insertPosition,0,t)})}function d(e,t,n){t.forEach(t=>{t.push("isPreviousAddedPatch");const r=C(e),o=b(g(n,t,_(r),t[1],y),r);o.insertPosition=T(o,r,e),function(e,t,n){let r=e.insertPosition,o=m(t,n,n[r],0,e.matchIndex);for(;t[1].length-o>0;){const e=r;if(r=f(n,r),-1===r)return;const i=h(e,r,n);o=m(t,n,n[r],o+i,0)}}(o,t,e)})}function h(e,t,n){let r=0;for(let o=e+1;o<t;o++)-1===n[o][0]&&(r+=n[o][1].length);return r}function f(e,t){let n=t;for(n++;n<e.length&&0!==e[n][0];)n++;return e.length===n?-1:n}function m(e,t,n,r,o){const c=i(e);if(n&&-1!==n[0]){let e=c[1].length;return n[1].length<c[1].length-r?(c[1]=c[1].substring(r,r+n[1].length),e=r+n[1].length):c[1]=c[1].substring(r,c[1].length),0!==o&&0===r?(e=n[1].length-o,c[1]=c[1].substring(0,e),x(t,n,o,c,c[1].length)):function(e,t,n){const r=a(n,t=>s(t,e));e[1]=e[1].replace(t[1],""),""===e[1]?n.splice(r,1,t):n.splice(r,0,t)}(n,c,t),e}return n[1].length-o}function g(e,t,n,r,o){const i=a(e,e=>s(e,t));let c=0;if(e.length>i+1){const t=o(e,i+1);-1!==t&&(r+=e[t][1])}i-1>=0&&(c=r.length,c=(r=e[i-1][1]+r).length-c);let u=n.indexOf(r);return i-1>=0&&c>0&&(u+=c),u}function v(e,t){let n=t;for(;-1===e[n][0];)if(n++,e.length-1<=n)return-1;return n}function y(e,t){return e.length>t?t:-1}function b(e,t){let n="";for(let r=0;r<t.length;r++){const o=n;if(n+=t[r][1],n.length>e)return{insertPosition:r,matchIndex:e-o.length}}return{insertPosition:t.length-1,matchIndex:0}}function x(e,t,n,r,o){const c=a(e,e=>s(e,t)),u=i(t);t[1]=t[1].substring(0,n),u[1]=u[1].substring(n+o),""!==u[1]&&e.splice(c+1,0,u),e.splice(c+1,0,r)}function _(e){let t="";return e.forEach(e=>{t+=e[1]}),t}function w(e){return r(e,e=>1===e[0])}function C(e){return r(e,e=>1!==e[0]||function(e){return 4===e.length}(e))}function T(e,t,n){return a(n,n=>s(n,t[e.insertPosition]))}e.exports={simplifyTextChanges(e){const t=function(e){return c(e,(function(e,t,n){if("textChange"===t.type){const r=t.componentId+t.directiveName;(e[r]||(e[r]=[])).push(n)}return e}),{})}(e);return u(t,(function(t,n){e=l(e,t)})),function(e){o(e,e=>void 0===e)}(e),e},mergeTextChanges:l}},function(e,t,n){var r=n(31);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},function(e,t,n){var r=n(199),o=n(20),i=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,s=n-1;n--;){var a=t[n];if(n==s||a!==c){var c=a;o(a)?i.call(e,a,1):r(e,a)}}return e}},function(e,t){e.exports=function(e,t){if(!e)return[];const r=[];return e.forEach(e=>{const o=n[e.type](e);o&&(t&&function(e,t){e.user=t,"textChange"===e.type&&e.diffPatches.forEach(e=>{e[2]||e.push(t)})}(o,t),r.unshift(o))}),r};const n={insertComponent:({component:e})=>({type:"componentAdded",componentId:e.id}),transformComponent:({component:e})=>({type:"componentTransformed",componentId:e.id}),moveComponent:({component:e,position:t})=>({type:"componentMoved",componentId:e.id,nextId:t.next?t.next.id:void 0,previousId:t.previous?t.previous.id:void 0}),removeComponent:({component:e,position:t})=>({type:"componentRemoved",componentId:e.id,removedComponent:e.toJson({deep:!0}),nextComponentId:t.nextId,previousComponentId:t.previousId}),updateComponentStyle:({component:e})=>r(e),updateComponentData:({component:e})=>r(e),updateEditableDirective:({component:e,directive:t,diffPatches:n,value:r})=>({type:"textChange",componentId:e.id,directiveName:t.name,diffPatches:n}),updateImageDirective:({component:e,directive:t,value:n})=>r(e),updateVideoDirective:({component:e,directive:t,value:n})=>r(e),updateAudioDirective:({component:e,directive:t,value:n})=>r(e),updateTmpImageDirective(){},updateLinkDirective:({component:e})=>r(e),updateHtmlDirective:({component:e})=>r(e),updateToggleDirective:({component:e})=>r(e),updateIncludeDirective:({component:e})=>r(e),updateStyleDirective:({component:e})=>r(e),updateDirectiveTmpData(){}};function r(e){return{type:"componentModified",componentId:e.id}}},function(e,t,n){const r=n(205),o=n(13),i=n(458),{createDiffCommands:s}=n(203),a=n(459),{mergeProposals:c}=n(461);e.exports={getMergeCommands({baseTree:e,remoteTree:t,localTree:n}){const c=s({versions:[{componentTree:t,user:""},{componentTree:e,user:""}]}),u=s({versions:[{componentTree:n,user:""},{componentTree:e,user:""}]}),l=a(u,c),p=i(l,e=>e.commands);return r(c,e=>p.some(t=>o(t,e))),{localCommands:u,remoteCommands:c,conflicts:l}},getProposalMergeCommands:({baseProposals:e,localProposals:t,remoteProposals:n})=>c(e,t,n)}},function(e,t,n){var r=n(87),o=n(189);e.exports=function(e,t){return r(o(e,t),1)}},function(e,t,n){const r=n(460),o=n(204),i=n(64),s=n(13);e.exports=function(e,t){const n=[],a=function(e,t){const n=r(t,e=>e.type),o=r(e,e=>e.type),s=[];n.moveComponent&&n.moveComponent.forEach(e=>{const t=i(o.moveComponent,t=>t.component.id===e.component.id&&t.position.previousId===e.position.previousId&&t.position.nextId===e.position.nextId);if(t)s.push({type:"DuplicatedCommand",componentId:e.component.id,commands:[e],localCommand:t});else{const t=i(o.moveComponent,t=>t.component.id===e.component.id||t.component.id===e.position.nextId||t.component.id===e.position.previousId||t.position.previousId===e.component.id||t.position.nextId===e.component.id);t&&s.push({type:"ComponentAlreadyMoved",componentId:e.component.id,commands:[e],localCommand:t})}});return s}(e,t),c=function(e,t){const n=[];return e.forEach(e=>{const r=o(t,t=>t.component.id===e.component.id);if(r.length>0){let t=!1;r.forEach(r=>{s(r,e)&&(n.push({type:"DuplicatedCommand",componentId:e.component.id,commands:[r],localCommand:e}),t=!0),e.type.includes("Directive")&&!t&&e.component.id===r.component.id&&e.directiveName===r.directiveName&&n.push({type:"DirectiveAlreadyModified",componentId:e.component.id,directiveName:e.directiveName,commands:[r],localCommand:e})}),"removeComponent"!==e.type||t||n.push({type:"ComponentLocallyRemoved",componentId:e.component.id,commands:r,localCommand:e})}}),n}(e,t);return n.push(...a),n.push(...c),n}},function(e,t,n){var r=n(35),o=n(198),i=Object.prototype.hasOwnProperty,s=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=s},function(e,t,n){const r=n(45),o=n(70),i=n(13),s=n(197),a={mergeProposals(e,t,n){const o=a.diffProposals(e,t),i=a.diffProposals(e,n),s=[];return r(i,e=>{const t=o[e.id];if("removed"!==e.action)if("added"!==e.action){if("updated"===e.action){const{hasChanged:n}=u(t,e);if(t&&!n)return;const r={type:"updateProposal",componentId:e.command.componentId};e.changes.proposalStatus&&(r.proposalStatus=e.command.proposalStatus),e.changes.proposalData&&(r.proposalData=e.command.proposalData),e.changes.component&&(r.component=e.command.component),e.changes.position&&(r.position=e.command.position),s.push(r)}}else s.push(e.command);else s.push({type:"rejectProposal",componentId:e.command.componentId})}),{commands:s}},diffProposals(e,t){const n=function(e,t){const n=[];return o(t,(t,n)=>{const r=e[n.id];if(r){const{hasChanged:e,changes:o}=u(r,n);e&&(n.action="updated",n.changes=o,t.push(n))}else n.action="added",t.push(n);return t},n),o(e,(e,n)=>(t[n.id]||(n.action="removed",e.push(n)),e),n),n}(c(e),c(t));return s(n,"id")}};function c(e){return o(e,(e,t)=>{const n={id:t.componentId,command:t,type:t.type};return"proposeInsert"===t.type&&(n.insertPosition=function(e){const{parentId:t,parentContainerName:n,previousId:r}=e;return`${t}:${n}:${r}`}(t.position)),e[t.componentId]=n,e},{})}function u(e,t){if(!e||!t)return{hasChanged:!1,changes:{}};const n=e.command,r=t.command;p(n),p(r);const o={};return n.type!==r.type&&(o.type={value:r.type}),n.proposalStatus!==r.proposalStatus&&(o.proposalStatus={value:r.proposalStatus}),n.componentId!==r.componentId&&(o.componentId={value:r.componentId}),i(n.proposalData,r.proposalData)||(o.proposalData={value:r.proposalData}),i(n.component,r.component)||(o.component={value:r.component}),i(n.position,r.position)||(o.position={value:r.position}),{hasChanged:!!Object.keys(o).length,changes:o}}e.exports=a;const l={type:!0,proposalStatus:!0,proposalData:!0,componentId:!0,component:!0,position:!0};function p(e){const t=Object.keys(e);for(const e of t)if(!l[e])throw new Error(`unknown command property '${e}'`)}},function(e,t){e.exports={name:"default",hasBrowserPlugin:!1,supportsCrop:!1,supportsWidth:!1,getUrl:function(e){return e||""}}},function(e,t,n){const r=n(464),o=n(465);e.exports={name:"resrc.it",hasBrowserPlugin:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],createBrowserPlugin:function(e){return o({window:e})},getUrl:function(e,t){return e?r.getUrl(e,t):""}}},function(e,t,n){const r=n(4),o=n(44),i=n(6),s=n(8);e.exports={getUrl:function(e,{host:t,crop:n,ratio:o,width:i,height:p,size:d,quality:h}={}){(i||p)&&(d={w:i,h:p});const f=n?a(n):"",m=o?c(o):"",g=d?u(d):"",v=l(h||r(s,["imageServices","resrc.it","quality"]));return`${t||r(s,["imageServices","resrc.it","host"])}${f}${m}${g}${v}/${e}`}};const a=function({x:e,y:t,width:n,height:r}={}){return i(o(e),"x should be a number"),i(o(t),"y should be a number"),i(o(n),"width should be a number"),i(o(r),"height should be a number"),`/C=W${n},H${r},X${e},Y${t}`},c=function({x:e,y:t}={}){return i(o(e),"x should be a number"),i(o(t),"y should be a number"),`/C=AR${e}x${t}`},u=function({w:e,h:t}={}){e&&i(o(e),"w should be a number"),t&&i(o(t),"h should be a number");let n="";return e&&t?n=`W${e}M,H${t}M`:e?n=`W${e}`:t&&(n=`H${t}`),`/S=${n}`},l=function(e){return`/O=${e}`}},function(e,t,n){const r=n(4),{log:o}=n(2),i=n(8);e.exports=function({window:e}={}){return{name:"browserPlugins.resrcit",initialized:!1,dependencies:{js:[{src:r(i,["imageServices","resrc.it","scriptUrl"])}]},init:function(){const t=r(i,["imageServices","resrc.it","quality"]),n=r(i,["imageServices","resrc.it","host"]).replace(/https?:\/\//,""),o=r(i,["imageServices","resrc.it","host"]);e.resrc&&(e.resrc.configure({imageQuality:t,server:n,ssl:/^https/.test(o)}),this.initialized=!0)},updateDirective:function(t,n){this.initialized||this.init();try{if(n.isInlineImage())e.resrc.run(t[0]);else{const r=n.getProcessedUrl();e.resrc.setImageUrl(t[0],r)}}catch(e){o(e,n)}}}}},function(e,t,n){const r=n(467);e.exports={name:"sz",allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],getUrl:function(e,t){return e?r.getUrl(e,t):""},getUncroppedUrl:function(e){return e}}},function(e,t,n){const r=n(4),o=n(112),{log:i,assert:s}=n(2),a=n(44),c=n(8),u=n(468);e.exports={getUrl:function(e,{crop:t,width:n}={}){const{pathname:r}=d(e),o=r.split("/");if(o.length<3)return i.error(`SZ Image service: can not parse path ${r}`),"";const s=o[o.length-1],a=o[o.length-2],u=`image/${o[o.length-3]}/${a}${t?l(t):""}${n?`/${n}`:""}/${s}`,m=p(`/${u}`);return`${h(c)}/${u}?h=${m}&hv=${f(c)}`}};const l=function({x:e,y:t,width:n,height:r}){return s(a(e),"x should be a number"),s(a(t),"y should be a number"),s(a(n),"width should be a number"),s(a(r),"height should be a number"),`/t${t}l${e}w${n}h${r}`},p=function(e){return u({secret:r(c,"imageServices.sz.shaSecret"),valueToHash:e})},d=function(e){const t=o.parse(e);return{hostname:t.hostname,pathname:t.pathname,query:t.query}},h=function(e){return r(e,"imageServices.sz.host")},f=function(e){return r(e,"imageServices.sz.hashVersion")}},function(e,t,n){"use strict";const r=n(469),{notStrictEqual:o,strictEqual:i}=n(138);e.exports=function({secret:e,valueToHash:t,hashLength:n=32}={}){o(e,void 0,"please provide »secret«!"),o(t,void 0,"please provide »valueToHash«!"),i(typeof t,"string","»valueToHash« must be a string!");const s=`${e}/${t}`;return r("sha256").update(s,"utf-8").digest("hex").substr(0,n)}},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(470),t.sha1=n(474),t.sha224=n(475),t.sha256=n(206),t.sha384=n(476),t.sha512=n(207)},function(e,t,n){var r=n(29),o=n(30),i=n(18).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,p=0;p<16;++p)n[p]=e.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var d=0;d<80;++d){var h=~~(d/20),f=0|((t=r)<<5|t>>>27)+l(h,o,i,a)+c+n[d]+s[h];c=a,a=i,i=u(o),o=r,r=f}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t){e.exports=require("util")},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports=require("buffer")},function(e,t,n){var r=n(29),o=n(30),i=n(18).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function p(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var f=~~(h/20),m=u(r)+p(f,o,i,a)+c+n[h]+s[f]|0;c=a,a=i,i=l(o),o=r,r=m}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(29),o=n(206),i=n(30),s=n(18).Buffer,a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}r(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,n){var r=n(29),o=n(207),i=n(30),s=n(18).Buffer,a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}r(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,n){const r=n(4),o=n(208),i=n(8);e.exports={name:"imgix",supportsWidth:!0,supportsCrop:!0,supportsVideoConversion:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],getUrl:function(e,t={}){if(!e)return"";const n={},s=r(i,"imageServices.imgix",{});if(n.preferWebp=s.preferWebp,n.host=s.host,!n.host)throw new Error("Imgix image service: Missing required configuration for 'host'");return o.getUrl(e,{...s,...t})}}},function(e,t,n){const r=n(4),o=n(208),i=n(8);e.exports={name:"liImageProxy",allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],getUrl:function(e,t={}){if(!e)return"";const n={},s=r(i,"imageServices.liImageProxy",{});return n.preferWebp=s.preferWebp,n.host=s.host,n.parseQuery=!0,o.getUrl(e,{...n,...t})}}},function(e,t,n){const r=n(480),o=n(481);e.exports={name:"image.resizer",hasBrowserPlugin:!0,allowedMimeTypes:["image/gif","image/jpeg","image/png","image/webp"],createBrowserPlugin:function(e){return o({window:e})},getUrl:function(e,t){return e?r.getUrl(e,t):""}}},function(e,t,n){const r=n(4),o=n(44),i=n(112),{assert:s}=n(2),a=n(8);e.exports={getUrl:function(e,{host:t,crop:n,ratio:o,width:s,height:l,size:p={},quality:d}={}){const h=t||r(a,["imageServices","image.resizer","host"]),f=c(e),m={};s=s||p.w,l=l||p.h,d&&(m.quality=d),s&&(m.width=s),l&&(m.height=l),n&&(m.crop=u(n));const g=i.parse(h);return g.pathname=g.pathname+f,g.query=m,i.format(g)}};const c=function(e){return`/${e.replace("http://","").replace("https://","")}`},u=function({x:e,y:t,width:n,height:r}){return s(o(e),"x should be a number"),s(o(t),"y should be a number"),s(o(n),"width should be a number"),s(o(r),"height should be a number"),`(${e},${t},${e+n},${t+r})`}},function(e,t,n){const r=n(4),o=n(8);e.exports=function({window:e}={}){return{name:"browserPlugins.imageresizer",dependencies:{js:[{src:r(o,["imageServices","image.resizer","scriptUrl"])}]},init:function(){},updateDirective:function(e,t){}}}}]);
|