This file is indexed.

/usr/share/javascript/backbone-deep-model/deep-model.min.js is in libjs-backbone-deep-model 0.10.4-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
(function(){var e,a,g,c,d,b,f=[].slice;g=function(j){var i,h;if(!_.isObject(j)||_.isFunction(j)){return j}if(j instanceof Backbone.Collection||j instanceof Backbone.Model){return j}if(_.isDate(j)){return new Date(j.getTime())}if(_.isRegExp(j)){return new RegExp(j.source,j.toString().replace(/.*\//,""))}h=_.isArray(j||_.isArguments(j));i=function(k,m,l){if(h){k.push(g(m))}else{k[l]=g(m)}return k};return _.reduce(j,i,h?[]:{})};b=function(h){if(h==null){return false}return(h.prototype==={}.prototype||h.prototype===Object.prototype)&&_.isObject(h)&&!_.isArray(h)&&!_.isFunction(h)&&!_.isDate(h)&&!_.isRegExp(h)&&!_.isArguments(h)};a=function(h){return _.filter(_.keys(h),function(i){return b(h[i])})};e=function(h){return _.filter(_.keys(h),function(i){return _.isArray(h[i])})};d=function(p,h,k){var r,i,s,n,o,t,m,l,q,j;if(k==null){k=20}if(k<=0){console.warn("_.deepExtend(): Maximum depth of recursion hit.");return _.extend(p,h)}t=_.intersection(a(p),a(h));i=function(u){return h[u]=d(p[u],h[u],k-1)};for(m=0,q=t.length;m<q;m++){o=t[m];i(o)}n=_.intersection(e(p),e(h));r=function(u){return h[u]=_.union(p[u],h[u])};for(l=0,j=n.length;l<j;l++){s=n[l];r(s)}return _.extend(p,h)};c=function(){var h,k,j,i;j=2<=arguments.length?f.call(arguments,0,i=arguments.length-1):(i=0,[]),k=arguments[i++];if(!_.isNumber(k)){j.push(k);k=20}if(j.length<=1){return j[0]}if(k<=0){return _.extend.apply(this,j)}h=j.shift();while(j.length>0){h=d(h,g(j.shift()),k)}return h};_.mixin({deepClone:g,isBasicObject:b,basicObjects:a,arrays:e,deepExtend:c})}).call(this);(function(a){if(typeof define==="function"&&define.amd){define(["underscore","backbone"],a)}else{a(_,Backbone)}}(function(c,g){function e(n){var h={},m=b.keyPathSeparator;for(var i in n){var o=n[i];if(o&&o.constructor===Object&&!c.isEmpty(o)){var l=e(o);for(var j in l){var k=l[j];h[i+m+j]=k}}else{h[i]=o}}return h}function f(p,o,l){var m=b.keyPathSeparator;var j=o.split(m);var h=p;l||(l===false);for(var k=0,q=j.length;k<q;k++){if(l&&!c.has(h,j[k])){return false}h=h[j[k]];if(h==null&&k<q-1){h={}}if(typeof h==="undefined"){if(l){return true}return h}}if(l){return true}return h}function a(k,q,j,r){r=r||{};var m=b.keyPathSeparator;var o=q.split(m);var s=k;for(var l=0,h=o.length;l<h&&s!==undefined;l++){var p=o[l];if(l===h-1){r.unset?delete s[p]:s[p]=j}else{if(typeof s[p]==="undefined"||!c.isObject(s[p])){s[p]={}}s=s[p]}}}function d(i,h){a(i,h,null,{unset:true})}var b=g.Model.extend({constructor:function(h,j){var k;var i=h||{};this.cid=c.uniqueId("c");this.attributes={};if(j&&j.collection){this.collection=j.collection}if(j&&j.parse){i=this.parse(i,j)||{}}if(k=c.result(this,"defaults")){i=c.deepExtend({},k,i)}this.set(i,j);this.changed={};this.initialize.apply(this,arguments)},toJSON:function(h){return c.deepClone(this.attributes)},get:function(h){return f(this.attributes,h)},set:function(A,B,m){var u,r,j,z,y,k,p,s;if(A==null){return this}if(typeof A==="object"){r=A;m=B||{}}else{(r={})[A]=B}m||(m={});if(!this._validate(r,m)){return false}j=m.unset;y=m.silent;z=[];k=this._changing;this._changing=true;if(!k){this._previousAttributes=c.deepClone(this.attributes);this.changed={}}s=this.attributes,p=this._previousAttributes;if(this.idAttribute in r){this.id=r[this.idAttribute]}r=e(r);for(u in r){B=r[u];if(!c.isEqual(f(s,u),B)){z.push(u)}if(!c.isEqual(f(p,u),B)){a(this.changed,u,B)}else{d(this.changed,u)}j?d(s,u):a(s,u,B)}if(!y){if(z.length){this._pending=true}var o=b.keyPathSeparator;for(var x=0,v=z.length;x<v;x++){var A=z[x];this.trigger("change:"+A,this,f(s,A),m);var q=A.split(o);for(var t=q.length-1;t>0;t--){var w=c.first(q,t).join(o),h=w+o+"*";this.trigger("change:"+h,this,f(s,w),m)}}}if(k){return this}if(!y){while(this._pending){this._pending=false;this.trigger("change",this,m)}}this._pending=false;this._changing=false;return this},clear:function(i){var h={};var k=e(this.attributes);for(var j in k){h[j]=void 0}return this.set(h,c.extend({},i,{unset:true}))},hasChanged:function(h){if(h==null){return !c.isEmpty(this.changed)}return f(this.changed,h)!==undefined},changedAttributes:function(j){if(!j){return this.hasChanged()?e(this.changed):false}var i=this._changing?this._previousAttributes:this.attributes;j=e(j);i=e(i);var l,k=false;for(var h in j){if(c.isEqual(i[h],(l=j[h]))){continue}(k||(k={}))[h]=l}return k},previous:function(h){if(h==null||!this._previousAttributes){return null}return f(this._previousAttributes,h)},previousAttributes:function(){return c.deepClone(this._previousAttributes)}});b.keyPathSeparator=".";g.DeepModel=b;if(typeof module!="undefined"){module.exports=b}return g}));