Liferay.Loader.define("frontend-js-metal-web$metal-state@2.7.0/lib/all/state",["module","exports","require","../validators","../Config","../State"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.State=exports.Config=exports.validators=undefined;var _validators=require("../validators");var _validators2=_interopRequireDefault(_validators);var _Config=require("../Config");var _Config2=_interopRequireDefault(_Config);var _State=require("../State"); var _State2=_interopRequireDefault(_State);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=_State2.default;exports.validators=_validators2.default;exports.Config=_Config2.default;exports.State=_State2.default}); Liferay.Loader.define("frontend-js-metal-web$metal-web-component@2.16.8/lib/define_web_component",["module","exports","require","frontend-js-metal-web$metal-state","frontend-js-metal-web$metal"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.defineWebComponent=defineWebComponent;var _metalState=require("frontend-js-metal-web$metal-state");var _metalState2=_interopRequireDefault(_metalState);var _metal=require("frontend-js-metal-web$metal"); function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function defineWebComponent(tagName,Ctor){if(!("customElements"in window))return;var observedAttributes=Object.keys(_metalState2.default.getStateStatic(Ctor));var props=(0,_metal.getStaticProperty)(Ctor,"PROPS",_metalState.mergeState);var hasProps=(0,_metal.isObject)(props)&&Object.keys(props).length;if(hasProps)observedAttributes=Object.keys(props);function CustomElement(){return Reflect.construct(HTMLElement,[],CustomElement)} CustomElement.observedAttributes=observedAttributes;Object.setPrototypeOf(CustomElement.prototype,HTMLElement.prototype);Object.setPrototypeOf(CustomElement,HTMLElement);Object.assign(CustomElement.prototype,{attributeChangedCallback:function attributeChangedCallback(attrName,oldVal,newVal){if(!this.component)return;newVal=this.deserializeValue_(newVal);if(this.componentHasProps)this.component.props[attrName]=newVal;else this.component[attrName]=newVal},connectedCallback:function connectedCallback(){var useShadowDOM= this.getAttribute("useShadowDOM")||false;var element=this;if(useShadowDOM)element=this.attachShadow({mode:"open"});var opts={};for(var i=0,l=observedAttributes.length;i\s]+))?)*)\s*(\/?)>/,endTag=/^<\/([-A-Za-z0-9_]+)[^>]*>/,attr=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g; var empty=makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr");var block=makeMap("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video");var inline=makeMap("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); var closeSelf=makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr");var fillAttrs=makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected");var special=makeMap("script,style");var HTMLParser=function HTMLParser(html,handler){var index,chars,match,stack=[],last=html;stack.last=function(){return this[this.length-1]};while(html){chars=true;if(!stack.last()||!special[stack.last()]){if(html.indexOf("\x3c!--")==0){index=html.indexOf("--\x3e"); if(index>=0){if(handler.comment)handler.comment(html.substring(4,index));html=html.substring(index+3);chars=false}}else if(html.indexOf("\x3c/")==0){match=html.match(endTag);if(match){html=html.substring(match[0].length);match[0].replace(endTag,parseEndTag);chars=false}}else if(html.indexOf("\x3c")==0){match=html.match(startTag);if(match){html=html.substring(match[0].length);match[0].replace(startTag,parseStartTag);chars=false}}if(chars){index=html.indexOf("\x3c");var text=index<0?html:html.substring(0, index);html=index<0?"":html.substring(index);if(handler.chars)handler.chars(text)}}else{html=html.replace(new RegExp("([\\s\\S]*?)\x3c/"+stack.last()+"[^\x3e]*\x3e"),function(all,text){text=text.replace(/\x3c!--([\s\S]*?)--\x3e|=0;pos--)if(stack[pos]==tagName)break;if(pos>=0){for(var i=stack.length-1;i>=pos;i--)if(handler.end)handler.end(stack[i]);stack.length=pos}}};function makeMap(str){var obj={},items=str.split(",");for(var i=0;i0)notifications.nodesCreated(this.created);if(this.deleted&&this.deleted.length>0)notifications.nodesDeleted(this.deleted)}; var inAttributes=false;var inSkip=false;var assertInPatch=function(functionName,context){if(!context)throw new Error("Cannot call "+functionName+"() unless in patch.");};var assertNoUnclosedTags=function(openElement,root){if(openElement===root)return;var currentElement=openElement;var openTags=[];while(currentElement&¤tElement!==root){openTags.push(currentElement.nodeName.toLowerCase());currentElement=currentElement.parentNode}throw new Error("One or more tags were not closed:\n"+openTags.join("\n")); };var assertNotInAttributes=function(functionName){if(inAttributes)throw new Error(functionName+"() can not be called between "+"elementOpenStart() and elementOpenEnd().");};var assertNotInSkip=function(functionName){if(inSkip)throw new Error(functionName+"() may not be called inside an element "+"that has called skip().");};var assertInAttributes=function(functionName){if(!inAttributes)throw new Error(functionName+"() can only be called after calling "+"elementOpenStart().");};var assertVirtualAttributesClosed= function(){if(inAttributes)throw new Error("elementOpenEnd() must be called after calling "+"elementOpenStart().");};var assertCloseMatchesOpenTag=function(nodeName,tag){if(nodeName!==tag)throw new Error('Received a call to close "'+tag+'" but "'+nodeName+'" was open.');};var assertNoChildrenDeclaredYet=function(functionName,previousNode){if(previousNode!==null)throw new Error(functionName+"() must come before any child "+"declarations inside the current element.");};var assertPatchElementNoExtras= function(startNode,currentNode,expectedNextNode,expectedPrevNode){var wasUpdated=currentNode.nextSibling===expectedNextNode&¤tNode.previousSibling===expectedPrevNode;var wasChanged=currentNode.nextSibling===startNode.nextSibling&¤tNode.previousSibling===expectedPrevNode;if(!wasUpdated&&!wasChanged&&!(currentNode===startNode))throw new Error("There must be exactly one top level call corresponding "+"to the patched element.");};var setInAttributes=function(value){var previous=inAttributes; inAttributes=value;return previous};var setInSkip=function(value){var previous=inSkip;inSkip=value;return previous};var isDocumentRoot=function(node){return node instanceof Document||node instanceof DocumentFragment};var getAncestry=function(node,root){var ancestry=[];var cur=node;while(cur!==root){ancestry.push(cur);cur=cur.parentNode}return ancestry};var getRoot=function(node){var cur=node;var prev=cur;while(cur){prev=cur;cur=cur.parentNode}return prev};var getActiveElement=function(node){var root= getRoot(node);return isDocumentRoot(root)?root.activeElement:null};var getFocusedPath=function(node,root){var activeElement=getActiveElement(node);if(!activeElement||!node.contains(activeElement))return[];return getAncestry(activeElement,root)};var moveBefore=function(parentNode,node,referenceNode){var insertReferenceNode=node.nextSibling;var cur=referenceNode;while(cur!==node){var next=cur.nextSibling;parentNode.insertBefore(cur,insertReferenceNode);cur=next}};var context=null;var currentNode=null; var currentParent=null;var doc=null;var markFocused=function(focusPath,focused){for(var i=0;i=0)style.setProperty(prop,value);else style[prop]=value};var applyStyle=function(el,name,style){if(typeof style==="string")el.style.cssText=style; else{el.style.cssText="";var elStyle=el.style;var obj=style;for(var prop in obj)if(has(obj,prop))setStyleValue(elStyle,prop,obj[prop])}};var applyAttributeTyped=function(el,name,value){var type=typeof value;if(type==="object"||type==="function")applyProp(el,name,value);else applyAttr(el,name,value)};var updateAttribute=function(el,name,value){var data=getData(el);var attrs=data.attrs;if(attrs[name]===value)return;var mutator=attributes[name]||attributes[symbols.default];mutator(el,name,value);attrs[name]= value};var attributes=createMap();attributes[symbols.default]=applyAttributeTyped;attributes["style"]=applyStyle;var ATTRIBUTES_OFFSET=3;var argsBuilder=[];var elementOpen=function(tag,key,statics,var_args){var node=coreElementOpen(tag,key);var data=getData(node);if(!data.staticsApplied){if(statics)for(var _i=0;_i])/g,c=/[&<>"'`]/g,a=/(?:\x00|^-*!?>|--!?>|--?!?$|\]>|\]$)/g,f=/&(?:#([xX][0-9A-Fa-f]+|\d+);?|(Tab|NewLine|colon|semi|lpar|rpar|apos|sol|comma|excl|ast|midast|ensp|emsp|thinsp);|(nbsp|amp|AMP|lt|LT|gt|GT|quot|QUOT);?)/g,l={Tab:"\t",NewLine:"\n", colon:":",semi:";",lpar:"(",rpar:")",apos:"'",sol:"/",comma:",",excl:"!",ast:"*",midast:"*",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",nbsp:"\u00a0",amp:"\x26",lt:"\x3c",gt:"\x3e",quot:'"',QUOT:'"'},p=/^(?:(?!-*expression)#?[-\w]+|[+-]?(?:\d+|\d*\.\d+)(?:r?em|ex|ch|cm|mm|in|px|pt|pc|%|vh|vw|vmin|vmax)?|!important|)$/i,d=/[\x00-\x1F\x7F\[\]{}\\"]/g,y=/[\x00-\x1F\x7F\[\]{}\\']/g,m=/url[\(\u207D\u208D]+/g,b=/['\(\)]/g,s=/\/\/%5[Bb]([A-Fa-f0-9:]+)%5[Dd]/,g={javascript:1,data:1,vbscript:1,mhtml:1,"x-schema":1}, v=/(?::|&#[xX]0*3[aA];?|�*58;?|:)/,P=/(?:^[\x00-\x20]+|[\t\n\r\x00]+)/g,h={Tab:"\t",NewLine:"\n"},O=function(e,t,n){return void 0===e?"undefined":null===e?"null":e.toString().replace(t,n)},I=String.fromCodePoint||function(e){return 0===arguments.length?"":e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),e%1024+56320))};function x(e){var t=e.split(v,2);return!t[0]||2!==t.length&&e.length===t[0].length?null:t[0]}function A(t,n,r,u){return n=n||l,r=r||f,void 0===t? "undefined":null===t?"null":t.toString().replace(o,"\ufffd").replace(r,function(t,r,o,i){return r?(r=Number(r[0]<="9"?r:"0"+r),u?I(r):128===r?"\u20ac":130===r?"\u201a":131===r?"\u0192":132===r?"\u201e":133===r?"\u2026":134===r?"\u2020":135===r?"\u2021":136===r?"\u02c6":137===r?"\u2030":138===r?"\u0160":139===r?"\u2039":140===r?"\u0152":142===r?"\u017d":145===r?"\u2018":146===r?"\u2019":147===r?"\u201c":148===r?"\u201d":149===r?"\u2022":150===r?"\u2013":151===r?"\u2014":152===r?"\u02dc":153===r?"\u2122": 154===r?"\u0161":155===r?"\u203a":156===r?"\u0153":158===r?"\u017e":159===r?"\u0178":r>=55296&&r<=57343||13===r?"\ufffd":e.frCoPt(r)):n[o||i]||t})}function j(e){return"\\"+e.charCodeAt(0).toString(16).toLowerCase()+" "}function T(e){return e.replace(m,function(e){return"-x-"+e})}function C(t){var n=x(t=e.yufull(A(t)));return n&&g[n.toLowerCase()]?"##"+t:t}return e={frCoPt:function(e){return void 0===e||null===e?"":!isFinite(e=Number(e))||e<=0||e>1114111||e>=1&&e<=8||e>=14&&e<=31||e>=127&&e<=159|| e>=64976&&e<=65007||11===e||65535==(65535&e)||65534==(65535&e)?"\ufffd":I(e)},d:A,yup:function(e){return(e=x(e.replace(o,"")))?A(e,h,null,!0).replace(P,"").toLowerCase():null},y:function(e){return O(e,c,function(e){return"\x26"===e?"\x26amp;":"\x3c"===e?"\x26lt;":"\x3e"===e?"\x26gt;":'"'===e?"\x26quot;":"'"===e?"\x26#39;":"\x26#96;"})},ya:function(e){return O(e,u,"\x26amp;")},yd:function(e){return O(e,t,"\x26lt;")},yc:function(e){return O(e,a,function(e){return"\x00"===e?"\ufffd":"--!"===e||"--"=== e||"-"===e||"]"===e?e+" ":e.slice(0,-1)+" \x3e"})},yavd:function(e){return O(e,n,"\x26quot;")},yavs:function(e){return O(e,r,"\x26#39;")},yavu:function(e){return O(e,i,function(e){return"\t"===e?"\x26#9;":"\n"===e?"\x26#10;":"\v"===e?"\x26#11;":"\f"===e?"\x26#12;":"\r"===e?"\x26#13;":" "===e?"\x26#32;":"\x3d"===e?"\x26#61;":"\x3c"===e?"\x26lt;":"\x3e"===e?"\x26gt;":'"'===e?"\x26quot;":"'"===e?"\x26#39;":"`"===e?"\x26#96;":"\ufffd"})},yu:encodeURI,yuc:encodeURIComponent,yubl:function(t){return g[e.yup(t)]? "x-"+t:t},yufull:function(t){return e.yu(t).replace(s,function(e,t){return"//["+t+"]"})},yublf:function(t){return e.yubl(e.yufull(t))},yceu:function(e){return e=A(e),p.test(e)?e:";-x:'"+T(e.replace(y,j))+"';-v:"},yced:function(e){return T(A(e).replace(d,j))},yces:function(e){return T(A(e).replace(y,j))},yceuu:function(e){return C(e).replace(b,function(e){return"'"===e?"\\27 ":"("===e?"%28":"%29"})},yceud:function(e){return C(e)},yceus:function(e){return C(e).replace(r,"\\27 ")}}};var n=t._privFilters= t._getPrivFilters();function r(e,t,r){return n.yubl(t((r||n.yufull)(e)))}t.inHTMLData=n.yd,t.inHTMLComment=n.yc,t.inSingleQuotedAttr=n.yavs,t.inDoubleQuotedAttr=n.yavd,t.inUnQuotedAttr=n.yavu,t.uriInSingleQuotedAttr=function(e){return r(e,n.yavs)},t.uriInDoubleQuotedAttr=function(e){return r(e,n.yavd)},t.uriInUnQuotedAttr=function(e){return r(e,n.yavu)},t.uriInHTMLData=n.yufull,t.uriInHTMLComment=function(e){return n.yc(n.yufull(e))},t.uriPathInSingleQuotedAttr=function(e){return r(e,n.yavs,n.yu)}, t.uriPathInDoubleQuotedAttr=function(e){return r(e,n.yavd,n.yu)},t.uriPathInUnQuotedAttr=function(e){return r(e,n.yavu,n.yu)},t.uriPathInHTMLData=n.yu,t.uriPathInHTMLComment=function(e){return n.yc(n.yu(e))},t.uriQueryInSingleQuotedAttr=t.uriPathInSingleQuotedAttr,t.uriQueryInDoubleQuotedAttr=t.uriPathInDoubleQuotedAttr,t.uriQueryInUnQuotedAttr=t.uriPathInUnQuotedAttr,t.uriQueryInHTMLData=t.uriPathInHTMLData,t.uriQueryInHTMLComment=t.uriPathInHTMLComment,t.uriComponentInSingleQuotedAttr=function(e){return n.yavs(n.yuc(e))}, t.uriComponentInDoubleQuotedAttr=function(e){return n.yavd(n.yuc(e))},t.uriComponentInUnQuotedAttr=function(e){return n.yavu(n.yuc(e))},t.uriComponentInHTMLData=n.yuc,t.uriComponentInHTMLComment=function(e){return n.yc(n.yuc(e))},t.uriFragmentInSingleQuotedAttr=function(e){return n.yubl(n.yavs(n.yuc(e)))},t.uriFragmentInDoubleQuotedAttr=function(e){return n.yubl(n.yavd(n.yuc(e)))},t.uriFragmentInUnQuotedAttr=function(e){return n.yubl(n.yavu(n.yuc(e)))},t.uriFragmentInHTMLData=t.uriComponentInHTMLData, t.uriFragmentInHTMLComment=t.uriComponentInHTMLComment},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.updateAttribute=t.attributes=void 0;var r=n(1),u=n(3),o={};o[u.symbols.default]=function(e,t,n){Array.isArray(e)&&e.push(" "+t+'\x3d"'+(0,r.inDoubleQuotedAttr)(n)+'"')},t.attributes=o,t.updateAttribute=function(e,t,n){(o[t]||o[u.symbols.default])(e,t,n)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});t.symbols={default:"__default"}},function(e,t,n){Object.defineProperty(t, "__esModule",{value:!0});var r=n(0);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return r.buffer}}),Object.defineProperty(t,"currentElement",{enumerable:!0,get:function(){return r.currentElement}}),Object.defineProperty(t,"currentParent",{enumerable:!0,get:function(){return r.currentParent}}),Object.defineProperty(t,"currentPointer",{enumerable:!0,get:function(){return r.currentPointer}}),Object.defineProperty(t,"patch",{enumerable:!0,get:function(){return r.patch}}),Object.defineProperty(t, "patchInner",{enumerable:!0,get:function(){return r.patchInner}}),Object.defineProperty(t,"patchOuter",{enumerable:!0,get:function(){return r.patchOuter}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return r.text}});var u=n(5);Object.defineProperty(t,"attr",{enumerable:!0,get:function(){return u.attr}}),Object.defineProperty(t,"elementClose",{enumerable:!0,get:function(){return u.elementClose}}),Object.defineProperty(t,"elementOpen",{enumerable:!0,get:function(){return u.elementOpen}}), Object.defineProperty(t,"elementOpenEnd",{enumerable:!0,get:function(){return u.elementOpenEnd}}),Object.defineProperty(t,"elementOpenStart",{enumerable:!0,get:function(){return u.elementOpenStart}}),Object.defineProperty(t,"elementVoid",{enumerable:!0,get:function(){return u.elementVoid}}),Object.defineProperty(t,"renderToString",{enumerable:!0,get:function(){return u.renderToString}});var o=n(3);Object.defineProperty(t,"symbols",{enumerable:!0,get:function(){return o.symbols}});var i=n(2);Object.defineProperty(t, "attributes",{enumerable:!0,get:function(){return i.attributes}}),Object.defineProperty(t,"updateAttribute",{enumerable:!0,get:function(){return i.updateAttribute}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderToString=t.elementVoid=t.elementOpenStart=t.elementOpenEnd=t.elementOpen=t.elementClose=t.attr=void 0;var r=n(2),u=n(0),o=[],i=function(e){"function"!=typeof e?u.buffer.push("\x3c/"+e+"\x3e"):new e},c=function(e,t,n){if("function"==typeof e)return new e,u.currentParent; if(u.buffer.push("\x3c"+e),n)for(var o=0;ot;)e.pop()}(o,0)},t.elementOpenStart=function(e,t,n){o[0]=e,o[1]=t,o[2]=n}, t.elementVoid=function(e){return c.apply(void 0,arguments),i(e)},t.renderToString=function(e){return(0,u.patch)({},e),(0,u.currentElement)().innerHTML}}]))}); Liferay.Loader.define("frontend-js-metal-web$metal-incremental-dom@2.16.8/lib/incremental-dom",["module","exports","require","frontend-js-metal-web$incremental-dom","frontend-js-metal-web$incremental-dom-string","frontend-js-metal-web$metal"],function(module,exports,require){var define=undefined;var _incrementalDom=require("frontend-js-metal-web$incremental-dom");var IncrementalDOM=_interopRequireWildcard(_incrementalDom);var _incrementalDomString=require("frontend-js-metal-web$incremental-dom-string"); var IncrementalDOMString=_interopRequireWildcard(_incrementalDomString);var _metal=require("frontend-js-metal-web$metal");function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;else{var newObj={};if(obj!=null)for(var key in obj)if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];newObj.default=obj;return newObj}}if((0,_metal.isServerSide)())global.IncrementalDOM=IncrementalDOMString;else{var scope=typeof exports!=="undefined"&&typeof global!=="undefined"?global: window;if(!scope.IncrementalDOM)scope.IncrementalDOM=IncrementalDOM}}); Liferay.Loader.define("frontend-js-metal-web$metal-incremental-dom@2.16.8/lib/data",["module","exports","require"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.clearData=clearData;exports.getData=getData;var RENDERER_DATA="__METAL_IC_RENDERER_DATA__";function clearData(component){component[RENDERER_DATA]=null}function getData(component){if(!component[RENDERER_DATA])component[RENDERER_DATA]={};return component[RENDERER_DATA]} }); Liferay.Loader.define("frontend-js-metal-web$metal-incremental-dom@2.16.8/lib/changes",["module","exports","require","./data"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.clearChanges=clearChanges;exports.getChanges=getChanges;exports.trackChanges=trackChanges;var _data=require("./data");function clearChanges(data){data.changes=null}function handleStateKeyChanged_(data,eventData){data.changes=data.changes||{};var type=eventData.type|| "props";data.changes[type]=data.changes[type]||{};data.changes[type][eventData.key]=eventData}function getChanges(component){return(0,_data.getData)(component).changes}function trackChanges(component){var data=(0,_data.getData)(component);component.on("stateKeyChanged",handleStateKeyChanged_.bind(null,data))}}); Liferay.Loader.define("frontend-js-metal-web$metal-incremental-dom@2.16.8/lib/callArgs",["module","exports","require"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.buildConfigFromCall=buildConfigFromCall;exports.buildCallFromConfig=buildCallFromConfig;function buildConfigFromCall(args){var config={};if(args[1])config.key=args[1];var attrsArr=(args[2]||[]).concat(args.slice(3));for(var i=0;i0?fnStack[fnStack.length-1]:null}function buildHandleCall(name){var fn=handleCall.bind({name:name});return fn}function handleCall(){var name=this.name;var stack=getStack();var fn=stack&&stack[name]||originalFns[name];return fn.apply(undefined,arguments)}IncrementalDOM.attr=buildHandleCall("attr");IncrementalDOM.elementClose=buildHandleCall("elementClose"); IncrementalDOM.elementOpen=buildHandleCall("elementOpen");IncrementalDOM.elementOpenEnd=buildHandleCall("elementOpenEnd");IncrementalDOM.elementOpenStart=buildHandleCall("elementOpenStart");IncrementalDOM.elementVoid=buildHandleCall("elementVoid");IncrementalDOM.text=buildHandleCall("text");IncrementalDOM.attributes[IncrementalDOM.symbols.default]=buildHandleCall("attributes")}); Liferay.Loader.define("frontend-js-metal-web$metal-incremental-dom@2.16.8/lib/children/children",["module","exports","require","../callArgs","frontend-js-metal-web$metal","../incremental-dom-aop"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.CHILD_OWNER=undefined;exports.captureChildren=captureChildren;exports.isChildTag=isChildTag;exports.getOwner=getOwner;exports.renderChildTree=renderChildTree;var _callArgs=require("../callArgs"); var _metal=require("frontend-js-metal-web$metal");var _incrementalDomAop=require("../incremental-dom-aop");function _defineProperty(obj,key,value){if(key in obj)Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});else obj[key]=value;return obj}var CHILD_OWNER=exports.CHILD_OWNER="__metalChildOwner";function captureChildren(component,callback,data){owner_=component;callback_=callback;callbackData_=data;tree_={props:{children:[]}};tree_.config=tree_.props;currentParent_= tree_;isCapturing_=true;(0,_incrementalDomAop.startInterception)({elementClose:handleInterceptedCloseCall_,elementOpen:handleInterceptedOpenCall_,text:handleInterceptedTextCall_})}function isChildTag(tag){return(0,_metal.isDef)(tag.tag)}function getOwner(node){return node[CHILD_OWNER]}function renderChildTree(tree,skipNode){if(isCapturing_){addChildToTree(tree);return}if(skipNode&&skipNode.call(null,tree))return;if((0,_metal.isDef)(tree.text)){var args=tree.args?tree.args:[];args[0]=tree.text;IncrementalDOM.text.apply(null, args)}else{var _args=(0,_callArgs.buildCallFromConfig)(tree.tag,tree.props);_args[0]={tag:_args[0],owner:getOwner(tree)};IncrementalDOM.elementOpen.apply(null,_args);if(tree.props.children)for(var i=0;i 1&&arguments[1]!==undefined?arguments[1]:false;var child=_defineProperty({parent:currentParent_},CHILD_OWNER,owner_);if(isText){child.text=args[0];if(args.length>1)child.args=args}else{child.tag=args[0];child.props=(0,_callArgs.buildConfigFromCall)(args);child.props.children=[];child.config=child.props}addChildToTree(child);return child}function addChildToTree(child){currentParent_.props.children.push(child)}function handleInterceptedCloseCall_(){if(currentParent_===tree_){(0,_incrementalDomAop.stopInterception)(); isCapturing_=false;var node=callback_.call(owner_,tree_,callbackData_);callback_=null;callbackData_=null;currentParent_=null;owner_=null;tree_=null;return node}else{currentParent_=currentParent_.parent;return true}}function handleInterceptedOpenCall_(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];currentParent_=addChildCallToTree_(args)}function handleInterceptedTextCall_(){for(var _len2=arguments.length,args=Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]= arguments[_key2];addChildCallToTree_(args,true)}}); Liferay.Loader.define("frontend-js-metal-web$metal-incremental-dom@2.16.8/lib/render/attributes",["module","exports","require","frontend-js-metal-web$metal","frontend-js-metal-web$metal-dom","frontend-js-metal-web$metal-component","../incremental-dom-aop"],function(module,exports,require){var define=undefined;Object.defineProperty(exports,"__esModule",{value:true});exports.applyAttribute=applyAttribute;exports.convertListenerNamesToFns=convertListenerNamesToFns;var _metal=require("frontend-js-metal-web$metal"); var _metalDom=require("frontend-js-metal-web$metal-dom");var _metalComponent=require("frontend-js-metal-web$metal-component");var _incrementalDomAop=require("../incremental-dom-aop");var HANDLE_SUFFIX="__handle__";var LISTENER_REGEX=/^(?:on([A-Z].+))|(?:data-on(.+))$/;function applyAttribute(component,element,name,value){var eventName=getEventFromListenerAttr_(name);if(eventName){attachEvent_(component,element,name,eventName,value);return}value=fixCheckedAttr_(name,value);setValueAttrAsProperty_(element, name,value);if((0,_metal.isBoolean)(value))setBooleanAttr_(element,name,value);else(0,_incrementalDomAop.getOriginalFn)("attributes")(element,name,value)}function attachEvent_(component,element,attr,eventName,fn){if((0,_metal.isServerSide)())return;var handleKey=eventName+HANDLE_SUFFIX;if(element[handleKey]){element[handleKey].removeListener();element[handleKey]=null}if(fn){element[attr]=fn;element[handleKey]=(0,_metalDom.delegate)(document,eventName,element,fn)}}function convertListenerNamesToFns(component, config){var keys=Object.keys(config);for(var i=0;i=0;--i){var script=scripts[i];var src=script.src;var qmark=src.lastIndexOf("?");var l=qmark==-1?src.length:qmark;if(src.substr(l-7,7)=="base.js"){goog.basePath=src.substr(0,l-7);return}}};goog.importScript_=function(src,opt_sourceText){var importScript=goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_;if(importScript(src, opt_sourceText))goog.dependencies_.written[src]=true};goog.IS_OLD_IE_=!!(!goog.global.atob&&goog.global.document&&goog.global.document.all);goog.importModule_=function(src){if(goog.importScript_("",'goog.retrieveAndExecModule_("'+src+'");'))goog.dependencies_.written[src]=true};goog.queuedModules_=[];goog.wrapModule_=function(srcUrl,scriptText){if(!goog.LOAD_MODULE_USING_EVAL||!goog.isDef(goog.global.JSON))return""+"goog.loadModule(function(exports) {"+'"use strict";'+scriptText+"\n"+";return exports"+ "});"+"\n//# sourceURL\x3d"+srcUrl+"\n";else return""+"goog.loadModule("+goog.global.JSON.stringify(scriptText+"\n//# sourceURL\x3d"+srcUrl+"\n")+");"};goog.loadQueuedModules_=function(){var count=goog.queuedModules_.length;if(count>0){var queue=goog.queuedModules_;goog.queuedModules_=[];for(var i=0;i>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid; goog.cloneObject=function(obj){var type=goog.typeOf(obj);if(type=="object"||type=="array"){if(obj.clone)return obj.clone();var clone=type=="array"?[]:{};for(var key in obj)clone[key]=goog.cloneObject(obj[key]);return clone}return obj};goog.bindNative_=function(fn,selfObj,var_args){return fn.call.apply(fn.bind,arguments)};goog.bindJs_=function(fn,selfObj,var_args){if(!fn)throw new Error;if(arguments.length>2){var boundArgs=Array.prototype.slice.call(arguments,2);return function(){var newArgs=Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(newArgs,boundArgs);return fn.apply(selfObj,newArgs)}}else return function(){return fn.apply(selfObj,arguments)}};goog.bind=function(fn,selfObj,var_args){if(Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1)goog.bind=goog.bindNative_;else goog.bind=goog.bindJs_;return goog.bind.apply(null,arguments)};goog.partial=function(fn,var_args){var args=Array.prototype.slice.call(arguments,1);return function(){var newArgs=args.slice();newArgs.push.apply(newArgs, arguments);return fn.apply(this,newArgs)}};goog.mixin=function(target,source){for(var x in source)target[x]=source[x]};goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date};goog.globalEval=function(script){if(goog.global.execScript)goog.global.execScript(script,"JavaScript");else if(goog.global.eval){if(goog.evalWorksForGlobals_==null){goog.global.eval("var _evalTest_ \x3d 1;");if(typeof goog.global["_evalTest_"]!="undefined"){try{delete goog.global["_evalTest_"]}catch(ignore){}goog.evalWorksForGlobals_= true}else goog.evalWorksForGlobals_=false}if(goog.evalWorksForGlobals_)goog.global.eval(script);else{var doc=goog.global.document;var scriptElt=doc.createElement("SCRIPT");scriptElt.type="text/javascript";scriptElt.defer=false;scriptElt.appendChild(doc.createTextNode(script));doc.body.appendChild(scriptElt);doc.body.removeChild(scriptElt)}}else throw Error("goog.globalEval not available");};goog.evalWorksForGlobals_=null;goog.cssNameMapping_;goog.cssNameMappingStyle_;goog.getCssName=function(className, opt_modifier){var getMapping=function getMapping(cssName){return goog.cssNameMapping_[cssName]||cssName};var renameByParts=function renameByParts(cssName){var parts=cssName.split("-");var mapped=[];for(var i=0;i1)returnString+=splitParts.shift()+subsArguments.shift();return returnString+splitParts.join("%s")}; goog.string.AMP_RE_=/&/g;goog.string.LT_RE_=//g;goog.string.QUOT_RE_=/"/g;goog.string.SINGLE_QUOTE_RE_=/'/g;goog.string.NULL_RE_=/\x00/g;goog.string.E_RE_=/e/g;goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/;goog.string.unescapeEntities=function(str){if(goog.string.contains(str,"\x26"))if(!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global)return goog.string.unescapeEntitiesUsingDom_(str);else return goog.string.unescapePureXmlEntities_(str); return str};goog.string.unescapeEntitiesUsingDom_=function(str,opt_document){var seen={"\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e","\x26quot;":'"'};var div;if(opt_document)div=opt_document.createElement("div");else div=goog.global.document.createElement("div");return str.replace(goog.string.HTML_ENTITY_PATTERN_,function(s,entity){var value=seen[s];if(value)return value;if(entity.charAt(0)=="#"){var n=Number("0"+entity.substr(1));if(!isNaN(n))value=String.fromCharCode(n)}if(!value){div.innerHTML= s+" ";value=div.firstChild.nodeValue.slice(0,-1)}return seen[s]=value})};goog.string.unescapePureXmlEntities_=function(str){return str.replace(/&([^;]+);/g,function(s,entity){switch(entity){case "amp":return"\x26";case "lt":return"\x3c";case "gt":return"\x3e";case "quot":return'"';default:if(entity.charAt(0)=="#"){var n=Number("0"+entity.substr(1));if(!isNaN(n))return String.fromCharCode(n)}return s}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.contains=function(str,subString){return str.indexOf(subString)!= -1};goog.string.htmlEscape=function(str,opt_isLikelyToContainHtmlChars){if(opt_isLikelyToContainHtmlChars){str=str.replace(goog.string.AMP_RE_,"\x26amp;").replace(goog.string.LT_RE_,"\x26lt;").replace(goog.string.GT_RE_,"\x26gt;").replace(goog.string.QUOT_RE_,"\x26quot;").replace(goog.string.SINGLE_QUOTE_RE_,"\x26#39;").replace(goog.string.NULL_RE_,"\x26#0;");if(goog.string.DETECT_DOUBLE_ESCAPING)str=str.replace(goog.string.E_RE_,"\x26#101;");return str}else{if(!goog.string.ALL_RE_.test(str))return str; if(str.indexOf("\x26")!=-1)str=str.replace(goog.string.AMP_RE_,"\x26amp;");if(str.indexOf("\x3c")!=-1)str=str.replace(goog.string.LT_RE_,"\x26lt;");if(str.indexOf("\x3e")!=-1)str=str.replace(goog.string.GT_RE_,"\x26gt;");if(str.indexOf('"')!=-1)str=str.replace(goog.string.QUOT_RE_,"\x26quot;");if(str.indexOf("'")!=-1)str=str.replace(goog.string.SINGLE_QUOTE_RE_,"\x26#39;");if(str.indexOf("\x00")!=-1)str=str.replace(goog.string.NULL_RE_,"\x26#0;");if(goog.string.DETECT_DOUBLE_ESCAPING&&str.indexOf("e")!= -1)str=str.replace(goog.string.E_RE_,"\x26#101;");return str}};goog.debug={};goog.debug.runtimeType=function(value){if(value instanceof Function)return value.displayName||value.name||"unknown type name";else if(value instanceof Object)return value.constructor.displayName||value.constructor.name||Object.prototype.toString.call(value);else return value===null?"null":typeof value==="undefined"?"undefined":_typeof(value)};goog.debug.Error=function(opt_msg){if(Error.captureStackTrace)Error.captureStackTrace(this, goog.debug.Error);else{var stack=(new Error).stack;if(stack)this.stack=stack}if(opt_msg)this.message=String(opt_msg);this.reportErrorToServer=true};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.provide("goog.i18n.bidi");goog.provide("goog.i18n.bidi.Dir");goog.provide("goog.i18n.bidi.DirectionalString"); goog.provide("goog.i18n.bidi.Format");goog.define("goog.i18n.bidi.FORCE_RTL",false);goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="ar"||goog.LOCALE.substring(0,2).toLowerCase()=="fa"||goog.LOCALE.substring(0,2).toLowerCase()=="he"||goog.LOCALE.substring(0,2).toLowerCase()=="iw"||goog.LOCALE.substring(0,2).toLowerCase()=="ps"||goog.LOCALE.substring(0,2).toLowerCase()=="sd"||goog.LOCALE.substring(0,2).toLowerCase()=="ug"||goog.LOCALE.substring(0,2).toLowerCase()== "ur"||goog.LOCALE.substring(0,2).toLowerCase()=="yi")&&(goog.LOCALE.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||goog.LOCALE.length>=3&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_");goog.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"};goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0};goog.i18n.bidi.RIGHT="right";goog.i18n.bidi.LEFT="left";goog.i18n.bidi.I18N_RIGHT= goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT;goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT;goog.i18n.bidi.toDir=function(givenDir,opt_noNeutral){if(typeof givenDir=="number")return givenDir>0?goog.i18n.bidi.Dir.LTR:givenDir<0?goog.i18n.bidi.Dir.RTL:opt_noNeutral?null:goog.i18n.bidi.Dir.NEUTRAL;else if(givenDir==null)return null;else return givenDir?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.ltrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff"+ "\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff";goog.i18n.bidi.rtlChars_="\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc";goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;goog.i18n.bidi.stripHtmlIfNeeded_=function(str,opt_isStripNeeded){return opt_isStripNeeded?str.replace(goog.i18n.bidi.htmlSkipReg_,""):str};goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.hasAnyRtl=function(str, opt_isHtml){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml))};goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl;goog.i18n.bidi.hasAnyLtr=function(str,opt_isHtml){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml))};goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.isRtlChar=function(str){return goog.i18n.bidi.rtlRe_.test(str)}; goog.i18n.bidi.isLtrChar=function(str){return goog.i18n.bidi.ltrRe_.test(str)};goog.i18n.bidi.isNeutralChar=function(str){return!goog.i18n.bidi.isLtrChar(str)&&!goog.i18n.bidi.isRtlChar(str)};goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.startsWithRtl=function(str,opt_isHtml){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(str, opt_isHtml))};goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl;goog.i18n.bidi.startsWithLtr=function(str,opt_isHtml){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml))};goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr;goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;goog.i18n.bidi.isNeutralText=function(str,opt_isHtml){str=goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml);return goog.i18n.bidi.isRequiredLtrRe_.test(str)||!goog.i18n.bidi.hasAnyLtr(str)&& !goog.i18n.bidi.hasAnyRtl(str)};goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$");goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$");goog.i18n.bidi.endsWithLtr=function(str,opt_isHtml){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml))};goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr;goog.i18n.bidi.endsWithRtl=function(str, opt_isHtml){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml))};goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl;goog.i18n.bidi.rtlLocalesRe_=new RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|"+".*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))"+"(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");goog.i18n.bidi.isRtlLanguage=function(lang){return goog.i18n.bidi.rtlLocalesRe_.test(lang)};goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;goog.i18n.bidi.guardBracketInText= function(s,opt_isRtlContext){var useRtl=opt_isRtlContext===undefined?goog.i18n.bidi.hasAnyRtl(s):opt_isRtlContext;var mark=useRtl?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM;return s.replace(goog.i18n.bidi.bracketGuardTextRe_,mark+"$\x26"+mark)};goog.i18n.bidi.enforceRtlInHtml=function(html){if(html.charAt(0)=="\x3c")return html.replace(/<\w+/,"$\x26 dir\x3drtl");return"\n\x3cspan dir\x3drtl\x3e"+html+"\x3c/span\x3e"};goog.i18n.bidi.enforceRtlInText=function(text){return goog.i18n.bidi.Format.RLE+ text+goog.i18n.bidi.Format.PDF};goog.i18n.bidi.enforceLtrInHtml=function(html){if(html.charAt(0)=="\x3c")return html.replace(/<\w+/,"$\x26 dir\x3dltr");return"\n\x3cspan dir\x3dltr\x3e"+html+"\x3c/span\x3e"};goog.i18n.bidi.enforceLtrInText=function(text){return goog.i18n.bidi.Format.LRE+text+goog.i18n.bidi.Format.PDF};goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;goog.i18n.bidi.leftRe_=/left/gi;goog.i18n.bidi.rightRe_=/right/gi;goog.i18n.bidi.tempRe_= /%%%%/g;goog.i18n.bidi.mirrorCSS=function(cssStr){return cssStr.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)};goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g;goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g;goog.i18n.bidi.normalizeHebrewQuote=function(str){return str.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_, "$1\u05f3")};goog.i18n.bidi.wordSeparatorRe_=/\s+/;goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;goog.i18n.bidi.rtlDetectionThreshold_=.4;goog.i18n.bidi.estimateDirection=function(str,opt_isHtml){var rtlCount=0;var totalCount=0;var hasWeaklyLtr=false;var tokens=goog.i18n.bidi.stripHtmlIfNeeded_(str,opt_isHtml).split(goog.i18n.bidi.wordSeparatorRe_);for(var i=0;igoog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.detectRtlDirectionality=function(str,opt_isHtml){return goog.i18n.bidi.estimateDirection(str,opt_isHtml)==goog.i18n.bidi.Dir.RTL};goog.i18n.bidi.setElementDirAndAlign=function(element, dir){if(element){dir=goog.i18n.bidi.toDir(dir);if(dir){element.style.textAlign=dir==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT;element.dir=dir==goog.i18n.bidi.Dir.RTL?"rtl":"ltr"}}};goog.i18n.bidi.setElementDirByTextDirectionality=function(element,text){switch(goog.i18n.bidi.estimateDirection(text)){case goog.i18n.bidi.Dir.LTR:element.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:element.dir="rtl";break;default:element.removeAttribute("dir")}};goog.i18n.bidi.DirectionalString=function(){}; goog.i18n.bidi.DirectionalString.prototype.implementsGoogI18nBidiDirectionalString;goog.i18n.bidi.DirectionalString.prototype.getDirection;goog.provide("goog.asserts");goog.define("goog.asserts.ENABLE_ASSERTS",goog.DEBUG);goog.asserts.AssertionError=function(messagePattern,messageArgs){messageArgs.unshift(messagePattern);goog.debug.Error.call(this,goog.string.subs.apply(null,messageArgs));messageArgs.shift();this.messagePattern=messagePattern};goog.inherits(goog.asserts.AssertionError,goog.debug.Error); goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e;};goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;goog.asserts.doAssertFailure_=function(defaultMessage,defaultArgs,givenMessage,givenArgs){var message="Assertion failed";if(givenMessage){message+=": "+givenMessage;var args=givenArgs}else if(defaultMessage){message+=": "+defaultMessage;args=defaultArgs}var e=new goog.asserts.AssertionError(""+message,args||[]);goog.asserts.errorHandler_(e)}; goog.asserts.setErrorHandler=function(errorHandler){if(goog.asserts.ENABLE_ASSERTS)goog.asserts.errorHandler_=errorHandler};goog.asserts.assert=function(condition,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!condition)goog.asserts.doAssertFailure_("",null,opt_message,Array.prototype.slice.call(arguments,2));return condition};goog.asserts.fail=function(opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS)goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(opt_message?": "+ opt_message:""),Array.prototype.slice.call(arguments,1)))};goog.asserts.assertNumber=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(value))goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertString=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!goog.isString(value))goog.asserts.doAssertFailure_("Expected string but got %s: %s.", [goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertFunction=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(value))goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertObject=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!goog.isObject(value))goog.asserts.doAssertFailure_("Expected object but got %s: %s.", [goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertArray=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!goog.isArray(value))goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertBoolean=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(value))goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.", [goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertElement=function(value,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&&(!goog.isObject(value)||value.nodeType!=goog.dom.NodeType.ELEMENT))goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(value),value],opt_message,Array.prototype.slice.call(arguments,2));return value};goog.asserts.assertInstanceof=function(value,type,opt_message,var_args){if(goog.asserts.ENABLE_ASSERTS&& !(value instanceof type))goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(type),goog.asserts.getType_(value)],opt_message,Array.prototype.slice.call(arguments,3));return value};goog.asserts.assertObjectPrototypeIsIntact=function(){for(var key in Object.prototype)goog.asserts.fail(key+" should not be enumerable in Object.prototype.")};goog.asserts.getType_=function(value){if(value instanceof Function)return value.displayName||value.name||"unknown type name"; else if(value instanceof Object)return value.constructor.displayName||value.constructor.name||Object.prototype.toString.call(value);else return value===null?"null":typeof value==="undefined"?"undefined":_typeof(value)};goog.string.StringBuffer=function(opt_a1,var_args){if(opt_a1!=null)this.append.apply(this,arguments)};goog.string.StringBuffer.prototype.buffer_="";goog.string.StringBuffer.prototype.set=function(s){this.buffer_=""+s};goog.string.StringBuffer.prototype.append=function(a1,opt_a2,var_args){this.buffer_+= String(a1);if(opt_a2!=null)for(var i=1;icurrPriority){soy.$$DELEGATE_REGISTRY_PRIORITIES_[mapKey]=delPriority;soy.$$DELEGATE_REGISTRY_FUNCTIONS_[mapKey]=delFn}else if(delPriority==currPriority)throw Error('Encountered two active delegates with the same priority ("'+ delTemplateId+":"+delTemplateVariant+'").');};soy.$$getDelegateFn=function(delTemplateId,delTemplateVariant,allowsEmptyDefault){var delFn=soy.$$DELEGATE_REGISTRY_FUNCTIONS_["key_"+delTemplateId+":"+delTemplateVariant];if(!delFn&&delTemplateVariant!="")delFn=soy.$$DELEGATE_REGISTRY_FUNCTIONS_["key_"+delTemplateId+":"];if(delFn)return delFn;else if(allowsEmptyDefault)return soy.$$EMPTY_TEMPLATE_FN_;else throw Error('Found no active impl for delegate call to "'+delTemplateId+":"+delTemplateVariant+'" (and not allowemptydefault\x3d"true").'); };soy.$$EMPTY_TEMPLATE_FN_=function(opt_data,opt_sb,opt_ijData){return""};soy.$$truncate=function(str,maxLen,doAddEllipsis){str=String(str);if(str.length<=maxLen)return str;if(doAddEllipsis)if(maxLen>3)maxLen-=3;else doAddEllipsis=false;if(soy.$$isHighSurrogate_(str.charAt(maxLen-1))&&soy.$$isLowSurrogate_(str.charAt(maxLen)))maxLen-=1;str=str.substring(0,maxLen);if(doAddEllipsis)str+="...";return str};soy.$$isHighSurrogate_=function(ch){return 55296<=ch&&ch<=56319};soy.$$isLowSurrogate_=function(ch){return 56320<= ch&&ch<=57343};soy.asserts.assertType=function(condition,paramName,param,jsDocTypeStr){if(goog.asserts.ENABLE_ASSERTS&&!condition){var msg="expected param "+paramName+" of type "+jsDocTypeStr+(goog.DEBUG?", but got "+goog.debug.runtimeType(param):"")+".";goog.asserts.fail(msg)}return param};soy.esc.$$escapeHtmlHelper=function(v){return goog.string.htmlEscape(String(v))};soy.$$filterImageDataUri=function(value){return soydata.VERY_UNSAFE.ordainSanitizedUri(soy.esc.$$filterImageDataUriHelper(value))}; soy.esc.$$FILTER_FOR_FILTER_IMAGE_DATA_URI_=/^data:image\/(?:bmp|gif|jpe?g|png|tiff|webp);base64,[a-z0-9+\/]+=*$/i;soy.esc.$$filterImageDataUriHelper=function(value){var str=String(value);if(!soy.esc.$$FILTER_FOR_FILTER_IMAGE_DATA_URI_.test(str)){goog.asserts.fail("Bad value `%s` for |filterImageDataUri",[str]);return"data:image/gif;base64,zSoyz"}return str};var incrementaldom=IncrementalDOM;var soyIDOM={};soyIDOM.renderDynamicContent=function(expr){if(goog.isFunction(expr))expr();else if(expr!=null)incrementaldom.text(expr)}; soyIDOM.print=function(expr){if(expr instanceof soydata.SanitizedHtml){var el=incrementaldom.elementOpen("html-blob");var content=expr.toString();if(el.__innerHTML!==content){soy.renderHtml(el,expr);el.__innerHTML=content}incrementaldom.skip();incrementaldom.elementClose("html-blob")}else soyIDOM.renderDynamicContent(expr)};goog.loadModule(function(){goog.module("soy.idom");return soyIDOM});goog.loadModule(function(){goog.module("soy");return soy});goog.loadModule(function(){goog.module("soydata"); return soydata});goog.loadModule(function(){goog.module("soy.asserts");return soy})})();goog.loadModule(function(){goog.module("incrementaldom");return IncrementalDOM})}}).call(typeof exports!=="undefined"&&typeof global!=="undefined"?global:window)});