webapp.vendor.js.riot.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leshan-bsserver-demo Show documentation
Show all versions of leshan-bsserver-demo Show documentation
A LWM2M bootstrap demonstration server running an embedded Jetty server
/* Riot v3.13.2, @license MIT */
var e,t;e=this,t=function(e){"use strict";function a(e,t){return(t||document).querySelector(e)}var t,n,y=[],$={},s="yield",_="__global_mixin",N="riot-",u=["ref","data-ref"],p="data-is",f="if",d="each",r="no-reorder",C="show",O="hide",i="key",x="__riot-events__",o="string",H="object",l="undefined",c="function",h="http://www.w3.org/1999/xlink",m="http://www.w3.org/2000/svg",g=/^xlink:(\w+)/,v=typeof window===l?void 0:window,b=/^on/,w=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g,k={viewbox:"viewBox",preserveaspectratio:"preserveAspectRatio"},A=/^(?:disabled|checked|readonly|required|allowfullscreen|auto(?:focus|play)|compact|controls|default|formnovalidate|hidden|ismap|itemscope|loop|multiple|muted|no(?:resize|shade|validate|wrap)?|open|reversed|seamless|selected|sortable|truespeed|typemustmatch)$/,E=0|(v&&v.document||{}).documentMode;function L(e){return"svg"===e?document.createElementNS(m,e):document.createElement(e)}function T(e,t,n){var r=g.exec(t);r&&r[1]?e.setAttributeNS(h,r[1],n):e.setAttribute(t,n)}var j,M,S={},I=!1;v&&(j=L("style"),M=a("style[type=riot]"),T(j,"type","text/css"),M?(M.id&&(j.id=M.id),M.parentNode.replaceChild(j,M)):document.head.appendChild(j),n=(t=j).styleSheet);var R={styleNode:t,add:function(e,t){S[t]=e,I=!0},inject:function(){if(v&&I){I=!1;var e=Object.keys(S).map(function(e){return S[e]}).join("\n");n?n.cssText=e:t.innerHTML=e}},remove:function(e){delete S[e],I=!0}},P=function(){var u=["case","default","do","else","in","instanceof","prefix","return","typeof","void","yield"],l=u.reduce(function(e,t){return e+t.slice(-1)},""),c=/^\/(?=[^*>/])[^[/\\]*(?:(?:\\.|\[(?:\\.|[^\]\\]*)*\])[^[\\/]*)*?\/[gimuy]*/,p=/[$\w]/;function f(e,t){for(;0<=--t&&/\s/.test(e[t]););return t}return function(e,t){var n=/.*/g,r=n.lastIndex=t++,i=n.exec(e)[0].match(c);if(i){var o=r+i[0].length,a=e[r=f(e,r)];if(r<0||~"[{(,;:?=|&!^~>%*/".indexOf(a))return o;if("."===a)"."===e[r-1]&&(t=o);else if("+"===a||"-"===a)(e[--r]!==a||(r=f(e,r))<0||!p.test(e[r]))&&(t=o);else if(~l.indexOf(a)){for(var s=r+1;0<=--r&&p.test(e[r]););~u.indexOf(e.slice(r+1,s))&&(t=o)}}return t}}(),V=function(e){var t,n,r="g",i=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|`[^`\\]*(?:\\[\S\s][^`\\]*)*`/g,o=i.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?([^<]\/)[gim]*/.source,a=RegExp("[\\x00-\\x1F<>a-zA-Z0-9'\",;\\\\]"),s=/(?=[[\]()*+?.^$|])/g,u=i.source+"|"+/(\/)(?![*\/])/.source,y={"(":RegExp("([()])|"+u,r),"[":RegExp("([[\\]])|"+u,r),"{":RegExp("([{}])|"+u,r)},l="{ }",c=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+u,r),l,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],p=void 0,_=[];function f(e){return e}function d(e,t){return t||(t=_),new RegExp(e.source.replace(/{/g,t[2]).replace(/}/g,t[3]),e.global?r:"")}function h(e){if(e===l)return c;var t=e.split(" ");if(2!==t.length||a.test(e))throw new Error('Unsupported brackets "'+e+'"');return(t=t.concat(e.replace(s,"\\").split(" ")))[4]=d(1 %s",e.riotData.tagName||"Unknown tag",this.tmpl),console.log(this.data))}.bind({data:t,tmpl:e})):e}r.hasExpr=V.hasExpr,r.loopKeys=V.loopKeys,r.clearCache=function(){n={}},r.errorHandler=null;var s=/\u2057/g,u=/\u2057(\d+)~/g;var c=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\u2057(\d+)~):/,p={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g};function l(o,e,t){if(o=o.replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var n,r=[],i=0;o&&(n=o.match(c))&&!n.index;){var a,s,u=/,|([[{(])|$/g;for(o=RegExp.rightContext,a=n[2]?t[n[2]].slice(1,-1).trim().replace(/\s+/g," "):n[1];s=(n=u.exec(o))[1];)l(s,u);s=o.slice(0,n.index),o=RegExp.rightContext,r[i++]=d(s,1,a)}o=i?1'+t+"","application/xml").documentElement,!0);e.appendChild(r)}else e.innerHTML=t}function ee(e,t){if(e)for(var n;n=w.exec(e);)t(n[1].toLowerCase(),n[2]||n[3]||n[4])}function te(){return document.createDocumentFragment()}function ne(e,t,n){e.insertBefore(t,n.parentNode&&n)}function re(n){return Object.keys(n).reduce(function(e,t){return e+" "+t+": "+n[t]+";"},"")}function ie(e,t,n){if(e){var r,i=t(e,n);if(!1===i)return;for(e=e.firstChild;e;)r=e.nextSibling,ie(e,t,i),e=r}}var oe=Object.freeze({$$:Z,$:a,createDOMPlaceholder:G,mkEl:L,setAttr:T,toggleVisibility:Q,getAttr:J,remAttr:X,setInnerHTML:Y,walkAttrs:ee,createFrag:te,safeInsert:ne,styleObjectToString:re,walkNodes:ie});function ae(e){return D(e)||null===e}function se(e){return ae(e)||""===e}function ue(e){return typeof e===c}function le(e){return e&&typeof e===H}function ce(e){var t=e.ownerSVGElement;return!!t||null===t}function pe(e){return Array.isArray(e)||e instanceof Array}function fe(e){return A.test(e)}function de(e){return typeof e===o}var he=Object.freeze({isBlank:se,isFunction:ue,isObject:le,isSvg:ce,isWritable:F,isArray:pe,isBoolAttr:fe,isNil:ae,isString:de,isUndefined:D});function me(e,t){return-1!==e.indexOf(t)}function ge(e,t){for(var n=e?e.length:0,r=0;r|>([\S\s]*?)<\/yield\s*>|>)/gi,Te=/]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,je=/ |>([\S\s]*?)<\/yield\s*>)/gi,Me={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},Se=E&&E<10?/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/,Ie="div",Re="svg";function Pe(e,t,n){var r=e&&e.match(/^\s*<([-\w]+)/),i=r&&r[1].toLowerCase(),o=L(n?Re:Ie);return e=function(e,n){if(!Ee.test(e))return e;var r={};return n=n&&n.replace(Te,function(e,t,n){return r[t]=r[t]||n,""}).trim(),e.replace(je,function(e,t,n){return r[t]||n||""}).replace(Le,function(e,t){return n||t||""})}(e,t),Se.test(i)?o=function(e,t,n){var r="o"===n[0],i=r?"select>":"table>";if(e.innerHTML="<"+i+t.trim()+""+i,i=e.firstChild,r)i.selectedIndex=-1;else{var o=Me[n];o&&1===i.childElementCount&&(i=a(o,i))}return i}(o,e,i):Y(o,e,n),o}var Ve=/^on/;function $e(e){for(var t=e;t.__.isAnonymous&&t.parent;)t=t.parent;return t}function He(e,t,n,r){var i,o=function(e,t,n){var r=this.__.parent,i=this.__.item;if(!i)for(;r&&!i;)i=r.__.item,r=r.__.parent;if(F(n,"currentTarget")&&(n.currentTarget=e),F(n,"target")&&(n.target=n.srcElement),F(n,"which")&&(n.which=n.charCode||n.keyCode),n.item=i,t.call(this,n),W.autoUpdate&&!n.preventUpdate){var o=$e(this);o.isMounted&&o.update()}}.bind(r,n,t);n[e]=null,i=e.replace(b,""),me(r.__.listeners,n)||r.__.listeners.push(n),n[x]||(n[x]={}),n[x][e]&&n.removeEventListener(i,n[x][e]),n[x][e]=o,n.addEventListener(i,o,!1)}function Ue(e,t,n,r){var i=yt(e,t,n),o=t.tagName||Oe(t.root,!0),a=$e(r);return xe(i,"parent",a),i.__.parent=r,Ne(a.tags,o,i),a!==r&&Ne(r.tags,o,i),i}function Be(e,t,n,r){if(pe(e[t])){var i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1),e[t].length?1!==e[t].length||r||(e[t]=e[t][0]):delete e[t]}else e[t]===n&&delete e[t]}function ze(e,t){var n,r,i=G(),o=G(),a=te();for(this.root.insertBefore(i,this.root.firstChild),this.root.appendChild(o),this.__.head=r=i,this.__.tail=o;r;)n=r.nextSibling,a.appendChild(r),this.__.virts.push(r),r=n;t?e.insertBefore(a,t.__.head):e.appendChild(a)}function De(e,t){if(t.parentNode){var n=te();ze.call(e,n),t.parentNode.replaceChild(n,t)}}function Fe(e){if(!this.root||!J(this.root,"virtualized")){var t,n,r=e.dom,i=(t=e.attr)?(t=t.replace(N,""),k[t]&&(t=k[t]),t):null,o=me([C,O],i),a=e.root&&"VIRTUAL"===e.root.tagName,s=this.__.isAnonymous,u=r&&(e.parent||r.parentNode),l=W.keepValueAttributes,c="style"===i,p="class"===i,f="value"===i;if(e._riot_id)e.__.wasCreated?e.update():(e.mount(),a&&De(e,e.root));else{if(e.update)return e.update();var d,h,m,g,v,y,_,x=o&&!s?ke.call(this):this,b=!se(n=U(e.expr,x)),w=le(n);if(w&&(p?n=U(JSON.stringify(n),this):c&&(n=re(n))),!e.attr||e.wasParsedOnce&&!1!==n&&(b||f&&(!f||l))||X(r,J(r,e.attr)?e.attr:i),e.bool&&(n=!!n&&i),e.isRtag)return h=this,m=n,v=(d=e).tag||d.dom._tag,y=(v?v.__:{}).head,_="VIRTUAL"===d.dom.tagName,void(v&&d.tagName===m?v.update():(v&&(_&&(g=G(),y.parentNode.insertBefore(g,y)),v.unmount(!0)),de(m)&&(d.impl=$[m],d.impl&&(d.tag=v=Ue(d.impl,{root:d.dom,parent:h,tagName:m},d.dom.innerHTML,h),ge(d.attrs,function(e){return T(v.root,e.name,e.value)}),d.tagName=m,v.mount(),_&&De(v,g||v.root),h.__.onUnmount=function(){var e=v.opts.dataIs;Be(v.parent.tags,e,v),Be(v.__.parent.tags,e,v),v.unmount()}))));if((!e.wasParsedOnce||e.value!==n)&&(e.value=n,e.wasParsedOnce=!0,!w||p||c||o)){if(b||(n=""),!i)return n+="",void(u&&("TEXTAREA"===(e.parent=u).tagName?(u.value=n,E||(r.nodeValue=n)):r.nodeValue=n));switch(!0){case ue(n):A=i,Ve.test(A)&&He(i,n,r,this);break;case o:Q(r,i===O?!n:n);break;default:e.bool&&(r[i]=n),f&&r.value!==n?r.value=n:b&&!1!==n&&T(r,i,n),c&&r.hidden&&Q(r,!1)}var A}}}}function Ke(e){ge(e,Fe.bind(this))}function qe(e,t,n,r,i){if(!e||!n){var o=e?ke.call(this):t||this;ge(i,function(e){e.expr&&Fe.call(o,e.expr),r[be(e.name).replace(N,"")]=e.expr?e.expr.value:e.value})}}function We(e){if(e)return e.filter(function(e){return!/[^-\w]/.test(e)}).reduce(function(e,t){var n=t.trim().toLowerCase();return e+",["+p+'="'+n+'"]'},"");var t=Object.keys($);return t+We(t)}function Ze(e,t){var n=this,r=n.name,i=n.tmpl,o=n.css,a=n.attrs,s=n.onCreate;return $[r]||(Ge(r,i,o,a,s),$[r].class=this.constructor),_t(e,r,t,this),o&&R.inject(),this}function Ge(e,t,n,r,i){return ue(r)&&(i=r,/^[\w-]+\s?=/.test(n)?(r=n,n=""):r=""),n&&(ue(n)?i=n:R.add(n,e)),e=e.toLowerCase(),$[e]={name:e,tmpl:t,attrs:r,fn:i},e}function Qe(e,t,n,r,i){return n&&R.add(n,e),$[e]={name:e,tmpl:t,attrs:r,fn:i},e}function Je(e,i,o){var t,n,a=[];if(R.inject(),(le(i)||ue(i))&&(o=i,i=0),t=de(e)?(e="*"===e?n=We():e+We(e.split(/, */)))?Z(e):[]:e,"*"===i){if(i=n||We(),t.tagName)t=Z(i,t);else{var r=[];ge(t,function(e){return r.push(Z(i,e))}),t=r}i=0}return function e(t){if(t.tagName){var n,r=J(t,p);i&&r!==i&&T(t,p,r=i),(n=_t(t,r||t.tagName.toLowerCase(),ue(o)?o():o))&&a.push(n)}else t.length&&ge(t,e)}(t),a}var Xe={},Ye=Xe[_]={},et=0;function tt(e,t,n){if(le(e))tt("__"+et+++"__",e,!0);else{var r=n?Ye:Xe;if(!t){if(D(r[e]))throw new Error("Unregistered mixin: "+e);return r[e]}r[e]=ue(t)?K(t.prototype,r[e]||{})&&t:K(r[e]||{},t)}}function nt(){return ge(y,function(e){return e.update()})}function rt(e){return R.remove(e),delete $[e]}var it=Object.freeze({Tag:Ze,tag:Ge,tag2:Qe,mount:Je,mixin:tt,update:nt,unregister:rt,version:"v3.13.2"});function ot(e,t){var n,r=this.parent;r&&(pe(n=r.tags[e])?n.splice(t,0,n.splice(n.indexOf(this),1)[0]):Ne(r.tags,e,this))}function at(e,t){for(var n,r=this.__.head,i=te();r;)if(n=r.nextSibling,i.appendChild(r),(r=n)===this.__.tail){i.appendChild(r),e.insertBefore(i,t.__.head);break}}function st(e,t,n){var r={};return r[e.key]=t,e.pos&&(r[e.pos]=n),r}function ut(e,t){e.splice(t,1),this.unmount(),Be(this.parent,this,this.__.tagName,!0)}function lt(A,N,C){var O=typeof J(A,r)!==o||X(A,r),k=J(A,i),E=!!k&&U.hasExpr(k),L=Oe(A),T=$[L],e=A.parentNode,t=G(),j=Ce(A),M=J(A,f),S=[],I=A.innerHTML,R=!$[L],P="VIRTUAL"===A.tagName,V=[];return X(A,d),X(A,i),(C=U.loopKeys(C)).isLoop=!0,M&&X(A,f),e.insertBefore(t,A),e.removeChild(A),C.update=function(){C.value=U(C.val,N);var g=C.value,v=te(),y=!pe(g)&&!de(g),_=t.parentNode,x=[],b=y&&!!g;if(_){y&&(g=g?Object.keys(g).map(function(e){return st(C,g[e],e)}):[]);var w=0;ge(g,function(e,t){var n=t-w,r=!b&&C.key?st(C,e,t):e;if(!M||U(M,K(q(N),r))){var i,o,a,s,u=(o=e,a=r,s=E,(i=k)?s?U(i,a):o[i]:o),l=!y&&O&&typeof e===H||k,c=V.indexOf(u),p=-1===c,f=!p&&l?c:n,d=S[f],h=n>=V.length,m=l&&p||!l&&!d||!S[n];m?((d=yt(T,{parent:N,isLoop:!0,isAnonymous:R,tagName:L,root:A.cloneNode(R),item:r,index:n},I)).mount(),h?function(e,t){t?ze.call(this,e):e.appendChild(this.root)}.apply(d,[v||_,P]):function(e,t,n){n?ze.apply(this,[e,t]):ne(e,this.root,t.root)}.apply(d,[_,S[n],P]),h||V.splice(n,0,r),S.splice(n,0,d),j&&Ne(N.tags,L,d,!0)):f!==n&&l&&((k||me(g,V[f]))&&(function(e,t,n){n?at.apply(this,[e,t]):ne(e,this.root,t.root)}.apply(d,[_,S[n],P]),S.splice(n,0,S.splice(f,1)[0]),V.splice(n,0,V.splice(f,1)[0])),C.pos&&(d[C.pos]=n),!j&&d.tags&&function(t){var n=this;ge(Object.keys(this.tags),function(e){ot.apply(n.tags[e],[e,t])})}.call(d,n)),K(d.__,{item:r,index:n,parent:N}),x[n]=u,m||d.update(r)}else w++}),function(e,t,n){for(var r=t.length,i=e.length-n;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy